a-shell icon indicating copy to clipboard operation
a-shell copied to clipboard

Latex configuration

Open lace-wing opened this issue 2 years ago • 5 comments

The latex commands are certainly useful. However it comes to a situation that I want to customize my recipe and aux output directory. E.g. put the aux files in ./build/, easily switch recipe and build tools for different projects, or produce .pdf by default. In VSC (with Latex Workshop) I can configure all these using a .json file. Is there any configuration command or file for those?

lace-wing avatar Jul 01 '23 07:07 lace-wing

For good and for bad, a-Shell reproduces the experience of Unix terminal. You have the same commands, with the same options (or lack thereof). You'll have to look at the man page for pdflatex, or check if someone had the same question in https://tex.stackexchange.com.

latexmk is a tool that calls latex with many options, which may be what you're looking for. There is also pdflatex -output-directory build.

holzschu avatar Jul 01 '23 08:07 holzschu

For good and for bad, a-Shell reproduces the experience of Unix terminal. You have the same commands, with the same options (or lack thereof). You'll have to look at the man page for pdflatex, or check if someone had the same question in https://tex.stackexchange.com.

latexmk is a tool that calls latex with many options, which may be what you're looking for. There is also pdflatex -output-directory build.

I did tried the -output-directory option. It will put all output files into ./build/, while I want to change ditecrory of the aux files only. Some compilers/tools have a -aux-directory for that. Also I didn't find relavent manual.

lace-wing avatar Jul 01 '23 09:07 lace-wing

Ah I misused latex as latexmk, there is a -aux-directory option, ty.

lace-wing avatar Jul 01 '23 09:07 lace-wing

Thank you for telling me about the lack of man pages. I'll fixe that in the next version.

holzschu avatar Jul 01 '23 09:07 holzschu

Ah I misused latex as latexmk, there is a -aux-directory option, ty.

When I use latexmk -aux-directory build -output-format pdf or latexmk -auxdir build -output-format pdf, it gives error "Latexmk: -auxdir unknown option" and "Latexmk: -output-directory unknown option", seems like latexmk is not working.

lace-wing avatar Jul 01 '23 09:07 lace-wing