# Tag Info

4

The underscore characters require math mode, they are used for subscripts there. Thus you need \_ here for a underscore character. Alternatively \url or \nolinkurl can be used. The latter is \url minus the link property. An example with some variants: \documentclass{article} \usepackage[colorlinks]{hyperref} \begin{document} ...

3

If we look at the .aux file generated by your code, we find \newlabel{first}{{1}{1}{My first section}{Doc-Start}{}} Removing the naturalnames will not cure the problem. On the other hand, the document \documentclass{article} \usepackage{hyperref} \renewcommand{\sectionautorefname}{Unit} \begin{document} \section{First}\label{first} \autoref{first} ...

3

The macros \href and \url change the category code of % to get of its comment behavior: \url{http://es.wikipedia.org/wiki/Lept%C3%B3n} \href{http://es.wikipedia.org/wiki/Lept%C3%B3n}{Lept\'on} But inside the argument of another macro, this will not work, because then the percent is already read as comment char, before the inner \url or \href is executed. ...

2

The problem is not with % but with the underscore! Use this \hyperref[shamir]{''http://en.wikipedia.org/wiki/Shamir\%27s\_Secret\_Sharing''}

2


2

I'm answering my own question, by using part of the code provided by @wipet and lettrine (since it is easier to manipulate the text styling). Instead of using the whole string manipulation of my first question, I just use the following code (which replaces the entire \newcommand{\openintro}): \def\openintro#1{\openintroA #1 \end} \def\openintroA#1#2 #3 ...

1

Here is the solution, based on this answer. \documentclass{book} \usepackage{expex,lipsum,index} \newindex[PageExample]{my-index}{idx}{ind}{My Custom Index} \usepackage[hyperindex=false]{hyperref} % has to be after makeidx \newcommand{\PageExample}{\thepage-\the\excnt} \makeindex \def\xindex#1#2{% \edef\doindexentry{\noexpand\index[#1] ...

1

This requires all section titles use the optional argument, but at least does the breaking you require. \documentclass{scrartcl} \usepackage[normalem]{ulem} \usepackage{hyperref} \renewcommand\othersectionlevelsformat[3]{% \ifnum\pdfstrcmp{#3}{\thesection}=0 \uline{#3\autodot\enskip}% \else #3\autodot\enskip \fi } \begin{document} \section ...

1


1

The \url and other commands from the hyperref package take care of its input paths and the characters. So % should be no problem. \documentclass{article} \usepackage{hyperref} \begin{document} \url{http://es.wikipedia.org/wiki/Lept%C3%B3n} \end{document}

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