{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
63 views

Why do I always have to xelatex twice to make references work properly?

I found that I always have to xelatex at least twice to make references work (referring figures or equations), otherwise I have such wrong reference: The following error message appears when the ...
2
votes
1answer
64 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
29 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
10 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
37 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
100 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 ...
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
56 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
26 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 ...
1
vote
2answers
53 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. . .
5
votes
1answer
42 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
75 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
48 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 ...
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
44 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 ...
0
votes
1answer
25 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 ...
3
votes
1answer
46 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

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
2answers
78 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
1answer
48 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 ...
2
votes
1answer
62 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, ...
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 ...
5
votes
1answer
115 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
61 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} ...
1
vote
1answer
27 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 ...
9
votes
3answers
284 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
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]{ ...
1
vote
1answer
57 views

Latex Bib-File doesn't sort by appearance in text

I've been trying many different ways to sort my Bibliography as it appears in the text. But unfortunately it's always sorted the alphabetical way. I'm using the following packages in my master file ...
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 ...
3
votes
1answer
20 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
32 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 ...
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
53 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
34 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? ...
0
votes
1answer
48 views

point after a Cross reference for section in article

I use the commands \label and \ref in my article but I had a point after the number; for example, in Section 5. How do I remove this point ?
2
votes
2answers
89 views

Can we get references into externalized pgfplots images to work?

I have some plots created with TikZ and pgfplots. In the captions, I use \ref{...} with plot labels in order to get the marker printed there; a neat feature indeed. Now, when submitting to arXiv one ...
4
votes
3answers
121 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 ...
0
votes
0answers
40 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 ...
5
votes
1answer
100 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 ...
3
votes
1answer
79 views

Questions about Label and Cross Reference

I am trying to use cross reference in an article, here is a sample of my code. \documentclass[11pt]{amsart} \usepackage[margin=1in]{geometry} % set the margins to 1in on all sides ...
0
votes
1answer
48 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 ...
3
votes
1answer
51 views

Biblatex not putting a dot behind “abbreviated” single character author name

Here it is claimed that using biber as backend is enough to correctly "abbreviate" with a dot author names given as a single character, however, from my MWE it does not seem like this would be the ...
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 ...
2
votes
1answer
40 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?