2,376 reputation
311
bio website phys.psu.edu/~collins
location
age
visits member for 1 year, 7 months
seen 5 hours ago
stats profile views 188

Author of latexmk


May
2
answered How to add correctly numbered footnotes in RevTex4-1
Apr
26
answered XeLaTeX - terminal output too verbose
Apr
17
comment Problem with un-clear error messages (using LaTeXmk[fls file] and XeLaTeX[bad file descriptor])
You also need to show us the screen output around where xelatex was run. That might possibly give more information. The collected information at the end is just indicating that you need to look in detail at what appears earlier on the screen. The code 256 is from when latexmk ran xelatex, as reported by the system function of Perl. It implies that the program xelatex itself gave a return code 1 at the operating-system level. Latexmk reports the code because it saw that xelatex failed, but did not see any error messages it is programmed to analyze.
Apr
17
comment Why does the compiler keeps telling me (forever) to rerun because labels have changed?
When I compile the above example with article instead of elsarticle, the .aux file has \reset@newl@bel as its second line. This is the acronym package's way of preventing an incorrect label-changed warning. But with elsarticle, the use of the frontmatter and abstract environments puts something earlier in the .aux file, including a line that defines a label. Perhaps this is a bug in acronym?
Apr
14
answered exceltex dependencies in latexmk
Apr
12
comment exceltex dependencies in latexmk
@Holene This is quite strange. It might be best to debug the problem off-line, and then report the results here. My e-mail is in the latexmk documentation. Send a minimal example that shows the problem (complete latexmkrc files and tex files), and we can take it from there.
Apr
10
comment exceltex dependencies in latexmk
With your definitions, it should work. However, in the output listing, I see &do_cusdep( ) reported, whereas it should be &do_cusdep( excel2tex ) given your custom dependency's definition. Here are some possibilities: (a) The code in latexmkrc is not identical to the code in the question. (b) Something else in one of your latexmkrc files messes with the relevant latexmk internals. (c) Your latexmk is not a standard one. (d) A bug in latexmk, although I cannot reproduce it. What happens if the custom dependency is the only thing in any of the latexmkrc files?
Apr
4
comment gnuplot in LaTeX, without gnuplottex
What doesn't work about the custom dependency you tried? If you put your gnuplot code in a file with extension .gnu, e.g., figure.gnu, and have a corresponding \includegraphics{figure} in your LaTeX file, then it should work. This assumes you are using latex, not pdflatex, to compile your LaTeX file, since you are generating an .eps file. When you run latexmk, there will be a missing-file error the first time it uses latex; latexmk should detect that and use gnuplot. Then there should be a successful second use of latex.
Apr
3
comment gnuplot in LaTeX, without gnuplottex
Because the gnuplot command is being executed by the gnuplottex package, latexmk doesn't control whether gnuplot is invoked. You can change things so that latexmk is in control of gnuplot by turning off -shell-escape and defining a custom dependency for latexmk to invoke gnuplot. Could you try this on your present document? (One would need a modification to gnuplottex to make this solution fully general.)
Mar
30
comment latexmk and nomencl
As @texenthusiast writes in his answer, a good place to put a configuration like this is in a file named .latexmkrc in your home directory. But I think you may have misunderstood the documentation for the names of the system-wide configuration files. These are files named LatexMk in one of the directories /opt/local/share/latexmk/ /usr/local/share/latexmk/ /usr/local/lib/latexmk/ (There are some backwards compatibility reasons for the naming.)
Mar
12
comment texlatexmk and mVersion problem
The two runs of pdflatex happen when you do an initial run of latexmk, modify the tex file, and then run latexmk again. On the absolute first run of pdflatex, latexmk does not detect version.dat as a source file, since the file is written before being read. That changes on the run after the change in the tex file. Then latexmk reports that version.dat is changed or newly in use; it's the newly-in-use bit that triggers the extra run of pdflatex. On later runs, the changes are only in the lines of version.dat that latexmk was told to ignore.
Mar
4
answered latexmk separate build directory
Jan
22
comment Revtex - using math in footnote
Even just putting the math inside curly braces does the job. (I.e., the \mbox can be omitted.)
Dec
31
awarded  Nice Question
Dec
12
revised What is the name of the bibfile when an extension is given in \bibliography?
Add explanation of motivation for question, and add latexmk tag
Dec
12
revised What is the name of the bibfile when an extension is given in \bibliography?
Change \bibdata to \bibliography
Dec
11
awarded  Student
Dec
11
asked What is the name of the bibfile when an extension is given in \bibliography?
Nov
27
comment latexmk endless loop when non-PDF outputs are specified
At present there is no simple way to exclude files from being monitored. But this example shows that this would sometimes be a useful feature. (Note that in the .fls file produced by pdflatex in the example, the main.png file is listed as an input file. So it is natural for latexmk to deduce that main.png is a genuine source file.) I've added the possibility of configuring latexmk to exclude specified files from being monitored to my list of proposed future improvements for latexmk.
Nov
26
comment Sublime Text 2 and bibtex
@Holene Because you find latexmk works from the command line but not from within ST2, the problem is probably a difference between the environments in ST2 and at the command line. If you could send me a copy of latexmk's output with an explanation of exactly what you did, I could maybe debug the problem. (It would help if you removed the -silent and -f options from your configured command line for latexmk in ST2. That would give more debugging information.) Send me this off-line, to the e-mail given in latexmk's documentation.