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

Fails when multiple diagrams are present #17

Closed
Mk-arc opened this issue Mar 22, 2020 · 1 comment · Fixed by #33
Closed

Fails when multiple diagrams are present #17

Mk-arc opened this issue Mar 22, 2020 · 1 comment · Fixed by #33
Labels
bug Something isn't working

Comments

@Mk-arc
Copy link

Mk-arc commented Mar 22, 2020

\documentclass{scrartcl}
\usepackage{graphics}
\usepackage{epstopdf}
\epstopdfDeclareGraphicsRule{.svg}{pdf}{.pdf}{
  inkscape -z --file=#1 --export-pdf=\OutputFile
}
\usepackage[output=svg]{plantuml}
\begin{document}
\begin{plantuml}
@startuml
class Car

Driver - Car : drives >
Car *- Wheel : have 4 >
Car -- Person : < owns
@enduml
\end{plantuml}

\begin{plantuml}
@startuml
class Bus
@enduml
\end{plantuml}

\end{document}

Produces wrong output as soon as 2 diagrams exist. The output file name seems to be always the same. Thus, the second diagram overwrites the first one.

@Mk-arc
Copy link
Author

Mk-arc commented Mar 22, 2020

Note: It works well when not using the svg step. E.g. just using plantuml via:

\usepackage{plantuml}

@koppor koppor added the bug Something isn't working label Mar 22, 2020
NWest09 pushed a commit to NWest09/plantuml that referenced this issue Feb 23, 2024
$- Updated some examples according to: \n https://wiki.inkscape.org/wiki/index.php/Using_the_Command_Line \n - Added in the README.md 'For newer Inkscape use this LaTeX source:' \n - Added folder 'ExampleMultiSVGs' and file example-component-diagram.tex \n - Fixed bug koppor#17 and koppor#15 \n - new 'Bug' multi svg files will produce a mess of files in the folder => manually cleaning necessary!
NWest09 added a commit to NWest09/plantuml that referenced this issue Feb 26, 2024
$- Updated some examples according to: \n https://wiki.inkscape.org/wiki/index.php/Using_the_Command_Line \n - Added in the README.md 'For newer Inkscape use this LaTeX source:' \n - Added folder 'ExampleMultiSVGs' and file example-component-diagram.tex \n - Fixed bug koppor#17 and koppor#15 \n - new 'Bug' multi svg files will produce a mess of files in the folder => manually cleaning necessary!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants