# Tag Info

3

1

You need to give hyperref an unique alternative representation for the line counter. E.g. \documentclass[10pt]{book} \usepackage{nd3} \usepackage{hyperref} \makeatletter \newcommand\theH@NDlines {\the@NDnumber.\the@NDlines} \makeatother \begin{document} Blah \begin{ND} \ndl{}{P}{} \end{ND} Blah \begin{ND} \ndl{}{Q}{} \end{ND} Blah \end{document}

2

You are mixing xmpincl and pdfx expectations about how the XMP file will be found and created. The command \includexmp is from xmpincl, and pdfx wants nothing to do with it. pdfx provides a simplified interface, but it has strict requirements: Your .xmpdata file must have the same name as the main .tex file (if using the filecontents package, then use ...

1

algorithm2e provides the means to set custom line numbers and reference them via \nlset together with a regular \label: \documentclass{article} \usepackage{algorithm2e} \newcommand{\algcaseref}{Case~\ref} \begin{document} \begin{algorithm}[H] \KwData{this text} \KwResult{how to write algorithm with \LaTeX2e } initialization\; \While{not at end ...

0

You could do this by creating a custom counter: \documentclass{article} \usepackage{algorithm2e} \usepackage{hyperref} \newcounter{cases} \newcommand{\case}[1]{\refstepcounter{cases}\label{#1}} \begin{document} \vspace{2em} \begin{algorithm}[H] \KwData{this text} \KwResult{how to write algorithm with \LaTeX2e } initialization\; \While{not at end of ...

0

You can add a key field that's used for sorting: @Misc{ref1, key = {aaa}, Title = {\href{http://www.ref1.com}{aaa}} } @Misc{ref2, key = {ccc}, Title = {\href{http://www.ref2.com}{ccc}} } @Misc{ref3, key = {bbb}, Title = {\href{http://ref3.com}{bbb}} } Here's a full example, with filecontents* just for making it self-contained. ...

2

The hyperref package does not provide a hyperref key, which is exactly the use case in your template (lines 209-226): 209: \usepackage[pdftex, 210: hyperref,% <---------------- problem.... 211: hyperfootnotes=false, 212: pdftitle={The Project Gutenberg eBook \#\ebook: Calculus Made Easy, 2nd Edition}, 213: pdfauthor={Silvanus Phillips Thompson}, ...

2

\documentclass[pagesize=pdftex,DIV=16]{scrartcl} \usepackage{xcolor} \usepackage{hyperref} \newsavebox\TBox \begin{document} \begin{Form} \section*{Principal Investigator} \sbox\TBox{Full Name: }% \TextField[backgroundcolor=gray!30,borderwidth=0,width=\dimexpr\linewidth-\wd\TBox]{Full Name:}\\[1ex] ...

1

This does not answer your question, since you are making your form with the hyperref Form environment, which I don't understand. If this was as simple as filling a line with a grey box it would be pretty easy, after the model of LaTeX's \hrulefill. Perhaps this information might lead to a solution. \hrulefill in LaTeX uses the TeX primitives \leaders and ...

0

This was fixed by placing the \usepackage{apacite} after the \usepackage{hyperref}, despite the documentation saying hyperref should be the last item.

1

hyperref generates and transfers the hyperlinks verbatim to whichever package you use for setting your ToC. This allows hyperref to be compatible with a host of packages. Since it's known that you're using the combination \usepackage[titles]{tocloft} \usepackage[linktoc=all]{hyperref} we can knowing update what hyperref transfers and update the way ...

7

Using some of biblatex's on-board technologies we can make the code a bit shorter. (And I'm really not a fan of constructs such as \citeauthor{#2}, \citetitle{#2}, \citeyear{#2}, they go horribly wrong when several works are cited and they don't deal with pre- and postnotes that well. Granted, that might not be a problem here, but still ...) Note first that ...

4

OK. I came up with something which seems to work - that is, it survives absolutely minimal testing, but will no doubt break as soon as I try to use it in a real document. I am sure, however, that this cannot possibly be the simplest solution. There must be a more straightforward way of extracting the URL for use as a hyperlink target, mustn't there? I ...

0

The question started from being akin to Wikipedia and ended up as a duplicate. As you can see, process of colouring the heading and setting it to uppercase is pretty much manual. Is there a command that I can use to automate it? Also, I would like a '.' (dot) after the number. The question # 1 (coloured section) has been answered by @Arne ...

2

Complete example, using the \tooltip macro from this post (go there for further information about its usage and PDF reader compatibility): \documentclass[12pt]{scrbook} \usepackage{mwe} %example images \usepackage{tikz} %for building a graph %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % optimized for Adobe Reader ...

1

To be honest you did several mistakes: !h goes between square brackets; I got an hyperref config clash because you declared to use hyperref three times in the preamble; it's enough one, adding the options, in this case colorlink=true, within square brackets; you declared to use the package url twice. Change the code like this. ...

-1

2

If all long section, subsection etc. titles should appear in the bookmarks, perhaps the easiest way is to shift the \toclevel@... to something far beyond the real levels, say add 1000, add the normal contentsline and use and explicit \pdfbookmark[...]{...}{...}. \documentclass{article} \usepackage{xpatch} \makeatletter \xpatchcmd{\@sect}{% ...

0

I finally found a solution. Indeed, no LaTeX-like solution is possible for all paper sizes without recompiling the document. What one can do is to run pdfjam, for example, to do the 'scaling' after the PDF has been generated: pdfjam --letterpaper --landscape --outfile bar.pdf foo.pdf works well based on the input PDF foo.pdf.

0

I’m using the following technique for having multiple references to the same footnote, with hyperref, combining advice from its documentation and several posts here: \newcommand{\Hair}{\kern.16667em} […] Falls hierbei Fehler auftauchen prüfen Sie […] die Logs\Hair\textsuperscript{\ref{fn:tomcatlogs}}. […] Prüfen Sie ggfs. die ...

3

Assuming you don't want this for all types of references, you can separate the cross-references in the list by one or more empty references, at the point at which you want to prevent compression. \cref{eq1,eq2,,eq3,eq4,eq5,,eq6,eq7,eq8} will be typeset as: Or using the example from the other answer: \documentclass{article} \usepackage{hyperref} ...

2

We need to use \pdfstringdef \documentclass{article} \usepackage{fontspec,hyperref} \usepackage{polyglossia} \setmainlanguage{french} \begin{document} \pdfstringdef\toto{tête} \hypertarget{\toto}{tête} \newpage \hyperlink{\toto}{tête} \end{document} Or better to patch some internal commands of hyperref: \documentclass{article} ...

1

You can try rdfref package. It unfortunately isn't on CTAN, because it doesn't have any documentation, only an example of usage. You haven't provided any example, so I will add some: \documentclass{article} \usepackage{lipsum} \usepackage{rdfref-user,rdfref-query,nameref} \usepackage{newfile} \newoutputstream{references} ...

0

I found the solution to my problem. I have to add another entry without cross-ref. Thus we should have in the .tex file: toti \index{toti|seealso{toto}} \index{toti} \newpage

2

You can use a combination of a manual \hyperref and \ref*, wrapped inside a macro: \documentclass{scrreprt} \usepackage{graphicx} \usepackage[colorlinks=true,linkcolor=red]{hyperref} \newcommand{\myref}[2][]{\hyperref[#2]{\ref*{#2}#1}} \begin{document} \begin{figure} \centering \includegraphics[width=.3\linewidth]{example-image-a}\quad ...

5

One option is to update \chapter and insert a regular \label. The structure should be something that you're not going to use elsewhere in the document, of course, since \labels have to be unique. I've chosen to insert \label{chapter-\thechapter}, which is similar to \label{chapter-2} in Chapter 2 if \thechapter is \arabic{chapter} (the defaut). To ...

4

The warning is directly thrown by pdfTeX. The TeX macro level is not involved, thus package like silence do not work for this case. The warning can be suppressed by changing the source code of pdfTeX and recompiling.

Top 50 recent answers are included