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

Anchor are not escape in \href commands

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • None
    • 1.0
    • Syntax
    • None
    • Unknown

    Description

      While an \href command alone compiles property, when wrapped as a command argument (see example below) and the url contains an anchor #, latex fails to compile.

      \textsuperscript{\href{https://fr.wikipedia.org/wiki/TrES-2_b#cite_note-4}{4}}
      

       

      Compilation error

      Illegal parameter number in definition of \Hy@tempa. ...ipedia.org/wiki/TrES-2_b#cite_note-4}{4}}
      Illegal parameter number in definition of \Hy@tempa. ...ipedia.org/wiki/TrES-2_b#cite_note-4}{4}}
      Illegal parameter number in definition of \Hy@tempa. ...ipedia.org/wiki/TrES-2_b#cite_note-4}{4}}

      Attachments

        Activity

          People

            Unassigned Unassigned
            mleduc Manuel Leduc
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: