<latex> command requires space between ; and ] in Activity(Beta) for box object (1.2020.08beta10)

0 votes
asked Apr 26, 2020 in Bug by MineralUML (280 points)
edited Apr 27, 2020 by MineralUML

Edit: I figure this is a trivial bug, but report it only to identify it and because it seems like it could be part of a larger parser thing. Unless it isn't a bug and is part of the specification...

<latex> command requires space between ; and ] in Activity(Beta) for box object in PlantUML version 1.2020.08beta10.

Examples follow.

Not working:

@startuml
:Ready;
: <latex>P(y|\mathbf{x}) \mbox{ or } f(\mathbf{x})+\epsilon</latex>]
:finish;
@enduml

http://www.plantuml.com/plantuml/png/SoWkIImgAStDuR8AIarCgRJcibAmoKaiIQsm2z2eh8d9JIp9I4ghhgZLL8Z9JSglg5R8BrAeLKZJG9BHZaajACxCoS-pqOVeZEMoIilCoopEiEPoICrB0PeE0000

http://www.plantuml.com/plantuml/png/SoWkIImgAStDuR8AIarCgRJcibAmoKaiIQsm2z2eh8d9JIp9I4ghhgZLL8Z9JSglg5R8BrAeLKZJG9BHZaajACxCoS-pqOVeZEMoIilCoopEiEPoICrB0PeE0000

Working:

@startuml
:Ready;
: <latex>P(y|\mathbf{x}) \mbox{ or } f(\mathbf{x})+\epsilon</latex> ]
:finish;
@enduml

http://www.plantuml.com/plantuml/png/SoWkIImgAStDuR8AIarCgRJcibAmoKaiIQsm2z2eh8d9JIp9I4ghhgZLL8Z9JSglg5R8BrAeLKZJG9BHZaajACxCoS-pqOVeL8ZbiahBpCiiph3cSaZDIm4Q3m00

http://www.plantuml.com/plantuml/png/SoWkIImgAStDuR8AIarCgRJcibAmoKaiIQsm2z2eh8d9JIp9I4ghhgZLL8Z9JSglg5R8BrAeLKZJG9BHZaajACxCoS-pqOVeL8ZbiahBpCiiph3cSaZDIm4Q3m00

1 Answer

+1 vote
answered Apr 28, 2020 by plantuml (295,000 points)
Thanks for the feedback.

This is fixed in last beta http://beta.plantuml.net/plantuml.jar

Tell us if it's not working for you !
commented Apr 28, 2020 by MineralUML (280 points)

I still see the same error on the live version. Are they different?

On my local machine I get exceptions thrown about "java.lang.ClassNotFoundException: org.scilab.forge.jlatexmath.TeXFormula".

@startuml
legend
<size:8> Rendered with Plantuml Version %version() </size>
end legend

if (Is there a Space?) then (yes)
:"With space, correct parsing";
: <latex>P(y|\mathbf{x}) \mbox{ or } f(\mathbf{x})+\epsilon</latex> ]
:"this is NOT added to the item above";
else (no)
:"No space, incorrect parsing:";
: <latex>P(y|\mathbf{x}) \mbox{ or } f(\mathbf{x})+\epsilon</latex>]
:"this IS added to the item above";
endif
@enduml

http://www.plantuml.com/plantuml/uml/hP31IWCn48RlUOgVWf15eLTPbzfhBxLOqSjwo6vcku5iiYHZtLhxxYPKHJnu4WB9CFc_-PXbP1NuPR32qewS5bKqRrHUBt2VAWgayMgunyOgbx_XaK8qtk5YVtx80jKyPnOY1V194QQ3N4Lmdn1Gs8wgfTiYrmxoGB4GvUmfWsFkNA7r8L3B65MYkjtiHfIeh6AQ5XjvUAy7nNtJ7QTJWNfe_7I43pYXapywbpMDqLZlglavYUSqXNiJaSxwxW5AQz9WdprWc0QenkyfJICR2TBvxBNsNrR6_V8g_qVisskr_Sl9QTE9PRhIuZy0

PlantUML diagram

...