[XeTeX] Bibliography and table of contents

Roland Kuhn rkuhn at e18.physik.tu-muenchen.de
Tue Jun 19 16:26:53 CEST 2007


Hi!

On 19 Jun 2007, at 14:30, Yaniv Hollander wrote:

> Hello,
>
> Does anyone knows how can I add a table of contents entry that will  
> be linked with the bibliography chapter of my latex based document?  
> I'm using Bibtex, and, surprisingly enough, I couldn't find a  
> reliable method to put the bibliography chapter in the table of  
> contents.
> If anyone of you have already encountered this problem, and is  
> willing to assist, I will be greatly thankful.
>
The following works for me (tm):

\phantomsection
\addcontentsline{toc}{chapter}{Bibliography}
\bibliographystyle{...}
\bibliography{...}

Assuming that by "linked" you mean a clickable link in the TOC, for  
which I'm using hyperref. Without hyperref, I think you should just  
drop the first of the lines, but I've no idea whether it keeps  
working then. Ah, and you'll probably want a \clearpage or  
\cleardoublepage before that, so that the printed page number in the  
TOC is correct.

Ciao,
                     Roland

--
TU Muenchen, Physik-Department E18, James-Franck-Str., 85748 Garching
Telefon 089/289-12575; Telefax 089/289-12570
--
CERN office: 892-1-D23 phone: +41 22 7676540 mobile: +41 76 487 4482
--
Any society that would give up a little liberty to gain a little
security will deserve neither and lose both.  - Benjamin Franklin
-----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GS/CS/M/MU d-(++) s:+ a-> C+++ UL++++ P+++ L+++ E(+) W+ !N K- w--- M 
+ !V Y+
PGP++ t+(++) 5 R+ tv-- b+ DI++ e+++>++++ h---- y+++
------END GEEK CODE BLOCK------


-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 186 bytes
Desc: This is a digitally signed message part
Url : http://tug.org/pipermail/xetex/attachments/20070619/5bcc3c2c/attachment.bin 


More information about the XeTeX mailing list