-
Notifications
You must be signed in to change notification settings - Fork 391
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
dynamic build_dir #2137
Comments
It should not be hard to implement, but I'm curious, why is not using a static name sufficient? Do you keep a lot of documents in the same folder? |
Yep, that is the case. They are all related, but should be in a separate docs, so I keep them in the same dir. |
Ok, this should work now. I'll push an update to the docs as well. |
Can you give a minimal LaTeX file? It might be a limitation posed by minted itself. |
And vimtex settings I have: let g:vimtex_compiler_latexrun_engines = {'_': 'lualatex'}
let g:vimtex_compiler_latexmk_engines = {'_': '-lualatex'}
let g:vimtex_compiler_latexmk = {
\ 'build_dir': {-> expand("%:t:r")},
\ 'options' : [
\ '-shell-escape',
\ '-verbose',
\ '-file-line-error',
\ '-synctex=1',
\ '-interaction=nonstopmode',
\ ],
\} PS, for minted you have to have |
Looks like I have to specify it in a package settings? |
So, yes this is minted related and has nothing to do with vimtex. |
For future curious ones, this works: \documentclass{article}
\usepackage{ifthen}
\usepackage{currfile-abspath}
\getabspath{\jobname.log}
\ifthenelse{\equal{\theabsdir}{\thepwd}}% using ifthen package
%\ifdefstrequal{\theabsdir}{\thepwd}% using etoolbox package
{}{\PassOptionsToPackage{outputdir=\theabsdir}{minted}}
\usepackage{minted}
\title{Test Minted}
\author{habamax}
\begin{document}
\begin{minted}{python}
def hello(world):
pass
\end{minted}
\end{document} |
Great, I'm glad to see you found a workaround! |
Is your feature request related to a problem? Please describe it.
I would like to have only
tex
andpdf
files to be in the end in the filesystem.Unfortnunately
VimtexClean
does nothing for me.I was thinking if I can at least hide all generated files into some sub folder - it would kind of solve my issue.
Now there is a
build_dir
I can try to use but it is static and I couldn't find a way to make it "per file"Describe the solution you'd like
It would be nice to be able to provide tex file base name as a
build-dir
for example as a lambda:Then when I compile tex file
test.tex
, all aux files are next to it in thetest
folder.The text was updated successfully, but these errors were encountered: