{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
0answers
30 views

Collect text in mdframed and print at the bottom of the next page

am trying to collect say fruits mentioned in a page and print them at the bottom of the next page. all text is always enclosed in a frame and the frame can span multiple pages but the collected fruits ...
10
votes
2answers
265 views

Macro to generate ordinal words from numbers?

Is there a macro available that will turn "1" into "first", "2" into "second", etc. Let's call this macro "wordth". Then, for example, if item number 2 in an enumerate environment is labeled by ...
0
votes
1answer
32 views

LaTeX is truncating my theorem reference numbers. How do I correct this?

I will have a Theorem, Lemma or Corollary and it will be numbered, say for example, 2.2.3 ... Unfortunately, every reference back to ANY Theorem, Lemma or Corollary simply state 2.2 ... It seems to be ...
0
votes
0answers
27 views

Problems with referencing to tables A1, A2 etc in appendix(with IEEEtran class)

I'm trying to refer to some tables in the appendix of my paper, the following command have been used to number the tables as A1, A2 etc.: \setcounter{table}{0} ...
0
votes
1answer
46 views

Referencing theorems by numbers [duplicate]

I was wondering if there was a way that I could reference the numbers of the theorems in my document would actually having to write "theorem 1.11". So that if the numbering of my theorems change then ...
1
vote
1answer
67 views

Structuring a Large Document

I just started to write my thesis and i want to organize my document in Latex using the \input command, so for example, the main file main.tex is like this: \begin{document} ...
1
vote
1answer
51 views

cleveref — using both abbreviated and full form references?

The words chapter, part, appendix, table, figure, and the like are lowercased and spelled out in text (though sometimes abbreviated in parenthetical references). (Chicago Manual of Style, 16th ...
3
votes
2answers
197 views

Macros formatting/arranging words {A_1}{A_2},…{A_n} into predefined paragraph for varying n and tagging

How does one robustly (without breaking most environments) construct the macros with arbitrary number of parameters that output the parameters into a predesigned paragraph such that several of these ...
1
vote
0answers
22 views

Changing the order of crossreferences in biblatex footnotes [duplicate]

I'm trying to use biblatex-dw and the crossref functionality to make my bibliography more structured and easier to edit. I'm using the mvcollection, collection, and incollection types for the ...
2
votes
1answer
34 views

Roman numeral of defined counter

I defined myself a counter for Examples and want it to be displayed in uppercase Roman numerals. \newcounter{exampleCounter} \newenvironment*{Example}{\refstepcounter{exampleCounter}~\\ \noindent ...
1
vote
1answer
21 views

How should I use reference with setcounter{lstlisting}{0}?

I specified in my lstlisting both caption and label. Also before every section I use: \setcounter{lstlisting}{0} My listing from PDF view looks like: Listing 4.1.2 SomeCaption When I am using ...
3
votes
1answer
50 views

Natbib, sort&compress [closed]

I have finally managed to get my references in my thesis how i want them, correct style etc. however for some reason the natbib package is managing to sort my references, but not compress them. This ...
3
votes
1answer
35 views

How to reference figures by the order their reference appears in the text rather than the order the figure appears in the text

I have a two page document with three figures, A and B is small and C is big. Therefore in this document I have my text all on one page and then on the second page my three figures. To make best use ...
6
votes
2answers
161 views

How to reference the Index?

How can I reference the index created by the package makeidx? Minimal working example: \documentclass{scrbook} \usepackage{hyperref} % creates links on refs \usepackage{makeidx} \makeindex ...
2
votes
1answer
70 views

prettyref- defining my references in a shorter way

Currently I am working with prettyref which is pretty useful and works fine. The only disadvantage so far is: if I use several references in a summary the references itself become pretty long and are ...
2
votes
1answer
44 views

Cleveref mislabels figures when using \ContinuedFloat

When using subfloats over multiple pages I have used \ContinuedFloat to carry on the figure environment which also preserves the numbering. However, when I try to reference the whole figure, cleveref ...
0
votes
0answers
29 views

How to make cross-documents references in latex? [duplicate]

I have two huge multi-source latex documents. I want to reference an object (i.e. section or figure) from one document in another document. Merging these two projects is not the option, they should ...
2
votes
1answer
40 views

How to reference to subfigure in latex

I have 2 figures with same meaning, So I put them in subfigure package, to make it easy to show their similarity. Here is the code that I used: \usepackage{subfigure} \begin{figure}[H] ...
10
votes
2answers
105 views

Automate the description of the paper

Most or all papers have a final paragraph in the introduction that describes the sections that are present. I'd like to generate it automatically, I guess this should be possible because it is mostly ...
3
votes
1answer
37 views

Including title of document in external reference

I'm currently using xr to reference external documents. It's good in as much as I get linked via hyperref to the relevant result, but it would be helpful if it displayed the title of the document ...
7
votes
2answers
137 views

highlight line numbers in listings

I would like to highlight the line numbers of the lines I refer to with lstlistings. I use escape characters to define labels in my Listing to which I refer later in my document (e.g. see Line X of ...
1
vote
0answers
52 views

Displaying text from current page on the next page

I am trying to place text in the footer of the next page. That is i have a question environment which defines the question and its solution but i want the solution to be displayed at the end of the ...
0
votes
0answers
28 views

How to make LyX use prettyref or

In LyXm in "Document Settings" window on "Document class" pane I can choose to use either prettyref or refstyle. However the TeX code looks as if it used ordinary /ref. Why? %% LyX 2.1.0 created ...
3
votes
1answer
45 views

hyperlink on equation number

I would like to link an equation to a sentence at the end of the document (e.g. code below) but placing the hyperlink on the equation number and not on the equation itself? Is it possible? THanks for ...
3
votes
1answer
53 views

Subcaption format with cleveref

I need to get Figure 1.1 (a) when i put \Cref{fig:NiceImage1}. I have to use \Cref{fig:NiceImage}\subref{fig:NiceImage1} for getting same result. \documentclass{scrbook} \usepackage[demo]{graphicx} ...
1
vote
1answer
87 views

TeXStudio - Cross-reference in case of multiple files

I have a master document and for each chapter a separate file like: main.tex % preamble etc. \input{chapter1} \input{chapter2} \input{chapter3} % and so on chapter1.tex % Some figure with a ...
0
votes
0answers
97 views

Facing reference number sequence problem in spbasic bibliography style and svjour3 document class [closed]

I have generated a bib library by exporting references from EndNote to JabRef. I use the spbasic.bst bibliography style in numbers, so i have used natbib with numbers and sort options. Up to that ...
1
vote
0answers
33 views

Reference to the name of subequations

I have a formulation that consists of several subequations that I would like to refer to as a formulation and as individual equation in my article. Right now I have this: \usepackage{hyperref} ...
3
votes
1answer
55 views

Label in a ntheorem environment witout additional caption

I defined a new theorem with the ntheorem package. If i want to add a label to a certain theorem i get an error from the caption package. And referencing doesn't work. Package caption Warning: ...
1
vote
1answer
60 views

Labels and Cross-referencing in items

I have itemize environment and I want to cross-reference between two items. How do I do that?
3
votes
1answer
47 views

Formatting keywords, data in algorithm2e

I am just wondering if there is a way to reference the keyword data outside the algorithm in algorithm2e package. For example, given the example in algorithm2e, if I want to reference \KwData{this ...
3
votes
1answer
24 views

Change the \crefrange title once

I'm using cleveref and want to use \crefrange in a German sentence but it doesn't create the correct title for this case: In den Abschnitte 7.3.1 bis 7.3.3 wurde für den […] In den ...
7
votes
1answer
92 views

Arbitrary named counter, referenced

Apologies if this has been asked before, but I simply can't find it, despite voluminous searching. Some question answer bits of my question, but not the whole. The problem is this. I want a counter ...
0
votes
1answer
54 views

Why doesn't latex recognize my figure

I've got a figure, which is displayed fine: \begin{figure}[htbp] \centering \begin{subfigure}[b]{0.48\textwidth} \includegraphics[width=\textwidth]{xp_potato.eps} ...
4
votes
1answer
50 views

pgfplots externalize with hyperref

I'm using pgfplots with externalize because my document has a lot of plots which causes problems with memory limitation in LaTeX. In one of my plots I have a reference to an equation. In the file ...
5
votes
2answers
59 views

Reference Chapter Number

I am writing a book with multiple chapters (in different sections, if that is relevant). Chapters are numbered. I want a way to transform the chapter name into the chapter number, someplace else in my ...
3
votes
1answer
51 views

How to refer to parts of a single externalised graphic, such as multiple pgfplots (similar to subfloat/subcaption)?

I am looking for a way to refer, from within normal text or captions, to parts of TikZ graphics which I have labeled myself with (a), (b) etc. With subcaption and multiple separate figures I'd use ...
2
votes
1answer
38 views

Reference to assumptions

Assumption 1. (i) something1, (ii) something2. I would like to refer to separate parts as 1(i) and 1(ii). Is there any way of doing it? I guess that I can use enumerate and three labels, namely, ...
0
votes
1answer
23 views

Reformatting the way references to figures do appear

How can one make LaTeX insert Figure into \ref calls automatically, i.e. instead of writing: See data in Figure \ref{fig:JobInformationDialog} simply write: See data in ...
5
votes
3answers
78 views

Changing the way figure reference appears in LaTeX

How can one make LaTeX insert Figure into \ref calls automatically, i.e. instead of writing: See data in Figure ~\ref{fig:JobInformationDialog} simply write: See data in ...
1
vote
1answer
51 views

Multiple questions regarding formatting tables

Question 1 A while ago, I used some code from here, which fitted my requirements perfectly. However, I'd like a different table, and playing around with the code (I'm quite new to Latex) has not ...
0
votes
1answer
34 views

When I try to reference figures, eg “see Figure~\ref{lattice1}”, the output it “Figure ??”. Did I label it wrong? [duplicate]

\documentclass{article} \begin{document} \begin{figure} % \begin{subfigure}[b]{0.30\textwidth} \centering \begin{tikzpicture}[ decoration={ markings, mark=between positions 0 and 1 step ...
5
votes
2answers
94 views

add () around \ref{}

How can I add [ and ] around \ref{myref} so that I get something like this: [1.1] This does not work: \documentclass{article} \usepackage[colorlinks=true,allcolors=blue]{hyperref} \let\oldref\ref ...
2
votes
1answer
57 views

Editing the reference style for subfigures using cleveref and memoir

I'm using the cleveref package to reference floats (in this case subfigures) in the memoir class. Currently the output looks like this (sorry for the danish, I don't think it matters): Using the ...
3
votes
3answers
146 views

ConTeXt: Prevent Reference Name Clashes in Floating Objects of Different Types

I find it very annoying that ConTeXt uses the same namespace for references of floating objects. In other words, if you give the same reference to a figure and a table, then you'd always refer to the ...
7
votes
2answers
70 views

Automatically highlight undefined references

Is there a way to force LaTeX to automatically change the formatting of the ?? that gets typeset in place of an undefined reference? For example, can one make LaTeX draw a yellow "highlight" ...
6
votes
1answer
57 views

Theorem and lemma sharing counter with mdframed and cleveref

Problem Essentially I've got the same problem described in Cleveref with counters with same name: I've got theorems, lemmata and corollaries all sharing the same counter, and when referencing them ...
3
votes
1answer
58 views

Avoiding multiple label-refs in simply-formatted documents

I want to build a file with a number of math problems and solutions, like: Problems ... ... ... Solutions ... ... ... I want to link back and forth ...
4
votes
1answer
91 views

Create references with part number and frame number

I created a beamer theme which uses parts (for lecture slides) and where the slides are numbered using the part number and the frame number. The frame number is reset at the beginning of each part. ...
7
votes
1answer
89 views

How to force a label to be a given string?

Normally I issue a command like \label{foo}, and this means that foo gets entered into a symbol table somewhere that says that it equals 14, or xiv, or aa, or whatever. These symbols are generated and ...