Allow math or latex on SVG output

0 votes
asked Apr 5, 2021 in Wanted features by The-Lu (63,920 points)
edited Apr 7, 2021 by The-Lu

Hello PlantUML team.,

[Precision about my question] Locally that is good, but on the different servers not.

As requested by: https://forum.plantuml.net/12965/about-the-display-of-latex

  • Could you allow math (and especially AsciiMath, with MathJax) for SVG output, on the online PlantUML server?
And then, another question:
  • What are the best practices to add on the WAR file (or on the plantuml-server)?
    [Hints: manually adding on /WEB-INF/lib/ or not...]

Output examples of online PlantUML server:

  • PNG OK:

  • SVG KO:

Other example, on www.planttext.com:

Regards,
Th.

commented May 25, 2022 by Ivo Maixner

1 Answer

0 votes
answered Apr 6, 2021 by Serge Wenger Work (15,620 points)

Hello,

Locally it is working, but I follow the last lines of page https://plantuml.com/en/ascii-math:

Since JLatexMath is bigger, you have to download it separately, then unzip the 4 jar files (batik-all-1.7.jarjlatexmath-minimal-1.0.3.jarjlm_cyrillic.jar and jlm_greek.jar) in the same folder as PlantUML.jar.

commented Apr 7, 2021 by The-Lu (63,920 points)

Hello S.,

Thanks for this complement. 

Locally it is working, but my question was more on the (online) server or how to add on the war packet?

I will precise that on the initial post.

Regards,
Th.

commented Apr 7, 2021 by Serge Wenger Work (15,620 points)
Hello Th.

On the server in my office, the 4 files are in the same directory as the plantuml.1.2021.3.jar ( /var/lib/tomcat/webapps/plantuml/WEB-INF/lib/).

Regards

Serge
commented Apr 7, 2021 by The-Lu (63,920 points)

Thanks S.,

But I currently use the Java J2EE WAR file?
Perhaps I can add the 4 files on the same sub-dir as plantuml on the WAR file, on:

  •  \plantuml.war\WEB-INF\lib\

Regards,
Th.

commented Apr 7, 2021 by Serge Wenger Work (15,620 points)

Hello Th.

Yes, if you can, try to add the 4 files to the WAR file in the same sub-dir

Regards

Serge

...