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

0 votes
asked Aug 25, 2021 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, 2021 by plantuml (294,960 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, 2021 by The-Lu (63,920 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

...