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

learn more… | top users | synonyms

34
votes
2answers
2k 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 ...
81
votes
2answers
25k 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 ...
29
votes
3answers
5k views

Defining 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. ...
14
votes
2answers
2k 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 ...
14
votes
1answer
6k 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} ...
42
votes
8answers
9k 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, ...
36
votes
3answers
13k 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 ...
23
votes
2answers
17k 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 ...
14
votes
2answers
2k 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 ...
7
votes
1answer
4k views

\section{} results in 0.1, not in 1.0

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} ...
44
votes
2answers
3k 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 ...
39
votes
7answers
4k 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 ...
9
votes
3answers
4k 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 ...
9
votes
1answer
2k views

Reference to a figure uses the section's 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 ...
108
votes
6answers
33k 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 ...
12
votes
3answers
6k 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} } ...
31
votes
3answers
2k 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?
33
votes
3answers
20k 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 ...
36
votes
1answer
28k 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 ...
8
votes
2answers
3k views

Ignore citations in captions in list of figures when numbering

When using the \cite command in figure captions and the ieeetr bibliography style, then BibTeX numbers the citations as appearing earlier than they do in reality (i.e. the first citation in the ...
9
votes
2answers
307 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 ...
15
votes
2answers
6k views

Numbering of appendices in the backmatter of a book

I'm using the standard book class. If I write \documentclass{book} \begin{document} \frontmatter \tableofcontents \mainmatter \chapter{foo} \section{Donald} \backmatter \chapter{bar} ...
3
votes
4answers
16k views

How to remove chapter numbering without removing it from tableofcontents

It seems I have a two day trying to find out the solution of my problem. I have just finished typing my M.Sc thesis using LATEX (MIKTEX 2.9). Unfortunately, all my chapters begin with the chapter ...
9
votes
3answers
359 views

Numbering a set of horizontally distributed equations

Having different horizontally distributed equations inside an align environment, only lines are numbered, but not individual equations. How can the left equations be numbered using subequations? ...
8
votes
1answer
589 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 ...
8
votes
3answers
4k 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\\ ...
9
votes
3answers
2k 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.
8
votes
3answers
1k 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: ...
30
votes
1answer
12k 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 ...
29
votes
3answers
9k 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 ...
11
votes
1answer
864 views

How do I get sub-numbering for theorems (Theorem 1.A., Theorem 1.B., Theorem 2.)?

I am trying to number my theorems as follows: Theorem 1.A. First part of a theorem. Theorem 1.B. Second part of the theorem. Theorem 2. A theorem with no parts. The following almost works: ...
28
votes
1answer
7k 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.
13
votes
3answers
3k 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 ...
12
votes
3answers
611 views

Numbering theorem-like environments

I would like all my theorem-like environments (theorem, example, etc.) to be numbered but such that the number appears before the environment's name, more or less like this: 1. Theorem 2. Example ...
4
votes
2answers
1k 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 ...
17
votes
2answers
3k 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} ...
14
votes
6answers
6k 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} ...
9
votes
3answers
837 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 ...
9
votes
1answer
8k 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 ...
18
votes
1answer
1k 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 ...
9
votes
2answers
9k views

One chapter without numeration

How can I make one chapter (Introduction) without number? I have: \documentclass[12pt,a4paper]{mwrep} \chapter{Introduction} \chapter{Chapter 1} \chapter{Chapter 2} In ToC I have: ...
5
votes
1answer
1k views

Biblatex enumerating sorted bibliography (using authoryear-ibid style)

How can I set biblatex to insert "1. " before first bibliography item and so on? The bibliography is sorted by author and the numbers are not meant to be used anywhere else.
57
votes
5answers
30k views

Symbols instead of numbers as footnote markers

How can I make LaTeX use symbols (*, †, ‡, and so on) instead of numbers to mark footnotes? (The numbers are confusing because I use superscripted numbers for citations.)
55
votes
2answers
83k views

How do I change the `enumerate` list format to use letters instead of the default Arabic numerals?

I've seen documentation whereby an \alph command is put around the \begin{enumerate} somewhere, but I'm not entirely sure how that operates...
25
votes
3answers
2k 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 ...
24
votes
6answers
10k 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 ...
8
votes
2answers
2k 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 ...
16
votes
1answer
5k views

How to reference equations using letters and numbers

Sometimes it is convenient to refer to a group of equations by a letter and a number. For example: 2+1 (A1) 2+4 (A2) x^4 (B3) x^e (B4) Placing ...
12
votes
2answers
2k views

How to change symbol for footnote in minipage

\renewcommand method does not work \documentclass{article} \renewcommand{\thefootnote}{\arabic{footnote}} \begin{document} \begin{minipage}{1.3\textwidth} test this\footnote{abc} \end{minipage} ...
23
votes
4answers
16k views

Beamer: \nonumber equivalent for slides?

Is there an equivalent command to \nonumber when one doesn't want to include certain slides in the numbering? I would like to leave outline and title slides out of my numbering, and instead just ...