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

Percentage sign in link reference needs to be escaped

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • None
    • 1.23
    • None
    • None
    • Unknown

    Description

      The LinkBlock LaTeX  template should escape percentage signs (LaTeX line comment symbols) in the link reference.

      Currently, the XWiki text

      **[[Link to page with spaces in name>>doc:Page with Spaces in Name]]**
      

      translates to

      \textbf{\href{http://localhost:8080/xwiki/bin/view/Test/Page%20with%20Spaces%20in%20Name}{Link to page with spaces in name}}
      

      which turns everything after "Page" into a comment and makes the LaTeX compiler produce the error message:

      ! File ended while scanning use of \textbf .
      

      Side note: Without the bold format, the produced LaTeX code would not contain the \textbf{} and would compile correctly for reasons I do not understand.

      Attachments

        Activity

          People

            Unassigned Unassigned
            Kido Guido Kracke
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: