Closed ashthespy closed 4 years ago
This does work for files named foo.bar.tex
with the default toolchain. However, files like file.tex.tikz
don't work because it tries to compile file.tex
. I'd recommend changing the default toolchain to %TEX %ARG %DOC.%EXT && %BIB %DOC && %TEX %ARG %DOC.%EXT && %TEX %ARG %DOC.%EXT
pdftex
can take the whole filename as an argument. It's probably a better idea to always pass it %DOC.%EXT
so you don't have to build special rules for each extension.
Done, thanks for the help! :-)
Awesome! Thanks for working on this!
Follow up from #211 @maxb2 could you give this a shot? It should be more robust, while maintaining some flexibility still.
The logic is to strip known extensions, (
.tex
and.tikz
by default along with ones defined in thelatex_ext
key)This should allow for such cases:
%DOC
%EXT
latex_ext
foobar.tex
foobar
tex
foo.bar.tex
foo.bar
tex
foo.bar.tikz
foo.bar
tikz
foobar.tex.tikz
foobar
tex.tikz
['tex.tikz']
foo.bar.tex.tikz
foo.bar
tex.tikz
['tex.tikz']
Should be noted that when using
latex_ext
it should be expected to go in and change the build toolchain arguments to include%EXT