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

7
votes
1answer
44 views

Theorems and labels

Let me give a bit of background before the actual questions. I took a look at latex.ltx to see how labels are handled. I found that: \def\label#1{\@bsphack \protected@write\@auxout{}% ...
0
votes
1answer
58 views

achemso package: referencing multiple figures

I am using the achemso package to submit a paper to Environmental Science and Technology. When I include a reference to a figure (\ref{Fig1}), the figure number appears preceded by the word "Figure." ...
7
votes
1answer
71 views

Get the value of current \label

I am trying to work out a modification of the index in a complex document. The point is, I have a table of contents and so on. But we also want to add an index for specific terms like in: " .... a ...
0
votes
1answer
68 views

How to diagnose what is changing a label?

I was getting this only last warning, no matter how many times I rerun my .tex file: LaTeX Warning: Label(s) may have changed. Rerun to get cross-references right. Then I saw this question and the ...
0
votes
1answer
60 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
50 views

How to change the appearance of \ref depending on where it's called relative to the \label

I have defined a \task sectioning command and a subtasks-list as in this MWE: \documentclass{article} \usepackage[hidelinks]{hyperref} \usepackage[loadonly, explicit]{titlesec} ...
2
votes
1answer
21 views

Using Cleveref with LIPICs documentclass fails for theorem environments sharing the same counter

I want theorems and lemmas to be referred to in the text as "Theorem 1" and "Corollary 2", sharing the same counter. This works fine when I'm using the normal article documentclass, but fails when ...
5
votes
3answers
171 views

Labeling links, Markdown style

In Markdown, you can do [google.][1] ... [1]:http://www.google.com In LaTeX, I've tried \href{\ref{1}}{google?} ... \label{1}{http://www.google.com} But that doesn't work, and I'm tired of ...
6
votes
1answer
156 views

customizing cleveref for pair of subfigure references: [1a and b] instead of [1a and 1b]

I am using the cleveref package and I am very happy with it. However, I encountered one problem I wasn't able to solve. I am probably just not combining the syntax correctly. This is highly connected ...
1
vote
1answer
17 views

Getting the \currentsection and \currentsubsection in memoir

As you know in memoir there's no easy way to get the current section and/or subsection, you can only get the \currenttitle, which tells you the header of the last sectioning command. That's a ...
0
votes
0answers
15 views

Reference table rows by automatic counter with a unique first row

I want to use the method that are represented here, but I want a unique first row for describe the content in each column, like this : . How can i achieve this?
1
vote
1answer
17 views

Adding a new crossref type for a user-defined environment

In short, I'm trying to define an environment comment which has its own crossref type and counter. I want to be able to refer to these comment environments later. Looks like cleveref does what I ...
5
votes
1answer
45 views

Why do we get undefined references warning in exam class when labels are defined and used in solutions (and answers are not printed)?

Let us consider this code which uses the exam class. \documentclass{exam} %\printanswers \begin{document} \begin{questions} \question Why do we get undefined references warning in this case? ...
6
votes
2answers
2k views

Reference table rows by automatic counter

Problem I have defined an environment to automatically number example sentences throughout my document. It uses the tabular environment and automatically numbers the first column of each row using a ...
1
vote
1answer
27 views

Display all authors in cite bibliography

When I cite the reference I have only the first author and the year. I want to display all authors and year. What I must do ? \documentclass{article} \usepackage{natbib} \usepackage{paralist} ...
0
votes
1answer
27 views

Put references in a separate pages

I am writing a scientific paper with maximally 5 pages, where the the 5th page contains references only. How can I put the references in a separate page? thanks
3
votes
2answers
33 views

Reference of subfloat not appearing in pdf

I'm trying to reference the subfloat using \ref{img1} and \ref{img2} but its not working, a ? keeps appearing in the reference location. If anyone could please advise. \begin{figure}[t] ...
1
vote
1answer
74 views

LyX Cross Referencing in Different Language not working

I'm having troubles using the cross referencing system with LyX (version 2.1.1). I place labels on the side of the environment i want to be able to make reference in the future, using the label ...
2
votes
1answer
23 views

(Re)define \ref for chapter that includes the part number

Consider this MWE: \documentclass{book} \usepackage{xcolor} \pagecolor{yellow!10} \usepackage{trace} % avoid page breaks of \part, \chapter \makeatletter \renewcommand{\part}{\secdef \@part ...
10
votes
4answers
3k 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: ...
0
votes
1answer
19 views

How to label my references so I know how to refer to them?

I'm currently writing my master thesis and i have a lot of papers to cite. I'm not able to find a good way of giving shortcuts (names) for the papers when I cite them. Can you recommend a naming ...
1
vote
1answer
87 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 ...
1
vote
0answers
25 views

externaldocument references with standalone

I have a main document, /home/con/Documents/Thesis/thesis.tex, that loads a file /home/con/Documents/RNA/rna.tex with standalone. This works surprisingly well. However, there are 2 problems: 1. ...
3
votes
1answer
182 views

Cross-ref an equation using RefTeX, AUCTeX and cleveref

After an updated of AUCTeX (to 11.87) the solution that worked wonderful from this answer stopped working. In particular, I got the following error: reftex-reference: Wrong number of arguments: ...
3
votes
1answer
21 views

\pageref dosen't properly show the page number when using arabi package

In the page 10 of the following document I define a label. When I give a reference to the page number of this label in the following page, the number is not shown properly. The number appears as 01 ...
0
votes
1answer
33 views

Add manually a custom citation to a reference database created by Mendeley

Is there a way to add manually a custom citation in LaTex to an existent reference database created by Mendeley without disturbing this tool; i.e., when synchronizing the library of Mendeley, the ...
3
votes
0answers
34 views

apa6e referencing required for elsevier article

I need apa6e referencing style for an Elsevier article. I don't know why I encounter errors. Here is the example: \documentclass[preprint,12pt,authoryear]{elsarticle} \usepackage{apacite} ...
2
votes
1answer
34 views

Problem with citation and bibliography

I want that when I cite references, to obtain these forms as a link: Here is the file.tex : \documentclass{article} \usepackage[style=apa]{biblatex} \usepackage[american]{babel} ...
14
votes
6answers
2k views

Which equations should be numbered? [closed]

Is the best practice to number all equations, or just those that will be referred to?
6
votes
1answer
28 views

cref multiple labels don't grab the label type

I have a strange situation where cref is working great for single labels, i.e. \cref{eq:some equation} and for the first two multiple references of the form \cref{thm:first theorem,thm:second ...
1
vote
1answer
20 views

Reference equation number in subscript of equation.

I have some chemical reaction equations which I want to reference in the subscript of an inline equation. \begin{subequations} \begin{align} \cee{ \text{NO} +\text{O}_3 &-> \text{NO}_2 ...
4
votes
1answer
23 views

Trouble using namedef and nameref to augment the default \ref command

I'm trying to enhance the builtin \label and \ref commands to let me add some additional text to the number typically associated with a reference. That is, I want to say ...
1
vote
1answer
32 views

gb4e: A package specific \ref{}-definition

I use \usepackage{gb4e} to reference and to contiuously number my linguistic examples. It works like this: \documentclass{article} \usepackage[ngerman]{babel} \usepackage{gb4e} \begin{document} ...
1
vote
1answer
27 views

How to add shortcut to slide of contents in beamer?

I need to have shortcut on every slide to the content slide, which is located in the end of the presentation. I was trying to do this: \documentclass{beamer} \usepackage{hyperref} \makeatletter ...
1
vote
1answer
35 views

Why are URLs not appearing in References with Bibtex?

Solution! Big thank you to CFR! Bibtex is not the best way for a lot of online material. Bibtex was developed before web while Biber particularly for content during the time of web. More about ...
3
votes
2answers
108 views

Editing the reference style for subfigures using cleveref and memoir

I'm using the cleveref package to reference floats (in this case subfigures) in the memoir class. Currently the output looks like this (sorry for the danish, I don't think it matters): Using the ...
5
votes
3answers
42 views

Cross-reference two numbered environments

Consider the following code: \documentclass[a4paper,12pt]{book} \usepackage{amsthm} \usepackage{hyperref} \theoremstyle{plain} \newtheorem{exercise}{Exercise} \newtheorem{solution}{Solution} ...
1
vote
1answer
35 views

LyX doesn't know `eqref`?

LyX somehow can't use eqref. (I use version 2.0.2 and wouldn't want to update, if possible, since I've set up everything in a very specific way and wouldn't like a new version to perhaps tamper with ...
1
vote
1answer
18 views

varioref's \labelformat for own environment

I defined my own environment for short pseudo-algorithms, and I would like to use the \labelformat command to change the output of \vref. Varioref's documentation says: "The command takes two ...
3
votes
1answer
43 views

Repetitive reports

I have a report that uses the same number a lot of times throught the text (money reference $). There`s a way to automate this refference so I update only the "main field"? Thanks Example: pg. 1 = ...
1
vote
1answer
36 views

Problems with \nameref{} not refering to the correct label x titlesec

I'm using hyperref package to do cross-referencing, but I'm encountering some problems and it is related to \usepackage{titlesec,titleps} , for instance: \documentclass[a4paper,12pt,twoside]{report} ...
6
votes
3answers
327 views

How to make the asterisk a part of a counter?

I am writing a usual article in amsart style using amsthm package to number the theorems. I need to enumerate certain conditions, while two of them have to bear the same number differing only with an ...
3
votes
1answer
43 views

How do I get amsrefs to include the publisher’s name in a cross-reference?

I have the following example for doing cross-referencing using the amsrefs package: \documentclass{amsart} \usepackage{amsrefs} \begin{document} Please see \cite{B} for more details. ...
6
votes
2answers
65 views

Handling tedious casework

I'm typesetting a math paper, where at many points I need to break proofs into several cases. I've been putting these just in an itemize environment, but this is a confusing, because things like ...
2
votes
1answer
73 views

Table row content, duplicate or quote in a different table

Following on from Arbitrary named counter, referenced, which was answered very comprehensively, I have a follow up question. This one's difficult to describe so my searching around the internet and ...
29
votes
1answer
25k views

\ref Chapter Name in LaTeX [duplicate]

Possible Duplicate: Get the title instead of number of a referenced chapter? Is it possible to use \ref{chap:conclusion} to refer to the actual name of the chapter instead of the chapter ...
4
votes
3answers
101 views

Why does \label not work in math mode when using [fleqn] with amsmath?

Try the following \documentclass[11pt]{article} \usepackage[fleqn]{amsmath} \begin{document} \newcounter{eqnthing}\setcounter{eqnthing}{0} \[a+b=c\refstepcounter{eqnthing}\label{maththing}\] \par ...
2
votes
2answers
33 views

Automatically not emphasizing references inside propositions

Is there a way to make reference not emphasized in proposition ? For propositions I used the standart AMS packages, so everything is emphasized in it. Thus, when I insert a reference, it also ...
1
vote
0answers
15 views

reference to equation from other lecture in class beamer

I'm using the class beamer to prepare lectures. I want to make a reference to a formula given in last week's lecture, but I get only question marks. Example input: \documentclass[handout]{beamer} ...
3
votes
1answer
40 views

itemize environment inside theorem

When I have an itemize environment inside a theorem and refer to the theorem later on, the document doesn't point to the right location. For example, consider the following toy example: ...