Tagged Questions
1
vote
1answer
40 views
Alternative numbering for theorem
I am using thmtools as a front end to amsthm and I have a definition environment as follows.
\declaretheorem[
style=mydefinitionstyle,
name=Definition,
numberwithin=chapter
]{definition}
...
2
votes
0answers
44 views
Cross-refencing a custom counter in \alph style?
I made a 'hypothesis' custom counter in order to let LaTeX handle my hypothesis reference. My code is
\newcounter{hypothese}
\refstepcounter{hypothese}\label{hypo:lenght_of_words}
...
5
votes
2answers
83 views
How to reference the most recently used multiply-defined label
I want to be able to do something like the following:
\incmycounter{abc} %% counter value initialized to 0; associated with label 'abc'
\incmycounter{def} %% counter value initialized to 0; ...
16
votes
1answer
167 views
Greatest hits? Can I find the most \ref'd part of my document?
I now have a 200 page document and have used \ref and \label very frequently.
I was wondering if it is possible to use LaTeX to create a table at the start of the document with the "top ten" most ...
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
...
7
votes
2answers
152 views
How to refer back to a point in the document with custom counters?
The easiest way to explain what I would like to have is to show the desired output
and I would like to get this by writing something like:
\begin{document}
Draw point B \STEP{drawb}. Connect A and ...
6
votes
1answer
326 views
Trouble with hyperref when resetting the counter for equations (specifically with the align environment)
I am trying to reset a counter to zero; however hyperref tries to reference previous equations. I am using:
\setcounter{equation}{0}
And if I have labels in say align environments:
...
3
votes
1answer
138 views
Figure refs stop working after I added a new counter
I was using the amspset document class for generating exam practice problems. I had wanted to add some referencing to the problems so I started a new counter like this (adapted from some Tex Exchange ...
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
1answer
579 views
Easy-to-use reference-able environment for restating theorem-like environments?
This question is a development of the same issue as this one; following my own answer and later comment there, I decided it deserves a spin-off.
I would like to define an environment for restating ...
12
votes
2answers
223 views
How to refer to a chapter with a word
I would like to refer to my chapters with the notation "First Chapter", "Second Chapter" etc, rather than "Chapter 1", "Chapter 2", etc. How can I do this?
\documentclass{scrreprt}
...
6
votes
1answer
217 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 ...
5
votes
1answer
342 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 ...
2
votes
2answers
95 views
Cross-referencing to the number of a customized environment with a counter
On the internet I found a possibility to create an example environment that is helpful for linguistic research papers, because it provides all examples with numbers:
\newcounter{exa}
...
1
vote
1answer
303 views
Refering to the same (alphabetically “numbered”) footnote more than once
Following my previous post concerning the change of numbering in footnote to temporally be alphabetical, I'm trying to merge this with the possibility to refer various time to the same footnote as ...
3
votes
3answers
237 views
Show “Page X of Y” only if there are multiple pages?
I'm trying to add a line in the header to be "Page X of Y", but only if there are multiple pages. My main problem is how to format the if statement. So far I have
\ifx \pageref{LastPage} 1
...
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:
...
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:
...
7
votes
3answers
785 views
How to reference part of a theorem?
I have a corollary with a number of parts whose parts need to be referenced individually later on, so something like:
\begin{cor}\label{cor}
\begin{enumerate}
\item Part one \label{partone}
...
6
votes
2answers
746 views
Building labels out of counters
There is a simple version to my question, and a complex version. First, the simple version: I want to generate label names by combining a constant string with a counter's value, something like what is ...
7
votes
1answer
733 views
Refer to customized `enumerate` counter
Background
I'm typesetting a list of conditions for a certain mathematical object. There are three conditions. Later on I wish to provide an equivalent condition for the third. Therefore, it would be ...
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 ...
6
votes
1answer
589 views
How to set a marker/counter/label to an arbitrary piece of text?
Is it possible to attach a marker to just a place in text, not to section, sub-section, etc.?
This is what I'm trying to achieve:
\begin{document}
Alex (see~\ref{alex}) is a boy,
Jessica ...
16
votes
2answers
359 views
Automatically numbering constants
I would like to somehow use LaTeX to automatically number constants.
Some background
As a mathematician, in my daily work there are a lot of throw-away constants which are not extremely important ...