Reputation
3,641
Top tag
Next privilege 5,000 Rep.
Approve tag wiki edits
Badges
9 16
Newest
 Enlightened
Impact
~45k people reached

Apr
17
comment latexmk option -c not working
Three times with pdflatex is not necessarily enough (depending on the document and on the class and style files it uses). Latexmk automates getting the number of runs correct.
Apr
13
comment latexmk will compile in Sublime Text, even though the data is missing
@darthbith That's how latexmk works at present. The information in the .log about a missing file is often just the base name without an extension or directory, so there are a lot of possibilities to be tested. It would be worth while to improve latexmk's behavior, at least for the common cases. By the way, I've found that a convenient way to trigger a recompilation is just to make an innocuous change to the main .tex file, e.g., adding a space at an end of line.
Apr
13
comment latexmk will compile in Sublime Text, even though the data is missing
@darthbith When contents of an external file change, latexmk will generally do a recompilation. However, there is an explicit exception that if the change is that the file no longer exists, then that by itself doesn't trigger a recompilation. The reason is that normally there is no point doing a recompilation in this situation. It's different if there's a custom dependency for the missing file; in that case latexmk will remake the missing file.
Mar
18
answered Using latexmk with multiple tex files in the directory
Mar
17
comment How to set latexmk to clean directory?
Actually there is a bug in latexmk. It assumes that %R is the first item in the pattern you give in $clean_ext. I'll need to correct that.
Mar
16
comment How to set latexmk to clean directory?
Do you have the output directory ($out_dir) set?
Feb
20
comment Latexmk ignore a file
Two other possibilities: 1. Change the extension of the file from .tex to something else, e.g., .inc. Then LuaLaTeX will find it. 2. Use the (not-yet-documented) configuration array variable @default_excluded_files, as in @default_excluded_files = ('common.tex'); in a .latexmkrc file.
Feb
18
awarded  Enlightened
Feb
18
awarded  Nice Answer
Feb
12
comment Why I can not include .eps files into my .tex file?
@DavidCarlisle Aren't you forgetting that by default pdflatex plus the graphicx/s package does do the eps-to-pdf conversion automatically? In fact, the OP uses the epstopdf package, whose documentation explicitly says that it will do the conversion. Therefore it is correct to expect EPS to be included. I suspect that the OP has missed the sentence in the epstopdf package documentation that says that the epstopdf must be loaded after graphicx. In any case, it is now normally unnecessary to use the epstopdf package.
Jan
28
answered latexmk cleanup
Jan
26
answered pdfLatex exitcode when running with timeout
Jan
9
comment latexmk cd option not working
There is indeed a problem. One bug with the -cd option was fixed in the newly released v. 4.41 of latexmk, but the fix caused another bug which I didn't detect. Until I correct the problem, I suggest reverting to v. 4.39, which can be obtained at users.phys.psu.edu/~collins/latexmk/versions.html
Dec
17
answered How to configure latexmk to compile tmp file and then replace pdf/synctex files?
Dec
16
comment How to configure latexmk to compile tmp file and then replace pdf/synctex files?
Try removing the single quote after %S in your definition of $pdflatex. That works for me.
Oct
26
comment latexmkrc, asymptote and subfolders on Mac OS
$_[0] is definitely the correct thing to use. It denotes the first argument to the subroutine, and this argument is set to the base name of the file when the subroutine is called by latexmk. $_ is a Perl variable with a different meaning; only by accident will it equal the desired name, and normally it doesn't. See the latexmk documentation for examples.
Oct
13
answered latexmk and \graphicspath
Oct
13
answered latexmk -outdir with \include
Oct
11
awarded  Yearling
Sep
24
awarded  Autobiographer