# Tag Info

## Hot answers tagged hyperref

11

The following produces a more readable PDF file: \pdfobjcompresslevel=0 \documentclass{article} \usepackage{hyperref} \begin{document} \href{chrome://zotero/content/tab.xul}{Zotero}% \end{document} Page streams are still compressed, but the link is stored in an uncompressed annotation object in the PDF file. The file can be inspected by a text viewer (or ...

5

This creates 6 hyperlinks along the first edge which link to the second slide. \documentclass{beamer} \usepackage{tikz} \usetikzlibrary{positioning} \begin{document} \begin{frame}{First} \begin{tikzpicture}\label{picture:first} \node (A) {$A$}; \node (B) [below right=2 and 3 of A] {$B$}; \path (A) edge [line width=5pt] node [pos=0, circle] ...

4

A simple solution is to gobble math with \pdfstringdefDisableCommands: \documentclass{article} \usepackage{hyperref} \makeatletter \pdfstringdefDisableCommands{\let$$\fake@math} \newcommand\fake@math{}% just for safety \def\fake@math#1$${[math]} \makeatother \begin{document} \section{$$I$$ cast warnings but I wish I wouldnt} ...

3

Greek letters can also be used in bookmarks: Unicode encoding is needed, because the 8-bit PDFDocEncoding does not contain all letter and symbols. This can be achieved by option unicode or pdfencoding=auto. Option psdextra redefines lots of math symbol commands to work within bookmarks. Example: \documentclass[12pt]{article} \usepackage[ ...

3

Don't use \hspace in a \the... command -- it screws up references (formats) \documentclass[12pt,a4paper]{book} % Ecrire en français \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage[french]{babel} \usepackage{lmodern} \usepackage{xspace} % Pour les espaces automatiques % Part name in TOC \usepackage{tocloft} ...

2

I found a way of doing it : \hyperref[<part label>]{Partie \Roman{part}} is doing the job, then I just have to redefine a new command for it. Yes this in not elegant since there will be \autoref in the text and \MyCommand for parts. Still if there is better, let me now :)

2

You should use cleveref, it's much more powerful. I used the patches from my other answer \documentclass[12pt]{book} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage[french]{babel} \usepackage[titles]{tocloft} \usepackage{xpatch} %%% patches to \@part and \@chapter must %%% be done before loading hyperref \makeatletter \patchcmd{\@part} ...

2

Until a proper answer comes along, you might consider using this quick and dirty trick: \hyperlink{some label}{\textcolor{normal text.fg}{link text}} If you use it very often, then create a command for it: \newcommand\myhlink[2]{\hyperlink{#1}{\textcolor{normal text.fg}{#2}} MWE \documentclass{beamer} \hypersetup{colorlinks=true} ...

1

Rotating an individual node seems to work, partially; the bounding box of the picture does not work well. (Based on John Kormlyo comment) Rotating inside node seems to work. \documentclass{article} \usepackage{tikz} \usepackage{hyperref} \begin{document} \section{Test section\label{sec:test}} \begin{tikzpicture} \node at (0,5) [draw=blue] ...

1

The name={...} option to the definition in the \declaretheoremstyle command defaults to the theorem name, or it's possible to say name={} to remove the prefix in the List of Theorems, but this has an effect to the body-text display as well. (It's not the best solution) The parentheses can be removed by redefining \thmtformatoptarg to be ...

Only top voted, non community-wiki answers of a minimum length are eligible