[OS X TeX] Reference and backref

Herbert Schulz herbs2 at mac.com
Wed Jun 28 12:04:54 EDT 2023



> On Jun 28, 2023, at 10:12 AM, George Gratzer via MacOSX-TeX <macosx-tex at email.esm.psu.edu> wrote:
> 
> It seem there is some conflict between the backref option of hyperref
> and the \verb command.
> 
> Example:
> 
> \documentclass{book} 
> \usepackage[backref]{hyperref}
> 
> \begin{document} 
> \begin{thebibliography}{10}
> \bibitem{uK05}
> Uwe Kern,
> \emph{The \texttt{xcolor} package.} December 21, 2005.\\
> \verb+\http:www.ukern.de\tex\xcolor.html+
> \end{thebibliography}
> \end{document}
> 
> Log file:
> 
> ! Undefined control sequence.
> <argument> ...} December 21, 2005.\\ \verb +\http 
>                                                  :www.ukern.de\tex \xcolor ...
> <*> xxx.tex
> 
> ? 
> 
> What did i do wrong?
> 
> GG

Howdy,

\documentclass{book} 
\usepackage[backref]{hyperref}

\begin{document}
\begin{thebibliography}{10}
\bibitem{uK05}
Uwe Kern, \emph{The \texttt{xcolor} package.} December 21, 2005.\\
\url{http://www.ukern.de/tex/xcolor.html}
\end{thebibliography}
\end{document}

typesets fine for me. Note: corrected the URL (http:// and /s rather than \s) and also used hyperref's \url rather than \verb+...+.

Good Luck,

Herb Schulz
herbs2 at mac.com




More information about the MacOSX-TeX mailing list