I've recently converted a long document from LaTeX to XeLaTeX and nearly everything's working, but I've found that if I have citation (or anything else that hyperref turns into a link) immediately after a \paragraph{...} heading, the heading itself will be part of the link. An example will illustrate this better than I can explain it, so here it is:
Code: Select all
Code, edit and compile here:
\RequirePackage{filecontents}\begin{filecontents}{test.bib}@book{citation,author = {Smith, John},title = {{Yet Another Fake Citation}},year = {2011},publisher = {(nonexistent)}}\end{filecontents}\documentclass{article}\usepackage[english]{babel}\usepackage[xetex]{hyperref}\usepackage{url}\usepackage{xltxtra}\setmainfont[Mapping=tex-text]{Linux Libertine O}%\usepackage[round]{natbib}\begin{document}\label{thispage}\paragraph{This is a link} \pageref{thispage}st page\paragraph{This is also a link} \citet{citation}.\paragraph{This is not a link} because this is plain text.\bibliographystyle{plainnat}\bibliography{test}\end{document}
Thanks.