Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Make references apprear in toc or bookmarks.

1 view
Skip to first unread message

Hongyi Zhao

unread,
Nov 16, 2008, 8:49:21 AM11/16/08
to
Hi all,

I use the following minimal example to test the references apprear in
toc or bookmarks:

---------------------------
\documentclass{article}
\usepackage[colorlinks,linkcolor=blue]{hyperref}
\begin{document}

\tableofcontents

\section{Make references apprear in toc or bookmarks
\cite{ref_in_toc}}

\begin{thebibliography}{1}
\bibitem{ref_in_toc}
blablabla.

\end{thebibliography}
\end{document}
---------------------------

I find that in the toc I can get the references number correctly
generated while in the bookmarks I will obtain the things like like
this:

---------------
Make references apprear in toc or bookmarks refintoc
--------------

Any hints on this issue?

Regards,
--
Hongyi Zhao <hongy...@gmail.com>
Xinjiang Technical Institute of Physics and Chemistry
Chinese Academy of Sciences
GnuPG DSA: 0xD108493

-- Posted on news://freenews.netfront.net - Complaints to ne...@netfront.net --

Heiko Oberdiek

unread,
Nov 16, 2008, 4:05:00 PM11/16/08
to
Hongyi Zhao <hongy...@gmail.com> wrote:

> \usepackage[colorlinks,linkcolor=blue]{hyperref}

> \section{Make references apprear in toc or bookmarks
> \cite{ref_in_toc}}

> I find that in the toc I can get the references number correctly


> generated while in the bookmarks I will obtain the things like like
> this:
>
> ---------------
> Make references apprear in toc or bookmarks refintoc
> --------------

\cite isn't supported in bookmarks. (Coding is restricted to
expandable macros, \cite is too complex.)

Also I prefer short strings in bookmarks:

\section{Make references apprear in toc or bookmarks%
\texorpdfstring{ \cite{ref_in_toc}}{}}

or even

\section[Make references apprear in toc or bookmarks]%


{Make references apprear in toc or bookmarks \cite{ref_in_toc}}

Yours sincerely
Heiko <ober...@uni-freiburg.de>

0 new messages