Questions tagged [hyperref]

{hyperref} is a package capable of producing hypertext links in documents. If your question is about cross-referencing in general, choose {cross-referencing}. If it's specifically about PDF features, consider to choose {pdf}.

2
votes
2answers
31 views

Expansion of an optional parameter for an environment

I want to define a custom environment, which takes an optional parameter, and I want be able to link to the environment using nameref. To this end, I tried something similar to the following MWE: \...
0
votes
1answer
14 views

Hyperref: using abbreviated labels like Eq., but keep correct spacing after period

The following code: \documentclass{article} \usepackage{amsmath} \usepackage{hyperref} \renewcommand{\equationautorefname}{Eq.} \renewcommand{\figureautorefname}{Fig.} \begin{document} \begin{...
0
votes
1answer
34 views

! Package hyperref Error: Wrong DVI mode driver option `pdfmark',

This is my first ever using LaTeX, I received a template header from my university to use. Still had done no changes to it whatsoever and I get this error: ! Package hyperref Error: Wrong DVI mode ...
2
votes
2answers
42 views

titlepage with hyperref in overleaf not working

My goal is to create a title page with links like the first page of the pdfrender package available here: http://ctan.math.utah.edu/ctan/tex-archive/macros/latex/contrib/oberdiek/pdfrender.pdf On the ...
0
votes
1answer
24 views

Multibib gives wrong hyperlink

I'm using multibib for my thesis. I have two bibliographies. The first one is for my publications while the second is for all the papers that I cite. When I'm using the same style for both (\...
1
vote
1answer
20 views

TOC Links to Chapters of Parts lead to Chapters of previous Parts

In the TOC, when I click on the chapters of the various parts, I end up on the chapter from previous part. So, when I click on Chapter 1 of Part 2, I'm taken to Chapter 1 of Part 1, simply because it'...
0
votes
0answers
52 views

Hyperref not jumping to headline [on hold]

I am using hyperref to link from my toc to some \addsecs, but when I click the link in the toc, it jumps under the headline of the \addsec rather than over the headline. I'm wondering if anyone else ...
0
votes
1answer
51 views

Table of Contents in Appendix in Article Class

I am writing a paper which has an appendix. The main part of the paper looks like this: I want to put a table of contents in the appendix. I want the table of contents to list only the sections/...
0
votes
1answer
26 views

Metadata in PDF with XeLaTeX: Title doesn't change and hyperref gives warning

I would like to define a title which will show in the pdf instead of the file name. My code is as follows. But when I compile it, it doesn't change the title, and on top of that I get the warning ...
2
votes
1answer
38 views

How to make 'Form' fields in line with other text

I used the second answer (by Christian Lindig) to this question to make my own fillable PDF form. I edited it slightly to suit my needs. I tried to make a MWE: \documentclass[11pt]{article} \...
1
vote
2answers
43 views

\hypersetup does not work well after \cleardoublepage

In my MWE, \hypersetup is called after \cleardoublepage. But \hypersetup does not work well after \cleardoublepage, i.e., no PDF metadata in the document properties. \documentclass{book} \usepackage{...
1
vote
1answer
39 views

`hyperref` does not jump to the correct location of the bibliography

I use the following syntax to add the bibliography of a chapter as a section \defbibheading{bibliography}{\section{References for \chaptername\space\thechapter}} However, the above syntax will add ...
0
votes
0answers
13 views

How can I provide the link to the glossaries only the first occurrence of an entry in each section (or subsection)?

My question is very similar to Latex glossaries: Hyperref/Link only the first occurance of an entry in each section?. However, none of the solutions solve my problem. I need the solution to work for ...
2
votes
1answer
43 views

hyperref forms cause PDF changes when viewer opens it

After working with hyperref forms I have noticed that employing some format options produces a strange behaviour when opening the output PDF (in PDF XChange viewer/editor at least): the program shows ...
0
votes
0answers
32 views

Clickable definitions

I use glossaries for terms and definitions that are then printed in the back of my paper. However I would rather write them in the paper when they are introduced (for instance as a theorem) and then ...
1
vote
1answer
22 views

How to assign page number of label to hyperlink [duplicate]

I'm quite new with Overleaf and I have following problem: I want to make clickable table of contents to my thesis. It turned out that package hyperref works only with numbered chapters and sections. I ...
1
vote
1answer
37 views

How can I get the correct hyper pdf underline colour and line width?

I'm trying to set a custom colour for hyperref's link underlining. The MWE below shows what I'm doing. But the colour comes out different - it's the same kind of yellow but a different saturation, if ...
2
votes
0answers
40 views

`xr` Cross-Reference: Change Colour for External References Only

I want to reference between two files, say Paper1 and Paper2. I'm using hyperref in each of the documents for internal references. So as to make clear which references are internal and which are ...
0
votes
1answer
50 views

Hyperref causing “red” to appear before section numbers in table of contents

I am working with a LaTeX template and am noticing a big difference between the compiled document after adding \usepackage{hyperref} at the top. Before adding it, the Table of Contents section is ...
1
vote
2answers
32 views

Colouring citep/citet/citeauthor differently and based on environment

I'm writing my thesis report in which citations inserted through citep en citet are blue, and the output of the citeauthor-command is the regular text color. I've achieved this using a combination of ...
0
votes
1answer
20 views

Problem referencing labels with href

I am trying to reference certain sections with href in my index (not using the normal index because I wanted to make a custom one), but when clicking on them it just takes me to the top of the main ...
1
vote
1answer
26 views

What's the “right” way to ensure all of the autoref names are capitalized, in an sty?

Suppose I'm writing an .sty for people to use. This .sty might be loaded before or after hyperref, and possibly before some other packages define \chaptername, \chapterautorefname, \sectionname etc. ...
0
votes
1answer
22 views

Can i redefine the checkmark in a PDFLaTeX CheckBox

My problem: I want to create an active PDF (formula) that contains checkboxes. The checkboxes should have a "cross" as "checked" indicator, not the sign that comes as default. How can this be achieved ...
0
votes
0answers
22 views

TexStudio - hyperref Warning: Values of option `pdfpagelayout'

When compiling my Latex project using Texstudio in Windows 10 (using MiKTeX 2.9), I am getting the following warning: Values of option `pdfpagelayout':(hyperref) * `SinglePage'(hyperref) * `OneColumn'...
1
vote
0answers
69 views

Is Oberdiek's hack still needed for showidx with hyperref? [duplicate]

Is the following code still needed... To allow showidx to work with hyperref' forbook,article` document classes? To allow the emulation of showidx in the memoir document class to work with hyperref? ...
0
votes
0answers
17 views

Special, pre-defined “out-of-order” footnotes for boilerplate text within minipages and hyperref linking

Inside minipage environments I repeatedly need a handful of predefined footnotes (with a fixed boilerplate text) that should use symbolic footnote marks (for better detectability) alongside "normal" ...
1
vote
1answer
35 views

Starred version of macro causes hyperref error if used in section command

In the following MWE \documentclass{article} \usepackage[T1]{fontenc} \usepackage{lmodern} \usepackage[utf8]{inputenc} \usepackage[pdftex,unicode,final]{hyperref} \input{glyphtounicode} \...
5
votes
1answer
71 views

A more precise hyperref

I'm currently using hyperref and makeidx to make a hyperlinked index, and it's working great. But right now, the hyperlinks always take me to the top of the page; ideally, I'd like the links to be ...
0
votes
1answer
130 views

What does “quick and dirty hack” by Heiko Oberdiek do?

In my document's preamble I have the following code related to showidx and hyperref, which also appears in many posts on this forum. What is its purpose? %Begin the ``quick and dirty hack'' due to ...
1
vote
1answer
45 views

Table of contents and colors

I wanted to know if it is possible to have the table of contents in black like it appears in the picture: And also make the sections appears in blue when referencing them: This is my current set up: ...
0
votes
0answers
34 views

Glossaries list of symbols unit column/indexing issue

My report features Abbreviations and List of symbols in the following format: The list of symbols has been customized to have the unit column instead of the index column. When I compile everything ...
0
votes
0answers
10 views

Make ChoiceMenu not fillable in hyperref form dependent on other ChoiceMenu

I have a form and there is a ChoiceMenu with three different possibilities. For two of them I have a further ChoiceMenu and it does not make sense to fill them out if the belonging option of the first ...
1
vote
1answer
56 views

Another Paragraph ended before question

I'm using Texstudio to write my thesis and there is a warning and an error for which I cannot seem to find the source. The error is Paragraph ended before \HyRef@autoref was complete and Texstudio ...
0
votes
0answers
19 views

Using hyperref and minitoc together

After viewing this post I resolved the problem I had with the hyperref package and I successfully added it to my document. But After doing that every minitoc was removed from my document. the Chapter ...
2
votes
1answer
24 views

Calculations in TextField do not work

I want to have some TextFields in my form where one can put numbers (shares) and the last TextField should be 100 - the sum of all other TextFields. I found this but it did not help, nothing happens. ...
0
votes
0answers
33 views

Havard and hyperref do not like each other

A journal has indicated that submissions can use the harvard bibliography style. But it appears that the harvard style does not play well with hyperref or bookmarks (and maybe other packages that ...
0
votes
0answers
35 views

! Package bookmark Error: Undefined style `custom-numeric-comp'

I am having trouble understanding/resolving an apparently bibliography issue, trying to compile a thesis. I use Texworks on windows. The following message is the error when compiling with XeLatex. ...
2
votes
0answers
36 views

Make content only visible if CheckBox is checked

I have a ChoiceMenu with three options: No Option 1 Option 2 If Option 1 or Option 2 are clicked I want that a furhter text and a TextField is displayed. I don't want that it is possible to write a ...
0
votes
2answers
14 views

Referencing table showing customized text

I have questions about how to show customized text when referencing the table. For example, the table below is the 11th table in my document. It's customized label is Table:S3. When referencing to ...
2
votes
1answer
45 views

How to change TOC counters without affecting the document?

I am using book class with XeLaTeX. I want to change the toc counter 'I' (as shown here), with a bullet but redefining the Roman alphabets will also change the alphabets in the main document (as ...
0
votes
2answers
27 views

How can I use toc entries containing spaces for external URL anchors?

When the hyperref package is used, it creates nice anchors that can be used as part of a URL to get to specific locations in the generated PDF file. \documentclass {book} \usepackage{hyperref} \...
1
vote
1answer
35 views

Prevent hyperref from under

Is there any way to prevent hyperref from underlining: 1) glossary entries linked with \gls 2) footnote marks of the \footnote 3) footnote marks set with \footref from the footmisc package? MWE ...
0
votes
0answers
42 views

Zapf dingbats for use with pdftex option to hyperref package?

I'm trying to use pdflatex to process the ex0001.tex example file that comes with the pdf-forms-tutorial (https://ctan.org/tex-archive/info/pdf-forms-tutorial?lang=en). I hit the fatal error: ...
1
vote
0answers
11 views

Reference From Titles back to the Table of Contents page [duplicate]

It is possible to click on the TOC to a subsection. I saw in a book that when you then lick on the title of the subsection, you went back to the TOC page. Is this possible to create this ...
2
votes
0answers
22 views

Is there a way to have links to the revisions in the `changes` package?

The changes package is great for highlighting additions, deletions and revisions when editing documents, and it generates a handly list of all your changes. Does anyone know if there's a way to have ...
2
votes
2answers
43 views

Setting the border of links in hypersetup always at the same height

I would like to underline links in my document, using the hypersetup command. However, this underlines links with a descender (e.g. a p, q, g, j, y) on the descender line, but links without a ...
1
vote
1answer
13 views

latex \def\chapterautorefname{chapter}, position of chapter

\documentclass[a4paper]{book} \usepackage{hyperref} \def\chapterautorefname{chapter} \begin{document} \chapter{1} \label{1} This is chapter 1. Ref \autoref{1} here. \end{document} This code above ...
1
vote
2answers
51 views

hyperlink pointing options for multiline equations with centered labels

I have a split equation as in the MWE below. However, when I click on the corresponding hyperlink, it directs/ points me to the text line right before the first equation line. I would like it to point ...
0
votes
0answers
21 views

pdfbookmark redefine name only for pdf navigation tree

I want to have all my entries in the document TOC as small caps. I am using classicthesis which defines section headings to use small caps and uses \MakeTextLowercase. there is only one "Special ...
1
vote
1answer
29 views

Wrong hyperref with repeated counter

I'm having an interesting problem with hyperref. Apparently, when a counter is reset by \setcounter{mycounter}{0} then hyperref always links to the first possible instance of the counter and not the ...