7,742 reputation
12959
bio website
location Switzerland
age
visits member for 4 years, 4 months
seen Nov 21 at 10:02

Mathematician


Aug
29
comment Using LaTeX to render hypergeometric function notation
To get prepended subscripts, you may also consider using the tensor package, see tex.stackexchange.com/questions/334/non-kludgey-left-subscripts
Aug
27
comment How to conditionally define a new command in LaTeX?
Ah, it seems I misunderstood the question.
Aug
27
comment How to conditionally define a new command in LaTeX?
Doesn't \newcommand contains a built-in check that the command you are trying to define is not already defined?
Aug
27
comment Print two-sided B5 book on A4 “corners”
If you want the crop marks, you can combine this with the crop package if you use the odd option to print only the crop marks on the odd side. One caveat, the way that crop determines odd/evenness is based on page number, so if you switch up between different numbering schemes (roman for front matter for example) you may need to be a tad careful to make sure chapters open only on the righthand side.
Aug
26
comment Include without pagebreak
Is it even possible? That \include keeps tracks of counters and references is tied to the fact that it generates a separate .aux for each included file. Perhaps the easiest thing it to just modify your work flow: forget about page breaks in the drafting stage and use \include and once the content is set, recompile using \input?
Aug
25
comment Resources For Calculating Average Sentence Length
Or if you don't have Word: there are tools to count the number of words in a tex file. To count sentences, we'll just count the number of periods (unless you use a lot of commands/math with the character, you shouldn't need to strip the tex file) cat file.tex | sed 's/[^.]//g' | wc -c should give you a number that is one more than the total number of period marks used.
Aug
25
comment LaTeX style or macro for detailed response to referee report
Maybe use a description list with some counters?
Aug
25
comment \colon for maps in opposite direction
I think it is also something semantical in addition to spacing. : is interpreted as a relation (I guess the ratio). At least that's what the AMS Short Math Guide ftp.ams.org/pub/tex/doc/amsmath/short-math-guide.pdf suggests to me.
Aug
25
comment \colon for maps in opposite direction
Don't use \colon then. It is defined to have small spacing on the left and big spacing on the right. Maybe you should dig into the code and find the definition for \colon and define a command like \rcolon that swaps the spacing before and after and use that.
Aug
17
comment Is there any way to get real-time compilation for LaTeX?
@frabjous: I'll take a look at that. latexmk is not bundled in the distribution I use, but most likely because I am using a heavily customized set from TeXLive 2010 under Gentoo Linux.
Aug
4
comment parameter passing to \verb|| environment
Ah, you missed the link. That's alright. I hope for your sake you didn't try to Google "LaTeX string". It is one of those seemingly harmless combinations of words...
Aug
4
comment parameter passing to \verb|| environment
Did you look at the Link that I posted? The \string command converts the one character that follows it into a string. So you can type \string_ to get the underscore character, or \string{ to get the open brace character etc. In your revised example you are almost surely using the command wrong.
Aug
4
comment Is there any way to do a correct word count of a LaTeX document?
Just tried it on a recent paper I wrote: yeah, detex is wildly off. I get even better results from piping dvi2tty to wc.
Aug
4
comment Is there any way to do a correct word count of a LaTeX document?
I cannot help but think that calling perl just to do chomp and a regex is way too much of an overkill. =) Why not just ' ... | wc -w | tr -d [:space:]'?
Aug
3
comment LaTeX Editors/IDEs
And even if you don't want to use the vim-latex macros, you can define silly short cuts like I do: dpmms.cam.ac.uk/~ww278/#texres
Aug
3
comment Typsetting UML class diagrams
UML stands for unified modelling language. en.wikipedia.org/wiki/…
Aug
3
comment Can I create music sheets with LaTeX?
@Arthur: that's news to me. (Seriously. The last time I used Lilypond was close to 6 years ago, and back then it was based on TeX. I wonder what made them switch.)
Aug
2
comment Automatically numbering constants
Well, in your answer I think if I just use \ref* instead of \ref it will be okay with hyperref. Though with showkeys it will still generate a bunch of new keys in the margin, which one might argue is actually preferable.
Aug
2
comment Automatically numbering constants
I am not completely thrilled about accepting my own answer, but I feel that the package I linked to is a better solution then hacking my own commands.
Aug
2
comment Adding line numbers to latex and respecting equations
Take a look at ulineno.pdf from ctan.org/tex-archive/macros/latex/contrib/lineno (the user's manual). It explains why lineno has trouble with equations and paragraphs containing equations, and also some work-arounds.