#96 Treat special characters in TeX export

None
closed-fixed
xfarmad
None
5
2014-01-28
2013-04-10
Ondřej Bouda
No

When exporting a diagram to TeX, underscore ("_") characters (maybe some others, too?) are not escaped properly. In particular, a HMSC condition node containing "S1_S2_S3" results in:

\hmsccondition{14}{S1_S2_S3}(1.5,8.6)

which is not valid for TeX---backslashes should be used prior to each underscore.

On the other hand, a comma in a comment is replaced with _, which should be not, as there is no reason for that. I.e., a comment containing "Now, the client..." results in:

\hmsccomment{Now\_ the client...}(10,12.5){9}

whereas the result should be:

\hmsccomment{Now, the client...}(10,12.5){9}

Discussion

  • Ondřej Bouda
    Ondřej Bouda
    2013-04-10

    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -5,3 +5,15 @@
    

    which is not valid for TeX---backslashes should be used prior to each underscore.
    +
    +On the other hand, a comma in a comment is replaced with _, which should be not, as there is no reason for that. I.e., a comment containing "Now, the client..." results in:
    +
    +~~~~~
    +\hmsccomment{Now_ the client...}(10,12.5){9}
    +~~~~~
    +
    +whereas the result should be:
    +
    +~~~~~
    +\hmsccomment{Now, the client...}(10,12.5){9}
    +~~~~~

     
  • Vojtech Rehak
    Vojtech Rehak
    2013-04-10

    • assigned_to: xfarmad
     
  • xfarmad
    xfarmad
    2013-05-05

    TeX export now support special characters. Please check if it is OK now.

     
  • Matus  Madzin
    Matus Madzin
    2014-01-28

    • status: open --> closed-fixed