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

0
votes
0answers
41 views

Collection of 'clickable' resources in LaTeX

Coming from software development, I'm used to Cmd+click on resources in my IDE to open a referenced file or to jump to a certain position in the current file. Currently and in TexShop, one can rely on ...
6
votes
1answer
27 views

imakeidx \see clash with \backmatter

I wonder if someone could explain what's happening in the following MWE, where the use of \backmatter will make disappear the index crossed-refs (\see and \seealso commands); try uncommenting ...
4
votes
1answer
43 views

How to add text to a title without it appearing in the reference?

I'm trying to make a section title with additional information next to it. Currently I'm simply changing the style and adding the text directly to the section title but it has the unintended side ...
1
vote
0answers
14 views

Cross-reference auto-completion with Subfile

I'm using Sublime Text 3 with LatexTools for my document. I have a document main.tex, which has subfiles Chapter1.tex, Chapter2.tex, etc. I would like to be able to have auto-complete for my ...
0
votes
0answers
19 views

Make a hyperlink in Latex document [duplicate]

Currently I am labelling equations in Latex by \label{name} and quoting them again with \ref{name}. Now I saw in quite a few papers that it is apparently possible to have not just a reference ...
2
votes
1answer
29 views

Make reference to the name of the thing you refer to

I'm giving an example \section{About Cats and Dogs}\label{sec:catsdogs} some text [...] In Section \ref{sec:catsdogs}, we have ... I know there's a command \nameref{sec:catsdogs}, but this just ...
2
votes
1answer
13 views

Different reference headings using chapterbib

I'm writing my thesis, in which I have a few chapters. Each chapter is included as a separate file. I use chapterbib to generate a separate reference list at the end of each chapter by the following ...
1
vote
0answers
24 views

Recent alternatives to the historian package

The historian reference style is almost exactly what I need, but it's causing a lot of errors and seems to be kind of outdated. Are there any recommended recent alternatives? I need footnote ...
3
votes
1answer
28 views

Printing Caption of an environment in text automatically

Consider the following situation Suppose that I have several environments, each with a caption. To be clear, suppose that I have the following environments: \newtheorem{theorem}{Theorem} ...
4
votes
2answers
31 views

Refer to the item that follows a certain label/reference

We are creating use cases with a scenario represented by an enumeration: 1. Do step 1 2. Do step 2 3. Do step that can fail Some steps can trigger an alternative scenario that are listed as ...
2
votes
1answer
24 views

When referencing a figure, make text and figure name clickable

When referecnging a figure, you write something like: \begin{figure}[here] \includegraphics[width=0.9\textwidth]{images/example.jpg} \caption{A figure} \label{figureExample} \end{figure} and to ...
3
votes
1answer
54 views

Hidden line numbers

MWE: \documentclass[12pt]{book} \usepackage{lineno} \begin{document} \chapter{Hidden Line Number}\label{cha:hln} \linenumbers %\begin{nolinenumbers} One Two\linelabel{two}\label{two} Three The ...
3
votes
1answer
53 views

Label a word or sentence?

Is it possible to refer to a word in a sentence? Example: Hi, I love\label{Word: Love} learning so I ask a lot of questions. I would like to refer to the word "love" in the above sentence. For ...
8
votes
1answer
149 views

How to refer to section*{Masi}?

Assume you have \documentclass{article} \begin{document} \section*{Methods} Please, see Section \ref{section:lorem} for the evaluation of this topic. \section*{Evaluation} \label{section:lorem} ...
1
vote
0answers
21 views

No references generated [duplicate]

I'm pretty new to latex but I'm having a real problem generating references. Here's my tex file \documentclass[11pt a4paper]{report} \begin{document} This is the first reference \cite{Shaklee1971} ...
0
votes
1answer
25 views

New page for chapters but not for sections

I would like my report to show the chapter headings in the next page but the sections on the same page. It is a double page report. \documentclass[a4paper,12pt,twoside]{report} \chapter{Introduction} ...
0
votes
1answer
49 views

Numbering equations

If I am writing a LaTeX document on TexMaker and I want to number my equation but most probably I will be adding details later on and I do not want to fall into retyping it all over again. So if for ...
2
votes
3answers
96 views

Label my own items

I am writing a small financial report by latex... There are several expenses which repeat quite often in the whole report, for instance food, hotels, train tickets, etc. I think it will be convenient ...
2
votes
3answers
80 views

cross references across chapters

I renewed my command for chapter/section...etc So I don't see the chapter number in all (sub)sections name. Also the point was that when I'm in a chapter and I use \ref to reference to a section of ...
2
votes
1answer
19 views

How can I get correct labelling of sub-figures with subfig and floatrow?

I am using subfig and floatrow to manage sub-figures. Without floatrow, everything works OK, but I need floatrow to easily align the captions, as the subfig manual explains. Adapting the example on ...
2
votes
0answers
37 views

! Missing \endcsname error… I cant not find the problem

I can not compile my tex file into pdf using winedit 9. This is my issue. I have attached the tex file as well. Please any help would be appreciated in fixing this problem. The issue is apparently ...
4
votes
1answer
71 views

Problem with converting footnotes into endnotes

I'm using endnotes package to create endnotes, and since my existing body of text already contains lots of footnotes, I use \let\footnote=\endnote to convert footnotes into endnotes. ...
3
votes
2answers
69 views

How to mix \ref{} and \pageref{}?

There is \ref{} and \pageref{}. But I want mixed behaviour. I would like to have something like "XXX (page.YYY)" in text, where XXX is what \ref{} usually produce (chapter/section/etc number), while ...
1
vote
1answer
34 views

Equation labeling in latex [duplicate]

I need referencing from an equation, such as: \documentclass{article} \usepackage{amssymb,amsmath} \begin{document} \begin{equation} \label{eq:1} y+x=3 \end{equation} some text \ref{eq:1} some text ...
8
votes
1answer
72 views

Label naming strategy

I study physics and use LaTeX to typeset math-heavy writing. While I can write LaTeX fairly quickly, I often find myself spending too much time on thinking of reasonable names for my equation labels. ...
1
vote
1answer
33 views

Cross-referencing label and table of contents

I am using a label for referencing. I just added my table of contents and saw the label is used as chaptertitle. How could I fix this? My MWE: \documentclass[a4paper,dutch]{report} ...
2
votes
1answer
41 views

Problem with authors names in the references [duplicate]

I'm having a problem in the references. When I have multiple names, I wrote all the names before compiling the file but that it selects randomly a few authors names by writing just the first letter of ...
6
votes
2answers
62 views

Referring to label and value of counter at that point

I'm putting together a catalogue of artworks. These are given a running Roman number, and divided into groups given letters (so A1, A2, B3, etc.). At the moment I am manually looking to see what group ...
5
votes
2answers
88 views

References as text decorations (using multiple files)

I would like to draw a picture in which a line connects two points. Along this line, there should be a text "x", where x is the number of a specific equation in another document. Unfortunately, I am ...
6
votes
2answers
212 views

Problems with tilde (~) and line breaking

I'm trying to avoid a line break between the word "Table" and the number reference for that table. Following the advice of another Q&A, I went through my whole document and replaced all spaces ...
4
votes
1answer
44 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} ...
2
votes
1answer
18 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
32 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
26 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
1answer
41 views

Replace underscore in macro implementation?

I'm working on a document that contains a set of sections describing some technical objects. The object names contain underscores (very common in that programming environment), so I've loaded the ...
3
votes
1answer
37 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
38 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 ...
4
votes
2answers
92 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 ...
0
votes
0answers
41 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
47 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 ...
9
votes
1answer
40 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 ...
4
votes
1answer
33 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
108 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
27 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
156 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 ...
1
vote
1answer
31 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
41 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
48 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
47 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} ...