Questions tagged [chngcntr]
{chngcntr} is for questions related to the chngcntr package.
33
questions
1
vote
1
answer
64
views
hyphen between section number and table number in caption
Using the chngcntr package, it is possible to number tables and figures starting from the current section (i.e. The second table of the third section would be Table 3.2). My university wants the ...
2
votes
2
answers
199
views
How to remove 0's from a Figure Name if its not in a Subsection, etc
I use the chngcntr Package to Name my figures accordingly.
\counterwithin{figure}{section}
\counterwithin{figure}{subsection}
\counterwithin{figure}{subsubsection}
\counterwithin{figure}{paragraph}
...
2
votes
1
answer
598
views
Common numbering for figures and tables
How can I make a common numbering for my figures and tables?
For instance, I want to obtain in Section 1 something like: Table 1.1, Figure 1.2, Table 1.3, Table 1.4, Figure 1.5
10
votes
2
answers
924
views
An elegant aspect for enumerate the equations of a book
I am trying to create this kind of enumeration for the various equations of my book, similar, as this image:
My MWE is:
\documentclass{book}
\usepackage{mathtools}
\usepackage{newtxtext}
\usepackage{...
0
votes
0
answers
33
views
Can't simultaneously have superscripted footnotes in text and footnote counter not cycling back to 1 with each chapter
I want my footnotes superscripted in the text and numbered continuously in the text of my book from 1 to n, without restarting at 1 with each chapter. In the MWE below, if I comment out the \chngcntr ...
0
votes
0
answers
75
views
Within section numbering of figures: missing period
For a while, I have been using within section numbering of figures. This used to be done by adding the chngcntr package (which is no longer needed) and \counterwithin.
However, now instead of the ...
2
votes
1
answer
430
views
How to number the listings within sections?
I use this excellent approach for inserting external Python code in my document.
How to highlight Python syntax in LaTeX Listings \lstinputlistings command
\section{TEST}
\pythonexternal[caption=test,...
24
votes
1
answer
8k
views
! LaTeX Error: Command \counterwithout already defined
After updating MikTex up to 09.04.2018 (MikTex 2.9.6637, Win 10, 64bit) I've got the error:
(F:\...\texmfs\install\tex\latex\chngcntr\chngcntr.sty
! LaTeX Error: Command \counterwithout already ...
2
votes
2
answers
648
views
Disable equation numbering in subsections for certain section
The structure of my document is such that I generally want to have equation number counters both per section and subsection. Problem is I won't be having subsections inside a certain section and that ...
2
votes
1
answer
420
views
Dynamic counter for corollaries of Theorems and Propositions at the same time
In the question Dynamic counters for corollaries Christian Hupfer has give a beautiful answer using his package xcntperchap in which corollaries of a Theorem receive numbers 1, 2, 3,... for each ...
2
votes
1
answer
228
views
Dynamic counter for corollaries
I use the package chngcntr to number the Corollaries of a Theorem so they zero for the next Theorem, with the setting
\usepackage{chngcntr}
\counterwithin*{cor}{theo}
and that works very nice, ...
0
votes
0
answers
192
views
Why does \ref not work with chngcntr? [duplicate]
I want my figures to be captioned Figure x.n for the nth figure in chapter x. The below MWE gives correct figure numbers in the captions, but \ref gives the chapter numbers instead of x.y:
\...
7
votes
1
answer
157
views
Resetting counter but changing its formatted string still gives pdfTeX warning (ext4)
A seemingly long question, but it's because I included 3 pieces of code - which are easy to understand.
Resetting a counter and changing its formatted string through \renewcommand\themycounter{\Alph{...
1
vote
1
answer
984
views
chngcntr package works for first chapter but not for other chapters of book
The package:
\usepackage{chngcntr}
\counterwithin*{chapter}{part}
\renewcommand{\restoreapp}{}
Works for the first chapter of my thesis, but on the two other chapters, the count starts at every ...
2
votes
2
answers
924
views
[chngcntr]: Documentation: \counterwithout Remove All
In the documentation for package chngcntr,
a command is referenced as:
\counterwithout{<ctr>}{<..>}
The phrase:
Any number of \counterwithin{<ctr>}{<...>} and \...
0
votes
2
answers
538
views
Latex Preamble - Conflicting and undesirable packages
I have been struggling to understand my latex preamble. I have listed my preamble below for others to see.
MWE
\documentclass[12pt, titlepage, oneside, a4paper]{report}
\usepackage[T1]{fontenc}
\...
6
votes
1
answer
4k
views
LaTeX-internal definition of \thesection
I am using a redefinition of the equation-numbering as in the MWE below.
\documentclass{scrreprt}
\usepackage{chngcntr}
\renewcommand{\theequation}{\thesection.\arabic{equation}}
\counterwithin*{...
1
vote
2
answers
161
views
Group LOF figures by chapter in article class
In the article class, is is possible to group items in the list of figures by chapter? e.g.:
Already I'm using the following to allow figures to by numbered relative to their chapter in the article ...
1
vote
1
answer
337
views
per-section figures in un-numbered sections
I'm trying to write a document with un-numbered sections (i.e., \setcounter{secnumdepth}{0}) and numbered figures, with the figures numbered within section. I can't get secnumdepth and chngcntr to ...
2
votes
0
answers
636
views
\counterwithout and \captionlistentry leads to omitting figure numbering [closed]
Here is my MWE:
\documentclass[]{scrreprt}
\usepackage[]{todonotes} % only for the dummy-figure
\usepackage[]{caption}
\usepackage{subcaption}
\usepackage{chngcntr}
\usepackage{hyperref} % needs to ...
3
votes
1
answer
1k
views
Reference to longtable wrong if \numberwithin{table}{section} is activated
I've encountered something weird while using the longtable package together with \numberwithin{table}{section} or \counterwithin{table}{section}: if a longtable is the first table in a section, it ...
7
votes
1
answer
4k
views
Reset counter \section in \part*
I'm a rookie with LaTeX, I'm using LyX, but I think this is a LaTeX problem.
Im using this LaTeX preamble for reset counter after parts
\usepackage{chngcntr}
\counterwithin*{section}{part}
But it ...
2
votes
1
answer
688
views
exercise package; how to get counter for a custom exercise type to increment with memoir sections?
Just started learning LaTeX, because I'm trying to write a short math book. I started out using LyX, but ultimately I want more control over the typesetting, so I have to learn LaTeX.
Anyway, I want ...
4
votes
2
answers
2k
views
counterwithin problems with table of content
I would like to use the option counterwithin to get my numbering as I, I.1., I.2, .., II, II.1, II.2,...
I use the following minimal script
\documentclass[11pt, a4paper, twoside, openany]{scrbook}
\...
4
votes
1
answer
406
views
Verbments: listofpyglistings numwidth
im really new to latex and now have tryed to make an List of my SourceCode. To Highlight I used verbments. It provides the Command ListOfPyglist. This works fine. Now I want to set the Counter to ...
1
vote
1
answer
923
views
Changing counters across and within sections
I am making a document with glosses (using package gb4e) and sections. The glosses correspond to certain numbers within certain chapters, but these chapters do not correspond to the sections I'm using;...
7
votes
1
answer
273
views
How can I combine endfloat and chngcntr?
Is there any way to combine the packages endfloat and chngcntr?
I would like to have all tables at the end of the document (with endfloat) and a numbering that includes the section number (e.g., 1.1.)...
0
votes
0
answers
93
views
Table of contents looks bad with package chngcntr [duplicate]
I'm using the package "chngcntr" to restart the chapter count in each part of my work. It's working just fine. However, in the table of contents, the chapters and all other sections numbers overlap ...
6
votes
1
answer
232
views
Numbering figures and tables in a problem set
A standard problem set from a physics textbook is divided into sections, with problems numbered sequentially from start to finish (i.e., not resetting in every section). Tables and figures are ...
2
votes
0
answers
781
views
Table numbering starts at 2 when chngcntr / \counterwithout used [closed]
I have used the \counterwithout{table}{chapter} to remove the chapter number prefixing from table numbering yet my only table in the document is coming back as '2'
I have just done a little debug and ...
9
votes
2
answers
1k
views
Consecutive caption numbers without chngcntr?
As many before me I need consecutive caption numbers for figures and tables instead of chapter-based numbers like Figure 1.2. I use scrreprt and the caption-package for my document. I also need roman ...
6
votes
2
answers
637
views
How to use chngcntr with an enumitem newlist with resume?
With the following M(ish)WE, I expected the numbering of my examples list to be reset at the opening of the second chapter, but it is not.
\documentclass{book}
\usepackage{chngcntr}
\usepackage{...
4
votes
1
answer
14k
views
Reference to figures in appendix is not printed properly
When citing a figure in a section in my report body, the reference prints the correct number:
Figure\ref{fig:UML} illustrates complexity arising from the non-modularity of the existing design:
...