Questions tagged [numbering]

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

Filter by
Sorted by
Tagged with
143 votes
2 answers

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 `myalg'....
einpoklum's user avatar
  • 12.3k
246 votes
4 answers

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 ...
lockstep's user avatar
  • 251k
169 votes
3 answers

Creating unnumbered parts/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 ...
Ayman Elmasry's user avatar
119 votes
10 answers

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. ...
Leo Alekseyev's user avatar
44 votes
5 answers

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 ...
Jason Xu's user avatar
  • 1,783
113 votes
1 answer

How to show subsubsections and paragraphs in TOC?

So we have something like: \documentclass{article} \setcounter{secnumdepth}{2} \setcounter{tocdepth}{2} \usepackage{amsmath} \begin{document} \tableofcontents \section{Brushless Motor Fundamentals}...
Kabumbus's user avatar
  • 1,805
56 votes
4 answers

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\\ ...
miah's user avatar
  • 663
30 votes
3 answers

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 ...
JardaFait's user avatar
  • 3,922
249 votes
6 answers

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.)
Vebjorn Ljosa's user avatar
27 votes
2 answers

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 ...
Stuart's user avatar
  • 455
102 votes
9 answers

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, ...
Scott Morrison's user avatar
141 votes
5 answers

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 a way to easily add them all to the TOC (specifically to a minitoc). Since I ...
Weslei's user avatar
  • 4,025
193 votes
4 answers

How to get only one vertically centered equation number in align environment with two equations

What I have are two equations with align and I want one single equation number to refer to this system of equations. To illustrate, I have \begin{align} dr_t &= \kappa ( \theta - r_t ) dt + \...
Paul Koer's user avatar
  • 3,495
426 votes
10 answers

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...
Billy ONeal's user avatar
  • 10.4k
91 votes
2 answers

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.
Robert Massa's user avatar
  • 1,135
154 votes
2 answers

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 ...
David Berger's user avatar
  • 1,643
185 votes
7 answers

How do I turn off equation auto numbering

I have an equation like this: \begin{align} P(A \cup B) = \sum_{\omega \in A \cup B} P(\omega) = \sum_{\omega \in A} P(\omega) + \sum_{\omega \in B} P(\omega) = P(A) + P(B) \end{...
user1046's user avatar
  • 1,953
174 votes
6 answers

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 ...
digit plumber's user avatar
351 votes
10 answers

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 ...
Seamus's user avatar
  • 73.3k
91 votes
2 answers

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 ...
klew's user avatar
  • 999
610 votes
5 answers

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?
vanden's user avatar
  • 30.9k
109 votes
1 answer

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 ...
hoyland's user avatar
  • 1,796
50 votes
9 answers

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 ...
Thorsten's user avatar
  • 12.9k
30 votes
2 answers

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} \def\...
yo''s user avatar
  • 51.4k
17 votes
5 answers

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.
user avatar
82 votes
1 answer

repeating an equation and getting the same equation number?

Let's say I have written an equation in my paper and numbered it: y = a + bx (1) Then, later in the paper, I want to remind the reader by showing the same equation with the same equation number. ...
phil's user avatar
  • 821
59 votes
4 answers

\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} } \...
Grzegorz Wierzowiecki's user avatar
38 votes
1 answer

How to enumerate the rows of a table

I want to automatically enumerate the text rows of a table. Is there an option within tabular, or another package? (Of course I do not want the rules to be enumerated.)
Maesumi's user avatar
  • 9,059
37 votes
3 answers

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?
mathspasha's user avatar
  • 2,389
14 votes
1 answer

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.
Andres's user avatar
  • 661
70 votes
4 answers

Custom theorem numbering

This one should be easy for the gurus… Suppose I want to define a theorem environment which has a custom numbering scheme. That is, instead of being numbered according to some counter, it is numbered ...
Skeptic's user avatar
  • 3,025
37 votes
3 answers

\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} \usepackage[...
Brandon Bertelsen's user avatar
30 votes
2 answers

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: \...
Herman Tulleken's user avatar
14 votes
3 answers

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 point ...
lockstep's user avatar
  • 251k
63 votes
3 answers

\nameref -- How to display section name AND its number

Is it possible to make \nameref display not only the title of the section but also its number? \section{First Section} \label{sec:some_sec} \subsection*{Unnumbered subsection} \label{sec:subsec} [.....
cpt. jazz's user avatar
  • 885
85 votes
2 answers

Theorem/Definition/Lemma problem --- Numbering

I am trying to work on the numbering of the theorems/definitions/lemmas etc., and I have some problems with the numbering. I would like the theorems, propositions, corollarys, definitions, ...
Gary's user avatar
  • 2,033
25 votes
2 answers

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} \...
colinfang's user avatar
  • 1,541
24 votes
3 answers

How can I number paragraphs (and sections) in the margin?

I am (still) trying replicate the layout of this document. Sections and paragraphs are all numbered, in the margin (the chapter titles do not treat this as a margin, but I can ignore that). They are ...
Martin's user avatar
  • 295
24 votes
4 answers

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 ...
Ion Morozan's user avatar
17 votes
2 answers

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 ...
whoiscraig's user avatar
9 votes
1 answer

Tag placing with amsmath

I'm using amsmath and its \tag command to tag equations. I remember having a situation where I liked having the tag on the left better than on the right. So I gave my class (which is report btw) the ...
MickG's user avatar
  • 5,426
129 votes
7 answers

Change figure numbering for appendix

I want to "reset" the figure counting in my document when the appendix starts, and follow a different pattern than 1, 2, 3... Specifically, I want figures in the appendix to start with A.1, A.2 onward,...
Maarten's user avatar
  • 1,653
88 votes
2 answers

Beamer Presentation: Figure has no number?

I am giving a presentation and therefore I am using the beamer class. I have included some figures and it works, but there is no number after "Figure". My code: \documentclass{beamer} \usepackage{...
Jen Bohold's user avatar
  • 1,479
86 votes
1 answer

Getting section numbering to start at 0

\documentclass[11pt,a4paper]{article} \usepackage[T1]{fontenc} \usepackage{lipsum} \usepackage{tocloft} \begin{document} \tableofcontents \thispagestyle{empty} \...
TheRealFakeNews's user avatar
80 votes
3 answers

Section numbering without numbers

I want to add a section without a number, but \section* also excludes it from the numbering, so if there is this \section*{Section 1} \subsection{Subsection} \subsection{Subsection 2} \section*{...
Nuria's user avatar
  • 935
48 votes
1 answer

Reset section numbering between unnumbered chapters

The document I'm writing using report class has 2 unnumbered chapters. The sections of the 2nd chapter are numbered following the numbering of the sections of the 1st chapter, like this: MY FIRST ...
Fernando Lemos's user avatar
46 votes
3 answers

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 in ...
Count Zero's user avatar
  • 17.4k
32 votes
2 answers

LaTeX - Different section names in TOC from body

Sorry if this question already appears elsewhere, I couldn't find it. Is there a way to label a section in the text but give it a different name in the table of contents? I have very long section ...
Gemma's user avatar
  • 345
23 votes
1 answer

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 \tag{A\theequation}\label{eqn:thisone}\...
Niall Murphy's user avatar
  • 1,451
22 votes
6 answers

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} \...
Sophie Alpert's user avatar

2 3 4 5