# Tag Info

1

The solution offered by samcarter did not quite work for me. But I was successful by putting the following lines into the preamble: \let\oldcite=\cite \renewcommand{\cite}[1]{\textcolor[rgb]{.7,.7,.7}{\oldcite{#1}}}

0

The above solution did not work for me. But I was successful by putting the following line in the preamble: \let\oldcite=\cite \renewcommand{\cite}[1]{\textcolor[rgb]{.7,.7,.7}{\oldcite{#1}}}

1

I don't know how to achieve what you want with the acronym package, but here's a solution that uses glossaries. In order to get it as close as possible to the acronym package, I've used the shortcuts, nonumberlist, nogroupskip and nopostdot package options and used new commands introduced in glossaries version 4.04 that allow you to create the list of ...

2

You don't mention it explicitly, but I assume you're using the enumitem package. The following code should work for you; if you want the cross-reference to a second-level item to also include the "number" (here: letter!) of the higher-level item, you can do so by specifying the desired format explicitly via a ref= ... statement. \documentclass{article} ...

1

I think the problem is that show notes on second screen requires pgfpages but pgfpages breaks hyperlinks when it rearranges pages. I was looking for something else and I just found this in the manual (and then had to try to find this question): A word of warning: using pgfpages will destroy hyperlinks. Actually, the hyperlinks are not destroyed, only ...

4

Is there any easy way to do this without creating a new command? Short answer: No. Long Answer: Well, of course, you can include this macro in your own package, or in an external macros.tex and then use \input{macros} in the preamble, in order to reuse it and maintain a clear preamble. But actually this feature is not included in any package (as ...

3

If your first and text values are the same, you can achieve this using: \documentclass{report} \usepackage{etoolbox} \usepackage[colorlinks]{hyperref} \usepackage [ nohypertypes={main}% suppress automatic links for main glossary ] {glossaries} % reset entries at the start of each chapter \preto\chapter{\glsresetall} \makeglossaries % Modify the ...

0

This can be done with hypertarget and hyperlink from the hyperref package. See the example below: \documentclass{article} \usepackage{hyperref} \begin{document} Title Page\newpage % Add a link target to the TOC itself \addtocontents{toc}{\protect\hypertarget{toc}{}} % Print the TOC \tableofcontents \newpage % Sections with a hyperlink to TOC ...

0

2

With etoc this works out of the box, with or without hyperref: \documentclass{article} \usepackage{hyperref} \usepackage{etoc} \begin{document} \tableofcontents\label{toc} \clearpage \newcount\cnta \loop \advance\cnta 1 \ifnum\cnta<100 \section{A section} Here is a link to the \hyperref[toc]{Table of Contents} on page \pageref{toc}. \repeat ...

4

You can solve this issue by loading the package refcount and substituting \ref with \getrefnumber. To creat the link you can use the command \hyperref from the hyperref package. In other words, rewrite your latter file as \documentclass[12pt]{memoir} \usepackage{xr-hyper} \usepackage{hyperref} \usepackage{refcount} \externaldocument{example} ...

0


1

Just reporting the workaround I eventually used. I inserted the command \linespread{0.99} where applicable. \ifthenelse{\boolean{AuthorVersion}}{ \linespread{0.99} % apparently hyperref changes layout for this paper, so adjust slightly \usepackage{hyperref} % for hyper references of citations, sections, etc. ... }{ \linespread{0.99} ...

4

With tabular I could do it directly, but with tabularx I needed the environ package to collect the body. However hyperref links via \cite do not work, this is another matter. \documentclass{article} \usepackage{array} \usepackage{tabularx} \usepackage{environ} \newcounter{tbib} \makeatletter \def\tbibitem{\ifnum\value{tbib}>0 \expandafter\\\fi ...

0

For Okular choose View->Presentation mode and you'll get what you want.

3

A further improved version that will put two links in every page and links point to the TOC. \documentclass{article} \usepackage{blindtext} \usepackage{eso-pic} \usepackage{hyperref} \usepackage{ifthen} \newboolean{linktoc} \setboolean{linktoc}{true} %%% uncomment to show answers properly %\setboolean{linktoc}{false} %%% comment to show answers properly ...

3

The normal reference system of LaTeX can be used including packages such as hyperref/nameref, titleref, ... The tricky part is put \label at the right place. hyperref likes it right after the title, then the anchor of the \label remains the title. Also putting \label at the end of the \tableofcontents has the risk for a wrong page reference, if the table of ...

5

Since you are using hyperref you can simply add a \label to the \tableofcontents command and then refer to it with \hyperref. MWE: \documentclass{article} \usepackage{hyperref} \begin{document} \tableofcontents\label{toc} \clearpage \section{A section} Here is a link to the \hyperref[toc]{Table of Contents}. \end{document}

3

Assuming you want a page reference, and you are using a standard class, I would do the following: \documentclass{article} \let\oldcontentsname\contentsname \renewcommand{\contentsname}{\oldcontentsname\label{contents}} \begin{document} \tableofcontents \clearpage \section{Section 1} Here is some text for section 1. It refers back to the table of ...

4

Package zref-xref can be used instead of xr-hyper, even if the zref labels are not used, because \zexternaldocument also can import and export from LaTeX labels with or without hyperref: \documentclass[12pt]{memoir} \usepackage[colorlinks]{hyperref} \usepackage{nameref} \usepackage{zref-xr} \zxrsetup{ tozreflabel=false, toltxlabel=true, } ...

4

The link border style can also be configured to some degree, from hyperref's README: Link border style Links can be underlined instead of the default rectangle or options "colorlinks", "frenchlinks". This is done by option pdfborderstyle={/S/U/W 1} Some remarks: AR7/Linux seems to have a bug, that don't use the default value ...

4

In order to make this work, rely solely on hyperref to manage the titles in the target/external document. Why? Because it wasn't compiled under the memoir class, and therefore has no reference of the \titleref requirements. Use \nameref instead. Here's a minimal example: \documentclass{memoir}% http://ctan.org/pkg/memoir \usepackage{xr-hyper,hyperref}% ...

3

You can control the bookmark depth just like you can the ToC depth using the bookmarksdepth key-value: \usepackage{hyperref}% http://ctan.org/pkg/hyperref \hypersetup{bookmarksdepth=3} bookmark also adapts this so you can use \usepackage{bookmark}% http://ctan.org/pkg/bookmark \bookmarksetup{depth=3}

2

I think tables and figures are float in latex. So instead of pointing sections , you can do backref=page as an option in hyperref.

1

You have to load cleveref after hyperref. Then everything works. See fig. 1a, 1a It is kind of mentioned in the manual: If you are using both varioref and hyperref, make sure you are loading them in the correct order, otherwise cross-references will reference completely the wrong thing without any warning in the LATEX output or log! The ...

5

This is an attempt based on your example. I used the theorem hooks defined by thmtools to override the format for thmlisti in the current environment: \addtotheorempostheadhook[thm]{\crefalias{thmlisti}{thm}} \addtotheorempostheadhook[lem]{\crefalias{thmlisti}{lem}} I cannot promise that it won't break anything, for example if you use a thmlist without ...

4

Here's a solution. Define a new list lemlist \newlist{lemlist}{enumerate}{1} \setlist[lemlist]{label=(\roman{lemlisti}), ref=\thethm.(\roman{lemlisti}),noitemsep} and use this one inside lem. Then, declare \Crefname{thmlisti}{Theorem}{Theorems} \Crefname{lemlisti}{Lemma}{Lemmas} and you will be able to avoid the optional argument for \labels. MWE: ...

0

I have found a workaround: the hyperlinks with reverse numbering work when using the newenvironment (originally posted by mhelvens in Is there a way to get reverse numbering on the enumerate environment?): \newenvironment{benumerate}[1]{ \let\oldItem\item \def\item{\addtocounter{enumi}{-2}\oldItem} \begin{enumerate} \setcounter{enumi}{#1} ...

3

Using org-mode to generate your CV The solution I'm about to discuss is inspired by the one of Puneeth Chaganti. The main idea is to have one central org file which will serve as a database for the generation of either PDF or ODT (openoffice) versions of the resume. The key idea is to have a dedicated package which will format the exporting of the data to a ...

6

With hyperref, for fun (egreg was tooooo fast with url ;)...) \documentclass{article} \usepackage{hyperref} \begin{document} \href{http://foo.bar/orders{orderID}}{\texttt{http://foo.bar/orders\{orderID\}}} \end{document}

12

Just type the URL: \documentclass{article} \usepackage{url} \begin{document} \url{http://foo.bar/orders{orderID}} \end{document} With hyperref it's the same, but the result is an invalid URL, I guess.

2

2

Although you didn't mention it, I'm assuming you want only the section links to be blue and that other links (equations, figures, etc.) remain black. You can achieve this by defining all links to be black, using the hypersetup command of the hyperref package. Then, you define a new command (refsec, in my example) that uses blue as a color. Now, this does ...

0

2

I think you're looking for the endfloat package. \documentclass{report} \usepackage{hyperref} \usepackage[nomarkers,nolists]{endfloat} % http://ctan.org/pkg/endfloat \renewcommand{\efloatseparator}{\mbox{}} % to avoid having each float on its own page \begin{document} \tableofcontents \listoffigures \chapter{One} Referencing Text~\autoref{fig:Figure01} ...

0

Thanks egreg a lot for the suggestion how to inject into \hyper@normalise. It is a new and very useful trick for me. The solution can be generalized for other active symbols as well. \documentclass{article} \usepackage{lipsum} \usepackage{hyperref} \makeatletter \let\ORIG@hyper@normalise\hyper@normalise \def\ORIG@slash@letter{/} \catcode`\/=\active ...

1

biblatex-chicago actually goes through quite great length to achieve the output you get. The following modifications undoes the behaviour of adding the postnote to the parentheses \renewcommand*{\postnotedelim}{\addspace} \makeatletter \renewbibmacro*{textcite:postnote}{% \ifbool{cbx:parens}% {\bibcloseparen\global\boolfalse{cbx:parens}}% {}% ...

4

Add a \clearpage (or \cleardoublepage) command after \printacronyms; otherwise, the \pagenumbering{arabic} will take effect too soon. As Speravir mentions in his comment, the KOMA classes scrbook and scrreprt offer \addchap, (and a starred version \addchap*) which can produce unnumbered chapters which show up in the table of contents and in the running ...

1

It turns that the ieeeconf.cls file contains this comment: % 11/2002 V1.6b (MDS) changes: % % 1) Fixed problem with figure captions when using hyperref. Thanks to % Leandro Barajas and Michael Bassetti for reporting this bug. % % 2) Provide a fake nabib command \NAT@parse so that hyperref will not % interfere with the operation of cite.sty. However, ...

1

I replace here the same answer given for this question: in this case solutions are for files in the same folder. Solution 1 You can use the xr package to reference to other LaTeX document. In the file supplementmain.tex you say: \usepackage{xr} \externaldocument{supplement} ... \ref{ext:supplement} Note: normally xr doesn't add hyperlinks. Use zref ...

4

You shouldn't be activating / in the first place. The control sequence \slash already does (better) what you want for \SlashDesc. If you insist for this, then you have to add the setting of / to the \hyper@normalise list. Here's a way; I have also streamlined your definition of the active slash. \documentclass{article} \usepackage{lipsum} ...

6

4

After some tries I got option label to work, but I haven't found a nice way for getting the size of the node inside the label for \rule except for storing the positions via \pdfsavepos (needs two LaTeX runs). Finally I found something in the source code for option label. It adds a node, but avoids the problem by restoring \tikz@last@fig@name. The example ...

7

Use a fake counter to keep hyperref happy: \documentclass{amsart} \usepackage{amsthm,lipsum} \usepackage[colorlinks=true]{hyperref} \theoremstyle{plain} \newtheorem*{namedthm}{\namedthmname} \newcounter{namedthm} \makeatletter \newenvironment{named}[1] {\def\namedthmname{#1}% \refstepcounter{namedthm}% \namedthm\def\@currentlabel{#1}} ...

Top 50 recent answers are included