2
votes
2answers
45 views

Correct use of hyperref and addcontentsline

I am having some issues with the hyperref package. I would like to create a Introduction chapter without a number so I use \chapter*{Introduction} and \addcontentsline{toc}{chapter}{Introduction} ...
2
votes
0answers
53 views

Hyperref linking to wrong item in TOC(Lyx)

I added the hyperreff package and a TOC to my document using Lyx's built-in options. It seemed to work almost perfect except one problem: the first item in the TOC is linked to the page of the second ...
1
vote
0answers
19 views

Hyperref: Both Bibliography and Index entries in ToC are linked to Bibliography

Problem Statement I use BibTeX for the Bibliography, makeindex for the Index and hyperref to create the hyperlinks. In the .pdf file that I get after compiling, all hyperlinks (e.g., ToC entries, ...
2
votes
1answer
46 views

Hyperref - links in TOC link to one page before the right page

I use hyperref for my entries in the TOC to be link. But with the example below, I have a problem: \item{\textbf{item one}\addcontentsline{toc}{subsection}{item one}\\ Lots of text... } ...
0
votes
0answers
34 views

table of contents has wrong section references (scrreprt)

I noticed wrong references in my toc of my document. I'm trying to provide an MWE as goog as possible. Here's my code: ...
4
votes
2answers
61 views

Hyperref links in TOC point to wrong location when using titletoc

I have modified the formatting of subsections in the toc, so that they appear in one line instead of separate lines. For this i used the titletoc package. Here is a MWE: \documentclass{scrbook} ...
8
votes
2answers
174 views

Math in table of contents, bookmarks and heading

I would like to obtain the following: the title of a section occurs in the text as Math symbols $\boldsymbol{\sum, \int}$, in the table of contents it is Math symbols $\sum, \int$ (without bold), in ...
3
votes
1answer
50 views

Disable `colorlinks` locally (or just for the ToC)

Basically, I want to disable the colorlinks option (from the hyperref package) for the ToC, but keep it enabled for the rest of a (memoir) document. This question has a workaround based on issuing ...
3
votes
1answer
63 views

Contents and Detailed Table of Contents without repetetion and indent

This question has two parts. Part 1 First, I'm interested to create two TOCs, with a reference in the first shorter TOC the longer and more detailed TOC. Without the reference appearing in the ...
1
vote
0answers
46 views

How to generate document with 6 grid images, chapter header and table of contents

I am trying to generate a booklet with a grid of 6 or less images in a grid, and a text caption below it. I would like each page to display the chapter in the header, and have the table of contents ...
4
votes
1answer
66 views

How to have hyperref correctly refer to phantom sections without clearing a double page

When using starred sections in a double page layout, in order to get the table of contents refer to the correct place, it is usually advised to use the method \cleardoublepage \phantomsection ...
1
vote
0answers
146 views

Redefining contentsline with hyperref loaded [closed]

The latex code below fails to compile at the 2nd round of pdflatex. If I remove the hyperref package it compiles fine, however if it's there, it fails to compile and complains giving this error ...
3
votes
1answer
41 views

Hyperref did not work properly when I reset the section-counter during the document

Hyperref from the TOC bring me to the wrong part of the document when I RESET the section counter in each PART. -- When I click in the TOC on section 1 in part II, the hyperref brings to section 1 in ...
1
vote
0answers
29 views

How to remove the red boxes around toc [duplicate]

This is in with regards to the below post How to add an extra level of sections with headings below \subsubsection The code works flawlessly. But do I remove the red frame boxes which cover the ...
0
votes
2answers
236 views

Clickable Link back to the Table of Contents [duplicate]

There are many questions and answers surrounding how to make the Table of Contents content clickable. I am wondering how to make a reference to the Table of Contents and create a link elsewhere in the ...
6
votes
5answers
272 views

Reference to the Table of Contents page

I thought that someone must have asked this, but my searches didn't find it. I am looking to refer back to the table of contents from places in my document. How can I do this?
9
votes
2answers
162 views

Different hierarchical levels in TOC and hyperref-generated PDF bookmarks

I would like to make hyperref generate bookmarks for all available hierarchical levels of my documents, but only in the produced PDF. For the TOC itself (i.e. the one printed at the beginning of the ...
3
votes
1answer
192 views

How to imitate great looking Motion Mountain ToC, including hyperlinks?

I wanted to customize my ToC to look more or less like the one in Motion Mountain physics textbook, including clickable page numbers. My decision was to use hyperref and titletocpackages. Now it seems ...
1
vote
1answer
60 views

How to customize the chapter in front of figure page in listoffigures?

I am using the the packages \usepackage{url} \usepackage{graphicx} \usepackage{rotating} \usepackage[hypcap]{caption} \usepackage{hyperref} to include referencable graphics in my work. The ...
5
votes
0answers
93 views

Make section links in the table of contents point to the top of section‘s page [duplicate]

When I click on 3.8 in the hyperref manual, I go to the top of the page where 3.8 is, whatever the zoom level I have. But the default hyperref behaviour is to link to the section name. How can I ...
3
votes
1answer
45 views

reference the table of contents/ hyperlink

when i use the \tableofcontents or \listoffigures, it creates a page with the hyperlink placed on the name of the section.There is a red square around the title. However i want the hyperlink to be on ...
5
votes
2answers
69 views

Removing hyperlink borders from ToC

I don't want to disable hyper reference package as I like those borders in the text. I just want to remove borders around chapters/sections in the table of contents if possible. Any idea? E.g. ...
8
votes
1answer
51 views

Move hyperref anchor link in TOC

In the example below, the title of the starred section is moved to the left in the TOC but not the corresponding hyperref anchor link: \documentclass{article} \usepackage{hyperref} \begin{document} ...
5
votes
1answer
59 views

How to hyperlink the 'general index' in the resulting PDF without it appearing in the table of contents?

I want my book (in PDF file) have an 'Contents' (general index) hyperlinked. But do not want the line of the word 'contents' (including page number) in the content of the table of contents, redundant ...
2
votes
1answer
88 views

Use hyperref without any link coloring, and with dotted TOC lines

Currently, my document is of the following form: \documentclass[11pt,a4paper]{article} \usepackage{hyperref} \begin{document} \tableofcontents \section{Introduction to Problem} There is the ...
2
votes
1answer
58 views

How to refine links in LOF entries (in memoir)?

I would like to abuse the LOF as a kind of bibliography for foreign figures. For that it would be very nice to change the linking of the LOF entries. The default links entry names to figures but ...
3
votes
3answers
145 views

Hyperlinks in ToC

I started working with LaTeX some months ago and this forum has been very useful for me. Now I am writing a report and I want to have the ToC, LoF and LoT with hyperlinks. So I use the package: ...
5
votes
1answer
267 views

One page table of contents with hyperlinks for use with pdftk

I am using python and pdftk to create a portfolio from many pdf files. About half the files are generate by LaTeX and the other half are scanned in documents. When I am done, I want to create a ...
6
votes
2answers
124 views

How to repeat chapter numbers

I'm writing my Ph.D. thesis, and I have to write the Introduction both in English and in Spanish. Since the content is the same, I want to repeat the number of this first chapter: Introducción. ...
3
votes
1answer
99 views

Incorrect page number in ToC and minitoc

In the following MWE, the section number is reset at the beginning of each chapter. If, in the ToC, you click S4 it goes to S1, which is wrong. Both S4 and S1 have the same page number. The same ...
3
votes
1answer
98 views

Missing section links in table of contents (memoir class, custom section headings)

I am trying to add a table of contents to a document produced using the memoir class. I have customized the section headings to emulate a publication I like. When I produce the pdf (using xelatex ...
0
votes
0answers
117 views

multiple listing styles with hyperref and caption packages

This is a follow-up question to Multiple listings styles. The MWE from the accepted answer works fine. Unfortunately, when I add the hyperref package OR the caption package (or both of them), the ...
7
votes
1answer
126 views

Second optional input to \chapter to rename bookmark

I would like to include a second optional argument in \chapter's definition to be able to give the bookmark a name different from the one displayed on the toc. The reason for this is that on the toc ...
3
votes
1answer
125 views

Incorrect link in \listoftables after \setcounter{table}{0}

I'm trying to put together a statistical analysis plan using LaTeX. This is something I've never tried before. I want to create a section at the end called table shells, but I'm running into a couple ...
7
votes
3answers
88 views

How is it that an lrbox environment is correctly placing content in TOC

I was reviewing some old code that I wrote and thought I found a typo. But nevertheless everything is working as I want it to. The basic idea of the MWE here is that I'm storing content in a lrbox ...
1
vote
0answers
45 views

ToC links pointing to very same ToC instead of section page

I have a strange behavior with my ToC using the hyperref package. I have nine special paragraphs defined with \newcommand{\myparagraph}[1]{\paragraph{#1}\mbox{}\\[6pt]} which appears in the ToC ...
0
votes
1answer
166 views

Using listing with minted gets wrong listoflistings

I wanted to make a \begin{minted} block to show on the ToC in Listings section with a link to its label. So I did (with links to my Github working repo) \begin{listing}[!h] \begin{minted}[ ...
5
votes
2answers
199 views

How do I use nameref's label with addcontentsline

I am trying to use the nameref \label functionality alongside the use of \addcontentsline that creates invisible sections and subsections that appear in the \tableofcontents. The commands can be seen ...
4
votes
1answer
94 views

Chapter titles as hyperlinks in the list-of-figures

I would like to include the chapter titles in my list of figures. @GonzaloMedina previously answered this question using titletoc. However, not all my chapters are numbered, so I would like the ...
2
votes
0answers
45 views

Manually deleting \chapter ruins all hyperlinks in the document

I'm a tex noob and I'm using doxygen to generate a pdf documentation. I had doxygen generate a refman.tex file which contains something like \chapter{Program Reference} ...
3
votes
3answers
157 views

wrong hyperref for Index in tableofcontents since TeXlive 2010

Since update of TeXLive, both on macOS and Ubuntu (from 12.04 to 13.04), index is not referenced correctly in the table of content. Instead, the hyperlink to Index point to the bibliography. A lot ...
2
votes
1answer
125 views

Getting table of contents to recognize titlesec paragraph

I am using hyperref to make a clickable table of contents. I am using titlesec to use \paragraph{ } as if it were a subsubsubsection. How do i get this use of \paragraph to display in my table of ...
1
vote
1answer
308 views

`pdfbookmark` for table of contents points to previous page

In my thesis, I'm using the book class as such: \documentclass[a4paper,12pt,twoside,openright]{book} \usepackage[bookmarks=true, bookmarksopen, bookmarksopenlevel=1, colorlinks=true, ...
5
votes
0answers
121 views

Clickable box malformed in TOC when using math in heading and the Latin Modern Math font

The clickable box (the actual hyperlink) in the TOC is too heigh when using the Latin Modern Math font. Using Cambria Math everything looks normal. Using the \texorpdfstring{}{} command does not ...
1
vote
1answer
143 views

how to make TOC's 'List of Figure' link to title not the list itself

I made a table of content with clickable links. Links to chapters and sections work fine: when I click on them I see the chapter title and its content. On the other hand, when I click to the list of ...
2
votes
1answer
117 views

Create a table of contents

I'm new in LaTeX, and I want to create a TOC like this one TIP: every red box is a link to a certain area in the article.
0
votes
1answer
85 views

Bibiliography included in ToC but wrong hyperref linking [duplicate]

I included my bibliography in the tableofcontents as follows (documentclass report): \clearpage \addcontentsline{toc}{chapter}{References} \phantomsection \bibliographystyle{IEEEtran} ...
5
votes
0answers
280 views

Hyperref links entire line (like Word)

I have tried to use the code from How to make a hyperlink cover the whole line in table of contents including the dots? but it seems to make my entire document hyperlinked probably due to my custom ...
1
vote
1answer
274 views

Hyperref not linking ToC

I am having an issue with hyperref not linking the ToC to the chapters/sections. I have had a look around and I can not find a solution to my problem. If this is duplicated, my apologies... I am ...
2
votes
1answer
96 views

link both page number and text in table of contents?

Hyperref's linktocpage option will "make page number, not text, be link on TOC, LOF and LOT." Is there a way to make both the page number and the text be a link?