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

2
votes
1answer
62 views

Automatic creations of labels

I have a bad habit of not labeling my headlines and I find creating them afterwards rather cumbersome. Is there any script/program that can create a label automatically from the headline, so that ...
1
vote
2answers
28 views

\phantomsection inside tabular: alignment problems

I would like to use \ref and \label for two lines in a table, which can be done using \phantomsection: \documentclass{article} \usepackage{hyperref} \usepackage{lipsum} \begin{document} ...
0
votes
1answer
32 views

cross reference? [duplicate]

I can reference a figure (or table) from text using \label(fig:example) between \begin{figure} and \end{figure}, and using \ref(fig:example) within my text. However, my figures are at the end of my ...
0
votes
0answers
9 views

References not listed for second chapter

I have a large document made up of different chapters and I want to list the citations in the chapter at the end of each one. Each chapter ends with: \bibliography{Chapters/PhD_Library_chapter3} ...
2
votes
1answer
33 views

Question marks in pdf file when referring to table

Have a look at the MWE below. In the pdf file I get questionmarks when reffering to the table, rather than a numeric reference. Even if I run LaTeX twice. Any ideas how this can be solved? ...
3
votes
1answer
85 views

Using \ref in tikzpicture node while using externalize

Here's the MWE: \documentclass[12pt]{article} \usepackage{tikz} \usepackage{pgfplots} \usepgfplotslibrary{external} \tikzexternalize[prefix=extfig/] \begin{document} \begin{equation} a = b ...
1
vote
2answers
50 views

How to number and reference to “definitions” in latex

I want the following format in LaTeX: Definition 1 [apple]: apple is a fruit. Definition 2 [cat]: cat is a fluffy animal. . .
17
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 ...
0
votes
0answers
12 views

How do I get rid of the red boxes [duplicate]

How do I get rid of the red boxes generated around the hyperlinks of cross-references, citation etc. It is also making the report dirty especially the 'table of content' part. Will it appear in the ...
1
vote
1answer
54 views

What is a good debugging procedure to fix undefined citations?

I have a small example that has undefined citations problems. I want to solve these problems, but I've encountered similar problems before and don't have a good debugging procedure for them (I've ...
0
votes
0answers
25 views

Including updated references in latex response letter

I have two .tex documents. One is a main manuscript which is being revised, and second is the response letter which shows changes in the revised manuscript. In order to include updated references in ...
24
votes
4answers
1k views

Best practices for publishing computer code with LaTeX?

I work a lot with MATLAB, and I want to enable the reader of my paper to easily reproduce my computations. I also want the pdf document to be self-contained, i.e., no hyperlinks to a webpage on which ...
4
votes
1answer
40 views

Customising initials in bibtex

How do I customize initials using bibtex. For instance, several references use 'Gh.' as the initial for the name 'Gheorghe' and I believe they are right. Now, bibtex always gives the initial as 'G.' ...
1
vote
1answer
70 views

Define starting line number when using mcode.sty to display Matlab code and referring to the code

I want to include parts of my Matlab code in my LaTeX document using mcode.sty. Here's a MWE: \documentclass[b5paper, 10pt, twoside, openright, dvipsnames,cmyk]{report} \usepackage{listings} % Is ...
1
vote
2answers
43 views

references section - no indent in first line + formatting

hope you can help me out with this one. here's the issue: I'm trying to create the references section in my paper. I already have a long list with the authors. But the problem is that the first line ...
0
votes
0answers
31 views

Latex (TexWorks) not referencing figures properly in minipage environment [closed]

I am inserting two figures into a latex document I am writing. I am using a minipage environment so they appear side by side. When referenced later in the text the first figure number appears ...
0
votes
1answer
36 views

Latex. Figure reference doesn't work

Any idea why the figure referencing of the following code doesn't work ? \usepackage{graphicx} \usepackage{floatrow} \begin{figure}[h] ...
2
votes
2answers
74 views

Provide only relevant context when printing section number in a cross-reference

I inserted a number of cross-references to different parts of my book. Currently, I simply do so by calling a self-defined macro: \newcommand\secref[1]{See \ref{#1}, \nameref{#1}.} This will print ...
2
votes
3answers
46 views

Using reference labels in mathematical calculations

EDIT: This answer points to a good solution. I wanted to use reference labels in mathematical calculations and was under the impression that if I use the calc package, it will be rather ...
2
votes
1answer
43 views

how to use ~\ref

I tried to connect lemmas and the number followed by it using ~\ref{lemma1} but some times the number goes to the next line even though I use tilde sign ~. What is your suggestion? Here is one line ...
0
votes
1answer
37 views

How can I add references without writing bibliography [duplicate]

My chapter name is References. I want all my references under that heading. If I am using bibliography command then all are going under the heading Bibliography. Also I have tried using the natbib ...
1
vote
1answer
89 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} ...
3
votes
1answer
42 views

How to reference a theorem displayed between pauses in beamer?

I'm writing a presentation using beamer which at some point, in a proof, uses only<X> to display some parts of the proof. Inside these macros I show some theorem which I'd like to reference ...
0
votes
1answer
24 views

Reference in table of contents without section number

How can I make the Reference visible in the table of contents without numbering it? I use the document class article. So far I have been using \usepackage[nottoc,numbib]{tocbibind}, but this numbers ...
0
votes
1answer
23 views

Referring directly to subfigures [duplicate]

I have written this code. All right for the figure. The question is about the references to the subfigures. \begin{figure*}[!t] \normalsize \begin{subfigure}[b]{0.48\textwidth} ...
0
votes
0answers
9 views

referencing vertical subfigures [duplicate]

I am new with LaTeX and I have a problem with in text referencing on my sub-figures which are in vertical alignment. The code I use is below. If in my text I write \ref{fig:a} the ?? will appear. If I ...
2
votes
1answer
52 views

Distinguishing \ref and \cref through different colors

I have the following problem with the hyperref, and the cleverefpackages. I would like to distinguish internal links (e.g. sections, etc) from mathematical links (e.g. definitions, theorems, ...
2
votes
1answer
45 views

How to display reference names in place of their numbers in cref

Is it possible to replace the name of cross-references in place of their numbers in multi-referencing with \cref ? I want to define a \fullref command for referencing the name of sections and ...
5
votes
1answer
92 views

How to display label name in autoref in place of its number

Is it possible to replace the number of a chapter/section in \autoref with its name? The following command will define the \fullref in which both of the number and name of a label will appear after ...
1
vote
1answer
52 views

Making cross reference to nested enumerated item show periods and parentheses

I want my references to nested items in an enumerated list to include all the punctuation that was in the list. Here is a simple example: \documentclass{article} \begin{document} \begin{enumerate} ...
2
votes
1answer
38 views

How to make a link within a TeX file into a page of an existing PDF file

Suppose there is a large online textbook in PDF, without TeX source code. How do I link to a certain page of it within my PDFLaTeX document?
9
votes
3answers
275 views

How to reference a quote like an equation?

For my project, I've interviewed some people and used parts of those interviews as quotes in my project. Some quotes I would like to reference later on, just like how equations are referenced, with a ...
1
vote
1answer
25 views

Referencing subordinate equations

I have this equation in my paper: \begin{subequations} \begin{align} \label{eq:pv-omega} \hat{p} = pv \ll j\Omega \quad \Rightarrow \quad \gamma=2,\\ \hat{p} = pv \gg j\Omega \quad ...
1
vote
0answers
11 views

Label of both the figure and subfigures [duplicate]

I use a composed figure that contains two subfigures implemented via subfloats. Example code: \begin{figure} \centering \subfloat[Workload = 1,000]{ ...
0
votes
1answer
29 views

refer equations across chapters

I want to refer equations and figures from the previous chapters(showing in structure). I have to find the label from that chapter each time which is consuming more time. I want pop ups for all ...
5
votes
1answer
143 views

how to define a label in a new environment?

I would like to define a new environment for writing exercices. Moreover, I would like to use \ref and \nameref (with hyperref package) to build a table of exercise numbers and names. I wrote the ...
4
votes
1answer
281 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
18 views

Titlesec and \ref do not match

I am using the titlesec package to modify how the sections are numbered. The problem is that when I label it and refer latter, the reference will use the standard section number. Here is a minimal ...
1
vote
0answers
31 views

xindy not sorting cross-reference targets

When compiling \documentclass{article} \usepackage{index} \newindex{i}{idx}{idn}{Index} \begin{document} Let's discuss letter d\index[i]{d}\index[i]{letter|see{d}} and ...
4
votes
2answers
224 views

Macros formatting/arranging words {A_1}{A_2},…{A_n} into predefined paragraph for varying n and tagging

How does one robustly (without breaking most environments) construct the macros with arbitrary number of parameters that output the parameters into a predesigned paragraph such that several of these ...
0
votes
0answers
37 views

How to typeset a cross-referenced encylopedia?

What LaTeX package I need to typeset an encyclopedia? i.e. a list of word definitions that contain cross-references and that is automatically ordered alphabetically
2
votes
1answer
50 views

Referencing formula before defining it

I'm writing a scientific article and I would like to reference a formula before it appears in the text. In principle it should work, the problem is that I want to use the hyperref package, so that I ...
0
votes
0answers
16 views

Referencing to full width table in two-column environment [duplicate]

I am using two-column environment and there I have some tables that have to bu displayed full-width. \documentclass[ DIV=calc,twocolumn]{scrartcl} \usepackage[utf8]{inputenc} \usepackage{subfig} ...
0
votes
0answers
21 views

Numbering equations within a table, \ref not working [duplicate]

I'm numbering equations within a table. First I setup \newcommand{\teqtag}{\hfill\stepcounter{equation}(\theequation)} Then within each table cell I have $x=y\teqtag\label{eq:myeqn}$ And ...
1
vote
0answers
16 views

pdfTeX warning (dest): name{environment.1.1} has been referenced but does not exist, replaced by a fixed one [duplicate]

I get a warning with this minimal code pdfTeX warning (dest): name{exercise.1.2} has been referenced but does not exist, replaced by a fixed one And the reference \ref{a} points to the wrong ...
0
votes
0answers
31 views

Mixing label of equations,figures, and tables among chapters in latex?

I have 8 chapters in my report. I do not know how to label my equations and tables and figures. In a way when I refer e.g an equation in e.g. chapter .1 does not refer to equation in e.g. chapter 2? ...
5
votes
0answers
81 views

Implement fixedlabel in memoir

I would like to implement a command called \newfixedlabel in analogy of memoirs \newfixedcaption in such a way that: \begin{myfloat} \caption{...} \label{myfloat:a} ... \end{myfloat} Yields the ...
4
votes
3answers
100 views

(sub)section with number, subsubsection with letter - \ref shows only the letter

when I try following code, everything works as expected: \documentclass{article} %\renewcommand{\thesubsubsection}{\alph{subsubsection})} \begin{document} \section{A Section} \subsection{A ...
5
votes
1answer
93 views

Referring with cleveref to a custom listing (\lstnewenvironment)

I use cleveref's \cref command for referencing, and \lstnewenvironment to create a new listing type. My document has multiple types of listings, each of them with their own counter. However, cleveref ...
0
votes
1answer
41 views

Renumbering chapter after part, correct ref, ToC and chap header aspect

The title may seems unclear. I have a document with several parts, including several chapters. I want the numbering of the chapter to be reset after each new part (easy) BUT : - I want the header of ...