{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)

17
votes
2answers
858 views

How do I discard a portion of an equation number when cross-referencing?

I am writing a LaTeX document in which I number equations within sections. Thus, in my preamble I have \makeatletter \@addtoreset {equation}{section} ...
1
vote
2answers
5k views

Label referring problem

I'm new here and new user of LaTeX I'm trying to write my PhD, intermediate reports with it and I am facing some problems. I tried to look on the internet for 2 weeks, but found no answer to my ...
38
votes
3answers
24k views

Warning: There were multiply-defined labels

I got a "LaTeX Warning: There were multiply-defined labels", and I know what it means but my document is pretty big and it has various files. So, how can I find the multiply-defined label? I am ...
5
votes
1answer
1k views

Include aux file in tex source?

I have a large book broken into several chapters, each of which reference each other heavily. I would like to be able to distribute individual chapters as self-contained .tex files. I can do this ...
27
votes
3answers
16k views

How to reference \paragraph?

It is well-known that \section environment may be assigned a label \label{refname} and then the refname may be used in order to reference this section: \section{My nice section} ...
19
votes
1answer
4k views

How to reference ranges rather than separate numbers?

I would like to do the following: Just type something like ... we describe this in sections \mycoolref{winter,spring,summer,fall} ... and it will be typeset as something like ... we describe ...
4
votes
1answer
630 views

Hyperref links linking to the wrong label.

I'm currently trying to write up some solutions to a set theory text, but some of my labels don't seem to be working correctly. I've uploaded it here, if it's perhaps helpful to look at. Anyway, I ...
30
votes
2answers
6k views

Label and caption without float

I’d like to have an environment that works much like a float, except that it doesn’t float. That is, in fact, I’d like to be able to define an environment that has a label and a caption. I ...
5
votes
2answers
774 views

Local and global cross-references

Sections are referenced in a lot of distinct places: In table of contents. Managed by \tableofcontents In minitocs. Managed by minitoc package In headers. Managed by fancyhdr package Like a leader ...
2
votes
1answer
221 views

Problems with theomac package to restate theorems

I have the following problems with the "theomac" package by Ulrich Diez (whom I don't know how to contact). This package is useful to restate theorems, and was mentioned e.g. here. Problems: Get ...
3
votes
1answer
852 views

Missing “Figure” title for captions of side-by-side graphics

Background Trying to reference the label of figures that are side-by-side. Problem Referencing figures by their label works, except when the figure is in a mini-page. That's when the word "Figure" ...
3
votes
1answer
540 views

Split Journal Paper into Multiple Parts [duplicate]

Possible Duplicate: How can I reference a table/figure/section in another document? I am writing a journal paper that has grown to 30 pages long, so I would like to split it into two 15 ...
7
votes
1answer
3k views

Problems with part-labels using titlesec

I'm using titlesec to define the layout of my headings. It's working but I've run into a problem when I use the package to define the layout of \part's. When I try to reference to a \part, which is ...
10
votes
1answer
13k views

How to Label and Caption a Tikzpicture inside a tabular environment

What is the correct way to label and captionize a tkizpicture inside a tabular environment? (Since figures are not allowed inside a tabular) Excerpt from my .tex: \begin{tabular}{l r} & ...
17
votes
5answers
4k views

Not using abbreviations with cleveref

I’d like to use the cleveref package but I don’t like that it inserts most names as abbreviations; for instance, it will print “… fig. 2.1 …” instead of “… figure 2.1 …”. Is there a way of changing ...
8
votes
2answers
2k views

Building labels out of counters

There is a simple version to my question, and a complex version. First, the simple version: I want to generate label names by combining a constant string with a counter's value, something like what is ...
2
votes
2answers
1k views

How can I reference a table/figure/section in another document?

I am writing documentation that includes three documents for different audiences: Public Staff Developers In the Developers document, I would like to reference a table or section in the Staff ...
10
votes
1answer
1k views

Refer to customized `enumerate` counter

Background I'm typesetting a list of conditions for a certain mathematical object. There are three conditions. Later on I wish to provide an equivalent condition for the third. Therefore, it would be ...
4
votes
2answers
439 views

showexpl LTXexample and references inside enumerate

I've used the wonderful LTXexample environment defined by showexpl to illustrate some LaTeX basics. However, the following code confuses it: the reference remains ?? no matter how many times I ...
4
votes
1answer
2k views

How can I get the chapter number like a prefix of all references

This was the problem I posted: "I need to output "see section 2.3" where the referenced section is the third on the second chapter." You all are right. I've to redefine the problem. Sections are ...
48
votes
1answer
4k views

Get the title instead of the number of a referenced chapter/section?

In my document I am referencing a section, e.g. \section{My Section}\label{test} Also see section\ref{test} This gives me, e.g. Also see section 1 but what I want is: Also see section My ...
21
votes
1answer
2k views

Selectively turn off hyperref links

I'm writing a document which includes a list of URLs that I want to be clickable, so I'm using hyperref to achieve this. This has the awkward side effect that my equation numbers, some of which I ...
5
votes
1answer
2k views

Table, Figure, and Listing prefixes

Background Using LyX and KOMA Script to author a technical manual. Problem The documents are strewn with the following references: \ref{fig:Example-Database-Type} When converted to PDF, this ...
5
votes
1answer
6k views

How do I use the IEEE bibliography commands?

I'm trying to layout a short article using the IEEE latex style guide. I'm having difficulty with the final part of their bibliography instructions as I want to reference an external .bib file. I have ...
18
votes
4answers
738 views

How exactly does \def\p@figure{Figure~} work?

I took this line from my thesis style and added it into my document (preceded by \makeatletter) and what it does that whenever I used \ref{figureid} instead of putting just the figure number, it puts ...
0
votes
2answers
2k views

Sections \label and \nameref [closed]

\documentclass[fleqn,12pt,a4paper]{article} \usepackage{fontspec,xltxtra,xunicode} \usepackage{fancyhdr} \pagestyle{fancy} \usepackage{color} \usepackage{setspace} \usepackage{hyperref} ...
12
votes
2answers
2k views

\autoref should call sections within the appendix “appendix” not “section”

I make use of autoref thoughout my now rather long document. I have an appendix with sections, though currently a small number, so changes could be made here. I want references in my document to ...
23
votes
3answers
2k views

How to get more complete references

Sometimes when I work I write something like \begin{proposition} \label{my new result} ... \end{proposition} ... blah blah in Proposition \ref{my new result} blah... but then I realize that the ...
0
votes
2answers
8k views

\label inside an align environment [closed]

It seems like whenever I use \label{an-label} inside the align environment, and then use to refer to it using \refeq{an-label}, I get the section number instead of the equation number. This does not ...
14
votes
1answer
771 views

Getting “You have to run LaTeX again to get the references right ” over and over again

on Ubuntu 10.04 with Emacs 23.1.1 and TexLive, writing a book (scrbook) spread over different files, I have the following problem: Doing C-c C-c in Emacs (the usual cycle LaTeX BibTeX LaTeX LaTeX) I ...
7
votes
1answer
673 views

References to specific lines in program source code

How do I make references to specific lines in program source code (e.g. Python)? For example, I want to say: In lines 22-30, the algorithm is implemented... If I changed the Python source code, ...
1
vote
2answers
529 views

Bibliography Autokey Generation in batch mode

Is it possible to generate the bibtex keys for many bibliography entries at the same time or in a batch mode? I am using Jabref for the bibliograpy database and get the bibtex key while inputting ...
6
votes
1answer
554 views

Modifying \autoref to behave (somewhat) like \vref

I would like to modify the \autoref command in the following way: if the \autoref command and the label are on the same page, it behaves like \autoref* (i.e., no hyperlink). Else, it behaves usually. ...
22
votes
2answers
20k views

Custom equations' names

Do you know ho can i call a reference to an equation using \ref or \eqref and obtain (name of the equation) instead of the standard counter? Thanks!
56
votes
2answers
6k views

How do I number equations only if they are referred to in the text?

I have a paper where all equations are numbered, but I want to number equations only if they are actually referred to in the .tex file using \ref{}. How can I make that happen? Alternatively, how can ...
5
votes
2answers
2k views

\nameref : how to get counter's label value instead of section name

Hi I build a customer list environment with a counter, and I'd like to be able to reference the name the label associated with the counter. The code below produces an output similar to this: ...
7
votes
1answer
397 views

How do I keep cross-references across several documents accurate?

This is a follow-up to my question about quality system documentation management. That question evolved to a different question and Charles suggested to ask a new one, so I'll just quote it here. ...
5
votes
4answers
5k views

Renew \ref command doesn't work

I'm trying renew \ref command to auto detect equation and figure. All my labels of equations start with "eq:" and all labels of figures with "fig:". So I try this way, but it isn't works for me: ...
2
votes
0answers
299 views

how do I refer back to counters? [duplicate]

Possible Duplicate: How do I repeat a theorem number? I want to set up a simple macro that would do the following: It would be very similar to \label{XX}, (say, \relabel{XX}) only instead ...
18
votes
2answers
2k views

Is there a way to have latex detect forward references?

I've got a very large document (which I've broken into "chapters" and such) which I've recently moved a few things around in. Is there a nice way to get latex to output a list of forward references? ...
32
votes
7answers
5k views

How to use \pageref{foo} as a number?

What I want to do is to show a "progress bar" in the header to show how far you are in the document, by making a rule with width pagenumber divided by total pages times the paper width. This is what ...
2
votes
1answer
282 views

Sectioning created via titlesec have wrong \label

I have created the following custom sectioning using the titlesec package. % in the preamble \newcounter{phase} \titleclass{\phase}{straight}[\section] ...
12
votes
2answers
2k views

How to set a marker/counter/label to an arbitrary piece of text?

Is it possible to attach a marker to just a place in text, not to section, sub-section, etc.? This is what I'm trying to achieve: \begin{document} Alex (see~\ref{alex}) is a boy, Jessica ...
5
votes
1answer
760 views

\ref giving incorrect number for \label in custom environment

I have defined a custom environment (using the tocloft package, thanx to Juan) that looks like: \newcommand{\listscriptname}{List of Scripts} \newlistof[chapter]{script}{spt}{\listscriptname} ...
3
votes
2answers
752 views

Label numbering gone crazy

I have redefined the enumerate counters to include the section number, and this works as expected. However, when I try to cross-reference text in my document, the number on the reference doesn't show ...
5
votes
1answer
125 views

Defining a command for linked and indexed section headings?

What is the (preferred way of) defining a command that places a heading (like \section, \chapter, etc.) creates a label for this heading that can be referenced places the heading in the TOC (I ...
19
votes
1answer
1k views

What does the hyperref option hypertexnames do?

The Manual of hyperref states that hypertexnames: use guessable names for links. What does this mean? What are the consequences of using this option?
10
votes
1answer
1k views

How to organize labels when there are too many equations?

I'm writing a moderately long text using LaTeX, and it's great to be able to organize chapters, sections, appendices, and everything else almost automatically. One thing has been bothering me though. ...
2
votes
1answer
1k views

htlatex leaves undefined reference (“??” link) but pdflatex produces correct output

We have a large document that runs through pdflatex and through htlatex. The pdflatex output is fully ok. The htlatex output is also ok (it contains all images etc.) except that for some ...
20
votes
2answers
7k views

referencing labels from other files [duplicate]

Sometimes I want to refer (using \ref) a \label from some other tex file. What is the right way to do it? (It's, of course, possible to \include all files in one and then use \includeonly — but it ...