tohecz / ctuthesis

LaTeX template for theses at CTU in Prague
Other
39 stars 24 forks source link

hyperref support #6

Open tohecz opened 9 years ago

tohecz commented 9 years ago

Make a nice hyperref support, passing reasonable information to the pdf fields. I would use some help discussing what are the reasonable values for each field.

tohecz commented 9 years ago

There is a problem of handling hyperref w.r.t. diacritics in the fields and the setup. Things cannot be set up at the time of \ctuprocess, in case someone changed the relevant fields after. Another option is to freeze the other fields at \ctuprocess (that's how we document it, after all). The most important ones are only author and title, anyways. So maybe we shall set just couple fields and that's it? It could be:

widlarizer commented 1 year ago

Because this doesn't really work, I recommend not using hyperref set up by ctuthesis. Instead I do:

\ctusetup{
  pkg-hyperref = false,
% ...
}
% ...
\usepackage{hyperref}
\hypersetup{
  pdftitle = {somethingsomething},
  pdfauthor = {me},
  pdfusetitle,
  colorlinks=false,
  linktocpage=true,
  allbordercolors=ctuorange,
}

When I don't do this, I get PDF metadata like "titletitle - doc.pdf" in the browser tab name. Example PDFs in this repo have the same problem. I suggest setting pkg-hyperref defaults to false and adjusting the example files, since they don't work either