peele / plantuml-preview

Atom package.
MIT License
23 stars 13 forks source link

Feature Request: math and latex #33

Open schlichtanders opened 7 years ago

schlichtanders commented 7 years ago

According to PlantUML it should be easy to add ascii-math support http://plantuml.com/ascii-math

even latex support seems possible according to the same reference.

Any plans for supporting it?

peele commented 7 years ago

I followed the instructions on that page for unzipping the jar files into the same directory with plantuml.2017.08.jar and saw the following results with the examples:

math_example

Currently, @startmath and @startlatex tags aren't correctly recognized for multi image support but work as expected if only one appears in a file.

math_standalone

latex

The only support that I see missing is the multi page handling with tags other than @startuml.

schlichtanders commented 7 years ago

thank you so much! That looks much simpler than I thought originally.

can you share which directory it was where you put those additional jar files?

peele commented 7 years ago

The package does not include plantuml so you need to put the jar files in the same location as PlantUML Jar in the package settings. This article may clarify a few things http://trevershick.github.io/atom/2015/12/04/plantuml-snippets.html.

Specifically I downloaded and unzipped the jar files to ~/Downloads/plantuml-jlatexmath and then added plantuml.2017.08.jar to that folder and changed the PlantUML Jar setting accordingly.

$ ls Downloads/plantuml-jlatexmath
batik-all-1.7.jar            jlm_cyrillic.jar             plantuml.2017.08.jar
jlatexmath-minimal-1.0.3.jar jlm_greek.jar