{numbering} is about numbering document elements. Use this tag in addition to other tags specifying what should be numbered (or have its number removed). For {page-numbering} or {line-numbering}, use the respective tag instead.
41
votes
1answer
7k views
Continuous v. per-chapter/section numbering of figures, tables, and other document elements
Some document elements (e.g., figures in the book class) are numbered per chapter (figure 1.1, 1.2, 2.1, ...). How can I achieve continuous numbering (figure 1, 2, 3, ...)?
And vice versa: Some ...
25
votes
2answers
759 views
Why does an environment's label have to appear after the caption?
\documentclass{article}
\usepackage{algorithm}
\begin{document}
\setcounter{section}{54}
\section{A section with no label}
\begin{algorithm}
\label{myalg}
\caption{An algorithm with the label ...
20
votes
3answers
2k views
Definining commands/abbreviations that contain numbers
I tend to use \newcommand to define macros for symbols I use often, e.g. \newcommand{\hankel}{H^{(1)}_0}. One inconvenience of this approach is the fact that command names cannot include numbers. ...
12
votes
2answers
1k views
Keep chapter number of chapters inserted with \include
Okay, I've puzzled over this for a while and I can't work it out.
I have a document with several chapters, using the memoir class. I've separated each chapter into separate files, and I'm including ...
11
votes
2answers
345 views
Command/macro name cannot include numbers and symbols
I would like put picture into table, and my idea is define new command as below>
\newcommand{\EJ471}{\includegraphics[scale=0.150]{EJ_471.jpg}}
But compiler reports an error. If I use the command ...
38
votes
2answers
2k views
How do I number equations only if they are referred to in the text?
I have a paper where all equations are numbered, but I want to number equations only if they are actually referred to in the .tex file using \ref{}. How can I make that happen? Alternatively, how can ...
8
votes
3answers
2k views
Resetting theorem counters: \section and (missing) \subsection
Suppose I define a new theorem "Theorem" and declare that its counter should be reset whenever the subsection counter is incremented or reset:
\newtheorem{theorem}{Theorem}[subsection]
At some ...
33
votes
6answers
5k views
How do I repeat a theorem number?
Often in my papers I want to mention theorems in the introduction that are introduced in more detail and proved in a later section.
I'd like to include the statement of these theorems twice over, ...
20
votes
3answers
4k views
How to get only one vertically centered equation number in align environment with two equations
sorry if this has been answered before, I couldn't find anything through search. I'm sure its a common problem though.
What I have are two equations with align and I want one single equation number ...
72
votes
5answers
10k views
What's the quickest way to write “2nd” “3rd” etc in LaTeX?
If I want to use abbreviations for second, third and so on in my LaTeX documents, I am currently doing this: 2$^{nd}$ which seems unsatisfactory. Is there a macro I'm missing? I'm sure I could define ...
25
votes
3answers
1k views
How to typeset large numbers
I need to typeset some very large numbers that span a number of lines, is there a way in LaTeX to do this?
6
votes
1answer
501 views
Figure numbers using the section number
One of my sections seems to be using the section number rather than the appropriate figure number for \ref's that point to figures. (Theorems and the like work fine.) As far as I can tell, there's ...
7
votes
1answer
953 views
How to show subsections and subsubsections in TOC?
So we have something like:
\documentclass[english]{article}
\setcounter{secnumdepth}{2}
\setcounter{tocdepth}{2}
\usepackage{amsmath}
\usepackage{tocloft}
\usepackage{xstring}
\usepackage{titlesec}
...
6
votes
1answer
682 views
Section numbering
I'm having a bit of trouble with section numbering. When I use \section{} it starts at 0.1 rather than 1.0.
Here's my preamble:
\documentclass[12pt]{report}
\usepackage{hyperref}
...
31
votes
7answers
2k views
Automatically assign a number to every paragraph
I would like to add a marginal number (don't know the right term; in german „Randnummer“) to every paragraph of text I write. I don't see any other solution, than to write every single number manually ...
22
votes
3answers
5k views
Turn on subsection numbering in memoir
It seems that the memoir class automatically avoids numbering subsection headings. Chapter and section titles are numbered, but subsection headings contain only the subsection name, and are not ...
7
votes
3answers
2k views
\footnotetext numbering for many \footnotemark - automatic solution
\documentclass{report}
\begin{document}
Text\footnote{text1} Text\footnote{text2}
\vbox{%
\begin{itemize}
\item X\footnotemark{}
\item Y\footnotemark{}
\item Z\footnotemark{}
\end{itemize}
}
...
9
votes
3answers
314 views
How can I number a few equations together
i would like to write few equations, but all the equations will get only once numbered and in the middle (right side) of the equations. e.q. if i write 3 equations, the number will be to the right of ...
18
votes
1answer
3k views
Continuous footnote numbering
I would like footnote numbering to continue over pages and chapters. In my document it's reset every chapter. I'm using the report documentclass.
17
votes
1answer
651 views
Nested footnotes
The footception post (Footception: Footnote within a footnote within a footnote) describes how to recursively footnote. I am trying to make a nested footnote that is placed in the same footnote ...
16
votes
2answers
5k views
align* but show one equation number at the end
I am using align*, but I still need an equation number. I know one solution is to use align and add \nonumber to all lines but the last. Is there a 'lazy' way to do it?
I searched a little and found ...
19
votes
3answers
737 views
Convert any number to corresponding word
This is a wild one: can anyone write a code that converts a number into the corresponding word? e.g.:
4 -> 'four'
31 -> 'thirty-one'
and so on. Obviously, it is not enough to build an array ...
19
votes
6answers
4k views
Something like \enumerate, but with custom numbers at each \item
I'm doing homework from a particular book, and each question is numbered after the page number and the question number. For example 52.2, 52.9, 53.13, etc. (Note that they are not sequential.)
How do ...
19
votes
1answer
8k views
How to change the numbering of \part, \chapter, \section, … to alphabetical, Roman numbers, etc
I'm fairly new to LaTeX and I want to know how to change the way sections are numbered by default. I use LyX, and there it is relatively simple to change the way an enumeration is numbered, i.e.
1 ...
10
votes
1answer
314 views
showonlyrefs and cleveref
This question led to a new package:
autonum
I know that cleveref is not compatible with showonlyrefs as it says in the cleveref manual. But I have a book-length document that depends on ...
7
votes
1answer
141 views
custom automatic equation numbering
I just read a book where the equations in the Introduction were numbered slightly differently compared to the other sections, namely by (In.x) where x stands for the number (so it starts off as ...
6
votes
4answers
3k views
How to add a dot after the section number?
I wonder is there any way to change the format of section numbering from 1.1 to 1.1. ? I know this is trivial, but I really need to add one more dot after the section number. Does anybody know how to ...
4
votes
2answers
771 views
How to create multilevel figure / table numbers?
How to create figure numbers like 1.1.1 and then 1.2.1, not 1.2.2?
I mean even if I added \arabic{section} into the command, the order of figures is still continuous, not accordingly rearranged by ...
11
votes
3answers
1k views
Footnote number in braces / parentheses
I have written my dissertation with LaTeX, but my teacher has suggested to put the number of footnotes in braces / parentheses. I thought it would be easy, but I haven't found the answer anywhere!
I ...
10
votes
3answers
382 views
Nested footnotes disrupts comma delineation of footnotes
A solution that resolves LaTeX's inability to properly number nested footnotes has the side effect of abolishing comma delination of sequential footnotes (a feature provided by the footmisc package), ...
7
votes
3answers
459 views
Adding numberless chapters to the table of contents
How do I include a chapter reference within the table of contents without giving it a chapter number? I am using the report document class.
Normally, I would create a chapter as follows:
...
6
votes
1answer
150 views
Selective numbering of equations with align
I have an align environment with 5 equations. I want 3 of them numbered, and the other 2 not numbered. I understand that there's other posts on the issue of selective numbering of those equations that ...
5
votes
1answer
4k views
ContinuedFloat, and Subfloat
In my thesis I have a lot of figures with a common caption and multiple subfigures (a,b,c..etc). I wanted to split them between the pages because I don't want to fit them all in one page, therefore I ...
31
votes
3answers
18k views
How can I make an enumerate list start at something other than 1?
Sometimes, I want to have enumerate lists in LaTeX start at other than the first value (1, a, i, etc.) How can I make an enumerate list start at an arbitrary value?
21
votes
1answer
4k views
Adding unnumbered sections to TOC
I have many unnumbered sections in my report (more than 100), all created with:
\section*{section name}
I want to find an way to easily add all them to the TOC (specifically to a minitoc), since I ...
11
votes
6answers
4k views
ToC numbering problem
My LaTeX document is acting strangely. Here is a simplified version of it:
\documentclass{article}
\begin{document}
\tableofcontents
\newpage
\addcontentsline{toc}{part}{A Part of My Document}
...
7
votes
3answers
1k views
How to change the chapter number to display as text (One, Two, …)?
In LaTeX, how do I change the chapter number to display as text? eg:
CHAPTER ONE not CHAPTER 1;
CHAPTER THIRTEEN not CHAPTER 13.
5
votes
2answers
3k views
How to leave out chapter numbers in section numbering
So, I'm writing my thesis using the book class. I have the following:
[Chapter I The fundamentals]
using
\chapter{The fundamentals}
together with
\renewcommand{\thechapter}{\Roman{chapter}}
...
4
votes
1answer
138 views
How to set the number of the first citation?
I am using BibTeX and natbib for my citations. In the bibliography the first entry usually starts with [1]. Now I would like to shift all the numbers in the bibliography and text by a certain offset, ...
14
votes
2answers
1k views
Error: Counter too large! with \alph{cntr} and cntr>26
I would like to have \alph{counter} for values larger than 26. The following MnWE gives me the error ! LaTeX Error: Counter too large.
\documentclass{article}
\begin{document}
\begin{enumerate}
...
7
votes
1answer
284 views
How can I reset the chapter number from zero with memoir?
I'm working with memoir class, the first chapter was numbering (chapter 1) but I would like numbering it from zero... how can I do this?
6
votes
2answers
1k views
Common, per-section numbering of theorems, lemmas etc.
I use amsthm for my theorems, lemmas etc.
I'd like their numbering to look like that:
Theorem 1.1.1
Lemma 1.1.2
Definition 1.1.3
Theorem 1.2.1
Definition 1.2.2
Corollary 1.2.3
Theorem 2.1.1
etc.
...
5
votes
3answers
1k views
Automatic table row numbers
Is there any way to get automatic row numbers in table?
For example, if I define table contents as
\begin{tabular} % black magic column definition
\rownumber & foo\\
\rownumber & bar\\
...
4
votes
1answer
251 views
Nested Footnotes + Hyperref
Footnoting a footnote can be performed by placing a \footnotemark within a footnote, followed later by the accompanying \footnotetext. However, only a single footnote can be placed within a footnote ...
1
vote
3answers
1k views
hide section numbering but continue adding-up
When I hide a section with the asterisk it doesn't show the number in the heading and the section doesn't show up in the TOC.
How to hide a section but have the counter beeing added-up correctly so ...
20
votes
4answers
977 views
How to convert a one digit number to a two digit number
I have a table that represents a timetable for bus, so each cell contains time of departure as hour followed by minute, both as two digits, but sometimes I don't have two digits,just one so I have to ...
4
votes
2answers
944 views
Numbered section hidden from the ToC
I'm writing a set of course notes that has an appendix containing many activities.
I do not wish the activities to be shown in the Table of Contents, but I do wish them to be numbered. Here is the ...
18
votes
4answers
547 views
Inserting/Numbering/Labelling/Referencing several times the same equation written in various form
I'm looking for an automatic way in LaTeX to number a same equation that would be inserted several times (under different forms for instance). The output would look something like:
some text
x-y=0 ...
15
votes
2answers
250 views
A new kind of “symbol wrapping”
alphalph defines three methods for continuing a set of symbols if you hit the end.
alph continues like so: a,b,c…z,aa,ab,ac…
mult continues like so: a,b,c…z,aa,bb,cc…
wrap continues like so: ...
12
votes
2answers
4k views
Creating unnumbered chapters/sections (plus adding them to the ToC and/or header)
I'm using the report document class for a thesis, and I need to add things like "Acknowledgements" and an "Introduction". I noticed that there is an \abstract command which would have been wonderful ...