Skip to content
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

Output directory #27

Open
Mk-arc opened this issue Jan 15, 2023 · 2 comments
Open

Output directory #27

Mk-arc opened this issue Jan 15, 2023 · 2 comments

Comments

@Mk-arc
Copy link

Mk-arc commented Jan 15, 2023

When calling luatex with an -output-directory plantuml cant find the generated files.

lualatex -shell-escape -output-directory=./out/

Any fix for this?

@koppor
Copy link
Owner

koppor commented May 12, 2023

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.

@NWest09
Copy link
Contributor

NWest09 commented Feb 23, 2024

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...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants