Podcast #128: We chat with Kent C Dodds about why he loves React and discuss what life was like in the dark days before Git. Listen now.

# Tag Info

6

You can create layers which are only shown in the screen or print version of your document with the viewerlayer mechanism. Whether the content of the command appears in the printed output is controlled with the printable key. You should be aware that many PDF viewer ignore the settings and display the argument of the command also on the screen and only ...

4

By default pdfpages uses /Fit for the destinations it creates. You can change this with the linkfit option. Beside the documented values Fit, FitH etc it also knows the value XZY <number> (yes XZY, not XYZ). With <number> = 1000 you get a zoom of 1. An other possibility is to redefine the pdfpages command to use the hyperref pdfview option. \...

3

Even though viewerlayer layers are viewed independently they are typeset together. Content is positioned as though all layers are visible, and surrounding text doesn't shift according to the visibility of the layer. \defineviewerlayer [print] [state=stop,printable=yes] \starttext \rightaligned{First flush-right sentence\viewerlayer[print]{... or is it}} \...

3

It seems that a solution to problem 1 is this one: \def\url#1{\textcolor{mylinkcolor}{\nolinkurl{#1}}} instead of \let\url\nolinkurl For problem 2, apart the solution given by Ulrike Fischer, there is also the option to transform a linked PDF into a PDF/X using Acrobat Professional, as mentioned by MadyYuvi in a comment. In fact, there is one further ...

2

In case of IEEE templates, when using the file bib, replacing the underscore with {\_} should solve the problem. In the case of the question: @misc{code, title = {Code}, url = {https://1drv.ms/link{\_}link} }

2

You could set the pdfborderstyle to underline: \documentclass{article} \usepackage{lipsum} \usepackage[utf8]{inputenc} \usepackage[OT6,T1]{fontenc} \usepackage{xcolor} \usepackage{hyperref} \hypersetup{ urlbordercolor=black, pdfborderstyle={/S/U/W 1} } \begin{document} \noindent Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque elit ...

2

Just load the xurl package immediately before hyperref and use the basic \url macro. \documentclass{article} \usepackage{lipsum} \usepackage[utf8]{inputenc} \usepackage[OT6,T1]{fontenc} \usepackage{xcolor} \usepackage[normalem]{ulem} \usepackage{xurl} % <-- new \usepackage{hyperref} \hypersetup{colorlinks,urlcolor=black} \begin{document} \noindent ...

2

This seems to be viewer specific behavior. (I own neither a Mac nor Mathematica. Instead, I tested this using Windows and an svg file, but that should not make a difference, I think.) \documentclass{article} \usepackage{hyperref} \begin{document} \href{./test.svg}{foo} \href{run:./test.svg}{bar} \end{document} In Overleaf, the links are not clickable....

2

The ps2pdf route implements all interactive PDF features by means of the pdfmark PS operator. An efficient way to remove all interactivity without changing the visual appearance of the text might be neutralizing pdfmark and ?pdfmark: \documentclass{article} \usepackage[colorlinks]{hyperref} \special{! userdict /?pdfmark systemdict /pop get put userdict ...

2

Create a small wrapper mythesisprint.tex and input your pdf with pdfpages: \documentclass{book} \usepackage{pdfpages} \begin{document} \includepdf[pages=-]{mythesis} \end{document} This will keep the colors but strip the annotations.

1

Put the target inside the tag: \documentclass{article} \usepackage{amsmath} \usepackage{hyperref} % https://tex.stackexchange.com/a/412381: \makeatletter \newcommand{\linkdest}[1]{\Hy@raisedlink{\hypertarget{#1}{}}} \makeatother \begin{document} \begin{subequations} \begin{align} 1 + 1 &= 2 \text{.} \tag{\linkdest{htar:target1}{T1}} \\ ...

1

You can accomplish this using a new counter and \refstepcounter. \documentclass[10pt]{article} \usepackage[hidelinks]{hyperref} \usepackage{enumitem} % New counter for questions \newcounter{question} % Questions are labelled using lower case roman numerals \renewcommand\thequestion{\roman{question}} \begin{document} \newpage \section{Project} ...

1

I got solution and simply modified in the natbib package i changed \NAT@hyper@ to \hyper@@link{}{cite.@citeb@extra@b@citeb} to get the break links \def\NAT@citex% [#1][#2]#3{% \NAT@reset@parser \NAT@sort@cites{#3}% \NAT@reset@citea \@cite{\let\NAT@nm\@empty\let\NAT@year\@empty \@for\@citeb:=\NAT@cite@list\do {\@safe@activestrue \...

1

Well, if you open the documentation of hyperref on page 41 you will find: And it is also mentioned in this answer in the question you already linked . Nevertheless, if you delete/comment your code you used after calling package endnotes the resulting pdf shows an linked footnote 1 and you can click on it to get the footnote 1 displayed. The the following ...

1

To simply resolve this problem put this in your document after the "\usepackage"es \hypersetup{pdfborder = {0 0 0}}

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