Tag Info

Hot answers tagged

7

The info comes from \pdfstringdef, which is used to convert a TeX string to a PDF bookmark string. \pdfstringdef redefines many, many commands to disable them, to provide replacements. Thus hyperref also redefines some shorthands. For example, TeX's hyphenation is irrelevant for bookmarks, thus hyperref redefines the shorthands for ngerman regarding ...


6

Once you know that such information is irrelevant (and it is), you can use gentle manners (also known as “the sledgehammer”) to silence it: \documentclass{article} \usepackage[ngerman]{babel} \usepackage{lipsum} \usepackage{etoolbox} \usepackage{hyperref} \makeatletter \patchcmd{\@decl@short}{\bbl@info}{\@gobble}{}{} ...


5

The KOMA bundle provides very powerful commands for almost every possible situation. As you noticed, the headers were showing the previous chapter and hyperlinks didn't work properly when using \chapter* along with addcontentsline. The command \addchap takes care of this. It adds the unnumbered chapter to the table of contents, it sets \markboth ...


4

I've found some small problems with your document, it is compilable both with pdflatex and tex4ht after small fixes: %use one or the other of these \usepackage{hyperref} \newcommand{\Xref}[1]{\autoref{#1}} %\usepackage{cleveref} \autoref seem to work better with tex4ht \DeclareGraphicsExtensions{.png,.jpg,} add this to the preamble, this enables direct ...


4

\href should be used only after \begin{document}. Surround the lrbox with \AtBeginDocument{...}: \AtBeginDocument{% \begin{lrbox}{\myheader}% \begin{minipage}[b]{\headerwidth} \renewcommand{\arraystretch}{1}% \begin{tabularx}{\textwidth}{@{}Xl@{}} \textbf{FirstName LastName} & \\ Address1 & Phone +1 (123) 456 7890 \\ ...


3

Let's see how \label works. The purpose of \label is to write a note in the .aux file for later retrieval with \ref or \pageref. The command uses immediately the current value of \@currentlabel and, at shipout time, the current page number. The value of \@currentlabel is set (locally) by a \refstepcounter command to the current representation of the ...


3

With the help of \only<4>{target content} seems to achieve your goal. Note: visible and onslide won't work, but onslide* would work since it maps to \only while onslide+ also maps to visible, therefore, won't work either. Code: \documentclass{beamer} \beamerdefaultoverlayspecification{<+->} %stepwise uncovering \usepackage{hyperref} ...


2

hyperref points its hyperlink to the last anchor, and this anchor is set via the macro \refstepcounter. Indeed, hyperref redefines the traditional \refstepcounter to insert the appropriate anchor (see \hyper@refstepcounter in hyperref.dtx). This is important from the point of view of the hyperlink. Here is a showcase that highlights the motivation: ...


2

The size of links is dependent on the size of other things in the same line (roughly) as the link, and so since your inline math causes the line height to be larger (which it does) then the box will be larger. For a more detailed discussion of the problem, see the following question: Constant height and depth of hyperref link boxes As a workaround, you ...


1

It seems \hypertarget aims for the baseline, so I had to move the areas below the baseline. \documentclass[11pt, a4paper, oneside]{article} \usepackage{graphicx} \usepackage{hyperref} \usepackage{mwe} \newsavebox{\tempbox} \newlength{\tempheight} \newlength{\tempwidth} \newcommand{\area}{\rule[-0.49\tempheight]{0.49\tempwidth}{0.49\tempheight}} % ...



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