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.

Filter by
Sorted by
Tagged with
0 votes
0 answers
56 views

Cross-reference the captions full names of tables (one table is "longtblr") from an external file

Question. I have the following files that, together, form my MWE: main.tex SupplementaryMaterial.tex wlscirep_modified.cls (from Template for submissions to Scientific Reports Official) latexmkrc (...
Ommo's user avatar
  • 527
0 votes
1 answer
40 views

Package amsmath Error: Multiple \label's: label 'eq:natural_frequency' will be lost

I've marked lines where I get an error Package amsmath Error: Multiple \label's: label 'eq:natural_frequency' will be lost. I have only 1 label that is named \label{eq:natural_frequency}. Added MWE \...
malcolm.O's user avatar
1 vote
1 answer
23 views

APA in-text citations are cut short (e.g. 020a instead of 2020a)

Instead of the in-text citation appearing as (SCALER, 2020a), it appears as (SCALER, 020a). Why does this happen and what can I do to fix it? For the in-text reference, I'm using \citep{...
crazcass's user avatar
2 votes
2 answers
58 views

Chapter-like referencing for custom paragraphs

I am writing a system requirement specification document (SRS) that contains requirements as block of text with a custom formatting. I made a latex environment to format such block, here the code: \...
Jhonathan Asimov's user avatar
0 votes
0 answers
25 views

I found a way to make chapter references work for me, but it must be wrong, or at least incomplete

I am using TeXworks Verion 0.67 and MiKTeX 22.8.28 to write a a book. I have managed to create reference that are listed at the end of each chapter, however, the way I have to do this seems wrong. At ...
Bill Hallahan's user avatar
0 votes
1 answer
72 views

references to \item

I want to make a reference to \item 1.1. But instead of 1.1 it shows as 1.a. Why? Code (XeLatex Compiler): \documentclass[12pt,a4paper,notitlepage, twoside]{article} % overfull, underfull \...
Anna S's user avatar
  • 25
2 votes
0 answers
54 views

Re-use a saved box without label and hyperlink issues [duplicate]

Background: For each class I usually have a TeX file containing both stuff for me and stuff I distribute to the students. Sometimes I give out only a short text or a couple of exercises, so to save ...
campa's user avatar
  • 29.8k
3 votes
1 answer
106 views

"Label multiply defined" with new cross-referencing properties

When recording multiple different properties (see texdoc ltproperties-doc or online) for the same label, warnings are issued. I am not able to record all properties at the same time (some must be ...
meide's user avatar
  • 1,133
0 votes
1 answer
23 views

Setting up a paired counter for exercise / solution theorems [closed]

I am trying to use two theorem environments, one for exercises and another for their solutions. The counter for the solution should be the same as the counter for the associated exercise. An example: ...
s.harp's user avatar
  • 103
0 votes
0 answers
19 views

Referencing equations in Lyx

In LyX, the equation label appearing next to a formula is, for example, (2.6,eq:Monotone). Here, eq:Monotone is the equation label set and (2.6) is the equation number as in the document. To reference ...
Alois Pichler's user avatar
4 votes
1 answer
97 views

Using the new cross-referencing properties

I'm looking into the new property system (see texdoc ltproperties-doc or online) but have an issue when referencing unknown labels. \NeedsTeXFormat{LaTeX2e}[2023/11/01] \documentclass{article} \begin{...
meide's user avatar
  • 1,133
0 votes
1 answer
44 views

How to set "parindent" in the reference section?

Can somebody help me? I want my reference to meet the following standard of an article as follows: \textbf{References} {\leftskip=2em\parindent=-2em Anderson, C. A., Gentile, D. A., {\&} Buckley,...
Chamanga's user avatar
  • 163
0 votes
0 answers
10 views

How can I create multiple bibliographies in the same document using {abntex2} and one .bib?

I have been trying this, and I don't know the reason, but none worked here. config.cls \LoadClass[12pt,openright,oneside,a4paper,chapter=TITLE]{abntex2} \RequirePackage{times} % Usa Times ...
RxT's user avatar
  • 111
1 vote
1 answer
52 views

Displaying variable which is defined after the variable is used in text

I have a situation where I need to access a variable which is defined after it is used in the text. An example of what I'm trying to achieve is below, essentially the definition of variable happens ...
John Tracey's user avatar
1 vote
1 answer
41 views

Referencing items in enumerate

I'm trying to cross-reference items in an enumerate and I'd like the reference to be exactly the "(C1)-tag" in the enumerate. \begin{enumerate}[(C1)] \item For each $n\in\mathbb{Z}$, $f_n$ ...
MathematicalMoose's user avatar
0 votes
0 answers
20 views

How to add a citation with hyperlink inside a pdf figure (cross referencing from figure to bibliography)?

I want to add a citation inside a pdf figure, and would like the citation to be a link to the bibliography. I know embedding a pdf with includegraphics normally mangles the link, but I have found a ...
astabada's user avatar
  • 206
0 votes
1 answer
26 views

Label multiply defined warning but I only have one label LNCS template

Not a huge deal but I'm getting a strange warning Label `PolyApx' multiply defined. even though I only have one label in my entire document. \documentclass[runningheads]{llncs} \usepackage{hyperref}...
Hao S's user avatar
  • 848
0 votes
1 answer
42 views

Avoid hyperref border inside Tikz figure

I want to add a rotated legend to my tikz figure. I'm able to do so using ylabel, but because this relies on \ref{}, the hyperref package adds a red border to my figure. \documentclass{article} \...
Christopher's user avatar
1 vote
1 answer
47 views

Nested List - Question and Answers for a Maths book

I'm trying to set up a maths book in latex. There are excercises in the book and I want to have questions labelled in the form 1 (a) (b) (c) (i) (ii). It's set up in such a way that the answers are ...
akasteve's user avatar
0 votes
1 answer
40 views

Reference with no new lines breaks internal links

I'm trying to use natbib and have the references in a paragraph, instead of a list with one reference per line. The example below achieves this goal, but it breaks internal links between the text and ...
astabada's user avatar
  • 206
0 votes
1 answer
23 views

Latex book class remove vertical space before References

I am using the latex book classs with several chapter. Each chapter has a Reference list at end of them. Everything works fine. But the only thing I want to fix is the huge space before the References ...
Eular's user avatar
  • 155
0 votes
1 answer
25 views

Add \label of an environment to margin

Thank you in advance for your help with this somewhat niche question. I am looking to make a command somewhere in my document preamble which makes it so that every environment (theorem/lemma/...
mathieu_matheux's user avatar
0 votes
0 answers
43 views

How to using label and numbering in Latex

When using label twice, the numbering appears the first time like this and the second time is like this . How can I make them from the same writing
said benslimane's user avatar
0 votes
0 answers
64 views

Why are links from my solutions manual ineffective?

I have the following four files. The book is created using file myBook.tex given by \documentclass{amsbook} \usepackage{lipsum} \usepackage{xr-hyper} \usepackage{hyperref} \includeonly{data} \begin{...
R. Gregory Taylor's user avatar
1 vote
1 answer
45 views

Changing the current object that the label system refers to

I would like to somehow refer to the proof of a theorem as the theorem itself. How does \label actually be able to tell that it is currently inside this theorem? Is there some way to fool the label ...
Jinwen's user avatar
  • 8,092
0 votes
0 answers
29 views

Astronomy Astrophysics bibliography with hyperlink

I am struggling to fix the hyperlink issue for A&A journal. The tricks mentioned in the link Bibliography with hyperlinks in same style as AJ adds two links (i) aanda and (ii) adsurl. But in A&...
Shubhadip Chakraborty's user avatar
0 votes
1 answer
38 views

Using throughout numbering for sections, statements, displays, tables, figures, itemize items, etc. and referring to them

I find most easy to navigate through a text which has numbering like this (3) Section title Lots of explanations blablabla ... (3.5) Subsection title tratatata because (3.5.1) \emph{If $X=Y$ then $Z=T$...
მამუკა ჯიბლაძე's user avatar
0 votes
1 answer
69 views

Cross-ref with xr package and incremental numbering

I have article1.tex and summary.tex. Files must be compiled separately because I need to submit two separate pdfs. I am following this guide to cross-ref equations, figures, and sections from article1 ...
Simon's user avatar
  • 517
0 votes
0 answers
21 views

Hyperlink the entire reference "Figure 1.2(a)" to the figure (no subfloats!)

I currently have some figures which are single images (no subfloats!) with multiple panels (a) and (b) like so: Now, I'm currently cross-referencing such figures like so Figure~\ref{fig:emotions}(a) ...
J-J's user avatar
  • 193
0 votes
1 answer
24 views

How to reference labels within lstlisting?

My code is as follows, and I want to reference a Tikz image within the lstlisting environment instead of it being displayed as is. This kind of situation often arises in code comments. \documentclass{...
licheng's user avatar
  • 699
3 votes
1 answer
151 views

Changing order of TOC entries automatically

I essentially want to achieve the same as this question. However, unlike the solution on that post, I cannot afford to do it manually, it needs to be performed automatically I have defined a \problem ...
PeterPawn's user avatar
0 votes
0 answers
39 views

Properly using xr packge with hyperref package

I have this two tex files, where I want to refer a equation (just the number) to another file. So, I am using xr package. Here's the two files doc1.tex \documentclass[11pt]{article} \begin{document} ...
Eular's user avatar
  • 155
0 votes
0 answers
16 views

Sort bibliography with dalthesis.cls template

I call the dalthesis.cls template as the first line of my document \documentclass[12pt]{dalthesis} I call the references to be printed with: \nocite{*} \bibliographystyle{aiaa} \bibliography{...
Jake's user avatar
  • 1
0 votes
0 answers
24 views

Documentation on \ref and \label behaviour with regard to newline, tab, etc

It seems that \ref and \label matches newline with whitespaces: i.e. the following pair works \label{foo bar} \ref{foo bar} And tabs works similarly. Is there any documentation on this behaviour and ...
leafpile's user avatar
  • 101
1 vote
1 answer
28 views

Reference Alphabetical Appendix

I am using alphabetical headings and page numbers for my appendices. Now, when I refer to them in main text, I would also like to see the letter. However, as of now it shows me a number. How to fix ...
Papayapap's user avatar
  • 399
1 vote
1 answer
34 views

Change the label display value

I have a custom command to display pseudocodes using tcolorbox. The \newtcblisting command creates a custom counter to display the boxes. I'm trying to reference the pseudocodes somewhere in the ...
Lucyanno Frota's user avatar
0 votes
0 answers
17 views

Hyperref package - Appendices are connected to chapters

I am using the hyperref package. The chapters are properly linked but the appendices are connected to chapters and I am not able to find out the issue. I would appreciate it if you can help me with ...
Karthik Vijay Annur Myilswamy's user avatar
1 vote
1 answer
57 views

Custom environments with referencing

I have a small number of examples (3, 4, or 5 maybe) which are repeated throughout my document to help the reader understand new concepts as they are introduced using the same set of examples. I would ...
SEP101's user avatar
  • 13
2 votes
1 answer
94 views

How do I change the name for a clone of enumerate using enumitem and cleveref?

I want to construct a numbered list of items for which reference have issue rather than item. I'm using cleveref and enumitem, defining issue as an alias of enumerate with \newlist, and defining the ...
shmuel's user avatar
  • 1,409
0 votes
0 answers
18 views

Background for Listings with TeX escape, but caption outside

Listings does not play well with backgrounds and included math formulas (using mathescape) - there are white horizontal lines because Listings doesn't know how tall the lines are meant to be. You can ...
Alasdair's user avatar
  • 5,227
0 votes
0 answers
21 views

Cross-referencing in Chapter Short Title

In my thesis, I have an appendix of supplementary files for a chapter with \label{c:ch3}. In the appendix file, I have used the chapter name as- \chapter[Supplementary Material for Chapter \ref{c:ch3}]...
Rounak Niloy's user avatar
3 votes
1 answer
82 views

Physical Review Letters supporting information separate PDF

I am preparing a paper for submission to Physical Review Letters, and the journal requires that the main text and supplementary information be separated into two PDFs. I currently have links between ...
Emmy B's user avatar
  • 45
1 vote
1 answer
37 views

Getting a quote from addendum or table in the main document without rewriting it

I'm writing a thesis that uses thematic analysis, and it uses lots of text referenced from interviews. I want to write up the thematic analysis in a sort of narrative, with one or two choice quotes ...
Jan's user avatar
  • 13
1 vote
0 answers
66 views

clickable includegraphics for cross reference data

I’d like to make references work in my robust-externalize library. I wanted to parse the aux file, extract the lines related to a label like: \newlabel{sec:dependencies}{{3.4}{7}{Dependencies}{...
tobiasBora's user avatar
  • 7,803
0 votes
0 answers
17 views

How to add a clickable hyperlink in latex so that it references to a specific paragraph in the same article?

I would like to make a calender with clickable links that would reference me to another section in the same article. Currently, the code I have been using to generate the calender is as follows. \...
Eric Zhang's user avatar
2 votes
1 answer
47 views

Error when combining glossaries and label of description item

I want to use the glossaries package and I want to be able to reference descritpion list items by their name. For the latter problem, I found a solution (Reference name of description list item in ...
Simon Schiff's user avatar
1 vote
0 answers
37 views

Where should I put \label to make \ref work? [duplicate]

I have the following code: \documentclass{article} \usepackage{mathtools} \newcommand{\tstirlingi} [2]{\begin{bsmallmatrix} #1\\#2 \end{bsmallmatrix}} \newcommand{\...
User303131's user avatar
0 votes
0 answers
6 views

Exclude page number from list in glossaries for some references of that entry

Is there a way to specify a glossary entry to generate a reference, but not add its position to the location list in the final glossary? I am trying to do some cross-references like this: \...
HenrikWolf's user avatar
0 votes
1 answer
36 views

Alternative numbering for AMS "Theorem" environment

I am currently writing a LyX document using the extended AMS package. My document consists of theorems of two types. So far, I used the standard Theorem environment (the one with numbering) for the ...
GSofer's user avatar
  • 103
4 votes
2 answers
57 views

Referencing ExPex example from a different subfile?

Is there any way I can get subfiles to correctly reference ExPex example numbers? Say I had a main file which contained two subfiles. One subfile contains an ExPex example, and the other contains a ...
geordiekidd's user avatar

1
2 3 4 5
89