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.

2
votes
1answer
34 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
20 views

Random authors' names before cover page

I don't know why but when dowloading the pdf file from overleaf, some random authors' names contained in the references section pop up right before the cover page, like the image below is pg. 1 of the ...
0
votes
0answers
29 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 ...
1
vote
3answers
31 views

How can I reference item (i) in Theorem 1.1 such that it displays “Theorem 1.1-(i)”?

Consider the following example: \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{amsmath, amsthm, amssymb, mathtools, thmtools} \usepackage{hyperref, cleveref} \usepackage[shortlabels]...
1
vote
1answer
31 views

How can I remove the initial letter in the Appendix heading?

I am writing a paper for school in which I need to include appendices. Currently, I am using the \appendix command at the end of the document (just before \end{document}) to insert these appendices. ...
2
votes
1answer
57 views

Italicising “et al.” in references when using Harvard package / citation style

I'm relatively new to latex and this is my first post here, and I've tried to include a minimum working example below but I'm not sure if i've done it right. My main question is regarding the use of ...
0
votes
1answer
21 views

Figure reference micro

I want to use \autoref(figure) to produce Figure 1.1 shows us blah blah blah and make a micro for something like \figref(figure) to produce Blah Blah Blah is shown in figure 2.1.
3
votes
1answer
44 views

Accessing chapter's name in Koma-Script

I looked up for a solution to access the name of current sections (chapters, sections, etc.) from macros (including starred variations of the section command). The set of macros proposed here works ...
1
vote
1answer
65 views

List, where \ref{…} have been made

I want a document where I have different sections, and each section has many references to other sections, like \section{a} \label{a} See \nameref{b} \section{b} \label{b} See \nameref{a} \section{...
0
votes
0answers
14 views

Numbering and Referencing [duplicate]

Is it possible to renew a command to stop equation referencing using the chapter number? I would like the numbering to restart every subsection. Thank you.
0
votes
0answers
16 views

Indexing terms being used in cross-referencing

This is a follow-up question of my previous one: Cross-referencing numeric values and text from later section to executive summary of a latex document I have finished making my report and now my boss ...
0
votes
0answers
38 views

Why \ref displays the label itself rather than the number

I met a strange problem. If a have a label \label{fig:Name}. The cross referencing code \ref{fig:Name} cannot show the proper number. 1 for example, but the label fig:Name itself. And the label is ...
1
vote
1answer
44 views

How to cite a theorem when its order (and thus number) keeps changing

The \begin{theorem} command will automatically order theorems as they appear in the file. I am currently writing a paper and as I edit the paper the order of the theorems keep changing. However, I ...
-1
votes
1answer
22 views

change equation label with amsmath

I would like to change equation number from style (N) to (N.). I can do this by redefining \def\@eqnnum{{\normalfont \normalcolor (\theequation.)}} ...
0
votes
0answers
28 views

! Package inputenc Error: Unicode character ‪ (U+202A) when using crossref [duplicate]

I'm trying to cite this reference, but whenever I compile it with pdflatex, biblatex and biber, I get the error "! Package inputenc Error: Unicode character ‪ (U+202A)". I already checked my files for ...
1
vote
2answers
29 views

How to use references within equations and refstyle?

The refstyle package seems to break references within equations \documentclass{article} \usepackage{amsmath} \usepackage{refstyle} \begin{document} \begin{enumerate} \item \label{enu:test} \end{...
0
votes
0answers
18 views

customize reference to subfloat [duplicate]

This script: \documentclass{article} \usepackage{graphicx} \usepackage{subfig} \begin{document} See Fig. \ref{fig:exa} \begin{figure} \centering \subfloat[example a]{ \label{fig:exa} \...
1
vote
1answer
17 views

Question on Reference Style with apacite (APA style) for User's Guide

I am trying to make reference using APA style (apacite) with bibtex. The User guide that I want to add on is not computational software manual. It is manual for flow sensor. So I wanna take out [...
1
vote
0answers
32 views

Is there a way to make an in-line tag?

I know that I can use labels in an in-line equation, but since it is an in-line equation I didn’t want this equation to be numbered, instead I would like to reference it by an \star, and keep the ...
0
votes
1answer
54 views

Biblatex: dual referencing (both by end of chapter and at the end of the document) on “Clas­sicTh­e­sis” by Dr. André Miede

I have been using LaTeX the "Clas­sicTh­e­sis" template by Dr. André Miede v. 4.6, for my dissertation/thesis document. However I require to have my references at end of each chapter as well as my "...
0
votes
1answer
14 views

Rmd — bookend:pdf_document2 — Latex — Cross reference and caption figure not working

Can anyone help me understand how to write my header so that the figure caption and cross reference works? I am practicing making captions and cross references to a simple plot in my Rmd file. I ...
1
vote
1answer
33 views

Reference “referencename” undefined for all my figures, same for citations

All my figure references and citations give the undefined warning, and the document will not compile. I have been very careful in checking for typos between \label and \ref. before I added the ...
1
vote
1answer
39 views

Generate list of references from bib file

I have a .bib file containing about 100+ publications references. I want to generate the pdf file with all the references in descending order of publication year, just as it appears in journals? Is ...
0
votes
0answers
15 views

How to get “full path” of a reference, when \thesubsection do not contain \thesection?

Context My document has following structure: 1. First section a. Lorem b. Ipsum 2. Second section Note that \thesubsection is defined without including \thesection. Or in other words, ...
1
vote
1answer
54 views

Redefine \cref for non-English languages

Would it be possible to define another command \frcref that is similar to \cref, but when it is called, e.g. \frcref{ch:chapter1}, it displays the French word "Chapitre" instead of the English word "...
2
votes
1answer
35 views

Reference Subpoints of Lemma

I have Lemmata consisting of several subpoints (basically a collection of similar formulas) and I want to reference these subpoints in text by "Lemma 1 (1)". So far my code looks like this: \...
1
vote
0answers
27 views

Package autonum breaks all references when used with thm-restate

I have the following LaTeX file \documentclass{article} \usepackage{thm-restate, autonum} \newtheorem{lem}{lemma} \begin{document} \begin{restatable}[Embedding lemma]{lem}{embedding} \label{lem:...
0
votes
1answer
28 views

Changing the displayed word of a reference

In the following: \documentclass{article} \usepackage{cleveref} \begin{document} The proof of \cref{th:fermat} may be found in the \ref{sec:appendix-omittedproofs} \section*{Appendix: omitted proofs}...
0
votes
0answers
24 views

Please help me understand the editor comments regarding reference format in the manuscript

A paper of mine has been accepted today for publication in Physical Review E. :) But, the editor wants me to change the reference format. His comment is: "* The format of the references in your ...
2
votes
1answer
51 views

Reference lstlisting code by caption/title instead of number

In my LaTeX document I use \ref{code.java} to reference a code as shown in the image below and it shows the section/chapter number. Why it shows "1" instead of code.java? Is it possible to make the ...
0
votes
1answer
15 views

Change the link color of a labeled item with custom label text

I found the code in the following page: https://joerglenhard.wordpress.com/2011/11/29/labeled-item-with-custom-label-text/ In author's own words: "an item list where each \item is labeled, so I can ...
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 ...
2
votes
1answer
23 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
24 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
17 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
44 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
16 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
32 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
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
33 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
45 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
36 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
36 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
68 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
14 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
33 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
30 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
41 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}...