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

12
votes
2answers
3k views

In align environment, how can you label some (but not all) of the equations?

I know that the align environment labels all the lines, while the align* environment labels none of the lines. Is there a way to have the align environment label only some of the lines? For example, ...
7
votes
1answer
256 views

Get \ref for equations working like \cite for contiguous references

When referencing a list of equations like see Eq.12, 13, 14 and 15 the \cite command behaviour, which allows a single list of references, should be preferred I think. Is there something equivalent for ...
7
votes
2answers
2k views

Figure numbering without the figure

It is quite common for academic journals to require article submissions to not include the figures, which are submitted separately. Then the journal staff position the figures in the text manually. ...
1
vote
2answers
2k views

How to achieve links in a part ToC in a beamer presentation?

I red \tableofcontents from \part commands in Beamer, and it was very helpful. However, I wanted the part titles to be links pointing to the pages the part began. The example without this works just ...
8
votes
2answers
429 views

How do I get references in subscripts to be the right size when compiling to dvi with hyperref?

(Having investigated the original question, I'm taking the liberty of re-writing it as I've found a MWE and so isolated the problem, but I don't know a solution. Andrew Stacey.) The scenario is as ...
2
votes
1answer
4k views

Multiple captions for a single figure

How do I get subfig-like captions for a single figure? I've got images that have multiple panels each, and I'd like to make a caption for all the sub-panels, as well as be able to reference each ...
2
votes
1answer
179 views

Multiple labelled expressions on one line

I have several tall, thin expressions - graphical diagrams - which I need to label as if they were equations. Given their shape, it would be mad to have them displayed one underneath the other. I ...
46
votes
1answer
4k views

How can I get LaTeX to warn about unreferenced figures and unused labels in general?

When writing documents, I consider it to be necessary that all figures and tables are referenced (\ref) in the text, whether or not I've remembered to \label them. LaTeX does not currently warn if a ...
2
votes
2answers
1k views

Where to add a caption and a reference to a tabbing&fbox&minipage

I put some texts enclosed within tabbing, embedded in fbox and minipage: \fbox{% \begin{minipage}[t]{0.48\linewidth}% \begin{tabbing} \quad \= \quad \= \quad \= \quad \= \quad \= \hspace{5cm} \= ...
5
votes
1answer
519 views

subcaption: how to redefine default separator between figure and subfigure number in \ref's?

I am migrating from subfig to subcaption package and wondering how to make the following thing. The subcaption labels in floats should look like a single italic letter in brackets (a), and ...
2
votes
2answers
386 views

What do these cross-referencing and code macros mean?

I was searching around my editor and found some templates that I never used before and I was just wondering exactly what do they mean and do. Someone can edit the title is you have a better ...
8
votes
1answer
1k views

Name of current section/figure

I'm looking for a LaTeX command, say \foo, which expands to the type of section I'm in. In the following, the first \foo should expand to "Section", the second to "Subsection", and the third one to ...
5
votes
1answer
657 views

Multiply defined label warnings when using Subcaption in a Tikz picture

In an earlier question, I asked how to create zoomed highlights of a larger image automatically. User Jake provided an excellent solution using TikZ. However, when subcaptions and hyperref are added ...
6
votes
2answers
2k views

“Manual” customizable reference text

For a document I am writing, I am considering a table indexed by references to positions in the text with a description of each item. I know already that I can create a phantom section, and make a ...
5
votes
2answers
130 views

How to get chapter numbers to work in sections with memoir pagestyle{headings} and using babel?

I have a very strange behavior which I have managed to get boil downed into this minimal example. It's probably a bug report for either memoir or babel developers (where should that be sent?) but I ...
9
votes
3answers
4k views

Unable to link to inserted pages with pdfpages

I would like to add labels to pages inserted with the pdfpages package. I sort of works right now, but it is not possible to link to the labels with \ref and \pageref commands. But it is possible to ...
5
votes
3answers
3k views

How to get autoref working with different counters for different listing environments?

In my document I want several different custom listing environments. The solution from fraktalek works like a charm, except for one thing: \autoref doesn't work for me. I have tried the following: ...
10
votes
1answer
1k views

Selected references without hyperlink

When using the hyperref package, is it possible to tell LaTeX not to create a link for some references? In my case the page number is displayed in the footer in \fancyhf[FC]{\thepage\ of ...
10
votes
3answers
2k views

Reference source code line in minted package

Does anybody know a working example, where a source code line is reference in minted? I have not found any help till now how to do this? \begin{minted}[linenos=true]{c++} bla bla bla bla ; ...
16
votes
1answer
33k views

Article appendix with sections and toc entries in the form “Appendix A”

I have been trying to get the appendix for my thesis done. I've read a lot about it and as always you can chose between a fiddly way and a magic package that doas the job to solve a problem (I usually ...
9
votes
2answers
1k views

autoref names messed up when defining certain ntheorem theoremstyles

I define a theorem style pretty innocuously, to get things looking a bit more like amsthm theorems. But - my \autoref{}s become messed up with optional arguments of theorem environments. ...
3
votes
1answer
300 views

Varioref does not refer to the same page in the right way, i.e. 'on this page'

I've got a problem with the varioref package: Whenever I want to refer to something that is on the same page as the reference, varioref normally printed something like 'X on this page' or 'X auf ...
5
votes
1answer
336 views

How to find absolute page number as an integer?

Is there a simple way to retrieve an absolute page number from a label, where by absolute I mean counting all pages as integers sequentially starting from the first page of the document, without any ...
5
votes
1answer
254 views

Shortened page-ranges from \pageref

In some typographic conventions page-ranges are shortened to save space, e.g. writing "1234-35" or even "1234-5" instead of "1234-1235". I would like to have a \pageref{foo}--\pageref{bar} ...
0
votes
2answers
481 views

ntheorem + autoref + aliascnt cause TeX to exceed grouplimit capacity

I'm using MikTeX 2.9. When processing the following: \documentclass{article} \usepackage{hyperref} \usepackage[hyperref]{ntheorem} \usepackage{aliascnt} \newtheorem{lemma}{Lemma} ...
3
votes
1answer
524 views

State where within the book a reference was cited

I am using a plain sort in my thesis. However, ordering the authors by last name does not help the reader find where the author/reference was cited within the book. Using the unsrt option would not ...
14
votes
2answers
13k views

Table numbering mismatch in caption and in text

I have created 2 tables in my LaTeX document \begin{table}[hb] \centering \begin{tabular}{|c|c|r|} \hline ... not important... \end{tabular} \label{tab:2} \caption{Določanje prioritet mojstrov ...
10
votes
1answer
4k views

Problems with \ref when using soul for highlighting

Here is a minimal example showing the problem. \documentclass[10pt]{article} \usepackage[usenames,dvipsnames]{color} \usepackage{soul} %\soulregister{\ref}{1} \begin{document} \section*{x}\label{x} ...
12
votes
3answers
742 views

Extended draft mode which includes source information for manual print-out to source synchronisation

I'm looking for a kind of extended draft mode which places the source code position of paragraphs, sectioning commands and figures etc. as marginpars or similar in the PDF, so that they appear on a ...
2
votes
1answer
142 views

Numbering and cross-references

I am writing a large document (guess what) with chapter, section, subsection, subsubsection (and paragrph). I have changed the numbering to fit my taste: \setcounter{secnumdepth}{3} % Number ...
4
votes
1answer
144 views

Printing selected chapters without affecting cross-referencing

I am writing my thesis in Lyx and for some reason, probably due to the style sheet, I am unable to print the complete thesis. It gives weird errors. However, individually all chapters are easily ...
3
votes
1answer
131 views

Bidirectional Reference/Label Commands

I've written a synopsis section for each chapter of my thesis, and I'd like to refer to various sections or subsections using \label and \ref commands. However, since the synopsis precedes the ...
3
votes
3answers
1k views

Is it possible to change the appearance of a \ref ?

I am using article class, and by default, the numbers of the sections, subsections appear like 1 section, 2 section in time I want them to appear like 1. section, 2. section (with dots). I have ...
3
votes
1answer
3k views

Theorem (definition) numbering

I have two definitions defined as follows: \newtheorem{definition_1}{Definition 1}[chapter] \begin{definition_1} \label{def:def_1} Definition 1 text here. \end{definition_1} ...
3
votes
2answers
2k views

Manually set figure and table labels while compiling

I would like to manually set certain figure and table labels in LaTeX2e. I imagine the process to go something like: latex -> edit .aux file (?) to revise some labels -> pdf The problem: the apa6e ...
2
votes
2answers
698 views

Use \ref in PDF images included with \includegraphics

I prepare my figures in a drawing tool (OmniGraffle), export them to PDF and then use \includegraphics to include them in my tex file (which is compiled using pdflatex). Some of these figures have ...
5
votes
2answers
8k 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
292 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
272 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
245 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 ...
15
votes
4answers
8k 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
2k 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 ...
18
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.} ...
15
votes
2answers
18k 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} ...
8
votes
4answers
538 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 ...
16
votes
1answer
6k 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
260 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
508 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} ...
1
vote
1answer
222 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. ...
6
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} ...