4

Do anyone have an idea why I have this two errors when using a \hyperlink{}{} in \todo[inline] ??

1- Argument of \reserved@a has an extra }.

2- Paragraph ended befor \reserved@a was complete.

Thank you.

1
  • 2
    Welcome to TeX.SX! Please help us to help you and add a minimal working example (MWE) that illustrates your problem. It will be much easier for us to reproduce your situation and find out what the issue is when we see compilable code, starting with \documentclass{...} and ending with \end{document}.
    – user31729
    Apr 29, 2014 at 14:57

1 Answer 1

3

The mandatory argument of macro \todo from package todonotes is written to the auxiliary files (.aux, .tdo for the list of todos), thus it is a "moving argument", where fragile macros break. \hyperlink can be protected with \protect:

\todo[inline]{\protect{hyperlink}{...}{...}}

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .