Questions tagged [hyperref]

47 questions
31
votes
2 answers

Setting pdftitle and pdfauthor automatically in a LaTeX stylesheet

I use the code below to set the title and author in the pdf document properties. \usepackage[pdftex]{hyperref} \hypersetup{ pdftitle = {The documents title}, pdfauthor = {me} } I would like to automate this by putting it in a stylesheet…
Thierry
  • 18,049
  • 5
  • 48
  • 66
25
votes
1 answer

LaTeX changes colour of in-text citing with hyperref package and natbib

I am using the natbib and hyperref packages in my LaTeX document and would like to change the colour of the box around the hyper-referenced citations from the baseline green to a more muted colour (violet or navy blue). However, in using the…
Thomas
  • 341
  • 2
  • 5
  • 6
25
votes
3 answers

LaTeX hyperref link goes to wrong page

I am trying to create a reference to a float that doesn't use a caption. If I include \label{foo} within the float and reference it using \pageref{foo}, the correct page number is displayed in my pdf document but the hyperlink created by the…
ecto
  • 333
  • 1
  • 3
  • 11
21
votes
1 answer

How to explicitly end a \part in LaTeX with hyperref

I have a LaTeX document which contains the following: \tableofcontents \chapter{Chapter One} \part{Part One} ... \part{Final Part} \chapter{Final Part Chapters} \chapter{Chapter not Part of Part} When I compile this to a PDF with hyperref, the last…
Richard
  • 1,620
  • 1
  • 11
  • 14
10
votes
2 answers

LaTeX | hyperref error | Argument of � has an extra }. \end{document}

I got a new PC with Windows 10 Pro operating system several days ago and decided to install TeXstudio + MiKTeX. And I faced a problem compiling LaTeX file. The problem is when I try to add \usepackage{hyperref} or code stuff similar to this line…
jus_iljas
  • 121
  • 1
  • 9
8
votes
2 answers

Setting up author or address string variables in LaTeX

LaTeX is a wonderful language for writing documents. With the hyperref package and pdflatex, you easily generate documents with metadata, a nice feature to get your documents referenced right on the web. I often use templates…
meduz
  • 3,903
  • 1
  • 28
  • 40
7
votes
1 answer

PDF forms with LaTeX: how to create \TextField of exactly 4in width?

I'm using PDFLaTeX to create forms and ran into a problem with the \TextField macro that defines input fields: \TextField[width=4in,name=sample]{} The resulting field is a little wider than 4 inches and I don't understand why. The following example…
Christian Lindig
  • 1,216
  • 1
  • 9
  • 24
6
votes
1 answer

Avoid linking URL in Latex

I'm using hyperref in my latex document. In the references I have an URL, and the hyperref package creates a click able link automatically. However, I need that that URL is not linked; but the rest of the document internal links should be. I cannot…
adn
  • 897
  • 3
  • 22
  • 49
6
votes
2 answers

pdftex driver of hyperref package doesn't work with utf-8 encoded .tex files

i use pdflatex to generate pdf files. my source files are all utf-8 encoded because of non-english characters. without \usepackage{hyperref} code, they can be compiled without any problem. but when i put \usepackage{hyperref} (even without any…
Lion
  • 965
  • 10
  • 21
6
votes
1 answer

LaTeX hyperref link goes to wrong page when i clicked at the content there

i would like to ask how to use the \hyperref because i've googled loads of loads of answers but i can't find. i've created my own TOC. then i included \hyperref package. Then the contents are automatically hyperlinks which is good. but then it went…
Michimcchicken
  • 543
  • 1
  • 6
  • 21
5
votes
0 answers

Disable hyperlink generation when converting docx -> tex via pandoc

I have a single docx file with a lot of cross-references. However, most of these cross-references are spurious. I'd like to convert it to LaTeX but that results in a many \hyperlink commands scattered throughout the document. I'd like pandoc to…
Hugh
  • 15,521
  • 12
  • 57
  • 100
5
votes
3 answers

How can I get page numbers to link to the table of contents in latex?

I've seen a pdf LaTeX document where the page numbers at the bottom of the page are hyperref links, and clicking them causes you to jump to the contents table. I don't have the tex file and couldn't work out how it's done from the hyperref package.…
qaz
  • 167
  • 2
  • 6
5
votes
2 answers

Latex: hyperref to individual longtable rows

I have a few longtables that stretch several pages and I want to use pageref and hyperref to link to these rows. But whatever I try, the links always refer to the start of the table. When I look into the aux file, the labels all seem to be…
heeen
  • 4,736
  • 2
  • 21
  • 24
5
votes
1 answer

LaTeX hyperref package: Opening a target PDF at a specific page

Does anyone know if it is possible to employ the LaTeX hyperref package to open a target PDf at a specific page? I have tried using the \href{FILENAME#page=XX}{LINK_TEXT} command, where XX is the target page number, but no dice. The file iteself…
panagioti
  • 426
  • 4
  • 14
4
votes
1 answer

How to systematically change knitr \label{} behavior to add hyperlink anchors

I want to change knitr's behavior when it creates a figure environment in LaTeX to call a different LaTeX command than \label{}, e.g, \alabel{} where I define \alabel to run \label{foo} as well as \hypertarget{foo}{} using the hyperref LaTeX…
Frank Harrell
  • 1,954
  • 2
  • 18
  • 36
1
2 3 4