{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.
6
votes
1answer
150 views
What needs to be done to update lablst.sty?
This question is related to the question How to get a list of all the labels in a LaTeX document. According to the author of lablst.sty, you can use lablst as a global option to documentstyle as ...
6
votes
1answer
218 views
How can I reset sectional counters in memoir class to avoid breaking ToC cross-referencing in a complex document?
I have already asked a similar question here:
Incorrect ToC/Index cross-references when resetting memoir class counters
and received a satisfactory answer. Now, I wish to apply the chapter counter ...
6
votes
1answer
192 views
Sectioning command that automatically creates label
I'm trying to define a custom section command that will also define a corresponding label after a bit of preparsing. Specifically, I want the command to define a section with the given name, and then ...
5
votes
3answers
107 views
Remove math from command parameter to get only the letters
I use a little command, which prints new defined terms in bold, adds a label and adds them to the index.
\newcommand*{\defined}[1]{{\bf #1}\label{#1}\index{#1}}
Now if I do \defined{$G$-invariant} ...
5
votes
2answers
67 views
How to choose from a list for using result in \ref?
Recently, in choose from a list with xstring, Geoff was asking about defining the command \variation that does the following:
\variation{1}{aaa;bbb;ccc} ----> aaa
\variation{2}{aaa;bbb;ccc} ...
5
votes
4answers
819 views
Using \label with amsmath nested environments
First of all, I'm not sure these environments are supposed to be nested, but the fact is the alignment comes out exactly how I wanted, and no errors are issued.
\documentclass[a5paper]{article}
...
5
votes
1answer
286 views
Generate labels using xstring and \Makelowercase
I am trying to write a command that allows me to reference a subsection with a generated label.
The idea is that when I declare a step \step{Long Name With Many Uppercase Letters}, the generated ...
5
votes
1answer
343 views
Incorrect ToC/Index cross-references when resetting memoir class counters
The quasi-MWE below uses the memoir class and works fine. It produces a document with the following structure:
ToC
Book
Part1
Chapter1
Part2
Chapter2
Index
Here, cross-references in the ToC and ...
5
votes
1answer
182 views
Selected references without hyperlink
When using the hyperref package, is it possible to tell LaTeX not to create a link for some references?
In my case the page number is displayed in the footer in
\fancyhf[FC]{\thepage\ of ...
5
votes
4answers
2k views
custom counter and cross-referencing
I created a custom counter 'rtaskno' and a command '\rtask' as following:
\newcounter{rtaskno}
\newcommand{\rtask}{%
\stepcounter{rtaskno}%
\thertaskno}
I like to use them as following:
...
4
votes
1answer
62 views
Using amsthm to number examples - how do I account for altered examples (i.e. 1', 1'', etc.)
I have sought long and hard for a solution to this and experimented with a combination of http://tex.stackexchange.com/a/43351 and http://tex.stackexchange.com/a/443, but could not get it to work.
I ...
4
votes
1answer
35 views
Referencing a tex tlike a hyperreference inside a document
I have a table with many entries and I want to reference the key so another person can quickly look up what the key means.
Here is some pseudocode:
Table
snippet1\label{?key1} & longexplanatory ...
4
votes
1answer
640 views
Style: “In the table below..”
You commonly see references to "the figure below" and "the table below" in literature.
In the table above [2], one can see..
However, LaTeX provides \ref, which acts as a hyperlink.
Is it better ...
4
votes
1answer
251 views
How to get rid of \ref's parentheses (e.g., for subfigure)
I use \ref to refer to a subfigure and it shows like this in my text:
This thing (Figure 5(b))
Double parentheses appear! I want this style:
This thing (Figure 5b)
How to make it happen?
4
votes
1answer
3k views
cannot use \caption under minipage
I am using following code to import two images next to each other. When \caption{} is used, LaTeX gives me error caption outside float.
\begin{minipage}{.5\textwidth}
\centering
...
4
votes
1answer
229 views
Reference a table by caption created by ctable
Fixed in the new version of ctable
ctan-ann: CTAN Update: ctable 26 May 2012
Might be a stupid question, but is there a way to reference, that means print, the caption of a ctable? hyperref ...
4
votes
2answers
185 views
Automatically position detailed information about an equation into appendix
How can I automatically position the details about a certain equation into an appendix?
I've attempted this answer with some success. However, I would like the numbers to work as clickable ...
4
votes
3answers
2k views
amsmath - multiple labels in one equation
I would like to use multiple labels in the same equation when using amsmath. Basic latex already has this feature, but not amsmath, which seems to manipulate labels in complicated ways. Is it possible ...
4
votes
3answers
215 views
Label a complete enumeration
I am trying to create a simple enumeration and give it a label so I can access it. But the only thing I get in return is the number of the subsubsection. This is my code, which doesn't seem to work.
...
4
votes
1answer
910 views
Can I change \ref's output?
When I use \ref to cross reference a \subsubsection, I get the output IV-B4 (at least using the IEEEtran document class).
Can I change the output to something like IV-B.4)?
4
votes
3answers
318 views
References to lists in theorem-like environments/writing # symbol to files
A little warning in advance: This will be quite lenghty. I spent quite some time over the last few days trying to solve the following problem: I'm typesetting mathematical lecture notes and have used ...
4
votes
1answer
431 views
Cross-referencing in multiple chapters
I have a document organized into several chapters. In each chapter, theorems are numbered by section (1.1, 1.2, ... even in chapter 5). I often would like to refer to theorems in different chapters. ...
4
votes
1answer
811 views
How can I get the chapter number like a prefix of all references
This was the problem I posted:
"I need to output "see section 2.3" where the referenced section is the third on the second chapter."
You all are right. I've to redefine the problem.
Sections are ...
3
votes
3answers
180 views
Memoir sub table numbering wrong
I am using sub tables and it seems because I but the table caption above I get the wrong number in the sub table references. How can I fix this?
I am pretty sure it is related to the package float ...
3
votes
2answers
115 views
autonum does not work with eqnarray?
I always wanted to have a package like autonum. Well, it is finally here and its development is still under way, but I already have two problems:
It does not work with eqnarray.
When referencing to ...
3
votes
1answer
74 views
autonum breaks align* and equation*
The autonum package apparently doesn't like me to declare math modes to be unnumbered, and prefers to do this on its own. Can't really tell if this is intended behavior and if so, why.
...
3
votes
1answer
107 views
convert outcome of reference to regular number
Is it possible to transform the outcome of a reference (e.g., a line number) to a regular number that I can use in a calculation?
I have this (and works fine):
\FPeval{\result}{clip(5+6)} $\result$
...
3
votes
2answers
229 views
Cross-referencing within text
Is there a way to reference a place in the text using \hyperref, instead of using \nameref to reference the section that portion of text belongs to?
Probably a WME will help in getting my point ...
3
votes
1answer
122 views
How do I determine the name of the counter associated with a theorem-like environment
(A question related to this one and leading up to this one.)
Suppose I'm using ntheorem. I would like to have a command which determines the name (not the value) of the counter associated with a ...
3
votes
2answers
184 views
How to use an environment whose name comes from a reference?
Suppose somewhere in my long Ph.D. thesis I use a theorem-like environment (maybe it's a theorem, maybe it's a lemma, etc.), and label it. At another place I want to have an environment which is the ...
3
votes
1answer
183 views
Figures in appendix are not referenced correctly (or not the way I want them to :) )
In my document, I have some figures in my appendix I want to reference in my text but the output of \ref{} is only "Figure .2 shows...". It should be something like "Figure B.2".
Here's my minimal ...
3
votes
2answers
213 views
Umlauts in label
I'm using LuaLaTeX and wonder why I cannot label theorems with words containing umlauts. For example:
\documentclass[a4paper,12pt]{article}
\usepackage{luatextra}
\usepackage[utf8]{luainputenc}
...
3
votes
2answers
1k views
How to get autoref working with different counters for different listing environments?
In my document I want several different custom listing environments. The solution from fraktalek works like a charm, except for one thing: \autoref doesn't work for me. I have tried the following:
...
3
votes
1answer
167 views
State where within the book a reference was cited
I am using a plain sort in my thesis. However, ordering the authors by last name does not help the reader find where the author/reference was cited within the book.
Using the unsrt option would not ...
2
votes
1answer
179 views
Cross references and citations do not show in LibreOffice after htlatex conversion
When trying to convert a simple LaTeX document to LibreOffice/OpenOffice, cross references and citations do not show in the final document. They do when converting to (X)HTML, but this has other ...
2
votes
1answer
50 views
How to reference a point in a document with a counter and descriptive text?
This is a follow-up question to the previous questions:
How to label a word inside a paragraph?
How to refer back to a point in the document with custom counters?
The code below
...
2
votes
2answers
635 views
Redefine \figref so that it can accept optional arguments
I have some figures to include in my document that contains subfigures.
I don't use the subfigure environment, but rather I produce only one EPS
in which every part of it is labelled as A, B and so ...
2
votes
1answer
235 views
How to refer to labels in math mode from math mode
If you refer to item labels that are written in math mode from some other math mode occurrence, then you get errors. I guess it's because it leads to nested math modes. Is there any way to avoid these ...
2
votes
2answers
230 views
Test equality between number of the current page and the one of one reference indicated
In the following code, I have one problem with the test \ifthenelse{\equal{\pageref{#1}}{\thepage}}{...}{...}. Why doesn't this detect the equality hoped if the reference is in the same page where it ...
2
votes
1answer
173 views
Call macro whose name depends on macro
Sorry about the title, I really couldn't find a better one.
I'm facing the following dilemma: I'm using the smartref package, in particular I'm using its \sgetXval macros. The thing is that I'm using ...
2
votes
1answer
2k views
Reference to a manually numbered equation
I want my equation's number to be "1'". I have done so through \tag{1'}. But now I don't know how to refer it in my document. Is there a method to call it or numbering equations like 1, 1', 1''?
2
votes
2answers
222 views
Customize referencing of subcaptions in “memoir”?
When I use \subcaption{... \label{myfig}} in memoir, and then reference it, the result is something like "Figure 1(a)". But I would like to customize the reference by removing the parentheses, thus ...
2
votes
1answer
936 views
htlatex leaves undefined reference (“??” link) but pdflatex produces correct output
We have a large document that runs through pdflatex and through htlatex.
The pdflatex output is fully ok.
The htlatex output is also ok (it contains all images etc.) except that for
some ...
1
vote
2answers
69 views
Get a table and figure on the same page with captions & labels
Here's what I'm looking for: I need a table and a figure to stay on the same page, while keeping captions & labels fully functional. Both the table and the figure need their own caption and their ...
1
vote
1answer
1k views
Referencing figures doesn't work [duplicate]
Possible Duplicate:
Where to put the \label on a figure environment?
I'm having a problem with referencing figures in LaTeX. I have the following text:
\begin{figure}[H]
\center
...
0
votes
1answer
57 views
Number equation with previously used (auto-assigned) number [duplicate]
Assume you have a long text (i.e. a thesis/book/etc) with a lot of equations per chapter. At some point later in the text, you not only want to reference an equation but actually spell it out again, ...
0
votes
3answers
97 views
Table name not appearing properly in ref
Referring to the body below, I would expect ~\ref{atts} to produce Table 1, but instead, it gives just 1.
What is the issue here?
0
votes
2answers
310 views
ntheorem + autoref + aliascnt cause TeX to exceed grouplimit capacity
I'm using MikTeX 2.9. When processing the following:
\documentclass{article}
\usepackage{hyperref}
\usepackage[hyperref]{ntheorem}
\usepackage{aliascnt}
\newtheorem{lemma}{Lemma}
...
0
votes
0answers
285 views
how do I refer back to counters? [duplicate]
Possible Duplicate:
How do I repeat a theorem number?
I want to set up a simple macro that would do the following:
It would be very similar to \label{XX}, (say, \relabel{XX}) only instead ...
