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

3
votes
2answers
50 views

cross reference with xr fails (ShareLatex)

I try to use xr for cross referencing, and I get question marks instead of the reference and a warning: Reference updateEq on page 1 undefined on input line 93 on the document i am referring to ...
1
vote
2answers
48 views

How to make a custom \crefformat dependent on language chosen with babel?

For my custom class I use the cleveref package and define new custom reference styles: \crefformat{figure}{Meine tolle Abbildung ~#2#1#3} Is there a way to make this command consider the language ...
6
votes
3answers
107 views

How to mark equation number but not change the reference text?

I would like to mark a few equations as special by adding an asterisk (or some other symbol) to the equation number. I accomplish this as follows: \documentclass{article} \usepackage{amsmath} ...
1
vote
0answers
26 views

Reference style issue using the elsarticle template

New to this community - so bear with me. I recently submitted a manuscript for Bioresource Technology, Elsevier, using their tex templates. I was requested to use the elsarticle-template-2-harv.tex ...
0
votes
0answers
19 views

Editing Reference Style

I am very new to LaTeX, I have to write my MSc dissertation and have to use a specific type of style for the referencing, how do you edit the referencing style? I am currently using natbib package for ...
4
votes
2answers
43 views

Assigning multiple values to a subsection?

Is there an easy way to add multiple attributes/properties to a section in a document? I want for example add some sort of rating to a product that is discussed in a subsection. Example: ...
3
votes
1answer
51 views

How to deal with a tilde in url's in Mendeley?

If a link in an url contains ~, Mendeley changes it to $\sim$ and hyperref links just don't work. I use pdflatex and biblatex. Is there a quick way how to change manually the link in Mendeley to fix ...
4
votes
3answers
33 views

Use defined variables in \ref

When trying to use defined variables in \ref and I get an error: ! Missing \endcsname inserted. Here's how I use and define the variable, respectively. ...
1
vote
1answer
39 views

References linked to website by click

I am new to LaTeX and I have the problem about linking the references to the available papers in the internet. I have loaded these packages \usepackage[bibstyle=authoryear-ibid,citestyle=authoryear, ...
1
vote
1answer
33 views

auto-completion of \eqref

All references are marked with eq -> equation tab -> table fig -> figure app -> appendix sec -> section chp -> chapter So a reference would look like \label{eq:NT_LoM} \label{sec:intro} for ...
2
votes
1answer
20 views

Remove space in the default `\cref` command

I have my crefs defined as \crefname{section}{§}{§} \crefname{subsection}{§§}{§§} And when I reference it displays, for example, like § 4.5. I would like the middle space to dissapear and this ...
1
vote
0answers
16 views

Wrong table numbers used in references [duplicate]

I am writing a thesis in LaTeX, using a class file provided by my institution. This class file uses the hyperref package. My thesis contains figures, listings (using the package listings) and ...
0
votes
1answer
12 views

Line number in cross reference without visible line number in the entire document

My question is related to Line number in cross reference. I would like to give a reference to the line number of an specific line without any visible line number on the entire document. The below ...
1
vote
0answers
35 views

Incorrect Typesetting while referencing to a table

I would like to make reference of a table that I have introduced before. However, after I try to typeset the first time, I have double question marks like this table ??. I know that I need to ...
0
votes
0answers
8 views

Display the text inside a bibitem in the footnote [duplicate]

I have a bibitem; \bibitem{Javawiki}{\href{http://en.wikipedia.org/wiki/Java_development_kit}{Java Development Kit Wikipedia} It looks like [1] Java Development Kit Wikipedia. and I have ...
4
votes
1answer
25 views

Can I mark an internal function or variable as 'not documented' in l3doc?

There are several internal variables I use that I do not see a need to document in the user-interface section, but I want to explain in the implementation. I'd really like to remove the warnings ...
0
votes
1answer
23 views

Cannot cross-reference figure after using \captionof [closed]

I'm using \captionof instead of \caption because I had a problem with the figure environment. Whenever I wrote the code to place two figures and some text between them, the text was placed before the ...
0
votes
0answers
30 views

Cross-referencing custom labeled examples

I'm having trouble with linguex cross-referencing examples with an optional argument as in: \documentclass{article} \usepackage{linguex} \title{Title} \begin{document} \maketitle ...
1
vote
0answers
31 views

How to split a string to figure float with figure name, label and caption?

I am struggling with a shorthand macro that converts a string to a figure. At the end is a working, but unstable version what I am trying to do. The goal is to parse make a command (or macro) like ...
2
votes
1answer
26 views

Reference name of description list items in latex [duplicate]

I want to refer to a description list item by name instead of number. To that effect, I've added labels to each item, but when referencing them I only get the name of the section, not of the list ...
0
votes
0answers
57 views

Why do I always have to xelatex twice to make references work properly?

I found that I always have to xelatex at least twice to make references work (referring figures or equations), otherwise I have such wrong reference: The following error message appears when the ...
2
votes
1answer
56 views

Automatic creations of labels

I have a bad habit of not labeling my headlines and I find creating them afterwards rather cumbersome. Is there any script/program that can create a label automatically from the headline, so that ...
1
vote
2answers
26 views

\phantomsection inside tabular: alignment problems

I would like to use \ref and \label for two lines in a table, which can be done using \phantomsection: \documentclass{article} \usepackage{hyperref} \usepackage{lipsum} \begin{document} ...
0
votes
1answer
29 views

cross reference? [duplicate]

I can reference a figure (or table) from text using \label(fig:example) between \begin{figure} and \end{figure}, and using \ref(fig:example) within my text. However, my figures are at the end of my ...
0
votes
0answers
8 views

References not listed for second chapter

I have a large document made up of different chapters and I want to list the citations in the chapter at the end of each one. Each chapter ends with: \bibliography{Chapters/PhD_Library_chapter3} ...
2
votes
1answer
28 views

Question marks in pdf file when referring to table

Have a look at the MWE below. In the pdf file I get questionmarks when reffering to the table, rather than a numeric reference. Even if I run LaTeX twice. Any ideas how this can be solved? ...
3
votes
1answer
66 views

Using \ref in tikzpicture node while using externalize

Here's the MWE: \documentclass[12pt]{article} \usepackage{tikz} \usepackage{pgfplots} \usepgfplotslibrary{external} \tikzexternalize[prefix=extfig/] \begin{document} \begin{equation} a = b ...
0
votes
0answers
12 views

How do I get rid of the red boxes [duplicate]

How do I get rid of the red boxes generated around the hyperlinks of cross-references, citation etc. It is also making the report dirty especially the 'table of content' part. Will it appear in the ...
1
vote
1answer
51 views

What is a good debugging procedure to fix undefined citations?

I have a small example that has undefined citations problems. I want to solve these problems, but I've encountered similar problems before and don't have a good debugging procedure for them (I've ...
0
votes
0answers
21 views

Including updated references in latex response letter

I have two .tex documents. One is a main manuscript which is being revised, and second is the response letter which shows changes in the revised manuscript. In order to include updated references in ...
1
vote
2answers
49 views

How to number and reference to “definitions” in latex

I want the following format in LaTeX: Definition 1 [apple]: apple is a fruit. Definition 2 [cat]: cat is a fluffy animal. . .
4
votes
1answer
39 views

Customising initials in bibtex

How do I customize initials using bibtex. For instance, several references use 'Gh.' as the initial for the name 'Gheorghe' and I believe they are right. Now, bibtex always gives the initial as 'G.' ...
1
vote
1answer
61 views

Define starting line number when using mcode.sty to display Matlab code and referring to the code

I want to include parts of my Matlab code in my LaTeX document using mcode.sty. Here's a MWE: \documentclass[b5paper, 10pt, twoside, openright, dvipsnames,cmyk]{report} \usepackage{listings} % Is ...
1
vote
2answers
37 views

references section - no indent in first line + formatting

hope you can help me out with this one. here's the issue: I'm trying to create the references section in my paper. I already have a long list with the authors. But the problem is that the first line ...
2
votes
3answers
45 views

Using reference labels in mathematical calculations

EDIT: This answer points to a good solution. I wanted to use reference labels in mathematical calculations and was under the impression that if I use the calc package, it will be rather ...
2
votes
1answer
42 views

how to use ~\ref

I tried to connect lemmas and the number followed by it using ~\ref{lemma1} but some times the number goes to the next line even though I use tilde sign ~. What is your suggestion? Here is one line ...
0
votes
1answer
36 views

How can I add references without writing bibliography [duplicate]

My chapter name is References. I want all my references under that heading. If I am using bibliography command then all are going under the heading Bibliography. Also I have tried using the natbib ...
0
votes
1answer
23 views

Reference in table of contents without section number

How can I make the Reference visible in the table of contents without numbering it? I use the document class article. So far I have been using \usepackage[nottoc,numbib]{tocbibind}, but this numbers ...
3
votes
1answer
39 views

How to reference a theorem displayed between pauses in beamer?

I'm writing a presentation using beamer which at some point, in a proof, uses only<X> to display some parts of the proof. Inside these macros I show some theorem which I'd like to reference ...
0
votes
1answer
23 views

Referring directly to subfigures [duplicate]

I have written this code. All right for the figure. The question is about the references to the subfigures. \begin{figure*}[!t] \normalsize \begin{subfigure}[b]{0.48\textwidth} ...
0
votes
0answers
9 views

referencing vertical subfigures [duplicate]

I am new with LaTeX and I have a problem with in text referencing on my sub-figures which are in vertical alignment. The code I use is below. If in my text I write \ref{fig:a} the ?? will appear. If I ...
2
votes
2answers
73 views

Provide only relevant context when printing section number in a cross-reference

I inserted a number of cross-references to different parts of my book. Currently, I simply do so by calling a self-defined macro: \newcommand\secref[1]{See \ref{#1}, \nameref{#1}.} This will print ...
2
votes
1answer
42 views

How to display reference names in place of their numbers in cref

Is it possible to replace the name of cross-references in place of their numbers in multi-referencing with \cref ? I want to define a \fullref command for referencing the name of sections and ...
2
votes
1answer
45 views

Distinguishing \ref and \cref through different colors

I have the following problem with the hyperref, and the cleverefpackages. I would like to distinguish internal links (e.g. sections, etc) from mathematical links (e.g. definitions, theorems, ...
24
votes
4answers
1k views

Best practices for publishing computer code with LaTeX?

I work a lot with MATLAB, and I want to enable the reader of my paper to easily reproduce my computations. I also want the pdf document to be self-contained, i.e., no hyperlinks to a webpage on which ...
5
votes
1answer
69 views

How to display label name in autoref in place of its number

Is it possible to replace the number of a chapter/section in \autoref with its name? The following command will define the \fullref in which both of the number and name of a label will appear after ...
1
vote
1answer
49 views

Making cross reference to nested enumerated item show periods and parentheses

I want my references to nested items in an enumerated list to include all the punctuation that was in the list. Here is a simple example: \documentclass{article} \begin{document} \begin{enumerate} ...
1
vote
1answer
22 views

Referencing subordinate equations

I have this equation in my paper: \begin{subequations} \begin{align} \label{eq:pv-omega} \hat{p} = pv \ll j\Omega \quad \Rightarrow \quad \gamma=2,\\ \hat{p} = pv \gg j\Omega \quad ...
9
votes
3answers
262 views

How to reference a quote like an equation?

For my project, I've interviewed some people and used parts of those interviews as quotes in my project. Some quotes I would like to reference later on, just like how equations are referenced, with a ...
1
vote
0answers
11 views

Label of both the figure and subfigures [duplicate]

I use a composed figure that contains two subfigures implemented via subfloats. Example code: \begin{figure} \centering \subfloat[Workload = 1,000]{ ...