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

1
vote
0answers
10 views

How to split a string to figure float with figure name, label and caption?

I am struggling with a shorthand macro that converts a string to a figure. At the end is a working, but unstable version what I am trying to do. The goal is to parse make a command (or macro) like ...
1
vote
1answer
16 views

Reference name of description list items in latex [duplicate]

I want to refer to a description list item by name instead of number. To that effect, I've added labels to each item, but when referencing them I only get the name of the section, not of the list ...
0
votes
0answers
41 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
45 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
votes
0answers
12 views

Reference style in bibliography inconsistent

I pasted my bibliography below. As you can see the reference style is inconsistent. Sometimes it puts 'et. al', sometimes it uses abbrevations for first names wheras other times it does not. I want it ...
1
vote
2answers
22 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
23 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
6 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
21 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
37 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
40 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
13 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
38 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. . .
0
votes
0answers
23 views

Biblatex: Preserve title as in file, without lowercasing and introducing additional curly braces?

Good day. Assume I have my references organized in Mendeley. When exporting a bib-file from Mendeley, the resulting files has the correct titles, but (obviously) when compiling the document, all ...
4
votes
1answer
30 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
45 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
31 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
44 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
40 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
32 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
18 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
35 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
21 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
8 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
67 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
36 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
34 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, ...
23
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
47 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
35 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
15 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
234 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
19 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
25 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
14 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
22 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
30 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
43 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
15 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
13 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
30 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
25 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 ?
1
vote
1answer
44 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
58 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
8 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
64 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
56 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 ...