Allow math or latex on SVG output

0 votes
asked 5 days ago in Wanted features by The-Lu (19,740 points)
edited 3 days ago 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.

1 Answer

0 votes
answered 4 days ago by Serge Wenger Work (13,940 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 3 days ago by The-Lu (19,740 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 3 days ago by Serge Wenger Work (13,940 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 3 days ago by The-Lu (19,740 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 3 days ago by Serge Wenger Work (13,940 points)

Hello Th.

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

Regards

Serge

...