{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.

learn more… | top users | synonyms (1)

2
votes
1answer
30 views

cross-references for previous lemmas and theorems

I'm new with LaTeX and I'm having trouble with the enumeration given when I cross-reference, It doesn't match the one given by the section. \documentclass[10pt,letterpaper]{book} \usepackage[utf8]{...
0
votes
0answers
15 views

Cross reference an equation in different files [duplicate]

I am not sure that there is an answer to this question, but I try. I am writing two papers; in the second I often reference to some equations reported in the first: how can I use \eqref and \label so ...
1
vote
0answers
28 views

how to insert number in author's name in latex reference

The author's name is Beeuwkes R 3rd. The number 3 is not visible when I run the .tex file. Can anyone please help me with this? Thanks in advance
1
vote
0answers
22 views

References to the macro environment

Suppose I have the following in my dtx file (using ltxdoc): %\begin{macro}{\mymacro} % \label{macro:mymacro} % Example text % \begin{macrocode} \newcommand{\mymacro}[0]{An example macro} % ...
2
votes
2answers
51 views

enumitem: how to put a prime into certain parenthesized labels

How do I put a prime superscript on ii in (ii)? MWE: \documentclass{article} \usepackage{enumitem} \begin{document} \begin{enumerate}[label=(\roman*)] \item\label{A} First \item\label{B} Second \item\...
1
vote
1answer
15 views

Cleveref - change crefname for paragraphs to include paragraph title

I'd like to change the \crefname for paragraphs so that it produces "paragraph " instead of the numbering The regular latex command \nameref already produces the title but without "paragraph" in ...
2
votes
1answer
38 views

Sans-serif cross reference

I'd like my cross reference to be formatted in sans-serif, but I've not been able to find the way. I'm currently using both cleveref and hyperref packages.
4
votes
1answer
21 views

Problems referencing subfigures in wrapfigure environment

I have just tried using wrapfigure (to wrap text around my figure, duh). Now I find that I'm unable to reference my subfigures. Here's my MWE \documentclass[a4paper,11pt]{book} \usepackage{wrapfig}...
1
vote
1answer
21 views

How to reference a figure placed in the appendix

In my IEEEtran document, I had to create \appendix section at the end of my documents and place some figures there. When I try to reference these figures from any section using \ref{X}, I get ?? which ...
1
vote
1answer
42 views

How can I browse the unresolved references? [duplicate]

When I compile with LaTeX (emacs+AUCTeX), I get the following warning: LaTeX: there were unresolved references, {52} pages I know that I have some \ref{somefuturething} here and there, and I would ...
3
votes
2answers
47 views

Get title of current section of a specific level (similar to \thesection)

Similar to thesection, thesubsection, ... I want to obtain the title of a section (as it is in the body of the document), via for example (pseudo-code) \thesectiontitle, \thesubsectiontitle, ... The ...
2
votes
1answer
52 views

How to test if a label exists

I have tried to follow another question but I cannot get it to work. My question is: How do print a text based on if a reference exists or not? I have tried the following: \usepackage{etoolbox} \...
4
votes
1answer
52 views

Refer to title of direct superior section in an inferior section

General I know there are question about "how to refer to a specific title" however I need a way to generally refer to the superior section's title or to the title of the current section of a specific ...
3
votes
1answer
22 views

Macro to print number of chapter containing a certain reference key

I am writing a document with the amsbook class. I have defined a macro \newcommand{\thmref}[1]{Theorem~\ref{#1}} I would like to include the chapter number as follows: "(4, Theorem 2.7.6)", not ...
6
votes
2answers
82 views

What does amsmath do to \@currentlabel?

Can someone explain what amsmath does to \@currentlabel in the align environments? Better yet: if I want to write what would be expected to be the \@currentlabel together with some other information ...
1
vote
1answer
17 views

Cross-reference to custom float

I've defined a custom float, but my cross-reference to it isn't working. What am I doing wrong? Here's an MWE: \documentclass{article} \usepackage{float} \floatstyle{ruled} \newfloat{program}{thp}{...
4
votes
1answer
52 views

Automatic parentheses around example numbers

As things work by default in LaTeX, references to example numbers with \ref simply print the number of the example, with no additional formatting. However, almost all of the time in the papers I write,...
3
votes
0answers
54 views

How do you restate an algorithm?

I'm trying to restate/repeat/recall an algorithm in an appendix with the same numbering, etc., but I haven't found an easy way to do it. I'm using the algorithm environment and algorithm2e package. ...
1
vote
0answers
25 views

Cross-references between two papers [duplicate]

It is something I already did in the past, several years ago, and I can't remember how I proceeded. I have a directory with two tex files which will be never merged. So I have something like paper1....
3
votes
2answers
49 views

LaTeX3 RenewDocumentCommand for cite with an optional argument for punctuation

When working with citations there are many distinct ways the citation must be incorporated within the text. Even when you work exclusively with number formats (this example excludes Author year style ...
1
vote
0answers
15 views

citation problem in sharelatex using natbib

Hello I am using natbib in sharelatex and citing some papers but it is showing ? in place of citations and references are not showing up. \documentclass[12 pt]{article} \usepackage[utf8]{inputenc} \...
3
votes
1answer
28 views

Using hyperref to refer to unnumbered objects

I want to refer to a subsection, but my subsections and sections are not numbered. So I know I cannot use ~\ref{} and I should use hyperef, but it doesn't appear as I want. In the text I have: ...
0
votes
1answer
56 views

Easy way to auto-label [closed]

I defined a new paragraph with one counter in this way: \def\newparagraph{\paragraph{\counter}} Is there a way to release this kind of label? \label{\value{chapter}.\value{\counter}}
2
votes
1answer
36 views

Referencing equations and sections without enumerate

The question is ... I would like several things: First I want not enumerated sections (because I'll use them as themes). Second I would like enumerate subsubsections with letters. Third I would like ...
6
votes
2answers
74 views

Block of equations with only some being subequations and cleveref

I recently asked a question regarding the numbering of a block of equations within an align environment of which only some should be numbered as subequations; in my case I had three equations that I ...
1
vote
0answers
16 views

Problem with Bibliography Style display (ACM Small Standard Format)

I am working/writing on a paper with ACM Small Standard Format and I have .bib files as usual in this format: @article {paper1111, author = "last_name, name first word.", title = "The best paper of ...
3
votes
1answer
31 views

How to get the label and caption of the current table environment?

\documentclass{article} \RequirePackage{longtable,nameref} \begin{document} \begin{longtable}[t]{l l} \caption{Table caption.} \label{tab:table1} \\ a & b \\ c & \textit{\...
0
votes
0answers
21 views

Each entry in a BibTeX file has a “file” field

I just generated my BibTeX file using Mendeley File→Export and noticed that each entry has a file field: @article{Balachandran2013, author = {Balachandran, Athula}, ... file = {:Users/user/...
3
votes
2answers
78 views

Cross referencing two texts

Consider these statements Exercise 1. $\phi(n)$ is multiplicative. Exercise 2. By Exercise 1 we have $\phi(n)=\prod_{p|n}(1-1/p)$. Suppose I want to cross refer Exercise 2 to Exercise 1 what ...
5
votes
1answer
69 views

Is there an alternative to \ref or \eqref that omits the chapter number without changing the overall behaviour?

I am using a thesis template from my university (memoir class) which by default appends the chapter number when I use \ref and \eqref, which is totally fine by me. But in some occasions I want to ...
0
votes
1answer
22 views

Color only \nameref

I am using hyperref in conjunction with nameref and cleveref, and the objective is for \nameref{label} to be type-set in the link color (which it seems by default is red), but for \cref{label} to be ...
2
votes
1answer
25 views

LNCS class doesn't like \autoref

Consider the following document: \listfiles % for debugging \documentclass{llncs} \usepackage[colorlinks]{hyperref} \begin{document} \begin{theorem}\label{th}This is true.\end{theorem} See \autoref{...
2
votes
1answer
53 views

LaTeX internal references for files and URLs

I have a document with nearly 100 open source files that are referenced repeatedly throughout. Also, with each file is a URL, download URL, MD5 hash, etc. Is there a quick and simple way to create an ...
2
votes
1answer
33 views

New environment with dedicated index and reference

I'm using chemfig to create some structural formulas, but I need to create a new environment, like equation, that have a dedicated index and reference counter. I'm searching about this, but I'm having ...
0
votes
0answers
9 views

How to add reference to a knitr figure chunk in lyx?

Is there a way to make the lyx dialog "add -> cross references" to find knitr figure chunks? I.e., is there a lyx built-in way to add references to knitr figures other than use \ref manually?
3
votes
1answer
41 views

enumerate with description and label for reference

I want to create an enumerated list with description of items and a label assigned so that each item can individually be referenced by \ref or \nameref It is obvious how to do this manually but I ...
1
vote
1answer
39 views

how to add a reference in non-standard format to a LaTeX bibtex file?

I would like to add this reference in Latex, could someone kindly help? How could I add it using bibtex? National Highway Traffic Safety Administration, ``Development of an FCW Algorithm Evaluation ...
0
votes
0answers
32 views

Clickable table of contents and non-clickable equation references?

I know that the hyperref package provides a clickable table of content and clickable equation references. How can I have clickable table of contents and non-clickable equation references ...
3
votes
1answer
45 views

How to reset equation label after arbitrary sections?

I have a problem in equations with same label. for example: \section*{first section} \begin{equation}\label{a1} E=mc^2 \end{equation} where \eqref{a1} obtained by .... \section*{...
0
votes
0answers
18 views

Highlighting combination of text and cited references [duplicate]

How can I highlight a text that has cited references in it as well? I am using \hl{} in package soul but it does not work when the text contains cited references in \cite{ } form as well. I appreciate ...
4
votes
2answers
37 views

Referencing named tcbtheorems

My objective is exactly the same as in this question, however, I would like to achieve this same effect with \newtcbtheorem from the tcolorbox package. For example \documentclass{article} \...
0
votes
1answer
34 views

Cross-reference and tikzpicture conflict?

When I Include this diagram to my memoir document % Requires \usetikzlibrary{shadows,positioning,backgrounds} \centering \begin{tikzpicture}[x=11.8mm,y=8mm] % some colors \colorlet{even}{cyan!60!...
0
votes
1answer
43 views

Reference to figure inside minipage [closed]

I want to reference to a figure inside a minipage but it won't work. The structure looks something like this: \ref{fig:test} \begin{figure} \begin{minipage} blablabla \end{minipage} \begin{minipage} \...
1
vote
2answers
42 views

Get label counter

When I do \ref{mylabel} to refer item from easylist, I'm getting 3., so the numbering enumerate works fine. But I want just 3... How can I get the numeric value, associated to this particular mylabel?...
0
votes
0answers
22 views

reference in online transaction

I used "online" latex to write my paper , when i tried to add reference after i added cite package and create tex file to add refernce and also i used this command: \bibliographystyle{ieeetran} ...
2
votes
0answers
52 views

How can I use \ref to refer to a \label that's in another document?

I am writing a math textbook, and hope to have a separate solutions manual. I'd like for the manual to be able to refer to problems in the original book so that LaTeX, or I, can catch when the ...
1
vote
0answers
95 views

How do I extract my own papers from references as a list of publications? [closed]

I'd like to extract my own papers from references as an independent page, say Publications. I following the answer with the highest upvotes from Including additional bibliography (publication list) ...
2
votes
1answer
32 views

changing color when lemma or theorem is cross-referenced

So, using hyperref I know how to change the color of "1" to blue when I say "using Theorem 1". But I want the entire "Theorem 1" to be blue. Similarly when I recall a lemma/theorem/proposition/...
3
votes
1answer
24 views

How to reference a figure without making the reference appear in the list of figures?

I referenced a figure in its title (ex: figure2.3: Model abc of researcher Jhon [3]). The problem is that the reference appears in the list of figures too as : (ex: Model abc of researcher Jhon [3].......
0
votes
0answers
33 views

The last reference is not aligned, why? [closed]

\bibliographystyle{unsrt} \bibliography{refs} \end{document} The last reference is not aligned, and I have tried different ones, but got the same result.