-
Notifications
You must be signed in to change notification settings - Fork 16
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
Passing outputdir option to minted #9
Comments
I should mention that I tried |
After doing several tests, I think I found the cause of the problem. Passing options to The solutions seems to be to add the output directory to the input path for The following patch can be used meanwhile. Please, try this patch and comment, if it solves the problem for you: \makeatletter
\def\tcb@minted@input@listing#1#2#3#4{%
\edef\temp@a{#4}%
\ifx\temp@a\@empty%
\else%
\toks@=\expandafter{#4}%
\edef\tcb@temp{\noexpand\usemintedstyle{\the\toks@}}%
\tcb@temp%
\fi%
\toks@=\expandafter{#1}%
\edef\tcb@temp{\noexpand\inputminted[\the\toks@]}%
\tcb@temp{#2}{\minted@outputdir#3}%
}
\makeatother |
@T-F-S Patch works great -- thanks! Look forward to the next release with this fixed. |
Fixed with version |
If using the
-output-directory
option for latex/pdflatex, one needs to instruct minted where to look for temporary files via itsoutputdir
package option. However, if using minted via tcolorbox, it doesn't seem possible to pass package options to minted. Am I missing something or is this really not possible?The text was updated successfully, but these errors were encountered: