Stack Exchange Network

Stack Exchange network consists of 175 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.

0
votes
0answers
6 views

Change reference behaviour of newlist depending on theorem environment

I am using ntheorem and cleveref, and I want to reference enumerate environments inside theorems, like the following: \documentclass{article} \usepackage{ntheorem, cleveref, enumitem} % Define ...
1
vote
1answer
19 views

\autoref and subequations

I have an issue with \autoref and the subequations environment. I have added the () around the equation reference of \autoref (as explained here) and it works fine with normal equations. On the other ...
0
votes
2answers
18 views

lcnameref(s) with multiple references

The cleveref manual states (page 7): The \namecrefs and \nameCrefs commands produce the plural forms. The \lcnamecref and \lcnamecrefs commands force the reference name to lowercase, ...
1
vote
0answers
15 views

Referencing tables when they are inside `onlyenv` (beamer) [duplicate]

It seems that I cannot reference tables when they are placed inside onlyenv, but . This applies to both of \cref and the traditional \ref The topic Table numbers in beamer is not an answer to this ...
0
votes
2answers
40 views

Broken Section cross-reference when exporting as pdf

I use Lyx. When I export my article as pdf (or postscript) the cross-reference to the Sections appears as ?? in the output. The same doesn't happen with Part, subsection, and subsubsection. It works ...
0
votes
0answers
14 views

Referencing theorem/definition/remark also saying whether it is a theorem/definition/remark instead of just a number

I have continuous numbering like this: \newtheorem{theorem}{Theorem} \newtheorem{definition}[theorem]{Definition} \newtheorem{lemma}[theorem]{Lemma} \theoremstyle{definition} \newtheorem{remark}[...
0
votes
0answers
30 views

Equation-like references to text?

I love labeling equations and using \eqref{label}. Sometimes I miss ability to do exactly the same (create (N) side-label and reference it afterwards) with text. I mean achieving effect like … ...
0
votes
0answers
11 views

Answer to manul bib for author year [closed]

You can make manual bibitem via following steps: 1.Add===> \usepackage[authoryear]{natbib} 2.USe citing ===>\cite{1} 3.Your bibitem must seem to this: \bibitem[Jones et al.(1990)]{1} Chikofsky EJ, ...
0
votes
0answers
28 views

Equation preview in pdf

Is there a package that allows me to create a pdf document such that when I see an equation number referenced, say (1.3), I can get a preview of the equation (1.3) by clicking on it, without having to ...
1
vote
0answers
14 views

Setting label in newcommand via a pgfkey [closed]

I'm attempting to set a label in a macro(?) I created with a new command. I'm passing several values to the command in the first argument via pgfkeys, but the \label macro is just using the literal ...
1
vote
1answer
31 views

Reference in theorem environment without label

I have \documentclass[10pt,a4paper,onecolumn]{article} \usepackage[utf8]{inputenc} \usepackage[spanish]{babel} \usepackage{amsmath} \usepackage{amsthm} \usepackage{amsfonts} \usepackage{amssymb} \...
1
vote
3answers
43 views

Using \StrSubstitute in a macro definition

I would like to create a macro that typesets the argument using \emph and also creates a label with that name. My names contain underscores so I tried to use \StrSubstitute from the xstring package: \...
2
votes
1answer
35 views

How to link words with cleveref?

Is it possible to link a word to the meaning at the end of file with cleveref? Heres a MWE of my code: \documentclass[12pt,a4paper]{article} \usepackage[utf8]{inputenc} \usepackage{hyperref} \...
2
votes
2answers
34 views

How can a dot be put between item and subitem label for references to nested lists

I want to have A.i instead of Ai as a reference to the first item \documentclass[twoside]{book} \usepackage{enumerate} \begin{document} \begin{enumerate}[A.] \item\label{FirstItem} First Item \...
2
votes
1answer
53 views

figref with subfigure and parentheses

I use IEEEtran with subfigure and \figref. \begin{figure} \centering \subfloat[Foo.\label{fig:test-foo}]{\includegraphics[width=0.4\textwidth]{foo}} \\ \subfloat[Bar.\label{fig:...
0
votes
0answers
13 views

Expand references to implicit local paragraph and line numbers

I just submitted a revised manuscript to a journal that demanded a list of locations in which the manuscript had been changed. It did not allow visible line numbers to be typeset on every page—...
0
votes
1answer
32 views

Reduced size references section

I'm using Mendeley to manage the references for my thesis. Unfortunately there is a page limit and I was looking at my references as a place to gain back some space. The issue that I am having is ...
1
vote
1answer
28 views

How to use something like \label outside the table environment?

I would like to ask whether there is any way to use a \label-like command outside a longtable in order to reference this table in latex? It would be also helpful if the label of the table could be ...
2
votes
2answers
38 views

Cross-referencing forth and back

I will try to describe my question as clear as possible. First a working example. \documentclass[french,11pt]{article} \usepackage[french]{babel} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc}...
0
votes
0answers
20 views

How to display a chapter / section reference in the pattern (chapter n section m), where n is the chapter number and m the section path

I have the following content structure: \chapter{Kapitel 1} \label{ch:c_1} \section{Abschnitt 1} \subsection{Unterabschnitt 1} \subsection{Unterabschnitt 2} \label{ch:u_a_2} The goal is a chapter ...
1
vote
0answers
29 views

How can I label an inline math formula/sentence/word? [duplicate]

I tried to label a specific inline math formula in the paragraph. For a simple example, \section{This is the third section} $a^{2}+b^{2}=c^{2}$\label{formula:1} Formula \ref{formula:1} is useful! ...
0
votes
0answers
22 views

Nameref to a chapter acting weird

i have a very weird behaviour with LaTeX and i can't really explain it. I have the following structure: ... \section{section c} \label{sec:a} ...text... \chapter{chapter 3} \label{chap:three} ... ...
0
votes
3answers
57 views

Cross-referencing external data

Is there an existing module which can be used to reference external data. For example I would like to add the result of my analysis to some kind of library and give it a citation key which I can use ...
0
votes
1answer
35 views

How to refer to a subsection of a starred section?

In How to \label-\ref an un-numbered section, Nathan Grigg pointed out that one could use the \hyperref commmand to create a link to a starred section as follows \documentclass{article} \usepackage{...
4
votes
2answers
78 views

Environment for chemical reaction with reference

I need a chemical reaction environment, numbered and able to be referenced/labeled. It must also that is consistent with equation in its looks. I have read many questions and my code is an adaptation ...
0
votes
2answers
34 views

Automatic counter with sub counter for table row - referencing

I want something like this: a referrable automatic counter and sub counter for each row in a tabularx environment. I could find a solution for a single counter here, but could not adapt it to tabularx....
0
votes
1answer
37 views

References to uncompiled sections

Im writing my thesis with latex and I used different files for the chapters, inserted in the main one with the \input command. Sometimes, I need to compile just 1 chapter (to send it to a reader, or ...
1
vote
1answer
49 views

Why \secref command in memoir with cleveref and nomencl no longer works

The document below, with a chapter/section scheme in a memoir class document, uses a custom \secref command. This command allows reference to a section in the shorter form "section s" that would ...
1
vote
1answer
53 views

Problems with referencing in Emacs/RefTeX

I have problems referencing a table (see Example below) using GNU Emacs 26.1 (build 1, x86_64-w64-mingw32) on Windows Pro X64 and AUCTeX with RefTeX. If I set a label, and reference it, the reference ...
0
votes
3answers
44 views

How to print something that in each section on the first page

I want to reference some numbers in each section on the first page of the document. But I can't find any package to do this. \documentclass{article} %\usepackage{zref} \begin{document} \...
3
votes
2answers
87 views

Consecutive numbering and labels in tcolorbox

Those days I write a book, and I use framed boxes tcolorbox. Have a look: \documentclass[12pt,a4paper]{book} \usepackage[utf8]{inputenc} \usepackage{amsmath,amsthm,amsfonts,amssymb,mathtools} \...
0
votes
0answers
18 views

Include section number in reference to subsection [duplicate]

In an article I omit the section number for subsection titles, using: \renewcommand\thesubsection{\arabic{subsection}} However, when I now create a \label in a subsection and reference it using \ref ...
0
votes
1answer
54 views

Subfigure labelling for a single figure with REVTeX 4.2

Look at this piece of paper from an APS journal: as you can see there is a single image (called figure 3) with already embedded the (a), (b), etc.. letters indicating different parts of the same ...
0
votes
0answers
13 views

Referencing sublabels in REVTeX 4.2 [duplicate]

I am writing a document using REVTeX 4.2 and I have a single image file already divided in multiple parts (a, b, c, etc..). I want to reference this "subfigures" in the text. Normally I would just ...
3
votes
1answer
105 views

Generating a Persistent and Unique IDs (for Requirements in a Specification)

I want to have (visible) IDs that are persistent (maybe there is a better term in English than 'persistent') and unique within a document. With persistent, I mean, that if I add additional stuff with ...
2
votes
1answer
20 views

reference in theorem environment

I am using theorem environment and want to put reference near the lemma, however, instead of [18] I am getting (18), how I can fix it? \documentclass{article} \usepackage{amsthm}% http://ctan.org/pkg/...
1
vote
0answers
27 views

How to refer a table in Latex [duplicate]

I have problem with referring tables in Latex. The output is always in form of "??" (see screeshot please). However, I got no problem with referring figures. is illustrated in Table \ref{table:a}: ...
1
vote
1answer
45 views

Need LaTeX to automatically update a reference number within a table

I'm need to assign a reference number inside a table such that it automatically updates the number at the end and restarts the counter when the initial part of the reference number changes. For ...
1
vote
1answer
54 views

Referencing Specific Tikz Nodes outside TikzPicture

I am wondering how to reference a Tikz node outside a Tikz Picture, as if referring to an image. This page lists the possible \ref{} objects not including nodes, but maybe there is a package that it ...
1
vote
2answers
41 views

Change color of equation hyperrefs with each section

Similar to two previous posts of mine, I want the color of the reference to a formula to be the same color as the theorems etc in that section. MWE \documentclass[a4paper,twoside,ngerman]{article} \...
0
votes
1answer
52 views

Arxiv Equation Referencing Problem

I am struggling to submit my work on Arxiv. Even though referencing citations works, referencing to the equations within my tex file does not work. It results in (??). I checked all the Arxiv help ...
4
votes
2answers
61 views

Large link border with hyperref

In this line of my text when I had to use a cases environment within the text I got a large link border around 1. How to make it regular like any others references? Below a MWE of my code: \...
0
votes
0answers
49 views

latex reference

LaTeX Warning: Reference `2.20' on page 57 undefined on input line 2685. I don't know about what this warning is. What this warning means? My code is too long and I make \begin{thm}\label{2.20} at ...
0
votes
0answers
18 views

Wrong cited reference numbering is shown in a figure caption

I have a problem in inserting reference number in figure. (The problem is completely the same as the following question and I tried the answer but it didn't work: Wrong cited reference numbering in a ...
1
vote
1answer
27 views

tex4ht produces a corrupted file when a \label and a \ref to that label use a double-hyphen

When my document has a figure with a \label{aa--bb} or any other label that uses two hyphens (-) in a row (--), tex4ht produces a corrupt .odt file. Is there a way to fix this bug? MWE Using the ...
1
vote
1answer
43 views

link figure to jpg file in such a way

how can I link figure in tex in this way, i.e. "Fig.\,6(b)" in tex, then I click Fig.\,6(b), I will see the 6.jpg automatically namely What should I do in \begin{figure}[h] .... \end{figure} Best,...
0
votes
0answers
16 views

How do we get figure references to not render as “??” [duplicate]

Below is some source code for a short/brief document. When I compile the short document document only once, the source code \ref{figure:FORMULA:anatomy} becomes ?? in the pdf. If I run PDFLaTeX a ...
1
vote
1answer
46 views

Remove section number in references to theorems

How can I remove section number and subsections in references to theorems of the same, but not from various, subsection. For example, that would after such a code \documentclass{report} \usepackage{...
1
vote
1answer
19 views

Referencing to figures & sourcecode in appendix (Numbering issue)

during the main part of my paper I reference to the appendix like so: \footnote{\textit{\ref{fig:graphqlSchema} \nameref{fig:graphqlSchema} (S. \pageref{fig:graphqlSchema})}} or so: \footnote{\...
1
vote
0answers
23 views

long listings with pandoc-crossref doesn't fit on page

Let's consider input file: ```{#lst:code .html caption="Listing caption"} <!DOCTYPE html> <html> <br /> <br /> <br /> <br /> <br /> <br /> ...