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

5
votes
1answer
62 views

Where can I download upref version 2.04?

From this PDF, it looks as if the current version of upref is 2.04, but the version on CTAN is 2.01. Where can I download version 2.04? upref version 2.01 does not seem to handle italic corrections ...
4
votes
1answer
59 views

how to use cleveref with IEEEeqnarray?

Here is the codes. I have 3 questions about the labeling by using the packages IEEEtrantools and cleveref together. \documentclass{amsart} \usepackage[colorlinks]{hyperref} ...
1
vote
1answer
49 views

table number is off in cross-references

I have a longtable and a regular table that were generated by a statistics package. I am inserting then into an article like this: \input{../Tables/sum_stats.tex} \label{sum_stats} and then ...
0
votes
1answer
55 views

Update references each time LaTeX compiles document

When I use my TeXnicCenter and hit the compile button I want that all references are updated ... So I don't have to compile 3 times till all those references update. Because with a bunch of pictures ...
2
votes
1answer
27 views

Referencing figure in adjustbox

I have rotated my figure to 90 degrees using adjustbox as follows: \begin{figure}[ht] \begin{adjustbox}{addcode={\begin{minipage}{\width}}{\caption{% My caption ...
2
votes
2answers
35 views

Cross-references and citation call-outs in color

I want to know what are the packages that do the following. When I cross-reference an Assumption or Theorem or cite a bibliographic entry ... I want that it will be colored in blue. I will put images ...
3
votes
0answers
28 views

How to get the counter value for a reference? [duplicate]

The command \label{here} defines a label and \ref{here} outputs the corresponding representation in the text. Is it possible to get the correspondig (numeric) counter value for the here reference so ...
2
votes
1answer
34 views

Using xr to refer to another document without hyperref

I have two documents A and B. I wish to refer to theorems and lemmas from A in B. To do this I am using the package xr in B. If I use the package hyperref in B then it's all fine. Otherwise, when I ...
4
votes
2answers
110 views

Change from capital F in \figurename

To save some time when writing reports I usually define something like: \newcommand{\figref}{\figurename~\ref} I use the variable \figurename because I want to use the same code for writing in ...
3
votes
1answer
41 views

Incorrect formatting when cross-referencing equations

I am having trouble correctly formatting cross-referenced equations. When I reference an equation I would like the equation number to appear on the far right-hand side of the page, just as the ...
0
votes
0answers
44 views

Reverse figure links

I like the way that hyperref provides links from references in the text back to figures or equations but at times I'd actually be interested to have the reverse work as well. Such that figures and ...
0
votes
0answers
46 views

How to make reference to a codebox?

I am using the clrscode3e package to typeset pseudocode and I want to make reference to the procedures in codeboxes to produce something like "Procedure InsertionSort". How to do that? For example, ...
4
votes
2answers
62 views

Setting the enumi counter under parametrized enumitem

This is a variation on two previously asked questions: Setting the enumi counter under custom enumeration with enumitem and Looking for a numbered List, with parameter, custom label and custom ...
1
vote
1answer
300 views

Biber Problem in OSX: why references not compiled?

[Update] This is solved thanks to Adam Liter's contribution in chat. This is summarised to a community answer below. I cannot understand why the references do not get compiled. I am running Yosemite ...
9
votes
1answer
44 views

How do define label system with labels given by counter?

I would like to have two commands \makelabel{foo} and \referlabel{foo} to be used as in the example \documentclass{article} \usepackage{amsmath} \begin{document} \[ A \overset{\makelabel{foo}}{=} B ...
5
votes
1answer
267 views

How do I use the target caption of a \hypertarget as the link caption in a \hyperlink?

I'm building a software requirements document and using my own set of counters to generate unique requirement identifiers. I'm also grouping different requirements into longtables, e.g. ...
4
votes
1answer
36 views

Line number in cross reference

Cross references in Latex allow me to print the page number of a reference. How can I print the line number too (for instance the word Lily appears on page xxx, line xx)? Thank you, A
5
votes
3answers
123 views

How can I get my IDE to recognize listing labels?

I'm using the listings package to print code snippets. My IDE is TeXstudio 2.8.8. I mention this for the sake of completeness - I assume the behaviour is the same for all IDEs, which is why I wrote a ...
0
votes
0answers
34 views

In-line citation using cross-referenced bibliography

I am trying to place in-line citations using a bibliography built in a separate LyX file. For example, I have Document1.lyx and I'd like to cite John Doe who wrote a paper on the subject I'm ...
11
votes
2answers
167 views

How to compare the output of \ref to a number?

I want to compare the output of \ref to a number in LaTeX. I thought it would be easy but after spending lots of hours surfing the net I still don't know the answer. I found similar questions on this ...
0
votes
1answer
68 views

All figures at end of section (or Chapter) but in the order they were cited in the text

I've been trying to do this for so long, it would make my life so much easier. I have a *.tex file containing all the details of the figures in a chapter (but not necessarily in the right order), ...
1
vote
1answer
34 views

citing reference

when I cited reference in theorem environment, the complied result is of the form Lemma 4.1. [ 10, Lemma 5.1.] A is of full rank. Namely, the font is oblique. But I want the form of Lemma 4.1. [ ...
1
vote
1answer
44 views

Using \lstinputlisting to include portion of file using labels instead of line numbers

I know I can include a portion of a code file like so: \lstinputlisting[language=XML, firstline=37, lastline=45]{source_filename.xml} But the line numbers will change if I modify the code file. Is ...
1
vote
0answers
74 views

TeXMaker auto-completion corrupted for new FIGURE command including label

I defined a new command \FIGURE, which takes all arguments for the filepath, label, short/long caption and size and then builds a figure environment for this. I.e. I also define the label for this ...
2
votes
1answer
50 views

“Label multiply defined” when using ifthispageodd in includeonly

I am using several \included files and within them several instances of KOMAs \ifthispageodd mechanism like in the following MWE: \documentclass{scrbook} \begin{filecontents}{fileA.tex} ...
15
votes
5answers
3k 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 ...
1
vote
0answers
47 views

glossaries: display `see` reference but not page numbers

I am trying to display the see cross references but not the page numbers in my document. I understood that it's impossible with the means provided by standard, so I tried to use ...
3
votes
1answer
49 views

Cleveref does not sort self defined tags

Because I have many equations in my document and most of them do not need to be referred to, I always use \begin{align*}...\end{align*}. For the times I do need an equation number I have written a ...
1
vote
1answer
339 views

Having hyper-referenced items for the symbols in a nomenclature table

I am trying to replicate the following picture, with some modifications, in my thesis which shows a nomenclature in a long table format. I want to have this along with classicthesis package version ...
0
votes
1answer
44 views

redefine \ref{…} commands - TeXMaker ref auto-completion

I am redefining my reference command, to more easily reference chapters, tables, figures, etc.. Here e.g. for chapters \newcommand{\CHAPREF}[1]{chapter \ref{#1}} %Reference template for chapter ...
1
vote
1answer
74 views

Insert labels inside table rows

I have a long table with different equation, I need to make a label and then refer to them in some cells, trying to do that by putting usual label giving me wrong results in LyX, more precisely if the ...
0
votes
2answers
92 views

Referencing appendix returns chapter number instead of letter (memoir class)

I'm using an adapted version of the memoir class to typeset my thesis. I'm attempting to add an appendix, which I will reference in various chapters. Here is the basic code (to compile, need ukthesis ...
3
votes
1answer
93 views

Separate bibliography for articles

I have a bibliography that mixes every refrence type (mostly books and articles together). Now, I would love to be able to separate only the articles from the rest and display them under a separate ...
1
vote
1answer
34 views

Ref command does not work in pseudocode

I want to use \ref command in my pseudocode like this: 1st Line : "mut Eq. x" 2nd Line :"cr Eq. y" 3rd Line :"sel Eq. z" But i am getting "Latex Error : Command \item invalid in math mode" in the 2nd ...
0
votes
1answer
19 views

showlabels package and segmented document

I have a segmented document, namely I import packages through \input{Preambule}. However, the showlabels package does nothing when called in the Preambule file, but works when called in the main. ...
2
votes
0answers
38 views

How to cross reference between different beamer presentations

for my lectures I am preparing beamer presentations. I would like to include sections (possibly more than one in a single beamer presentation) and to be able to have continuing numbering of ...
2
votes
1answer
34 views

hide specific table, keep cross-references and caption in \listoftables

I have some supporting tables in an article that need to be submitted as a separate pdf file, however I need the cross-references and table numbers with captions (\listoftables) in the main document. ...
2
votes
1answer
67 views

How to automatically links questions and solutions with the Exsheets package?

I'm writing up some lecture notes that contain questions/problems for the reader scattered accross the text. The solutions are provided in the end of each chapter. Exsheets appears to be a nice ...
6
votes
3answers
1k views

How to draw legend lines in caption/text without including original plot's TikZ picture?

I would like to reference some plot lines in text/captions. It is possible by defining a label for the plot in the corresponding axis environment. However, I'm using externalization and only want to ...
5
votes
1answer
48 views

Making \cpageref output commas instead of “and”

I can use \cpageref to output a list of page references. For example, the markup: You should check \cpageref{sec:section1,sec:section2,sec:section3}. ... renders as: You should check pages 3, 5 ...
5
votes
2answers
4k views

Figure reference \ref{fig:result} renders as ?? in PDF

I have an article with the following figure (there are 2 small charts near each other, horizontally): \begin{figure}[h] \centering \includegraphics{left-graph} \includegraphics{right-graph} ...
2
votes
1answer
94 views

Multiple Altconditions within LaTeX Document

The question refers to this solution and trying to modify the code to support multiple altconditions in my document. The problem is to allow two sets of alternative conditions within the same ...
1
vote
0answers
32 views

Include file with prefixed labels

Say I \include A.tex and B.tex in main.tex. Say A.tex has something labeled in it, \label{a}. Then I can just reference this in B.tex as \ref{a} without any problem. I don't want to be able to do ...
0
votes
2answers
110 views

How to create labels and references automatically in LaTeX?

I have defined two custom macros: \translation{ORIGINAL}{TRANSLATION} \printtranslations The first macro prints out the translation and puts the original and the translation into a list. The list ...
5
votes
1answer
95 views

Automate generation of table from data in enumerated lists

I'm working on a document that contains the requirements and specification for a code suite, and I'd like to create a requirements traceability matrix that shows what part of the spec covers each ...
0
votes
0answers
33 views

stand-alone tex file for cross reference

I'm writing a the supplementary material (I'll call that sup.tex) for a paper that uses the xr package to do cross-referencing for equations, as in \usepackage{xr} \externaldocument{foo} which ...
8
votes
2answers
1k views

Using the xr package in LyX (for cross-referencing an external LyX document)

Question: What steps are required to use the xr package in LyX in order to reference items in other, independent LyX documents? Steps already taken: The tools package (that contains the xr package) ...
0
votes
0answers
21 views

memoir does not generate figure cross reference [duplicate]

I do have this short file \documentclass%[colorlinks=true] {memoir} \usepackage[pdftex]{hyperref} \begin{document} %\chapter{first} Here goes the figure. \begin{figure}[!h] \label{fig:MyFigure} this ...
2
votes
1answer
51 views

Unexpected output when citing in afparticle class (apacite/natbib)

I compiled the source below and got the output following: \documentclass[preprint]{afparticle} \begin{document} \volumenumber{1} \issuenumber{1} \publicationyear{2015} \publicationmonth{July} ...
5
votes
1answer
102 views

Hide content to show later

My question appeared about this egreg's answer: http://tex.stackexchange.com/a/210564/15256 I have a list of exercise-answers but I don't want to show the answers immediately but after till I'll pull ...