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.

0
votes
0answers
23 views

Wrong reference after resetting the counter of Theorems

I reset the theorem counter in every chapter by \setcounter{theorem}{0}. All theorems are labeled by unique names. By using, for example, \ref{theoremchapter5number1}, the number that is displayed is ...
0
votes
1answer
18 views

Article appendix figures and tables caption and references in the form “Appendix Figure X” and “Appendix Table X”

Much like is done with section headers using the appendix package here, I would like appendix tables and figures to have distinct captions and references. That is, for tables and figure that I move to ...
0
votes
0answers
12 views

Changing the Format of an In-text Citation

I am using \cite{} with a bst file and it is generating Harvard references in the text as follows: Qiao et al. (2013) instead I would like the reference to appear as: (Qiao et al., 2013) Any ideas ...
0
votes
0answers
15 views

Section roman and section cross-reference arabic

Dears, I want to change just the section cross-reference from roman to Arabic numbers in a paper using the IEEE template. An MWE of my problem is \documentclass[journal]{IEEEtran} \begin{document} ...
2
votes
1answer
33 views

Adding a dot in chapter's name without cross-referencing problems

I would like to add a dot after the number of each section (including chapters) in a report class document. I'd prefer not to have to resort to Koma-script solutions. There are a lot of other good ...
1
vote
1answer
18 views

subfig package not referencing sub fig labels correctly

I am using the subfig package to display two plots using the code below: \begin{figure}[!ht] \subfloat[Singular Terms\label{secondring:subfig-1}]{% \includegraphics[width=0.4\textwidth] {...
0
votes
1answer
56 views

LaTex will not include reference

I'm writing a project in LaTex, and when I'm inserting a reference, it will not work. The name I named in the bib-file only gets into the pdf in bold. Here is my code: \usepackage[backend=biber,...
4
votes
2answers
68 views

Alternative to using nested tikz in reference-able markers

based on this nice question and its answers, I have this little code: % % circled steps (with labels to reference them!) % \newcommand*\circled[2][]{\tikz[baseline=(char.base)]{ \node[...
2
votes
1answer
67 views

How can I remove the brackets around a reference if it is already in brackets?

I am using cleveref for cross-referencing in my thesis. For equations, it typically looks like this: As can be seen in Eq. (5), the numbers don't add up. However, sometimes I only want to ...
2
votes
1answer
112 views

zref: Read out first and last reference page per page

I have some paragraph numbers on most of my pages. I want to write "(1-3)" in the head if the current page contains the paragraph numbers 1,2,3. Is it possible to read out the first and the last ...
1
vote
1answer
29 views

Labelling subfloats in a two-column document

I am writing a two-column document and there are a lot of figures that I need to put in. I had a set of 12 plots and I planned to arrange them in three rows of four. \begin{figure*}[] \subfloat[]{ \...
1
vote
1answer
13 views

How to create sub-assumptions within an assumption chunk and be able to reference them via labels?

I currently am trying to create an Assumption with 4 parts to it. I have first declared the assumptions chunk, then enumerated A,B,C, and D within. I am then trying to create reference labels for them....
2
votes
1answer
93 views

Custom points table for exam

I'm trying to create a custom points table for exams. Currently, the instructors in our department write these exams in MS Word, so to ease the growing pains, I'd like to emulate the old design as ...
0
votes
0answers
31 views

Referencing a figure

\documentclass{article} \usepackage{graphicx} \begin{document} Figure \ref{fig:DA}. \begin{figure} \centering \includegraphics[width=\linewidth]{DiferentialAmplifier.jpg} \caption{...
2
votes
1answer
35 views

Referencing to Subsection

I have document with sections and subsections. Problem is this one. When I use Sec. \ref{x} to reference subsection 1.1, of \label{x}, I get result Sec 1 1.1 Ho to get correct Sec 1.1 ? Coding ...
1
vote
1answer
26 views

If on the same page

I would like to code a macro working like \ref with an additional function: if the argument is on the same page as the reference (the actual page) it adds page \pageref. I tried to do it but I think ...
1
vote
2answers
46 views

Elsevier: reference format starting with citation, authors, year.. latex

I am having problem changing the format of the references to match the ones of the journal I am submitting to. The journal provides a series of styles but none of them matches what they want. In the ...
2
votes
1answer
24 views

cleveref: Change value of the word 'and'

What have I to do to manipulate the and-conjunction? I tested all the conjunctions I found in the manual, without success. \documentclass[]{scrreprt} \usepackage{amsmath} %\usepackage{showkeys} \...
0
votes
1answer
27 views

Add a document name, while using an external document reference

I'm using xr package for referencing to external documents. I want to add external document title to a reference. How it could be obtained?
0
votes
0answers
43 views

Question mark shown instead of theorem number

In TexStudios, I labeled and referenced theorems with \label and \ref. After I compiled the latex document twice, it still shows two question marks instead of my theorem number. My code snippet: \...
0
votes
0answers
15 views

Reference multiple subfigures in one subref call

I am using \subref (provided by the subcaption package), and \subref{somelabel} works fine. I would like to reference multiple labels in the same call however, since I am using both parentheses and a ...
1
vote
1answer
26 views

What's the “right” way to ensure all of the autoref names are capitalized, in an sty?

Suppose I'm writing an .sty for people to use. This .sty might be loaded before or after hyperref, and possibly before some other packages define \chaptername, \chapterautorefname, \sectionname etc. ...
0
votes
1answer
22 views

Undefined reference when trying to reference figure from within appendix file

I have created a separate appendix file and have some figures in this file. I am trying to reference these figures in the text contained in the same file. However, I get undefined reference in the ...
1
vote
2answers
29 views

If I redefine \citep, then \citep[prefix][postfix]{citation} does not work

I have refined \citep so that the colour of the hyperlink turns "Teal": \let\oldcitep=\citep \def\citep#1{\hypersetup{citecolor=Teal}\oldcitep{#1}} %changes colour of citep link to Teal. NB: I have ...
0
votes
0answers
28 views

Change easily how figures, tables, equations.. are cross-referenced based on what is recommended in style guides such as MLA, APA, IEEE [duplicate]

Context Many writing and referencing styles, as you know, require certain specific guidelines when cross-referencing images, tables, equations, sections etc... Per example, in the APA style you ...
1
vote
1answer
31 views

AIMS style reference

This journal requires AIMS style references. It has a sample whose hyperlink is on the name of the cited paper: \bibitem{rB} (MR1301779) [10.1007/978-1-4612-0873-0] \newblock J. Smoller, \newblock \...
0
votes
1answer
19 views

Apacite with natbibapa option change “and” in the references with ampersand

I am using apacite with natbibapa option \usepackage[natbibapa]{apacite} in my latex document. At the moment, when I use \cite, the authors are delimited by "and". I want that to be changed to \& ...
2
votes
1answer
33 views

Redefining \label to not default to <1>

According to this question, labels are defined by default on a beamer slide to always be defined at the first slide <1>. Indeed \show\label shows > \label=macro: ->\@ifnextchar <{\...
1
vote
1answer
44 views

What is a TeX to HTML converter that produces GladTeX-friendly HTML and numbers formulas?

I wrote a math paper in LaTeX that uses a custom .sty file I wrote (defines some math commands, basically, and imports packages with math symbols and fonts) and I want to convert it into a standalone, ...
0
votes
0answers
25 views

Reference numbers appear in Overleaf but don't appear in journal pdf proof when I upload the related .TeX documents

I prepared a paper in Overleaf. There is not any problem in References' numbers in the PDF document in Overleaf or TexStudio in my local computer. However, when I uploaded the TeX documents to ...
3
votes
2answers
166 views

amsmath: How can I use the equation numbering and label manually and anywhere?

I want to use the accustomed equation numbering and label manually and anywhere; for example in an array. With the command \newcommand{\tagx}[1][]{\refstepcounter{equation}(\theequation)\label{#1}} ...
1
vote
2answers
52 views

problem in having one reference bold in .bib file

I need to make just one of my references in my bib file, bold in the bibliography. Here is my references: @article{papike1982lunar, title={The lunar regolith: Chemistry, mineralogy, and petrology}, ...
0
votes
0answers
20 views

Is there an equivalent to exsheet's \exerciseNumber{} in XSIM?

The exsheets package allowed for referencing a previous exercise through its ID tag with \exerciseNumber{<id>}. Changing to XSIM now, I could not find an equivalent. The \GetExerciseProperty{ID} ...
0
votes
1answer
27 views

How do I cross-reference a figure between two tex documents? [duplicate]

My Professor is requiring me to write a script for my final presentation. I'm using LaTeX (because I can), and I'd like to reference my a slide from my beamer presentation within my script. Right now ...
1
vote
1answer
50 views

How to reference something in superscript?

When I reference some label with \ref{label} I find the reference a little too big (Because it's the same size as everything else) I'd like them to be in superscript. But not everywhere. I want this ...
1
vote
1answer
30 views

How would you number/identify/tag different cells of a table to reference them quickly and easily when writing?

This may be more of a design question rather than a technical one, but I need to easily reference different cells of the following table: \begin{table}[!htb] \centering \caption{Karnaugh Map} \begin{...
0
votes
0answers
26 views

How to repeat the content of an item?

I am trying to repeat the content of an enumerate item. I tried it with the nameref package but without success: \documentclass{article} \usepackage{nameref} \begin{document} \begin{enumerate} \...
4
votes
2answers
113 views

Add letter and simple quote in french with \autoref to appendix

I have the following rendering by using (french language) : avec $k = k(k_\text{ref},\mu_\text{ref})$ et $\mu=\mu(\mu_\text{ref})$. Le d\'etail de l'obtention de cette relation peut-\^etre trouv\'e ...
1
vote
1answer
37 views

Side-captioned equations not working with hyperref

I have a problem here getting this to work. I have a document where I've manually wrapped the text around a couple figures and math examples (the 2x2 matrix in the attached image). This is done using ...
1
vote
1answer
38 views

Biblatex references: Display names correctly and always displaying names

I want to display names in a Hardvard style used in my institution where references are displayed like: Author, F. M., Author2 F. M., Author3 F. M. (2019) etc However, my document shows it like this:...
1
vote
1answer
79 views

Notoccite not working

I have the following document preamble and I cannot understand why notoccite does not work (i.e. LaTeX stills considers the references in the list of Figures/Tables as the firsts appearing in the ...
1
vote
0answers
62 views

Only citing a sub-reference whilst keeping order (biblatex)

Hi so I was wondering How I might cite something whilst only citing a sub reference using biblatex. At the moment using subentry I have to cite the whole set before citing the subentries so that the ...
1
vote
1answer
53 views

How to get \ref to write “Theorem 5” or “Lemma 5” Instead of just “5”?

I sometimes change something from "\begin{theorem}" to "\begin{lemma}" (I have my own commands: \newtheorem{theorem}{Theorem} and \newtheorem{lemma}{Lemma}). But if I just write \ref{theorem1}, then ...
3
votes
1answer
36 views

Referring to selected linguex examples without parentheses

How to refer to selected linguex example numbers without parentheses? The editors want me not to use parentheses around example numbers that are placed within parentheses in the text. Like in the ...
4
votes
2answers
75 views

Refer to page numbers where table is referenced

I'm using autoref to refer to tables in the text, e.g. In \autoref{tab:main_result}, you can see ... I'd like to be able to refer to a variable that lists the pages that tab:main_result is called ...
2
votes
1answer
18 views

I would like to modify the spbasic.bst file

In my manuscript, I would like to use socpsych.bst for my output references but I could not find this .bst file on the internet. Instead I would like to use spbasic.bst in order to make it look like ...
1
vote
2answers
51 views

Referencing equations in latex

I am trying to reference equations in latex (I am writing in overleaf) and am using the code as in the official overleaf documentation i.e. \begin{equation}\label{Emc2} E=mc^2 \end{equation} ...
2
votes
1answer
47 views

Use name of referenced object as argument of string comparison

I have argument #1 which contains some text X representing some label. I would like to use \str_if_eq to compare X and name of paragraph referenced by this string. What I want to achieve is that if \...
1
vote
0answers
16 views

Adding space to subreference

Consider this example: \documentclass{report} \usepackage{subfig} \begin{document} See Figure~\subref*{sf1} for more information. \begin{figure} \centering \subfloat[Subfig 1]{\label{sf1} Contents of ...
0
votes
0answers
32 views

Check whether section/subsection is longer than one page

I have defined myself a small (probably disgustingly overcomplicated) command to reference parts of my document and add the respective page number to the output if the referenced part is on a ...