@PauloCereda It needs to be wrapped up in some nice \prg_stepwise_inline:nnnn {2}{1}{36} to loop over bases (IIRC, bases above 36 are not supported). And I guess a \seq_map_inline:Nn \l_the_list_of_all_TeX_SX_users_seq.
@BrunoLeFloch Bases above 36 should consider case sensitivity or other symbols. I think it's better to play safe and stay with 36 as the upper bound (I wrote a Python script to look for palindromes in every base from 2 to 36).
@Caramdir Well, how else to find out the charcode of anything? I also use "man ascii" when I do some more serious character hacking in the 0--255 range.
@Caramdir It doesn't. When TeX is looking for a number, `<char> gives the character code. Then the combining mark just stopped the \numexpr, and I didn't see it because I didn't really look at the pdf output.
Test: `
@Caramdir What's magic about including a `? See test above.
@BrunoLeFloch I think we are talking about different things: Markdown `...` syntax seems to destroy the combining characters. And I thought you were struggling with using that syntax on a TeX expression containing `.
This sounds like this question, at least for this specific application. In that case, something like:
\documentclass{article}
\usepackage[demo]{graphicx} % demo option only useful for demonstration purposes
%\newcommand{\submit}{1}
\ifdefined\submit
\relax
\else
\renewcommand{\includegraphic...
@FaheemMitha Macros are expanded, i.e. the replacement text is inserted and all arguments like #1 are substituted with the given arguments. So yes, it is basically simple string substitution. There are also TeX primitives which can't be expanded but must be processed. These are e.g. assignments of any kind, box building macros, everything which adds material to the document, ...
Also please don't confuse, in writing or otherwise, \newcommand/\def with the macro these are defining.
Also \thepage doesn't have to be numeric. It can be 'iii' for example. You need to use \ifodd\value{page} instead and this isn't reliable as I explain in the introduction section of ifoddpage.
@Raphink The page counter is incremented asynchronously and TeX reads often more text than it can place on one page. So the page counter doesn't have to be correct.
You need to place a label where you want to check the page number and then read the label value from the AUX file at the next compiler run.
@Raphink: There is also a changepage package which provides a similar functionality besides other things. I just wanted a small package which only does check for the page oddness.
I only use \isodd in one of my books, and it's a devotional so each section is exactly one page long and I call \isodd at the top, so I never have edge problems.
@Raphink: I had a look on \ifthispageodd from KOMA now and it does basically the same as my ifpageodd package. So if you are using a KOMA class and don't need to do calculation with the page margins you don't need the package.
I want to insert an image in a LaTeX document so that it is always positioned at the top of the page and the text flows around it.
I'm aware of wrapfig (and one or two similar packages) which do text wrapping - but, as far as I can tell, one can't force these packages to place the image at the t...
I've switched from MiKTeX 2.9 to TeX Live 2011 (pretest version). I've managed to integrate some third party fonts (included neither in MiKTeX nor in TeX Live) in my TEXMFLOCAL tree following the instructions given here. At the moment I'm struggling to install the Luximono font which is part of M...
@Raphink actually I am confused now. You package behavied differenlty in lua as compared to pdftex. But those utf8 related ones don't but in fact doesn't work at all in lua? do you know of a reason for this or is it just one of those sad thing one has to learn to accept?
@jonalv the fact that my package behaves differently is a feature (it's actually mentioned in the documentation). The feature is implemented in both TeX and Lua and the Lua version is activated when you compile with LuaTeX.
As for the utf8 encoding, it's all mentioned in the question I linked to.
There have been questions about rivers asked in the past. I'm wondering about words that are repeated in the same place on two consecutive lines, like "le monde" in the following example:
Does this have a name? Should this be avoided?
If so, how do you avoid such things (I guess in a similar ...
I am in the process of adjusting a literature list for a publication, however the journal have some standards that are not covered in the bst files I have in my collection. I have used the makebst program to make a custom .bst file, however there is one aspect that i could not do via makebst with...
@JosephWright Indeed. ;-) I have started to make "requests for clarification" to some old unanswered questions which seem to be not without merit. If the OP doesn't respond, we can close them eventually.
@Caramdir I see what you're up to. ;-) books are those (LaTeX) manuals featuring an ISBN and listed at amazon.com. manuals and documentation ... I say merge them.
At the moment we have three tags concerning documents about TeX: books, manuals and documentation. The only one with a wiki is books, which says that it “is for questions which deal with books about TeX, LaTeX and other topics of this site.”
I just brought this up in chat and the suggestion was ...
I am new at making presentations using Latex (Beamer). What I need is to add some videos in my presentation. How can this be done?
Also, are there PDF readers which can play videos? If yes, then suggest which one preferably on Ubuntu (Windows is ok too). If no, then I can make do with an external...
A while ago I started writing some ad-hoc code to convert matrices I created with Java code into LaTeX source code, resulting in this (open source) code. However, since this is not really core business, I don't want to spend too much time on extending this code base, but it currently only exports...
I'm using BibTeX with the alpha style to keep track of my references. Whenever there is an entry with 4 or more authors, the entry id composed of their names and publication years causes the first line of the entry to be indented, thereby messing up the alignment of the whole entry.
What's the b...
I'm using hyperref to add pdf hyperlinks to all references in my document.
I am using the pagebackref option, so in the bibliography I get a nice list of links to the pages the reference appeared. The page numbers are preceded by "-> pages" but this text is a light shade of grey.
I disabled col...
@JosephWright A yes, the OR ... looking forward to a time when someone asks "How to place a graphics in two columns of a three-column document?" and I answer "Just do X and Y and you're set".
I hit the reputation cap again ... Now, if there was a badge for getting more reputation than @egreg on the very same day ... that wouldn't be settled yet. ;-)
A somewhat vague question; OP hasn't shown up for 4 months. I say let#s close it as "too localized":
I installed LaTeX2rtf 2.1.1 GUI from SourceForge. I also installed MikTeX, Imagemagick and ghostscript, which is automatically detected in the environment tab. But when I run the program on a .tex file, it shows the following error.
(Not set):1 only a single file can be
processed at a time....
@lockstep Working hard to hit rep cap also today. :) But I did my bike tour, so I'm afraid I won't succeed. :) Nice places and a wonderful weather; here's one of the places: comune.san-leo.rn.it
I have context source file containing
\definefont[Dings][name:MarVoSym]
and I import it via \input .
When I run context on my source, I always get
! Font \**Dings**:=MarVoSym at 11.0pt not loadable: Metric (TFM) file not found
I wish I could recall how I made it working on Linux but this ...
First time I compile the document the font in the entire document is the one specified for the section titles (larger than it should be in the rest of the document etc.) and some characters are wrong. For example dots (in list) are exchanged for Z and scandinavian letters (ä, ö, etc) are missing....
@PauloCereda If you happen to visit Ravenna, you'll discover something very unexpected in a quiet small town. It was the last capital of the Western Roman Empire and then the seat of some "barbaric" kings. It has several religious buildings from the 5--7 century, very well preserved and still in use. Byzantine emperors enriched it because of its history; maybe the later decadence of the town helped in keeping such treasures almost intact.
In Lyx versions 1.6.8 and higher there is a version control toolbar.
I successfully got RCS working but I cannot find any information on how to use SVN.
However, there always is an "use SVN" button which is greyed out.
I added the bin directory of a slicksvn installation to the PathPrefix in t...
@lockstep Could be, but where should this person be directed to? Stackoverflow? IMO it is OK to ask TeX related questions here and the answer could be to ask on Stackoverflow for a specific other question.
@Patrick You may well be right. Now, what to do with an on-topic question that has been lacking detailed information for about 4 months? Would someone add an "information request"? (Possibly someone who is using LyX?)
@PauloCereda We have also many other interesting things: for example the oldest mall in the world. In the 13th century a new town hall was built (it was a free town at the time) and below it, in two galleries at street level, some shops were opened. They are still there.
But the most important thing are the famous frescoes by Giotto in the "Cappella degli Scrovegni".
@lockstep Fantastic. I love this part, "We're here to help you, but show us that you've done your best to solve your own problems before hitting on us."
@Caramdir In any case, the OP shouldn't have been able to delete a question that had already produced an answer with 30 upvotes. IIRC, the deletion policy of SO would also prevent it now.
No idea if it's relevant, but the username "Chandru" sounds vaguely familiar from maths-SX. I remember reading some threads on their meta relating to someone called "Chandru" ... Ah, yes: meta.math.stackexchange.com/q/548/2907