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

Correct translation of backslash symbol

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.7
    • Fix Version/s: 1.8
    • Component/s: Syntax
    • Labels:
      None
    • Tests:
      Integration
    • Difficulty:
      Unknown
    • Documentation:
      N/A
    • Documentation in Release Notes:
      N/A
    • Similar issues:

      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

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

              Dates

              • Created:
                Updated:
                Resolved:
                Date of First Response: