Uploaded image for project: 'LaTeX'
  1. LaTeX
  2. LATEX-62

Correct translation of backslash symbol

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 1.8
    • 1.7
    • Syntax
    • None
    • Integration
    • Unknown
    • N/A
    • N/A

    Description

      A backslash in XWiki syntax is currently translated to \$\backslash\$ which makes the XeLaTeX compiler of my MikTex distribution complain:

      ! Missing $ inserted.
      <inserted text> 
                      $
      

      I think the $s shouldn't be escaped. So the LaTeX template SpecialSymbolBlock should be changed from

      #elseif ($latex.block.getSymbol() == '\')
        \$\backslash\$##
      

      to

      #elseif ($latex.block.getSymbol() == '\')
        $\backslash$##
      

      or even better, without entering math mode

      #elseif ($latex.block.getSymbol() == '\')
        \textbackslash{}##
      

      Attachments

        Activity

          People

            vmassol Vincent Massol
            Kido Guido Kracke
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: