# Tag Info

0

The problem is using \glsgetgrouptitle in the argument of \section, because this is a so-called moving argument, i.e. it will get executed at different places in the document. Since \glsgetgrouptitle is not expandable and does not work anywhere in the document, this cannot work. Since in your example \glsgetgrouptitle doesn't actually do anything, you can ...

0

Use longtable instead of tabular. It should work: \documentclass{article} \usepackage{longtable} \usepackage[stable,para,hang]{footmisc} \usepackage[style=verbose-inote,maxcitenames=1,backend=bibtex,doi=false,isbn=false,url=false,giveninits=true]{biblatex} \usepackage{hyperref} \makeatletter \newcommand*{\textlabel}[2]{% \edef\@currentlabel{#1}% Set ...

0

Hyperref builds section links automatically. You should be able to reference them as section.i where i is the section number. If you wanted to say "Section 3" and link to section 3, it would look as follows: \hyperlink{section.3}{Section 3} If you are prone to reorganizing your sections, this is not perfect, and I would advise using one of the above ...

2

beamer scans the entire frame environment before actually typesetting anything, and this leads to problems with verbatim content, because it cannot be "seen" before it is actually being typeset, or the tokenization will happen too early and it will not work. Essentially, what happens in your first example is: \def\iterate{Hybridorbital#Beispiele} which ...

0

Check out \hypertarget and \hyperlink. Every link is assigned a name, which you can usually find by looking in the aux file. Worst case, open the PDF as an ASCII file and search for /Names. \documentclass{article} \usepackage[colorlinks]{hyperref} \begin{document} \tableofcontents \section{name} This should also link to the \hyperlink{section.1}{section}...

0

Here is a way (as far as I understood the question): \documentclass{article} \usepackage{amsmath} \usepackage{lipsum} \def\thname{name} \newtheorem{theorem}{Theorem}[section]%added section after edit and picture \newtheorem{mytheorem}{\thname{} Theorem} \newenvironment{mtheorem}[1][name]{\def\thname{#1}\mytheorem}{\endmytheorem} \def\themytheorem{:} \begin{...

3

You could try to locally restore \pdfliteral to the original definition (varwidth redefines it): \documentclass{article} \usepackage{varwidth} \usepackage{hyperref} \usepackage[ocgcolorlinks]{ocgx2} \begin{document} \section{A section} \label{sec} A reference outside \texttt{varwidth}: sec.~\ref{sec}. \makeatletter \noindent \begin{...

0

give hyperref a chance: load it later so that it can inject its code: \documentclass{article} \usepackage{verbatim} % to allow commenting code section %\begin{comment} \usepackage[hang, flushmargin,splitrule,multiple]{footmisc} \usepackage{etoolbox} \makeatletter \patchcmd{\@makefntext}{ \ifFN@hangfoot \bgroup }{ \ifFN@hangfoot \bgroup\def\...

0

The mailto behavior is controlled by the browser, not hyperref.

2

This way the square brackets are also part of the link, but take the color of the main text (black by default): \documentclass{article} \usepackage{xcolor} \usepackage[hidelinks]{hyperref} \newcommand\mylink[2]{\href{#1}{[{\color{blue}#2}]}} \begin{document} This is a \mylink{http://www.example.com}{Example} web. \end{document}

2

\documentclass{article} \usepackage[colorlinks=true, urlcolor=blue]{hyperref} \let\oldhref\href \renewcommand\href[2]{[\oldhref{#1}{#2}]} \begin{document} Here is the \href{https://tex.stackexchange.com/}{Tex Site}. More text ... \end{document}

6

hyperref has an option for this: \documentclass{book} \usepackage[hyperfootnotes=false]{hyperref} \begin{document} \chapter{abc}\label{xx} \ref{xx}\footnote{abc} \end{document}

0

So...... Instead of actually changing the display setting, I found a work-a-round that is practical but not elegant. Basically, I am magnifying the pages to be an extremely large absolute size. Then when Google Chrome (or another viewer) opens it, the viewer zooms out until it is able to fit one page width (by default). Adding the line below does the ...

2

hyperref has a command to which you can append default keys for the textfield (by default it contains only "print"): \documentclass{article} \usepackage{xcolor} \usepackage{hyperref} \usepackage{etoolbox} \apptocmd\DefaultOptionsofText{,bordercolor=}{}{\fail} \begin{document} \begin{Form} \TextField[name=xy]{foo} \TextField[bordercolor=red,name=xy]{bar} \...

2

\documentclass{article} \usepackage{xcolor} \usepackage{hyperref} \let\TEXTFIELD\TextField \renewcommand\TextField[1][]{\TEXTFIELD[bordercolor=,#1]} \begin{document} \begin{Form} \TextField[name=xy]{foo} \TextField[bordercolor=red,name=xy]{bar} \end{Form} \end{document}

1

The hidelinks option doesn't expect a value; the correct way to use the option is just: \hypersetup{hidelinks} do not put =true.

1

If you want your definition to win add as late as possible \AtBeginDocument{\def\C{\numsys{C}}}

3

You can use the original \refstepcounter. It won't insert a space, but also no anchor, so links will probably go to the wrong places: \documentclass{article} \RequirePackage{amsmath} \RequirePackage{hyperref} \newcounter{number} \begin{document} \begin{enumerate} \item xxxxxxxxxxxxx $aaaaaaaaaaa$ \refstepcounter{number} \item xxxxxxxxxxxx \end{enumerate}...

1

You are using grouping around the section title, and this destroys the \label system as label names are stored locally. Better define your own sectioning command correctly with \@startsection: \documentclass[twoside]{book} % possibility to have sections etc. be within the margins \makeatletter \newcommand\doxysection{\@startsection {section}{1}{\z@}% ...

0

The issue is unrelated to glossaries. TeX is complaining about you using ^ in text mode (in the unit of mu). Putting the exponents in math mode will resolve this. A far superior way to typeset units is using siunitx (in this case you could write \si{\cubic\meter\per\square\second} with per-mode=symbol, though \si{m^3/s^2} also works, in case you are lazy). ...

3

You can store the tikzpicture in a box and then clip parts of this box. (hyperlinks won't work correctly, so better disable them, but by including a pdf you are loosing them too). You could also try to add clipping pathes directly to the tikzpicture, but imho it is more difficult to get the correct values. The code until \tableofcontents is from one of ...

5

The command \citefield is not expandable, this means that it can be used to typeset (formatted) field contents, but it can not be used where LaTeX expects the actual string of text directly (as in \url; of course \url is doubly tricky because it does not actually execute macros in its argument, \url{\foo} comes out as "\foo", so \citefield wouldn't even work ...

2

\hyperref does the job: \usepackage{hyperref} %... other code \section{Alice in Wonderland} \label{sec:Alice} %Links to the section with variable name Alice showing "Some Displayed Text" \hyperref[sec:Alice]{Some Displayed Text} %Links to the section with variable name Alice showing the name of the Section here "Alice in Wonderland" \nameref[sec:Alice] ...

2


1

Don't add braces around #1 and use also uppercase letters in the target: \documentclass{article} \usepackage{hyperref} \newcommand{\ablink}[1]{\hyperlink{abbv:#1}{#1}} \begin{document} Text on page 1. \newpage Defining \hypertarget{abbv:CG}{center of gravity} on page 2. \newpage Text on page 3 \newpage Link on page 4 - \hyperlink{...

2


0

I am required to use a template from my university, hence, there is no freedom to move parts of the document into different places. My understanding is that many packages conflict with hyperref (See https://texfaq.org/FAQ-hyperdupdest), the only thing that worked for me was to load the float package before hyperref. \usepackage{float} \usepackage{hyperref}

2

Protect the hash (I don't know yet why the link makes it fragile): \documentclass{extbook} \usepackage[utf8]{inputenc} \usepackage{hyperref} \usepackage{titlesec} \usepackage{lipsum} \begin{document} \tableofcontents % Note the escaped hash sign \chapter{\protect\#1: Test} \lipsum[1-3] % Extra lines just to force the link over the page Foo Bar Baz \...

Top 50 recent answers are included