Questions tagged [chngcntr]
{chngcntr} is for questions related to the chngcntr package.
31
questions
1
vote
1answer
55 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
2answers
884 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
0answers
20 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
0answers
51 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
1answer
176 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
1answer
7k 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
2answers
235 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
1answer
238 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
1answer
132 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
0answers
143 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
1answer
133 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
1answer
602 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
2answers
771 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
2answers
409 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
1answer
2k 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
2answers
114 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
1answer
216 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
0answers
343 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
1answer
770 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
1answer
2k 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 ...
1
vote
1answer
501 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
2answers
1k 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
1answer
357 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
1answer
372 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
1answer
231 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
0answers
83 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
1answer
223 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
0answers
690 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
2answers
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
2answers
587 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{...
3
votes
1answer
10k 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:
...