Open Mk-arc opened 1 year ago
I didn't know that there is an option of output-directory
. The code https://github.com/koppor/plantuml/blob/main/plantuml.lua does not respect that variable.
I am open to any hints how to implement.
just an idea to implement this would be a variable given in the preamble like
\usepackage[output=svg, output-directory = ./out/, ...]{plantuml}
and the default would be output-directory = ./
(this is how it has to be done in the minted package)
But an issue is that, if this would work, inkscape will make some trouble because you can't declare an output directory for Inkscape. (Maybe I missed it in the documentation, but when I tried it, I messed it up...) https://wiki.inkscape.org/wiki/index.php/Using_the_Command_Line
I tried to use it with a defined folder (def and edef if I remember right) like that:
\edef\folder{./build/}
\epstopdfDeclareGraphicsRule{.svg}{pdf}{.pdf}{%
inkscape #1 --export-filename=\folder\OutputFile
}
and did some changes direct in the lua script and I failed... https://wiki.inkscape.org/wiki/index.php/Using_the_Command_Line I guess it is not possible to give Inkscape a path to a file or I did something wrong in the syntax...
When calling luatex with an -output-directory plantuml cant find the generated files.
lualatex -shell-escape -output-directory=./out/
Any fix for this?