Tag Info

3

Adapting Werner's Lorem ipsum example, another (internal-to-hyperref) possibility is this: \documentclass{article} \usepackage{hyperref} \hypersetup{ allbordercolors=0 0 1, pdfborderstyle={/S/U/W 1} } \begin{document} Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut \href{http://any-URL}{pellentesque augue} est, id ornare nisi fringilla ...

2

Here is a \uhref command for selectively underlining the text: \documentclass{article} \usepackage{etoolbox} \usepackage{hyperref} \makeatletter \newif\ifunderlinehref \DeclareRobustCommand{\uhref}{\underlinehreftrue\href} \patchcmd{\hyper@link@} {{\Hy@tempb}{#4}} {{\Hy@tempb}{\ifunderlinehref\underline{#4}\else#4\fi}} {}{} \apptocmd{\hyper@link@} ...

2

Well, one way to fix the problem is to change the position of the \underline so that it is placed within the second argument of the href. The answer, then, becomes: \documentclass{article} \usepackage{hyperref} \begin{document} 1 (without \#, link, underlined) = \underline{\href{http://the-best-URL-in-the-world_without-a-number-sign}{URL without number ...

2

I apologise in advance for the half baked answer. I'm not 100% percent on this as I do not know much about the PDF specification. However, Adobe Reader has the ability to jump to 'named destinations' within a file and may be suited to what you are looking for. In your document add \usepackage{hyperref} to your preamble and \hypertarget{destname}{} where ...

1

You must enable \nameref to be aware of the current title, i.e. use \NR@gettitle{#1} inside of the \question command to store the information of the title into the label information, which is written to the .aux file. This is done by \NR@gettitle (actually by \newlabel) \documentclass{article} \usepackage{tocloft} \newlistof{question}{qcnt}{List of ...

1

Possible Workarounds Note: These are not solutions to the question asked directly, however offer alternative methods to achieve the same result. These methods may or may not suit your needs, but at least offer some 'food for thought'. Method 1: XML Page Index If a program is configured to run in language German, then the application will ...

1

A simpler variant of Ulrike's solution, based on my answer to How to be able to use the number sign (#) in the URL of an underlined href \documentclass{article} \usepackage{xcolor,soul} \usepackage{etoolbox} \usepackage{hyperref} \hypersetup{colorlinks,urlcolor=blue} \makeatletter \patchcmd{\hyper@link@} {{\Hy@tempb}{#4}} {{\Hy@tempb}{\ul{#4}}} {}{} ...

1

\href has to do quite a lot \catcode-magic to handle all the special chars (like #) in urls, so all commands that take an argument and so fix the \catcodes are difficult to insert. You can try the following. But Imho underlining doesn't look good. It will only work for \href (I hope ...) Normal text will break over lines, urls probably not. \ul from soul ...

1


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