[OS X TeX] Reference and backref

Herbert Schulz herbs2 at mac.com
Wed Jun 28 12:23:49 EDT 2023



> On Jun 28, 2023, at 11:04 AM, Herbert Schulz via MacOSX-TeX <macosx-tex at email.esm.psu.edu> wrote:
> 
> 
> 
>> 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

Howdy,

It also looks like there should either be a \par or a blank line after the \url command so that the \bibitem is completed. 

Good Luck,

Herb Schulz
herbs2 at mac.com




More information about the MacOSX-TeX mailing list