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.

1
vote
2answers
102 views

Lower-case letter in \nameref

I use this before \begin{document}: \newcounter{mylabelcounter} \makeatletter \newcommand{\labelText}[2]{% #1\refstepcounter{mylabelcounter}% \immediate\write\@auxout{% \string\...
0
votes
1answer
59 views

referencing and labels

I want to know how do you references well. I use \label{...} and \ref{...} but I can't willingly chose the number that will be displayed with the \ref. I mean, how can I know what number will be ...
0
votes
1answer
39 views

Error redefining \nameref using \let

I wish to redefine \nameref so that its output is printed in italics. However, I'm apparently doing something wrong, because I'm getting an error saying \nameref undefined. \renewcommand{\nameref} ...
0
votes
1answer
48 views

Question marks shown with \ref on one occasion [duplicate]

The \ref command for one of my figures is outputtig question marks ("??") instead of the reference, but it's working fine for the other figures. Code: \documentclass[10pt,a4paper]{article} \...
0
votes
0answers
56 views

LyX: how to start one cross-reference with a capital letter

I want a specific cross-reference in my LyX documente to start with a capital letter. In an ERT box, I have the following: \Figref{fig:DesignB_Sensitivity_MAG} where fig:DesignB_Sensitivity_MAG is ...
1
vote
2answers
68 views

How to define a name for paragraphs referenced by \autoref

I have defined the following command: \newcommand*{\namerefLabeled}[1]{\nameref{#1} (\autoref{#1})} It largely does what it's supposed to, i.e. turning something like: For further details, see \...
1
vote
1answer
48 views

Show table defined by a macro before assigning its elements

I would like to add rows to a table with macros (as in the minimal example below). Therefore, I use the command \addtotable. The code works fine if I place the table after all the rows have already ...
1
vote
1answer
81 views

Referencing tcolorbox environment

I'm trying to make a reference to this environment, but it comes out with the double question mark. Is there anything missing from this environment for me to be able to refer to it? \documentclass{...
0
votes
0answers
51 views

Changing page number in hyperref bookmark

I have a book that is published under CC-BY. But it contains some CC-BY-NC-ND chapters, which I want to exclude from certain versions of the book. So instead of including the chapters I include dummy ...
3
votes
1answer
62 views

Why does not subequations numbering work as intended when I customize it?

I am using IEEEtran for typesetting and it seems that subequations are cited appropriately when leaving their numbering to the default value. When I customize it, however, the equation numbering ...
2
votes
2answers
230 views

Subfigure referencing shows Roman number

I am trying to refer figures and subfigures in my thesis. When i refer entire figure( which contains subfigures) I get it correctly as shown Fig. 1.1. Whenever I am referencing a subfigure. It shows ...
4
votes
2answers
63 views

Include the subsection number in cross-reference to a theorem-like environment

I think it is better post my code and then ask my question \documentclass[a4paper,12pt]{article} \usepackage{amsmath} \usepackage{amsthm} \usepackage{lipsum} \usepackage[T1]{fontenc} % optional \...
2
votes
1answer
31 views

Let's get it just right: An \aboveorbelow{some-label} command

I'd like to define an \aboveorbelow command which can be used as follows: \documentclass{article} \begin{document} \section{Animals} \label{sec:animals} \section{Another section} The quick brown fox (...
0
votes
0answers
43 views

Formating footnotes with footmisc package

I used the solution appeared here: Multiple footnotes at one point to deal with multiple footnotes referencing from one point. As a minimal example: \documentclass{article} \usepackage[multiple]{...
0
votes
0answers
26 views

How to reference on group of equations? [duplicate]

I have the TeX code \begin{subequations} \begin{align} \sum_{i=1}^d \mu_i w_i &\ge \bar{\mu}_p, \label{conES1}\\ \sum_{i=1}^d w_i &= 1, \label{conES2} \\ w_i &\ge 0, \quad \forall i. \...
0
votes
1answer
34 views

Bibtex Spacing Error between Words in Reference with URL

One of my reference seems wrongly spaced as below. As you can see, there is too much spacing in the 4th reference. I have already load \usepackage[hyphens]{url}, however I think it doesn't help a lot....
0
votes
1answer
67 views

Equation references shown as ?? (question marks)

The cross-references in my document used to work. But recently I found all the references to the equations are shown as ?? (question marks). I am not sure whether this is because I revised or added ...
9
votes
2answers
264 views

Creating several ways of referencing for just one type of label

I want to create a statement enumeration environment together with a referencing mechanism such that the code \section{A section} \begin{theorem} \begin{statement} \item Test \label{Test1}...
1
vote
1answer
38 views

Custom command expands counter again

I am trying to create two custom commands, that create subsections with labels and custom numbering. But when I use \nameref to get the title of the reference, it expands \decimal{reqCounter} again so ...
0
votes
0answers
38 views

Referencing Optional Labels in an Omnibusable Book

I have a book on math in several parts Arithmetic Algebra Linear Algebra Etc. I don't necessarily want to wait until all the parts are done to publish some of the parts, then I want to be able to ...
0
votes
1answer
29 views

Automatically add a section numbering to \nameref references

Since \nameref only provides clickable links, which are obviously not printed and therefore not very helpful for anything that will eventually be printed, I need to redefine it (or use another ...
0
votes
0answers
10 views

referencing figure does not work tried a few things [duplicate]

In most of my document the referencing of figure doesn't work. I am not sure what I am doing wrong I have tried ~\ref and \ref but I just get ?? \begin{figure}[h!] \label{fig:tcshock} \centering \...
1
vote
1answer
97 views

Is there a built in tool in MikTex/TeXworks to output a list of labels used in the current document?

I was looking for a way to output a list of all the labels used in the document, but so far have only found this answer that uses a built in function in WinEdt. Is there a similar functionality in ...
0
votes
1answer
28 views

ToC links to the wrong page of the references

I have a problem with the linking from the contents to the references. The very last line before \end{document} is \printbibliography[heading=bibintoc]. In the premeable I have \usepackage[english]{...
2
votes
1answer
46 views

List references to labels of figures and tables

I have a large document with > 100 tables in the appendix and many references at various points in the document. Is there a way to create a list of references in the sense of finding all \ref{...}s ...
2
votes
0answers
39 views

Determine the location of cross-references

I'm trying to determine which cross-references land far away from their label/anchor or more generally the location of cross-references throughout a document. \documentclass{article} \usepackage{...
1
vote
3answers
52 views

Multiple references on top of mathematical symbol in align environment

I am trying to make a multiple reference inside an align environment. The reference should be on top of an = sign. I thought of using stackrel{}{}, but the output doesn't seem much appealing! My ...
0
votes
0answers
41 views

Issue with natbib: question marks appear in the place of citations [duplicate]

I have read other posts that had the same issue as me but none of the answers seem to work, so I apologise for the possible duplicate question. Firstly, I am using ShareLatex. Secondly, in my pre-...
3
votes
3answers
92 views

Change formatting in \cref

Sorry if this question is a duplicate but I couldn't find a solution anywhere. I want to define a command with two arguments which does the following \newcommand{ThecommandIwant}[2]{#1.\cref{#2}} ...
1
vote
1answer
68 views

Using tcolorbox for a sidebar

I'm trying to re-write a sidebar environment I have that is based on wrapfigure and such into something based on tcolorbox. However, I've run into a couple of issues. For reference, here is my old ...
0
votes
0answers
52 views

Print caption title by label?

I'm working on a complex document layout (sort of magazine). Photos are positioned thanks to tikz (with overlay option and absolute coordinates). Each photo is tagged with a proper \captionof{figure}[...
0
votes
0answers
22 views

Can I refer to specific align line numeration, in similar way how I can refer to \bibitem with \cite?

If I make bibliography, then I can make unique name for any position, for example by \bibitem{tutor}, then refer to it in the text with \cite{tutor}. Now, let's say that I am writing some bigger text,...
2
votes
1answer
149 views

Multiple references to the same footnote per page with multiple sets of footnotes

This is my first post in this online community. I have looked for an answer to this question for hours. Some posts cover parts of what I need, but none that I've found cover it in detail. I am ...
4
votes
1answer
97 views

Custom definition of \ref causes problem inside argument of \caption

I am trying to implement a custom version of the \ref command. I found out that in order for me being able to redefine this command I need to do so via \AtBeginDocument as otherwise my change seemed ...
0
votes
1answer
70 views

change \eqref format with \RenewDocumentCommand (or other way)

This is a follow on for an answer in: What is the correct way to type "See Eq. (n) \documentclass[12pt]{report} \usepackage[UKenglish]{babel} \usepackage{graphicx} \usepackage{epstopdf} ...
2
votes
1answer
21 views

Referencing lines whose styles are set using \pgfplotsset

In the MWE example below, it seems that the line style for the reference is not set correctly (in the plot, the circles are not filled, but they are filled when referencing them). Am I doing ...
5
votes
1answer
87 views

How can I prevent or reduce multiply defined labels?

I have a format which repeatedly uses TikZ pictures in the background of certain pages. Because these pictures require remember picture, overlay, they cannot be externalised. To control compilation ...
2
votes
2answers
171 views

\cpageref from cleveref produces wrong label

The code that follows \documentclass{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage[american]{babel} \usepackage[hidelinks]{hyperref} \usepackage[nameinlink, capitalize, ...
0
votes
0answers
27 views

Why this simple reference to figures does not work as expected? [duplicate]

I'm trying to reference two figures, but somehow the tagging mechanisms is not working properly. I have done this thousand of times, and it's driving me crazy. I have come to the following minimal ...
10
votes
3answers
394 views

Add longer comments to steps of some calculation

Consider the following example: \documentclass[11pt]{scrartcl} \usepackage{amsmath} \usepackage{IEEEtrantools} \usepackage{commath} \usepackage{lipsum} \begin{document} \section{Docendo discimus} \...
0
votes
1answer
122 views

change the figure reference style

In fact, I have one figure containing 2 pictures. And I want to have a good looking design in term of referencing Here is the code: \immediate\write18{makeindex \jobname.nlo -s nomencl.ist -o \...
2
votes
2answers
73 views

Can I use cleveref to format a reference to an external entity?

Question How can I cite a figure, section, or equation from an external document, but reference it using the same formatting as I use in my document via the cleveref package, regardless of how ...
1
vote
1answer
42 views

How to change the appearance of cross-references to side-by-side subfigures?

I have the following code: \documentclass[12pt,a4paper]{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{lmodern} \usepackage{graphicx} \usepackage{caption} \usepackage{...
1
vote
1answer
36 views

Navigation last next for own automated labels

I would like to add some navigation to my PDFs, such as jumping from change note to change note or todo note to todo note or such to the next such and back, something like \newcounter{cnt:todo} \...
1
vote
0answers
103 views

IEEEtran: \ref works but \cref does not [duplicate]

So I am using the IEEEtran document class for the first time and I have a problem. When I cross-reference a figure/table/section/whatever with \ref I get the expected reference number. But I would ...
0
votes
0answers
19 views

Subfigure headings in amsart [duplicate]

In my amsart document I have subfigures that are labeled with capital letters (A), (B), (C) etc, but when I cite them using \ref{...} it cites in lowercase (e.g shown in figure 7b'. How can I solve ...
1
vote
1answer
64 views

Improvements on citations as footnotes in Biblatex

I'm using the code of https://tex.stackexchange.com/a/275524/154017 , and I would like to ask how to make some changes. Is there a way to modify it in such a way that citations appears as [1] instead ...
2
votes
1answer
51 views

How can I get multiple sub-references to appear as a range in the caption and preserving other sub-references?

I have 2 plots which in turn have 4 plots each, which I label as shown in the MWE. The code is modified (link) such that the caption of the figure reads: Figure 1: (a)-(d) XYZ and (e)-(h) PQR But ...
2
votes
1answer
33 views

Interaction of hyperref package with my custom numbering

I am using this answer to create a proposition with custom numbering. This allows me to manually enter the proposition name/number. As it happens, my purpose in doing this is to create a "version b" ...
2
votes
1answer
72 views

Formatting of section reference

For a conference paper I have to use a custom package provided by the conference. This package contains the following line: \renewcommand{\thesection}{\arabic{section}.} which puts a dot after the ...