Reputation
4,060
Top tag
Next privilege 5,000 Rep.
Approve tag wiki edits
Badges
10 19
Newest
 Critic
Impact
~60k people reached

Feb
6
comment Latexmk: How to Use $compiling_cmd, $success_cmd, $failure_cmd
The use of xdotool is to change the title of a window. Which window from which program do you wish to be changed? Note that xdotool only works with windows produced by XWindows. Also the examples assume that the window to be changed is from a previewer (e.g., xpdf or gv), with %D being substituted by the name of the viewed file (e.g., a pdf file).
Feb
2
comment Biblatex remakes bcf and bbl files despite no change to bib files
Adding an additional \cite does imply a change in the bcf file, and therefore latexmk will run biber again. Depending on the details, e.g., whether or not the additional \cite results in a change in the numbering of the references, the resulting bbl file may or may not be changed also after biber is run. If the bbl file doesn't change after that, then latexmk won't do an additional run of pdflatex (or xelatex). Could I repeat my request: When latexmk calls biber when you think it shouldn't, what does it report for changed files?
Feb
2
answered Compiler-style output for latex errors
Feb
2
awarded  Critic
Feb
2
comment Biblatex remakes bcf and bbl files despite no change to bib files
@Jonathan Latexmk definitely does NOT run biber unconditionally, but only runs it if the bcf or the bib file has changed since the last run of pdflatex (or xelatex) under latexmk control. I have just explicitly verified this with the current version on a simple test file. You say that in fact with your document biber is run every time. So there is something else going on beyond what is in your description of your problem. Look at the output from latexmk just before one of the runs of biber. What file(s) are reported to have changed?
Feb
1
comment Biblatex remakes bcf and bbl files despite no change to bib files
1. Using latexmk's -pvc option may not be appropriate for this situation. It leaves latexmk continuously running and polling for file changes; and then reruns programs as appropriate. If you want a one-time make with a previewer being opened, use the -pv option. 2. There are also much better solutions for using latexmk with make. See the section "USING latexmk WITH make" in latexmk's documentation.
Feb
1
comment Biblatex remakes bcf and bbl files despite no change to bib files
We probably do need a minimal example, and an exact statement of what was done to get the behavior that is complained about. Xelatex and/or biber only get run by latexmk if any of their input files get changed. If, for example, biber gets run when you are not expecting it, then there has been a change in a bcf or bib file that happened despite your expectations. The output of latexmk tells you what file(s) have changed.
Jan
22
comment Adding custom build step to latexmk sequence
Given your problem description, I would have expected a custom dependency to work, and to be the preferred solution. It might be useful to give more details about what didn't work with custom dependencies. (Contact me off-line if that the would be easier, at the e-mail in the latexmk documentation.)
Jan
14
comment LaTeXmk Error - Changing directory
I am not able to reproduce a problem with using Dropbox. I've arranged to invoke latexmk in a situation copying the description given in the problem, and everything ran fine. It's perhaps worth noting that very occasionally I have found strange things happening with Dropbox's synchronization of files not doing what I would expect; but that was not reproducible (at least not easily), but it might conceivably be related to this question.
Jan
14
comment Adding custom build step to latexmk sequence
You need what latexmk calls a "custom dependency". See latexmk's documentation for what to do to configure latexmk. If that works in your situation, I can convert this comment to an answer. One thing you need to know is that on an initial run of pdflatex (via latexmk) there will be error messages about the missing png files. If things are correctly set up, latexmk will use these error messages to trigger the conversion of your .dia files to .png files.
Jan
14
comment Adding custom build step to latexmk sequence
It would be useful to give more details about what you want to do. The kind of solution that is appropriate depends enormously on what you are trying to achieve. Sometimes a script that does something and then calls latexmk can be best. Other times an optimal solution can be with a suitable latexmk configuration.
Jan
12
comment LaTeXmk Error - Changing directory
Could you try running pdflatex from the command line, using the same command that latexmk used (see the line starting "Running").
Dec
10
comment Find main.tex file in parent folder when using latexmk
Does adding a -cd option help? I.e., try using the command line latexmk -cd -pdf ../main
Oct
11
awarded  Yearling
Oct
6
comment Latexmk - Non-existent destination files
In both cases, it would help to know exactly how latexmk is configured, i.e., what is the exact definition of the custom dependency/dependencies that you used, as well as other definitions. In the second case, my first conjecture is that you have redefined $makeindex in a way that works for UNIX-like systems but is wrong for MS-Windows. (The semicolon separates commands on UNIX, but is taken as part of a filename in MS-Windows.)
Oct
6
comment thumbpdf support for latexmk
Yes, and that is a disadvantage because thumbpdf runs much slower than pdflatex. What would be best would be to do a normal run (without invoking thumbpdf), then do postprocessing by a run of thumbpdf and then an extra run of pdflatex. At present, latexmk doesn't give any simple way of doing that. But it would be sufficient to write a script that invokes latexmk and then runs thumbpdf and pdflatex. However, is there really any need for thumbpdf given that modern previewers that support thumbnails also generate them themselves?
Oct
5
answered thumbpdf support for latexmk
Sep
8
comment How to change the rules for latexmk that biber is not run before pdflatex?
The OP changed both the .bib file and citations in the .tex file. Then latexmk does biber, pdflatex, biber, pdflatex, instead of the optimal pdflatex, biber, pdflatex. Under normal circumstances, the run of biber is quick, so the non-optimality is unimportant; but 100 sec is no longer quick. Source files for both the biber and pdflatex changed, so both programs need to be run, and latexmk needs to choose which to run first. Its choice of biber first would be correct if no citations in the .tex changed. It would need reprogramming of latexmk to change this.
Aug
10
comment LaTeXmk and MusiXTeX. Or: adding commands to LaTeXmk workflow
It appears that latexmk has misinterpreted internal as a command name. The code works for me when I copy and paste it from my answer. It is possible something extra got inserted in your latexmkrc in front of the word "internal". If you don't see anything relevant, could you send me your latexmkrc file off-line (to the address in the latexmk documentation), and I'll try to reproduce your problem.
Aug
10
comment LaTeXmk and MusiXTeX. Or: adding commands to LaTeXmk workflow
@Bort You also need to add a command to delete the mx2 file before the first run of pdflatex. With that change, your solution would work. See my answer for an improvement.