{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

11
votes
2answers
8k views

How to change the numbering for different figures?

Let's say I have two standard figures and two supplementary figures. If I change the name of figure using \renewcommand{\figurename} the figure counter will still count all figures continuously (i.e. ...
11
votes
1answer
952 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: ...
11
votes
2answers
385 views

How to add a counter to beginning of each sentence like the Bible?

1 In the beginning God created the heaven and the earth. 2 And the earth was without form, and void; and darkness was upon the face of the deep. And the Spirit of God moved upon the face of the ...
11
votes
1answer
196 views

Strip section number from equation range reference

I am trying to adjust equation range numbering from (1.10)-(1.15) to (1.10-15). By calling this in the preamble: \crefrangelabelformat{equation}{(#3#1#4-#5#2#6)} and then this in the document: ...
11
votes
1answer
586 views

Adding multiple paragraphs between aligned equations

Some people have asked about how to add multiple paragraphs (when \intertext and \shortintertext no longer work), a fix was proposed by Peter Grill here: He wrote: My first thought was to hack ...
11
votes
1answer
12k views

Replace or remove bibliography numbers

I'm using a simple bibliography like this ... \nocite{*} \bibliographystyle{acm} \bibliography{refs} ... and I would like to either replace the numbers ([1], [2], ...) in front of each reference ...
11
votes
1answer
3k views

Adding section number after section title with titlesec package

I am having difficulty adding the section number after the section title. Normally the order is section number followed by section title. I want it to be the opposite. I am looking for what I should ...
11
votes
1answer
357 views

When using longtable, my table counter starts from 2 rather than 1. Why?

When using longtable, my table counter starts from 2 rather than 1. Why? \documentclass[12pt]{article} \usepackage{xcolor} \usepackage{array,booktabs,longtable} %\extrarowheight5pt ...
11
votes
1answer
6k views

Theorem numbering as chapter.section.subsection.theorem number

This might be a simple question but it's weird that I couldn't find the answer anywhere on the internet. If I set as \newtheorem{-}{-}[section] then I get the numbering as Theorem ...
11
votes
1answer
659 views

How do I get the numbers for theorems, lemmas, examples, etc. before the type?

I am using the article document class with amsthm. I would like number the theorems/corollaries/examples, etc., consecutively as follows: 1.1 Theorem 1.2 Example 1.3 Example 1.4 ...
11
votes
1answer
220 views

Change subsection number increment from .1 to .01 -eg 1.02,1.03, etc

As the title states, I would like the subsections to increment by .01 instead of .1. Any help would be greatly appreciated. thank you. \documentclass[]{article} \begin{document} \title{APA ...
11
votes
2answers
1k views

Reset the counter of references in each chapter

I am currently busy with writing my PhD book in LaTeX. I want to have separate references list at the end of each chapter. Thanks to my colleague, we have added some line for this purpose and it ...
11
votes
1answer
234 views

How to build one efficient alpha numbering?

Seeing this post, I'm looking for one good solution for alpha numbering. For my point of view, the way the numbering must be displayed depends on the maximum of the numbers. If MAX = 26, then the ...
11
votes
1answer
5k views

Labeling a Footnotemark

Is there a way to label a \footnotemark instance (without redefining the \footnotemark macro)? Labeling the \footnotemark has no effect (it labels whatever environment the command is invoked from) and ...
11
votes
1answer
1k views

listings package: no numbering in case the code has only one line

I have a custom style in lstlisting with numbers on the left and the number step is set every line. I would want to know how the listings could appear without number in case the listing has only one ...
11
votes
1answer
494 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 ...
10
votes
3answers
419 views

Transforming numbers to \alph numbers

Is it possible to have a simple command \makeAlph which would do the following : return a when it receives 1 return b when it receives 2 etc. return nothing (or whatever ; actually that's not ...
10
votes
3answers
3k views

How to Make Theorems and Equations Share Numbering

How do I make theorems and equations share numbering? The default numbering system goes like this: Theorem 1. Blah blah blah... 1=0+1 (1) Theorem 2. More blahs... Theorem 3. No more ...
10
votes
2answers
7k views

Hide section numbers, but keep numbering

How do I hide section number in section heading ? I can't just use \section*{xxxx}, because I want subsections numbered correctly. I also tried : \section*{xxxx} \stepcounter{xxxx} Which hides ...
10
votes
2answers
10k 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: ...
10
votes
1answer
687 views

More than 26 appendices

For my thesis I have a document that contains more than 26 appendices. The appendices 1 up to 26 are are alphabetical numbered as A up to Z. However at the 27th appendix I get an error (although I ...
10
votes
2answers
557 views

How do I use simple integer numbering for subsections?

I want to use a list of \subsection elements numbered "1", "2", "3", "4"... but by default they're numbered "0.1", "0.2", "0.3", "0.4". How do I do this?
10
votes
2answers
898 views

Numbering subsections in one section only

I have a document in which I generally do not want to number the chapters, sections and subsections. Only one section should contain roman numbered subsections, how do I achieve that? I tried ...
10
votes
1answer
8k views

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 ...
10
votes
2answers
666 views

Section based linguistic example numbering with brackets

I would like to have examples in my document look like this: Section 2 (2.1) This is an example. This is a reference to example (2.1). That is: the section number appears both next ...
10
votes
3answers
511 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), ...
10
votes
2answers
721 views

Using circled numbers for answer choices in exam document class

I'm using the exam document class for an exam with a multiple choice section. To match the appearance of the scantron form, I'd like to use circled numbers in the choices and oneparchoices ...
10
votes
5answers
2k views

Moving the equation number up

In what's below, the equation numbering is annoying and forcing it to move up would be a solution. Anyway what are your suggestions to fix this without modifying the equations? ...
10
votes
1answer
3k views

\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} ...
10
votes
1answer
608 views

Bad position equation number Lualatex

If a math display is too wide, then the \eqno appears on the next line on the left instead of on the right as it should. Does anyone know how to solve this problem? This is an example: ...
10
votes
2answers
479 views

Automatically number inequalities

I have a long chain of inequalities and I would like to add some explanation for some of the steps under those inequalities. I have seen people do this like \stackrel{(i)}{\leq}. This is what I would ...
10
votes
2answers
2k views

Listings: different counters for different listing environments

How do I create two lstlisting environments that each have its own counter? If I use for example \lstnewenvironment{algorithm}[2]{ \renewcommand\lstlistingname{Algorithm} \lstset{ ... } } ...
10
votes
2answers
455 views

equation, equation number and itemize bullet all on the same line

I think the following sample says it all. I need to get the item bullet in the right place on the same line as the equation, and have this followed by an normal equation number. Someone asked the ...
10
votes
2answers
1k views

How to make page numbering with ligature roman style?

I use roman page number for front matter, I was just wondering, is it possible to make these roman numbers as ligature? See. Roman: and roman:
10
votes
1answer
618 views

How to number floats in sequence with theorems?

I like having all my theorems, examples, defintions etc. numbered in a single sequence. Is it possible to have LaTeX number my floating figures in sequence with them as well? I.e.: Theorem 1.1 A ...
10
votes
1answer
72 views

Automatically number a word in description if used at least twice

I defined an environment with description which automatically numbers the bold words if they appear twice or more often in an \item[]. So far it works fine, but I cannot add a 1 to the first word, if ...
10
votes
1answer
1k views

Changing number format in ToC

I'm using the tocloft package to alter the looks of my table of contents, but there's one thing I can't find in the documentation: splitting the number by level, to insert other delimiters than ".". ...
10
votes
1answer
1k views

Numbers and programming code

This happens when I use programming code and enumeration, how can I add a gap between the numbering and the line numbers of the code. I'm using this in LaTeX Preamble: \usepackage{listings} ...
9
votes
4answers
8k 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 ...
9
votes
3answers
953 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
2answers
2k views

How can I make LaTeX number my quotes

I would like to number the quotations that appear in my document. I like what LaTeX does with the equation environment, and would like something similar, so that if I had typed \begin{quote} Quote ...
9
votes
3answers
321 views

How to set a counter like this?

I want to set a counter like picture I only can do \documentclass[a4paper, 12pt]{article} \usepackage{fouriernc} \usepackage{amsmath}\usepackage[thmmarks,standard,thref]{ntheorem} ...
9
votes
3answers
153 views

Making the “Part 1” disappear in \part format

I am making a bank of exercises for a course. To do this, I use the exam class, which uses the same sectioning as the article class. To do this, I have a separate .tex files with the questions, ...
9
votes
2answers
4k 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
3k views

How can I change the colour of my document's section numbering?

I know how to change the colour of a section name using for example \section{\color{Red} Foobar} but that still leaves the section number in black. Is there any way to change the colour of the ...
9
votes
3answers
416 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? ...
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.
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
4answers
208 views

How can I reference the current (sub)section number?

I want to create a macro that dynamically returns the current chapter, section, subsection (etc.) I'm in. I've created a macro called \getCurrentSectionNumber that does this, but it lacks the ability ...
9
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} ...