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

1
vote
1answer
61 views

Using \lstinputlisting to include portion of file using labels instead of line numbers

I know I can include a portion of a code file like so: \lstinputlisting[language=XML, firstline=37, lastline=45]{source_filename.xml} But the line numbers will change if I modify the code file. Is ...
1
vote
1answer
23 views

RevTex4-1 figure reference wrong number? [duplicate]

I have included a graphic using \includegraphics into a \begin{figure} \end{figure} in revtex4-1. The figure appears in section II (i.e. 2) but the caption of the figure says Fig.1 (this is not a ...
4
votes
1answer
71 views

latex thinks reference is undefined

I know that very similar questions have been asked before, but the solutions do not work. I have the following latex code; \documentclass[a4paper,10pt]{report} \usepackage[utf8]{inputenc} ...
1
vote
0answers
48 views

Strange reference behaviour. (References disappearing randomly)

I am using the MNRAS class https://www.ctan.org/tex-archive/macros/latex/contrib/mnras?lang=en, and I have a very strange behaviour with my references. I am using BibTex, and some times the file ...
3
votes
1answer
46 views

Detect forward references (make them different color)

I want forward references to be of different color than backward references. This should work both with and without hyperref (actually, I use it with hyperref only, but for completeness it should work ...
1
vote
1answer
55 views

multiple subequations same line with reference

I'm trying to write several equations on one line, include a label for each equation, and also be able to view the equation number for each equation. Is this possible? I've seen several related ...
4
votes
1answer
13 views

theoremref package and other languages

I write in Spanish and use theoremref package. I have a little problem with \thref package: \documentclass{article} \usepackage{theoremref,amsthm} \usepackage[spanish]{babel} ...
2
votes
1answer
29 views

Changing example numbering with gb4e

I want to change the default behavior of gb4e for a small portion of the text. I have a series of modifications of an example that I want to be labelled as if they were subexamples. For example: ...
1
vote
1answer
24 views

How to make table table references capture section and begin each section?

I would like to have table labels refer the section that they are in in addition to the order. For example, in Appendix A, the first table is A1 and in Appendix B it is B1 (rather than table 1 and 2 ...
0
votes
0answers
13 views

Numbered references with authoryear in the text

A small sample of the reference list \begin{thebibliography}{} \bibitem[\protect\citeauthoryear{Binney \& Tremaine}{2008}]{BT08} Binney J., Tremaine S., 2008, Galactic Dynamics, ...
0
votes
0answers
13 views

How to make References bold in the TOC while using chapterbib package

I am using the chapterbib package to have bibliography after each chapter. Also I am using the tocbibind package with option nottoc to have "Reference" displayed in the TOC. What I want is simply to ...
0
votes
0answers
17 views

Changing the appendix figure numbering without losing the working of cross-references

I have been trying to change the figure numbering of the appendix and I have found the way of doing so with: \renewcommand\thefigure{\thesection.\arabic{figure}} However, the labelling in the main ...
0
votes
0answers
15 views

Bibtex doesn't create an output when I run it [duplicate]

I'm trying to use Bibtex to make the bibliography for my bachelor thesis. Although I don't get any error message, Bibtex doesn't create an output with the references. The main .tex is: ...
1
vote
0answers
40 views

how to organise a multivolume book series in (La)TeX

When searching the questions asked on this list I came accross "Starting a PhD; Any guides to setting up a 'system'?" but the problem for me is that a multivolume book series (not necessarily ...
3
votes
1answer
32 views

Search for a cross-reference

In the LyX editor, how can I search for a cross-reference for a certain figure, e.g., search for all places where I reference fig:abc? My current workaround is to delete the reference. Then, when I ...
0
votes
1answer
72 views

Cross reference figure appears as “??”

I'm using Texmaker for a report and am fairly new to latex. My cross referenced equations seem to appear just fine, but not my figures. I've labelled them and referenced the label using ref. I ran ...
3
votes
2answers
67 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
1answer
23 views

URL missing in references when using Authordate1 bibliographystyle (bibtex)

How do i include the URL text in my references using the bibliographystyle Authordate1? \documentclass[11pt,a4paper]{memoir} \usepackage{natbib} \begin{document} \citep[MBBL2014] ...
1
vote
1answer
44 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, ...
26
votes
3answers
2k views

Referencing to “above” or “below”?

I would like to know if it is good practice, and if so how it can be achieved, to make references like: "as mentioned above...". Or am I going to far and should I just type the word? I've read ...
2
votes
2answers
78 views

Can we get references into externalized pgfplots images to work?

I have some plots created with TikZ and pgfplots. In the captions, I use \ref{...} with plot labels in order to get the marker printed there; a neat feature indeed. Now, when submitting to arXiv one ...
6
votes
3answers
118 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
34 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
44 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: ...
4
votes
3answers
40 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. ...
10
votes
2answers
571 views

Making refcheck work with cleveref

It seems that refcheck does not recognize references made by cleveref: \documentclass{article} \usepackage{amsmath} \usepackage{cleveref} \usepackage{refcheck} \begin{document} \begin{align} a ...
0
votes
1answer
13 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
1answer
38 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 ...
1
vote
1answer
229 views

Error: multiply-defined labels

Below given example gives this error. ! SIAM Label Error: There were multiply-defined labels. Correct multiply-defined labels. \documentclass[final,leqno,onefignum,onetabnum]{siamltex1213} ...
2
votes
1answer
30 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 ...
1
vote
0answers
36 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 ...
0
votes
1answer
27 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
36 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
32 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
29 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 ...
1
vote
1answer
49 views

Latex Bib-File doesn't sort by appearance in text

I've been trying many different ways to sort my Bibliography as it appears in the text. But unfortunately it's always sorted the alphabetical way. I'm using the following packages in my master file ...
0
votes
0answers
60 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
62 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
28 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
32 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
9 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
32 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
84 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 ...
1
vote
2answers
50 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. . .
17
votes
5answers
3k views

Not using abbreviations with cleveref

I’d like to use the cleveref package but I don’t like that it inserts most names as abbreviations; for instance, it will print “… fig. 2.1 …” instead of “… figure 2.1 …”. Is there a way of changing ...
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
53 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 ...