I use to put all files that are generated by compiler in a folder called build
with the instruction
pdflatex -output-directory=build myfile.tex
How do I set this folder as default so I wouldn't need to write it every time I compile?
I tried to edit the pdfconfig file following the documentation reference of MikTeX .ini.
[TeXandFriends]
;; Create the output directory if '--output-directory=DIR'
;; refers to a non-existing directory.
CreateOutputDirectory = build
However it only states the directory to be created when the directory input of the option --output-directory
does not exist.
I didn't find any way of setting a default value for --output-directory
option, so I would thank any orientation with this.
TEXMFOUTPUT
is only used when the default or specified output directory is not writable.) How about defining a command alias?echo
to add-n
by default, orls
to add--color=auto
by default either without defining an alias (... if you use some bash)