Actually I need several commands to compile my Latex document:
lualatex -synctex=1 -interaction=nonstopmode -halt-on-error main
biber main
makeindex main
makeindex -s main.ist -t main.alg -o main.acr main.acn
makeindex -s main.ist -t main.glg -o main.gls main.glo
lualatex -synctex=1 -interaction=nonstopmode -halt-on-error main
lualatex -synctex=1 -interaction=nonstopmode -halt-on-error main #not sure if this is really needed
But I noticed that Overleaf can compile the document with a single run... Well, I can't see what Overleaf does in background but I assume it.
Is there a way to compile everything with a single command?
Of cause I can use a Bash script or Makefile. But I'm thinking of a way that also speeds up things. It's very slow to compile the document three times. Maybe there is a single step to build all things in one step.
latexmk(that is what overleaf is using, and me as well on my Linux box) – daleif Oct 17 '19 at 09:54! Package inputenc Error: Unicode char �\lst@EC� (U+9EBC) (inputenc) not set up for use with LaTeX.. I don't have this error when using the bash commands instead. – Michael Oct 17 '19 at 10:50latexmkdoes not work well withmakeglossaries. – Foad Jan 24 '24 at 10:09Latexmk: Missing input file 'main.acr' (or dependence on it) from following: No file main.acr.when I runlatexmk -pdf -outdir=build main.tex– Foad Jan 24 '24 at 12:47latexmk, and I just pointed out a common issue with this tool for those folks who end up here. For my own work, I have already moved on toltx2anyon WSL2 and have written a small cmd/batch script that runspdflatex,makeglossaries,andbiberconsecutively. – Foad Jan 24 '24 at 13:19latexmk -pdf -outdir=build main.texon an MWE that includes glossaries and let me know if it still works? – Foad Jan 24 '24 at 13:32latexmkis very widely used.) – Joseph Wright Jan 24 '24 at 13:32latexmkis a very popular tool, and I know that building folders is widely frowned upon. Yet, coming from a C/C++/CMake background, I can't help but avoid contaminating my project folder with other temporary files. – Foad Jan 24 '24 at 13:38