# Tag Info

7

The target is set at the current baseline in horizontal mode. TeX does not provide the means to get the height of the current line. pdfTeX provides the keyword pre for \vadjust to insert something before the current line: \vadjust pre{\hypertarget{...}{}} \raisebox can be used to shift the target, e.g.: ...

5

\nameref is defined via \DeclareRobustCommand by packages nameref and hyperref in \begin{document}. Thus lots of things are to be considered: Redefinition of \nameref can be done in \AtBeginDocument after package hyperref is loaded. Package letltxmacro takes care of the internal command, defined by \DeclareRobustCommand. Macro \nameref can be defined as ...

3

I'd prefer using a different command and exploiting csquotes: \documentclass{article} \usepackage[ngerman,english]{babel}% some language for the shorthand \usepackage[autostyle=true]{csquotes} \usepackage{xparse} \usepackage[colorlinks]{hyperref} \NewDocumentCommand{\qnameref}{sm}{% \enquote{% \IfBooleanTF{#1}{\nameref*{#2}}{\nameref{#2}}% }% } ...

3

Another solution could be done with tcolorbox. This package provides commands \tcbstartrecording[file], \tcbstoprecording and \tcbinputrecording[file] which can serve as OP's \hidesolutions and \stophidesolutions. Any tcolorbox is divided into upper and lower parts. We can use the upper part as exercise and lower part as solution. Options savelowerto ...

3

The additional bookmark can be done by \pdfbookmark: \pdfbookmark[1]{My Title}{title} The link including "equation" is more tricky, because \autoref does not put the number in parentheses. Manually it can be done by: \hyperref[eq: mass balance]{equation~(\ref*{eq: mass balance})} The star form of \ref sets a reference without link, because the link is ...

1

Perhaps I've misunderstood the question anyway completely: There should be a hyperlink looking like a chapter entry but not to the start page of the chapter, pointing to somewhere else. I've done a \nottocchapter which behaves like an usual numbered chapter, but kicked out \addcontentsline there. Then I defined ...

1

The hyperref package just looks for language options without main=, but it should since now babel officially supports this. Here is a hack, in the sense that the code (possibly made shorter) should go in hyperref.sty. \documentclass{scrartcl} \usepackage[english,main=ngerman]{babel} \usepackage{hyperref} \makeatletter \def\HyLang@DeclareLang#1#2#3{% ...

1

This is a 'dirty' trick: Write \newlabel explicitly to the .aux file with a prefix for a new label, say stored:: and use \nameref* from hyperref to get the label content. The {}{} and {} arguments can be empty here, as they are not important for this approach. However, expansion will be an issue. If the caption content itself holds commands that are ...

1

You can set various colours using the \hypersetup command (or as optional arguments in \usepackage[...]{hyperref}). In light of the comments I have expanded the MWE: \documentclass{article} \usepackage[svgnames]{xcolor} \usepackage{hyperref} \hypersetup{ colorlinks = true, linkcolor =LightSkyBlue, anchorcolor = red, citecolor = blue, urlcolor = ...

1

Apparently TeXcount had a problem with the options for these packages being on different lines in the .tex file. The problem was this: \usepackage[pdftex, plainpages=false, pdfpagelabels, urlcolor=black]{hyperref} and the solution was this: \usepackage[pdftex,plainpages=false,pdfpagelabels,urlcolor=black]{hyperref}

1

Despite of the non standard way: \textsc is a non-expandable command, this will break in conjunction with hyperref. The expandable form is \scshape (small caps shape). The real problem is however, that \chapter, \section etc. use \bfseries to display the heading titles of of chapters etc. There is no bold small caps version of the standard fonts, so this ...

1

This is the bookmark part of the question only... Additions to the bookmarks can be done with \pdfbookmark, for example. The relevant level should be given, here with article class level 0 is appropiate, if the title bookmark should be aligned with the rest, use level 1 then. Here I've done the solution with 0 however. ...

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