Re: hyperref link to longtable (in appendix) points to first page of document?



On May 30, 1:28 pm, r...@xxxxxxxxxxxx (Robin Fairbairns) wrote:
 Carlos Grohmann <carlos.grohm...@xxxxxxxxx> writes:

Get sure that the hyperref package will be loaded *after* the longtable
package. Afterwards the result should be ok.

Hyperref is loaded after longtable.
longtable is in my preamble and hyperref in the main file.

i don't understand that.  \usepackage (to load hyperref) also has to
be executed in the preamble.  do you really mean to say your document
has:

  ...
  \begin{document}
  ...
  \usepackage{hyperref}

(i bet not).  please explain what you _really_ mean.
--
Robin Fairbairns, Cambridge

Sure, Robin, sorry for that

I have a file preamble.tex, in which I set my
"preferences" (usepackage, a few hacks, etc)
and I have a file thesis.tex, which calls (include) all other files
(preamble, introduction, chapters..)

I use this basic scheme to all my project reports, as well for the
final thesis. So I included the \usepackage{hyperref} in thesis.tex,
because If I need to make a report I just copy everything to a new
directory, rename thesis.tex to, say, report1.tex, and tehn I don't
have to change anything in the preamble, only in the main file
(thesis.tex, report1.tex).

So in thesis.tex I have this:

----------------------------------------------------------------------------
\documentclass[a4paper,11pt,twoside,draft,openright]{report}
%\documentclass[a4paper,11pt,twoside,openright]{report}

\include{preamble}

% get clickable hyperlinks in the PDF, using pdflatex
\usepackage[pdftex,
bookmarks=true,
bookmarksnumbered=true,
hypertexnames=false,
a4paper,
breaklinks=true,
colorlinks=false,
linkbordercolor={1 1 1},
citebordercolor={1 1 1},
urlbordercolor={1 1 1},
pdftitle={Doutorado},
pdfauthor={Carlos Henrique Grohmann - IGc-USP},
pdfsubject={Tese de Doutorado de Carlos Henrique Grohmann - IGc-USP},
pdfkeywords={}
]{hyperref}

%% Inicia o documento
\begin{document}
...

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




That's way I said that \usepackage{longtable} is in the preamble,
before hyperref.


cheers

Carlos


.



Relevant Pages