2
votes
1answer
30 views

Generate HTML from document that uses autoref/cleveref

I have an existing document that was written using hyperref and natbib, and am trying to generate a website alongside the PDF that is already built. The document was written using autoref references ...
0
votes
0answers
21 views

Possibilty to ref link different areas of an image to different labels?

I do have a diagram as an image. There are described different components which are later described and marked with \label tags. Can I ref link different areas/sections of one image to different ...
0
votes
1answer
21 views

No hyperref link in stackrel with xelatex

Consider the following example document: \documentclass{article} \usepackage{amsmath} \usepackage{hyperref} \begin{document} \begin{equation} \label{eq:eq1} a = b\quad \wedge \quad b = c ...
1
vote
0answers
47 views

Different labels pointing to the same object

I have the following code (an MWE) which creates two A4 pages, each with one figure which is composed of three subfigures. On the second page there are also two references: one to a subfigure of the ...
5
votes
1answer
23 views

alltt and hyperref package not playing nice together

I'm am trying to create some cross references between two documents. I'm using alltt in both docs to control the layout of some of the content. For the cross reference links, I am defining the ...
2
votes
1answer
51 views

Custom label for chemical structures

I need a custom label for my chemical structures and everything works fine but the label isn't centered. Does anyone know how to center the label? \documentclass{minimal} \usepackage{hyperref} ...
1
vote
1answer
21 views

How should I use reference with setcounter{lstlisting}{0}?

I specified in my lstlisting both caption and label. Also before every section I use: \setcounter{lstlisting}{0} My listing from PDF view looks like: Listing 4.1.2 SomeCaption When I am using ...
3
votes
1answer
45 views

hyperlink on equation number

I would like to link an equation to a sentence at the end of the document (e.g. code below) but placing the hyperlink on the equation number and not on the equation itself? Is it possible? THanks for ...
0
votes
1answer
54 views

Why doesn't latex recognize my figure

I've got a figure, which is displayed fine: \begin{figure}[htbp] \centering \begin{subfigure}[b]{0.48\textwidth} \includegraphics[width=\textwidth]{xp_potato.eps} ...
4
votes
1answer
51 views

pgfplots externalize with hyperref

I'm using pgfplots with externalize because my document has a lot of plots which causes problems with memory limitation in LaTeX. In one of my plots I have a reference to an equation. In the file ...
2
votes
1answer
60 views

Prefix “Figure” and giving reference to figures

Is it possible to adjust the font size of the prefix Figure when captioning an included image? Furthermore, is it possible to refer to a picture in a meaningful way without using a caption; I tried ...
4
votes
1answer
40 views

\ref{} does not work under certain circumstances

So I know that the problem is at \setcounter{secnumdepth}{0} But I don't know if there is a fix to this (without deleting this line, since I don't want numbered sections), since the link in ...
3
votes
1answer
73 views

Controlling Theorem tags in Beamer

I am writing slides which follow a textbook, and it is obviously desirable for the theorem and equation numbering to coincide with that in the text. I have no problem \tag-ing equations and linking ...
4
votes
2answers
100 views

Place parentheses around a cross-reference

Is possible to surround a cross-reference with brackets or parentheses? For example when I write a command like some text \ref{some label} then when compiled the output was some text (12) without ...
5
votes
3answers
65 views

Use label to refer to text and print it

I want to make requirements in a latex document and I would like to refer to them. What I have so far is this: \documentclass{memoir} \usepackage{hyperref} \usepackage{lipsum} ...
1
vote
0answers
20 views

Why might I not want to set naturalnames and hypertexnames both equal to false in hyperref?

I know from these questions that you can solve a lot of internal linking problems in your PDF by setting naturalnames and hypertexnames both equal to false (naturalnames being set to false by ...
5
votes
1answer
45 views

\@currentlabelname and custom counter

Suppose I have a counter, say, count. I can do something like this \setcounter{count}{0} \refstepcounter{count}\thecounter{count}\label{cool} \ref{cool} This will give me "1" in the end. Now, I ...
3
votes
1answer
47 views

Giving a custom environment a name

I have defined a custom environment: \documentclass[11pt]{article} \usepackage[table,hyperref]{xcolor} % Better control over color \usepackage[colorlinks=true, linkcolor=DarkBlue, ...
4
votes
1answer
64 views

Hyperref cross-references across split documents

Say I have a document of type \documentclass{article} \usepackeage{hyperref} %\includeonly{Chap1} %\includeonly{Chap2} \begin{document} \include{Chap1} \include{Chap2} \end{document} Where ...
7
votes
1answer
94 views

How to put numbers in parenthesis using cleveref

I am using the cleveref package for cross-referencing. When I use \cref{tab1} and \cref{fig1} I got the output as table 1 and fig. 1 respectively. I would instead like to get table ...
1
vote
1answer
99 views

Cross referencing between chapters of a thesis

Hi I am new to the forum and fairly new to Tex, if I miss anything out please let me know and I will be glad to post it. I am writing up my PhD thesis using Texmaker on a windows system. I have my ...
5
votes
1answer
47 views

How to change the number of a subsection used in a cross-reference? [duplicate]

I was wondering if I could change the number that appears in my "\labelcref"? (I use hyperref, cleveref and nameref packages) More precisely, I'm writing a document where there are several sections ...
9
votes
2answers
107 views

nameref (hyperref) evaluating counter instead of section name

What's the proper way to reference a section with a counter in the title? The TOC generates correctly, but the cross references aren't so lucky. MWE: \documentclass[letterpaper, 12pt, twoside]{exam} ...
3
votes
1answer
54 views

Memoir's \NumToName doesn't work with cross-referenced items

I got external references to work with memoir and hyperref here: hyperref and xr-hyper break memoir's \titleref, but references to external documents don't work with memoir \NumToName: ...
6
votes
5answers
269 views

Reference to the Table of Contents page

I thought that someone must have asked this, but my searches didn't find it. I am looking to refer back to the table of contents from places in my document. How can I do this?
5
votes
2answers
92 views

hyperref and xr-hyper break memoir's \titleref

I have one document that has hyperref loaded, and works fine. I have a second document that I am using xr-hyper to reference the first. If I remove hyperref from the first document, the \titleref{} ...
4
votes
1answer
87 views

Reference that includes section number and name

I'm trying to refer (hyperlink preferably) to another section, or in this spesific case a subsection. I've fixed the problem by creating a new command: \usepackage{hyperref} ...
7
votes
2answers
130 views

Reference to List Items in Theorem Environment with Label Type “Theorem”

I'm trying to set up references to list items in theorem environments. Using the thmtools and the cref-package I am able to reference theorem environments, such that the theorem type, e.g. theorem, ...
3
votes
1answer
192 views

How to imitate great looking Motion Mountain ToC, including hyperlinks?

I wanted to customize my ToC to look more or less like the one in Motion Mountain physics textbook, including clickable page numbers. My decision was to use hyperref and titletocpackages. Now it seems ...
1
vote
1answer
60 views

How to customize the chapter in front of figure page in listoffigures?

I am using the the packages \usepackage{url} \usepackage{graphicx} \usepackage{rotating} \usepackage[hypcap]{caption} \usepackage{hyperref} to include referencable graphics in my work. The ...
0
votes
1answer
44 views

How to refer to labels in other documents? [duplicate]

I have two documents file1.tex and file2.tex in two different folds fold1 and fold2, which are in the fold father. In file1, I defined \label{file1:hello}, how do I use it in file2?
7
votes
1answer
71 views

Referencing unnumbered theorems

I would like to reference named (but unnumbered theorems) with a hyperlink. I have a solution which I consider at least a semi-hack: \documentclass{amsart} \usepackage[colorlinks=true]{hyperref} ...
2
votes
0answers
105 views

Mysterious error message regarding missing reference

At the very end of my pdflatex compilation, I get the following error messages: (see the transcript file for additional information)pdfTeX warning (dest): name {theorem.10.2} has been referenced but ...
6
votes
2answers
71 views

How to get boxed citations and references but colored,unboxed \hrefs

It seems that if I change from boxed links to coloured links using the \hypersetup{colorlinks=false,true} command from the hyperref package, this has a global effects on all types of links, be it ...
3
votes
1answer
45 views

reference the table of contents/ hyperlink

when i use the \tableofcontents or \listoffigures, it creates a page with the hyperlink placed on the name of the section.There is a red square around the title. However i want the hyperlink to be on ...
6
votes
2answers
215 views

Splitting(!) one latex document into two pdf outputs including references

I have a quite huge thesis-latex-document with lots of references to the appendix. The whole document I would like to split into two pdf-files. That means: I would like to have the thesis and the ...
3
votes
3answers
430 views

Combining \autoref and \eqref

Say the equation is \begin{equation} r^2 = x^2 + y^2 \text{.} \label{eq:circ} \end{equation} Now, if I use \autoref{eq:circ} I get Equation 1. How do I get Equation (1) (the parenthesis that we ...
6
votes
1answer
229 views

Reference equation in align* environment with cleveref

In order to control equations numbering I use the Align* environment where I put \numberthis at the end of the equation that I want to number. After, I label the numbered equation but when I want to ...
5
votes
0answers
111 views

How to enable smart references when using xr-hyper package for producing multi-volume book?

I'm using xr-hyper package by @David Carlisle and smartref package by Giuseppe Bilotta to compile a multi-volume book. xr-hyper enables cross-references between different volumes as shows the ...
4
votes
1answer
78 views

Mix hyperref and varioref

I like that hyperref gives me results like \ref{eq:first-equation} % yields "equation (1)" and that varioref gives results like \vref{eq:first-equation} % yields "1 on the following page" but ...
3
votes
1answer
53 views

Name referencing for arbitrary text?

In my TeX file I have a something like this: \newcommand{\head}[2]{ \textbf{#1 \imp:} \textit{#2}\\ } \newcommand{\definition}[1]{ \head{Definition}{#1} } \newcommand{\lemma}[1]{ \head{Lemma}{#1} } ...
7
votes
1answer
48 views

nameref + fontenc causes umlauts in aux-File

I wrote a small new command that makes use of \@currentlabelname and \nameref. When I have Umlauts in the labelname (the argument of \@currentlabelname) everything works fine until I use the fontenc ...
4
votes
1answer
249 views

\autoref subsections in appendix

MWE \documentclass{article} \usepackage{appendix} \usepackage{lipsum} \usepackage[colorlinks]{hyperref} \def\sectionautorefname{Section} \def\subsectionautorefname{Section} ...
3
votes
4answers
149 views

Incorrect reference to a line in algorithmic using hyperref

I am using algpseudocode and algorithm packages to typeset pseudocode. I also use float, hyperref and caption packages. The problem is that when I reference a line in the pseudocode, the number is ...
2
votes
0answers
43 views

What is the label of the glossary? [duplicate]

I'd like to add a link to the glossary in my main text. See the \nameref{XXX} on page \ref{XXX}. So far I couldn't find out the name of the label of the glossary. There should be one, since the ...
0
votes
0answers
95 views

No caption label using minted with caption and hyperref

I'm trying to use the caption and hyperref with the listing environment and the minted package. If you compile the MWE, the listing will only show a number but no name. hyperref inserts a link, ...
1
vote
1answer
152 views

How to modify the label output in cleveref and varioref?

EDIT: The mentioned solution on the bottom of this page works perfectly for the label output. But now I am struggling with the distance of the \crefname and the counter. Instead of a space I would ...
2
votes
1answer
78 views

How do you make a reference from all page numbers to the ToC?

Hey fellow LaTeX users. Is there any way to make the page numbers in a document hyperrefback to the header of the TOC? It would be very useful in my document so I quickly could jump back and forth ...
3
votes
1answer
73 views

Differentiate reference based on type (problem with argument expansion)

Since I use unnumbered sections, I'd like to have a variation of \autoref that uses names instead of numbers in the case of sectioning, but keeps its usual behaviour for other environments. I've come ...
1
vote
1answer
134 views

create a link to open another pdf, not in the current directory [duplicate]

How can I make a hyperlink to a pdf file located somwhere out of the current directory of .tex file? For example, my .tex file is located in C:\myWritings and the pdf file to be linked in the tex is ...