Questions tagged [totcount]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
11 views

Totcount: registering multiple auxiliary files

According to the totcount guide, I can define multiple auxiliary files within the same document, by using different \regtotcounter[auxfile=]{} commands. I want to do that because I want to keep ...
user avatar
2 votes
2 answers
57 views

\newtotcounter with macro inside definition

I tried to define \newtotcounters (from totcount package) procedurally, as bar\thefoo where foo is another counter (details in MWE below). However, only the last \newtotcounter works as intended, ...
user avatar
  • 538
0 votes
1 answer
64 views

Plot Totcounter-Value

I'm trying to get tikzpicture and pgfplots working with totcount to create the following bars. I count all occurrences of the different ratings with \totcounter and in text I am able to read the ...
user avatar
2 votes
3 answers
68 views

Count number of succeeding sections within the text

Writing about structure of the remainder of my article in the Introduction section, I want to dynamically get how many sections are left to the end of the manuscript. So in case my article consists of ...
user avatar
  • 35
1 vote
2 answers
77 views

How to total item counts in multiple enumerate environments, respecting \include

I'm writing a book in which each chapter ends with a list of numbered exercises. I would like to persuade LaTeX to count the total number of exercises in the book, to be referred to with \ref or ...
user avatar
2 votes
2 answers
66 views

Display maximum value of counter per section

I'd like to display/get the maximum value of a counter that it reaches per section. I have found a way to get the total/maximum value of a counter in the entire document so far, but I fail to get it ...
user avatar
  • 6,260
0 votes
0 answers
32 views

Possible incompatibility between glossaries-extra (bib2gls) and totcount (\newtotcounter)

In current MiKTeX distribution (both release and pre-release), compiling the following code leads to java.lang.StackOverflowError that, according to bib2gls’s manual, may be caused by an infinite loop....
user avatar
  • 988
0 votes
1 answer
118 views

Function of "\numexpr\totvalue{<counter>}"

The code below is found here. It works normally: if \numexpr\totvalue{<counter>}is replaced by \the<counter> the result is wrong (0). \documentclass{article} \usepackage{totcount} \...
user avatar
  • 226
2 votes
1 answer
87 views

Why can't the name of a `totcounter` be defined with a variable

I want to print the sum of some counter per subject at the beginning of that subject and I want it to be done automatically. I decided to use the totcount-package. I then define a counter like: \...
user avatar
  • 1,461
1 vote
1 answer
141 views

How to make calculations with counters?

I have three counters counterBoat, counterThink and counterWork. I want to print the integer "round"(100*counterBoat/(counterBoat+ counterThink+ counterWork)) in my document. I use the package ...
user avatar
  • 6,130
1 vote
0 answers
138 views

Latex get counter value at beginning of section [duplicate]

I am trying to access the final value of a counter in each section at the beginning of the section. The reason for knowing the value ahead of time is to use it in a bar plot that summarizes ...
user avatar
6 votes
2 answers
98 views

Generating statistics on a command with totcount

I have a document that looks like this: \documentclass{report} ...
user avatar
2 votes
1 answer
63 views

Producing a table that provides counts for @article, @proceedings etc. from a bibtex file

Is there any way to produce a table that can provide counts based on the @article, @proceedings and other categories in bibtex?
user avatar
  • 123
6 votes
1 answer
203 views

Counting section for each chapter

I am newbie with latex and I try to create a section with movable section number tabs as shown below: In the following code, I used both tikz and titlesec packages to format the required sections \...
user avatar
2 votes
2 answers
125 views

How to get to total number of lines in an environment

While trying to figure a complete answer to this post, I was wondering how I could get the total amount of lines in the algorithmic environment. Of course this question can be relevant for other ...
user avatar
  • 8,419
2 votes
2 answers
208 views

Use counters in a bar chart

I have a document consisting of different topics within multi-variable calculus. I want to start the document with a bar chart displaying how many problems there are of each kind, based on the number ...
user avatar
3 votes
1 answer
131 views

Totcount depending on environment

I'd like to have a counter, called ProblemPoints in the MWE, which is dependent on an environment problem, such that I can print the total points of each problem. \documentclass{article} \usepackage{...
user avatar
  • 33
11 votes
4 answers
519 views

How to remember a length across compilations

I'm trying to save a length in the .aux file, so that it is remembered in the following compilation. In other words, I'm looking for something like the totcount package, but which works for lengths. ...
user avatar
  • 2,953
5 votes
2 answers
266 views

Total count of Theorem like environments - In all chapters

I am using the following structure to define my custom theorem-like Prob environment using the thmtools package. I want to include the total number of problems in the introduction. For this I am ...
user avatar
9 votes
3 answers
971 views

Counting chapters and appendices

During my last experiences with cross-referencing on total counts between different files, a problem of counting of chapters and appendices appears. As a MWE we can use a MWE given here with some ...
user avatar
1 vote
1 answer
219 views

How to get a total number of literature references and save it to a user defined counter?

During my last experience with Cross-referencing on total counts between different files, which can be read here, a problem of saving the total number of literature references in a user defined ...
user avatar
5 votes
1 answer
449 views

Cross-referencing on total counts between different files

Suppose that we have three .tex files in one folder called PhDThesis.tex, Synopsis.tex and conclusion.tex. There is also one bib-file called my_bibio.bib In Synopsis we have a short description of ...
user avatar
4 votes
3 answers
1k views

Working alternatives to totcount to get the total number of pages of a document

I have encountered a bug in totcount package: sometimes it counts pages incorrectly. For example, the following code produces for me a 2-page PDF file, but totcount thinks there is only one page: \...
user avatar
  • 1,709
6 votes
1 answer
190 views

calc breaks assoccnt? [closed]

I want to use totcount to get the number of parts and chapters in my document. To get the correct number of chapters in the presence of appendices, I use assoccnt (see totcount gives wrong chapter ...
user avatar
  • 2,659
4 votes
1 answer
292 views

totcount gives wrong chapter count when appendices present

I found that totcount gives the wrong chapter count when appendices are present. In the following MWE, the chapter count should be 3 but is actually 1: \documentclass{report} \usepackage{totcount} \...
user avatar
  • 2,659