Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [cross-referencing]

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

2
votes
2answers
25 views

How to modify the text that prints when cross-referencing a table?

Main question: How can I change the text that prints when I cross-reference an object in my text? I'd like to get a \renewcommand that works for tables only and another one that works for sentences ...
5
votes
1answer
121 views

Cross-referencing numeric values and text from later section to executive summary of a latex document

I have almost completed drafting a report on consumption of different food items, and I am drafting an executive summary so that readers can quickly know what the report is about. Since there are ...
5
votes
2answers
64 views

Cross-referencing multiple items

I've looked for an answer to my LaTeX question, but even though there are some that are similar, none addresses my issue. I'm trying to label and cross-reference the first and last items of a set to ...
1
vote
0answers
22 views

Detect unreferenced appendix sections?

Is there some package that helps with sorting out appendix sections, that have never been rerefenced? Why refcheck doesn't apply I am aware of the refcheck package, see Get list of unused labels. ...
4
votes
2answers
91 views

Reference with entire number in enumerate

So I have made this file where I list my exercises as 1.A, 1.B,... for the exercises in Chapter 1, and 2.A,2.B,... for the exercises in Chapter 2. \documentclass{book} \usepackage{enumerate} \begin{...
1
vote
1answer
31 views

Referencing parent(s) of labels

I'm trying to reference a label's parent so it outputs something like "Section, Subsection" or "Section, Subsection, Subsubsection". I've come close with smartref by doing the following: \usepackage{...
0
votes
1answer
27 views

Referencing caption of code listing

I would like to reference some piece of code which has a caption on it like this: \begin{lstlisting}[caption=componenet \label{Label} , backgroundcolor = \color{lightgray}] //Here is my code \end{...
2
votes
1answer
104 views

AUCTeX/RefTeX: How do I handle labels that use `label={name}` syntax instead of `\label{name}`?

The tcolorbox package uses a different label syntax from the usual \label{name} one: it uses label={name}. Can I tell AUCTeX/RefTeX to enter labels for the tcolorbox environments with this new ...
1
vote
1answer
67 views

Proper reference numbers with subfiles

Consider the following mwe divided in 3 files: main.tex: \documentclass[12pt]{report} \usepackage{subfiles} \newcommand{\onlyinsubfile}[1]{#1} \newcommand{\notinsubfile}[1]{} \usepackage{amsmath} ...
1
vote
0answers
15 views

Trick/Workaround for cross reference between files without xr

I have a main manuscript and a supplementary materials tex files. These are based on templates by the AGU journals, therefore it is not recommended to add any other packages, than those provided. I ...
2
votes
2answers
29 views

Label for the subcaption containing square brackets isn't acting nicely in the figure caption

I often have to use "[" and "]" in various labels when cross-referencing items with formulas of inorganic complexes. Everything worked fine until I noticed a problem with \subref{...} of the ...
0
votes
1answer
62 views

Elsarticle footnoting the addresses

Consider this example of an elsarticle template: \documentclass[3p,times,twocolumn]{elsarticle} \journal{Nuclear Physics B} \begin{document} \begin{frontmatter} \title{Sample article to present \...
0
votes
0answers
37 views

Cross-referencing with part prefix also for appendix

In my document I restart the chapter counter for every part. Unfortunately, this leads to ambiguous numbers for, e. g. figures. Therefore, I decided to add the number of the part as a prefix to the ...
1
vote
2answers
45 views

How to reference equations (new to Latex) [duplicate]

\documentclass{article} \newcommand{\dd}[1]{\mathrm{d}#1} \begin{document} \begin{equation} \Delta A_2 = x^2 \end{equation} This code puts a (1) next to this equation, and numbers later equations ...
2
votes
1answer
25 views

Font style in ref and autoref

I'd like to use both \autoref and \ref, so when enumerating references in the text I can get something like "Ecuaciones 1 y 2" (with Ecuación 1 being a link inserted by \autoref and 2 a link inserted ...
0
votes
0answers
50 views

How do you make a reference in the same tex file?

How do you make a reference in the same file? I've seen some files where a link appears, say page 5, and when you click on the link it takes you to page 5. Or when it says a word and when you click ...
2
votes
1answer
69 views

Why can't cleveref determine if the reference is at the beginning of a sentence?

I was reading the documentation on the cleveref package, which can be found here, when I stumbled upon a side remark on page six (can be found in the paragraph for \Cref), which says As it is very ...
0
votes
0answers
15 views

Reference list appearing in entirety instead of just references/citations used. LaTex academic journal

I am writing an academic journal with multiple articles by different authors. Currently the entire reference list is appearing after each article instead of a reference list with the used citations. ...
2
votes
1answer
19 views

How do I get the achemso package to include the DOIs?

I'm using achemso to compile my references and I would like to include the DOIs. \documentclass[11pt, a4paper]{scrartcl} \usepackage[utf8]{inputenc} %References - achemso is ACS style, it uses ...
1
vote
0answers
39 views

How can I change the names of my supplementary tables and figures from “Figure S1” to “S1 Figure”?

I've been writing a paper in LaTeX which includes supplementary information, containing supplementary tables and figures. I used this command: \newcommand{\beginsupplement}{% \setcounter{...
2
votes
0answers
42 views

itemize/enumerate - how to turn the very first \item of the environment, including the bullet/item-number, into a hyperlink?

When in LaTeX2e using the hyperref-package, you can apply the command\hyperref[⟨referencing-label⟩]{⟨tokens that form the text of the hyperlink⟩}for turning phrases of text ...
1
vote
1answer
18 views

Referencing time codes of interviews in appendix

For my thesis I'm analyzing interviews. As per convention, all paragraphs end with time codes (e.g. #01:01.99#), for when each person/interviewee/interviewer stops speaking and/or another begins. I'd ...
0
votes
2answers
28 views

Multiple bibliography references lists in different languages

What would be the best way to implement the same bibliography list in two languages. Also, consider sorting. For instance: John Doe et al.[1] invented B. A [2] is interesting. For sure [3]. Список ...
2
votes
2answers
26 views

How can I temporarily replace 'and' with 'or' when using `\cref` command?

The code below generates correct output. However, I would like to know how I can temporarily replace every instance of 'and' with 'or' just for specific instances of \cref usage. I included xcolor and ...
4
votes
0answers
105 views

Subformula numbering

I can't get cases subformula to work properly. My MWE, inspired from the wiki and the My Way "Using \startalign and friends" by Aditya Mahajan, is : \starttext \placeformula \startformula \...
0
votes
0answers
18 views

LaTeX / LyX cross-reference formatting, how to remove § [on hold]

writing my masters thesis with LyX in german. So far everything has been fine, but now, theres a problem I can't find a solution for. For sections it does "See section §3.1", but I want it like "See ...
1
vote
1answer
31 views

\footnoteref (= modified \footnotemark) works perfectly fine *outside* of chapters but not within them

Because I need a reference to the same footnote, I like to use \footnoteref which is defined here. Writing \documentclass[12pt,a4paper]{report} \usepackage[british]{babel} \usepackage[utf8]{inputenc}...
4
votes
1answer
45 views

Label blocks inlcuding section number

I want to add section number when referencing blocks. MWE is as follows: \documentclass[serif,12pt,xcolor=dvipsnames]{beamer} \usetheme{Madrid} \usepackage{lipsum} \begin{document} \begin{frame}{...
0
votes
0answers
27 views

“destination with the same identifier” error with a custom appendix

I am working with a slightly modified version of the answer provided by @StevenBSegletes to achieve a custom appendix structure. (disclaimer: I left out my own modifications here to make the example ...
0
votes
0answers
19 views

How can i reference OECD data using the natbib package?

I'm looking to construct a reference to enter my References.bib file in my project? The data Im looking to reference is found here https://stats.oecd.org/index.aspx?DataSetCode=TABLE_I7. Thanks
0
votes
0answers
40 views

Sort references using author-year citation and alphabetically in the bibliography

I am using book class to write my thesis, for the citation I am using author-year citation I get for example: Arasaratnam, I., Haykin, S. : Cubature Kalman filters. IEEE Trans. Autom. Control. 54, ...
3
votes
1answer
26 views

Referencing line numbers in an algorithm using autoref

What is the autoref command to reference a line number of an algorithm? I tried to define stepautorefname, linenoautorefname and alglinenoautorefname commands as shown below but they don't work like ...
0
votes
1answer
22 views

ntheorem + showonlyrefs

I like the showonlyrefs option provided by mathtools. I also would like to use ntheorem. But they seem difficult to use together. Applying the various recommendations in the related manuals (including ...
5
votes
4answers
88 views

Command to format any number of equations

I am reading many entries here on comma-separated list of arguments in new commands. I cannot get them to adapt to my needs, so here I come with my question. I'd like a command like so: \eqsRef{equ:...
1
vote
2answers
45 views

Numbering a,b-variants of assumptions (or other theorem-like environments) without using `amsthm`

I would like to have variants of assumptions (sub-assumptions, if you like) labeled and referenced as 1a, 2b, etc., without using the amsthm package which is known to conflict with the publisher's ...
3
votes
0answers
35 views

Custom referencable items

I have a list of conditions I want to reference, so I use \begin{enumerate} \item \label{foo} ... \item \label{bar} ... \end{enumerate} We reference the condition \ref{foo}. This way the ...
2
votes
1answer
22 views

Including reference list as numbered section in table of contents

When I include my reference list in the table of contents, it is included as an unnumbered section unlike all the other sections. Is there a way to change this? I'm using the following programming: \...
6
votes
1answer
39 views

Is there a possibility to make the `\ref` command return `\part` numbers in addition to `chapter`, `section` and `subsection` numbering?

As a default documentclass book numbers chapters consecutively regardless of the division into parts, and I suppose the \ref command had been designed with this in mind, returning as it does chapter, ...
5
votes
2answers
268 views

Why do all of my hyperrefs take me to the same page?

I can't reproduce this in miniature outside of my document, so I'm asking more debugging help on how I can fix it within the document I have. The problem is, I have a section with something like: ...
0
votes
0answers
28 views

One latex document to another latex document referencing

I have a latex document named L1. The content of this document to another latex file(L2). Is it possible to referencing L1 to L2 such that all the content of L1 will come to L2. Example: Content of ...
0
votes
1answer
44 views

Unable to reference table from input file

I've separated my large tables into other individual files for organization and ease of editing, but I can't seem to reference any of them. Can someone clue me into what is going on? main.tex \...
2
votes
1answer
66 views

Numbers not showing in references

I'm working in a report and I can't make the references work the way I want to. My main problem is that, in the references section, the number in square brackets at the beginning of the reference ...
0
votes
0answers
20 views

order problem in references while generating pdf

my references are not showing in the same order while building pdf (first one is showing on third and vice versa). i am also using \usepackage[numbers,sort&compress]{natbib}. kindly, help me out ...
0
votes
0answers
8 views

Editing references with Chicago-style or others

I need to insert references using commas to separate arguments, and without including month and issue number of the articles in the references. I would like the references to appear as follows, e.g.: ...
5
votes
2answers
59 views

ConTeXt: Retrieve caption of referenced figure

The title pretty much says it... I would like to retrieve the caption of a figure I placed earlier in the document. \starttext \placefigure[][fig:foo]{My caption}{\externalfigure[foo.png]} \input ...
1
vote
1answer
35 views

How to add '( )' to the figure reference?

I have a figure that has three subfigures and I want to \ref them. I need them in this following format: Fig. 1(a) But when I use the \ref with the label of the subfigure a, it references this way: ...
0
votes
0answers
51 views

\ref{} suddenly stopped working

I am using \ref to refer to equations, tables and appendices in my report and it was working well until now. Now instead of showing 'as can be seen in equation 1' or shows 'as can be seen in equation '...
1
vote
1answer
58 views

No figure and references in Applied Physics Express LaTex file?

I am preparing a manuscript in LaTeX for the journal of Applied Physics Express, class jjap3.cls. But I cannot get any references and figures in the manuscript. Here is the website I downloaded the ...
0
votes
0answers
34 views

How to shorten list of backreferences

I'm using bibtex together with the hyperref package and backref option to attend to every entry of the bibliography a list of pages where the source is cited. There is a standard book that I have to ...
0
votes
0answers
28 views

How to remove an (Ed.) from Bibliography?

No matter how much info I put on the Bibliography, it keeps appearing an (Ed.). How the reference is stated: @inproceedings{batateste, author = {arroz Aaaron and Batata Aaamor }, title = ...