\t between <latex></latex> is interpreted as tabulator

0 votes
asked Aug 25 in Bug by anonymous
if you write

<latex>\tiny{1 * 2}</latex>

the \t in \tiny is interpreted as tabulator --> result is "<tab>iny1 * 2" --> bug.  You should not interprete \t, \n etc. between <latex></latex>

1 Answer

0 votes
answered Aug 26 by plantuml (257,940 points)

Thanks for the report.

Could you post an example ?

The following one is working for us:

@startuml
:<latex>\tiny{1 * 2}</latex>;
@enduml

http://www.plantuml.com/plantuml/uml/SoWkIImgAStDuRAooKaiIQsmYod9pAkiDbJGKZ2gjT67Y5bpEQJcfG1L0G00

commented Sep 1 by The-Lu (31,620 points)

Here are some tests, but I don't know where is the issue...

@startuml
:test of ""tiny"" latex;
if (some error?) then (without error)
  #palegreen:<latex>\tiny{1 * 2}</latex>;
  #palegreen:<latex>\to \tiny{1 * 2}</latex>;
else (with first tag on error)
  #pink:the t of tiny is transformed on tab!;
  #pink:<latex>\error \tiny{1 * 2}</latex>;
  #pink:<latex>\wrong \tiny{1 * 2}</latex>;
  :Error on JLaTeXMath or on PlantUML???;
endif
@enduml

...