Articles of hyperref

How to make hyperref aware of Firefox's internal protocols for extensions?

I’d like to create an hyperlink in a .pdf file that opens Firefox at the Zotero pane, the “URL” of which being chrome://zotero/content/tab.xul: instead of http or ftp, here the protocol used is chrome, one of Firefox’s internal protocols for extensions. Unfortunately, nothing happens when one clicks on the link produced by the following file: […]

Change page, section, figure, etc identifier avoiding duplicates

Imagine that you want to build a report composed by several papers. Before each paper the titlepage should be displayed. Also, the page number, section number, figure number, etc shall always be reset before each paper starts. With my solution and using pdftex driver to compile, I got several pdfTeX warning (ext4): destination with the […]

Use mathematical equation in caption with onlyamsmath

Apparently it seems to raise a warning »LaTeX Warning: Label(s) may have changed. Rerun to get cross-references right.« if I want to use a mathematical equation in a figure’s caption and I use the onlyamsmath and the hyperref packages in the document’s preamble as follows: \documentclass{scrartcl} \usepackage{amsmath} \usepackage[all,error]{onlyamsmath} \usepackage{hyperref} \begin{document} Reference~\ref{fig:foobar}. \begin{figure}[htb!] \caption{Foo Bar $f=2$} […]

Why do these three changes fix this equation-numbering error?

When I use \equation…\endequation instead of \begin{equation}…\end{equation}, all equations have the same number (I know this isn’t best practice for environments; I’m trying to understand the underlying behavior), as in the following example. \documentclass{article} \usepackage{amsmath} \begin{document} The first equation is \equation \label{pyth} a^2 + b^2 = c^2. \endequation The second equation is \equation \label{quad} x […]

Filesize command amount dependent?

When writing a cv I decided to separate tex file from content. I copied the content to a csv file in order to load it with datatool. But this greatly increases the size of the PDF: Complete content directly in tex code. Size: 101 Kb. Externalize the content to an csv file. Size: 5.093 kb. […]

Token allowed in PDF string in \section but not in a customized (with \addcontentsline) section command

babel‘s frenchb option makes active e.g. ! character by making it automatically preceded by a \thinspace. Such active characters are properly supported in sections by hyperref‘s bookmarks. But, when I try to create my own section command with an \addcontentsline specification, this leads to the well known Package hyperref Warning: Token not allowed in a […]

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 of question are related to the hyperlink problem with index, but since mine seems a bit different, I post a new […]

How to get email to show in color when typed in text?

In LaTeX’s article documentclass, how do I (using hyperref, if I understood right) get email links to show in color (say, red) when I type them in the middle of a paragraph?

How to disappear text or figures by printing?

As you know, the option ocgcolorlinks of the hyperref package disables colors of all links presented in a PDF file by printing it from Adobe Reader (and by compiling with e.g. pdflatex); as a result, they are printed in a default color. My questions are: Is it possible to disable not the color, but entire […]

Hide content to show later

My question appeared about this egreg’s answer: https://tex.stackexchange.com/a/210564/15256 I have a list of exercise-answers but I don’t want to show the answers immediately but after till I’ll pull with a command and fetch all the answers till there. By example: \hidesolutions \begin{exercise} this is an exercise.1 \end{exercise} \begin{solution} this is a solution for the above […]