{cross-referencing} is about making connections from a point in a document to related information elsewhere, usually within the same document. Standard commands are \label and \ref. For questions about citing or bibliographies, use {bibliographies} instead.

learn more… | top users | synonyms (1)

10
votes
2answers
13k views

Referencing within an align environment

The following LaTeX document: \documentclass{article} \usepackage{amsmath} \begin{document} \begin{align} E=mc^2 \\ \nonumber E=mc^2 \label{eq1} \end{align} ref \ref{eq1} \end{document} Does ...
0
votes
1answer
301 views

Cross-referencing error in appendix

I have a problem with cross-referencing in the appendix of the document I'm writing, \ref is not working properly and I only get ??. I'm using a LaTeX template for writing Ph.D. Thesis that can be ...
2
votes
2answers
281 views

Looking for a numbered List, with parameter, custom label and custom reference text

I will give an example of what I need exactly. The output should look like the default description list, with numbered labels. REQ-ABC-001 Lorem Ipsum ... if the text is longer than a line, ...
1
vote
1answer
254 views

How to refer to sections in different files? [duplicate]

Possible Duplicate: Cross-referencing between different files I am new to LaTeX. I am using \ref{sec:relat-work-import} to refer to sections in different places in the file. I would like to ...
18
votes
4answers
10k views

custom counter and cross-referencing

I created a custom counter 'rtaskno' and a command '\rtask' as following: \newcounter{rtaskno} \newcommand{\rtask}{% \stepcounter{rtaskno}% \thertaskno} I like to use them as following: \...
2
votes
2answers
3k views

Using non-numeric ((sub)sub)sections changes the way of how \ref is displayed

I have some issue with LaTeX and I haven’t found a solution yet. So hopefully some of you can help me. I'm writing a big article with four levels of sectioning (so I'm using paragraph for the lowest ...
19
votes
3answers
1k views

Is there any difference between nesting \label in \caption and putting \label outside \caption?

Is there any difference in behavior between the following coding styles? Coding style A: \caption does not enclose \label. \begin{figure} \includegraphics{cat.eps} \caption{This is a cat.} ...
16
votes
2answers
21k views

Reference multiple subfloated figures using \ref{X,Y,Z} to give Fig. 1a,1b,1c in text

I want to reference labels in the sentence, as above in the code: like this - \ref{X,Y,Z} to give "Fig. 1a,1b,1c" or "Fig. 1a-c" in text. \documentclass{article} \usepackage{subfig} \usepackage{...
8
votes
4answers
546 views

Making an “auto-counter” command - test whether a reference marker already exists?

I'd like to be able to number arbitrary objects (in my case, chemical compounds) within a document. Ideally this would involve a command a bit like \ref, but where you don't need a \label. The label ...
20
votes
1answer
10k views

Reference to a figure uses the section's number

One of my sections seems to be using the section number rather than the appropriate figure number for \ref's that point to figures. (Theorems and the like work fine.) As far as I can tell, there's ...
3
votes
1answer
270 views

Is pdflatex a one pass compiler?

I was wondering why pdflatex displays some references in the text as question marks the first time that the file is compiled? For instance, with bibliographies at the end of an article that are ...
1
vote
1answer
533 views

Reference not found

When trying to reference to an appendix using autoref using the following code: \documentclass[10pt,a4paper]{article} \usepackage[titletoc]{appendix} \usepackage{hyperref} \begin{document} \section{...
1
vote
1answer
227 views

Tabulating all labelled equation numbers with their labels in latex

Is there any way in Latex to collect the labels for references from a document in a table? I'm writing a long document but would like to collect together my references of various kinds (i.e. equations,...
7
votes
1answer
3k views

Undefined reference: autoref points to section instead of figure or table

Here is a minimum working example (an image 'test.png' needs to be in the working directory. I used this one.) % Created 2011-05-23 Mon 15:21 \documentclass[11pt]{article} \usepackage{graphicx} \...
10
votes
1answer
1k views

Cleveref with counters with same name

I am trying to use the cleveref package. I have the following counters defined (hopefully this is the right way to do it!) \newtheorem{thm}{Theorem}[section] \newtheorem{lemma}[thm]{Lemma} \...
7
votes
3answers
4k views

How to add combined cross-references for two subfigures?

I want to have two subfigures, and then reference them like "as seen in Figure 2a,2b" -- so to combine them. How can I do this? (or if you know a better way in lyx or latex)
1
vote
1answer
250 views

Convert latex conference paper to html with figures and bibliographic references

I wrote a paper for a conference in latex format. It contains figures and bibliographic references. I got the output in PDF format and it looks fine. Now I would like to convert it to HTML. I just ...
23
votes
1answer
9k views

Is there a standard way to refer to a range of equations?

I have occasionally wanted to refer to a range of equations in my document. So far, I've been using Equations~\eqref{firstEquation}~--~\eqref{lastEquation}, which produces something like "Equations (...
5
votes
1answer
1k views

How to make cross-referencing with shorthands?

Could somebody help me to make shorthands when I cite entries Inproceedings with Proceedings as crossref? I use this code: \documentclass[a4paper]{article} \usepackage[T1]{fontenc} \usepackage[...
1
vote
1answer
103 views

Citations across tex files

I have a strange problem that I can't resolve. In my main *.tex file I have \input{Chapter1VB.tex} \input{vbq.tex} \newpage \input{Chapter2VB.tex} In the first tex file I have \begin{thm}\label{...
12
votes
1answer
897 views

Using cleveref with enumitem's newlists

I'm trying to typeset a proof of a theorem, and I'd like to produce the following output: Case 3: my text goes here and it can wrap to another line, wherein I have subcases: Case 3.a: ...
30
votes
1answer
1k views

What are the valid names as labels?

What are the valid characters to use in labels? I thought that only alphabetic characters were valid, but I tested ' and ! and they work. What are the restrictions to these names?
18
votes
6answers
7k views

Defining custom labels

Is it possible to define a directive which creates a custom label which I can later reference on multiple locations with \ref{...}? For example: ... \createlabel{l-foo}{22} ... % later in document: ...
8
votes
1answer
151 views

How does one extract specific attributes of a label e.g. just the section number?

I'm using hyperref and calling \autoref to refer to tables, sections, chapters, etc.. However, sometimes I just want to refer to the section number of a table (e.g. 7.2 as opposed to Table 7.2). How ...
3
votes
1answer
480 views

Lineno \internallinenumbers - how to make a line number label within a figure?

This concerns the "lineno" package. The \linelabel directive works within the ordinary linenumbers environment. How to create a line number label within a internallinenumbers environment to be able to ...
3
votes
1answer
4k views

Reference to figures in appendix is not printed properly

When citing a figure in a section in my report body, the reference prints the correct number: Figure\ref{fig:UML} illustrates complexity arising from the non-modularity of the existing design: ...
7
votes
2answers
587 views

How to link to a label using specific text

So I am writing a programming book and I have a code example in it that I have labeled \label{ex11}. How can I later in the document make a link to it using custom text? For example, I am writing ...
3
votes
1answer
316 views

Inputenc: utf8 characters in cross-references

I am using the hack given here as accepted solution to refer to a description list item by name instead of number. It works nicely, except when one of the words in the name ends with a non-ascii ...
0
votes
1answer
1k views

Cross-reference to an entry in the toc?

Is there any way to cross-reference to sections/subsections via their title? I find myself writing "Please see section 4 for more details", and it gets annoying very soon, especially when I have to ...
6
votes
2answers
356 views

What's the best way to reference examples?

I am writing a programming book on AWK in Latex and I have hundreds of code examples, for example, awk '1; { print "" }' I am curious how can I reference the example later in the book. At the ...
5
votes
2answers
3k views

How can I use \footnotemark with a \ref argument?

I want to refer to an existing footnote and I'm not happy with the workaround given here: http://anthony.liekens.net/index.php/LaTeX/MultipleFootnoteReferences I found that I can put a \label inside ...
6
votes
1answer
2k views

Can I change \ref's output?

When I use \ref to cross reference a \subsubsection, I get the output IV-B4 (at least using the IEEEtran document class). Can I change the output to something like IV-B.4)?
9
votes
4answers
23k views

subfigure - how to eliminate (a), (b), …

I am using the subfigure package to reference parts of a figure. It works just fine when each of the subfigures is a single plot and I want LaTeX to insert labels (a), (b) ... under each. However, for ...
3
votes
1answer
88 views

Un-fulfilled reference listing

Is there a simple way (i.e not inspecting the output of a processing run) to get a list of un-fulfilled references? As in, if i reference something \ref{SomethingReallyCoolIHaventThoughtOfYet} ...
17
votes
4answers
10k views

Adding parentheses around subfig references

Say I have a figure with two subfloats inserted using the subfig package. When I reference them with \ref{myLabel} I get this Figure 3.5a and 3.5b. But what I want is this: Figure 3.5(a) ...
3
votes
1answer
4k views

Appendices in separate file (Cross Referencing)

I have a big report with appendices. Now I would like to put my appendices in a separate file. That's no problem at all. But I refer to my appendices in my main file. What would be the easiest way to ...
4
votes
2answers
5k views

\pageref points to wrong page number

I'm having a small problem with \pageref{} in LaTeX. I have a quite a large document, and towards the end I point to specific pages in the text. Using hyperref, the link jumps to the correct part of ...
7
votes
1answer
109 views

Is there any way to get references to automatically update between files on one computer

I suspect the title doesn't really do justice to my question, so let me try to explain a bit more carefully. I have a couple of situations now where I'm working simultaneously on closely linked ...
0
votes
0answers
263 views

Include image in a table [duplicate]

Duplicate of: How to Label and Caption a Tikzpicture inside a tabular environment I am trying to include an image inside a table cell. But I am declaring the image using the figure environment,...
9
votes
1answer
498 views

Reference to page-range: can LaTeX convert “3-4” to p. 4f or “3-5” to p. 3ff ?

The varioref package can also cite page ranges by defining a reference to 2 different labels with \vpagerefrange. I did not find information about an option which allows to typeset "5-6" as "5f" ...
8
votes
1answer
357 views

Reference to page-range -> can I avoid using 2 labels?

I'm quite often using references to corresponding sections or text blocks in my thesis. In consequence, I've already defined a lot of \label{} commands, which I tried to classify with a naming ...
16
votes
2answers
1k views

Suppress equation number when not refered to [duplicate]

Is is possible to use only equation or align environments without the * and then automatically suppress the equation number if there is nothing refering to that equation? It would make the LaTeX-life ...
11
votes
3answers
2k views

How to use the content of \title{} as a reference?

I want to be able to reference to my document title by name. How can I achieve that? \documentclass{scrartcl} \usepackage{hyperref} \begin{document} \title{Example}\label{title} \author{me} \...
26
votes
2answers
5k views

Multiple references with \autoref

I am currently using the \autoref command from the hyperref package to refer to my theorems etc. However, I want to be able to (easily) refer to two or more theorems/lemmas/..., e.g. by calling ...
4
votes
2answers
316 views

Expand within \label

Is there any way to use a macro within a \label tag? \edef\num{1} \label{test\num} \ref{test1}
1
vote
1answer
195 views

How can I change \ref s output from 5.1 to “some text”

I'm currently developing a doclet which translates javadoc to LaTeX. I'm compiling the LaTeX document using pdflatex with a sty file I have from my school it generates a PDF document with links (red ...
2
votes
1answer
1k views

\eqref in italic math environnment

When using the amsthm package with the \eqref command, things may not be correct. When the main font of a theorem is italic, the \eqref is non-italic while \ref is italic. Please, see the provided ...
7
votes
6answers
3k views

How to get a list of all the labels in a LaTeX document in WinEdt

I am writing a large document using LaTeX and WinEdt. I have labeled each chapter, section and so on. I would like to print out a list of just the labels (so that I don't duplicate one later on, and ...
23
votes
2answers
53k views

How to link an equation in LaTeX

I am wondering how I can link an equation in LaTeX, I mean when I click on the link then I'll be directed to that specific equation.
66
votes
3answers
37k views

Cross-referencing between different files

I want to cross-reference between different .tex files, just because I want to put every chapters separately. Let's say in file chapterI.tex I have \label{a} and I want to access this in file ...