Questions tagged [count]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
2answers
34 views

Removing extra chapter numbering in the Table of Contents

I'm using different chapter names in the chapter itself and the table of contents: \chapter[Chapter 1 – Introduction]{Introduction}. I'm also using chapter numbers (\thechapter) in chapter headers as ...
3
votes
1answer
54 views

Counting shipouts

Is there a way to get the number of pages shipped out so far? To be clear, I want to count "physical" output; I'm not interested in logical page numbers we typically find in the footer or ...
3
votes
1answer
84 views

xsim: What is the correct way to count exercises per section?

What is the correct way to count exercises per section like I got it with % Count exercises per section ===== \let\oldsection\section \renewcommand{\section}{% \setcounter{exercise}{0}% \oldsection} ...
4
votes
2answers
66 views

Count the number of lines of a long title with a specific line width

I am working on an effect of automatically fit an arbitrary long title to multi-lines with a specific line width. The title has no explicit new line(s), and is only a regular string. Currently, I have ...
0
votes
0answers
48 views

How to count the number of pages between two labels? [duplicate]

How to count the number of pages between two labels? I tried to fined a way using this answer but not helpful. \documentclass[12pt]{book} \usepackage{lipsum} \begin{document} \lipsum[1-20]\label{...
3
votes
2answers
75 views

How to generate error on assignment to \count register if value being assigned contains decimal point?

Please, if possible, plain TeX + eTeX commands only (I compile in XeLaTeX but use TeX commands). I need parameter value to be an integer value, not a decimal. In this example, parameter is being ...
0
votes
1answer
70 views

Word count for files included with input

I'm trying to do a wordcount of my thesis project in LaTeX. I'm using VIM with VIMLaTeX on an ubuntu machine. I have the following code in my main.tex file \newcounter{Hoofdstuk} \newcommand{\file}{...
3
votes
2answers
75 views

How many times has a label been referenced and which one is the most referenced?

Given a LaTeX document, I'd like to use an automatic method to know which one of all the labels is the most referenced one, which one is the second most referenced one and so on. I'll give you an ...
1
vote
0answers
243 views

How to get word count in overleaf?

how can I get a word count on overleaf, of like a particular section? Can I highlight a section for example or a paragraph and get the word count?
4
votes
2answers
4k views

Command for character count including spaces (in overleaf)

I'm becoming increasingly happy with overleaf, now prefering it to vscode or vim. A lot of the stuff I have to write for university needs a character count including spaces. Up until now I've been ...
1
vote
3answers
338 views

How to count rows of a csv?

I am using \csvreader to read a csv and I am trying to do some basic manipulation like counting the number of values and print that value in the document. For instance, how do I calculate the number ...
3
votes
2answers
163 views

LaTeX: Reverse row count or enumerate over tabular rows

I'm drafting my CV and I would like to number the projects, conferences, etc. that I have done but in reverse order (ie: the newest has the highest number and is on top of the list). I found a code ...
1
vote
1answer
93 views

Separate page numbering for multi page environments with total pages counts for each

A document which I try to typeset with LaTeX may contain multi page environments. Such environment has his own page numeration which starting from 1. But it has to be total environment pages number at ...
0
votes
1answer
139 views

Beamer: Display all images only once in article mode

I'm creating a beamer presentation in which I include several images, of which some of them are included in multiple frames. I'm also creating an article version of this presentation with \...
2
votes
0answers
161 views

Do not enumerate and count a page

I want to put a clean page before a new chapter. I can do this with: \newpage $\ $ \thispagestyle{empty} The problem is the page is counting and I don't want this. I want to finish the chapter ...
0
votes
1answer
152 views

Change number to word

Referring to the question below Set counter in exam class to a count based on the first set of questions I would like to change the answer for this. There are \total{s}\ short questions. From There ...
1
vote
0answers
654 views

Print character count

Background inspiration and code: \documentclass{article} \usepackage{bashful} \pagestyle{empty} \bash texcount -sum -1 tmp.tex \END \begin{document} %here is a front page and a table of contents %...
5
votes
1answer
2k views

how to count the number of words in a sentence, the number of sentences in a paragraph, and the number of paragraph?

I am writing an article on latex. I need to count the number of words in a sentence, the number of sentences in a paragraph, and the number of words in the paragraph? e.g. This is the first sentence....
1
vote
0answers
254 views

Count Characters without Spaces [duplicate]

I'm writing my BSc thesis right now in LaTeX using texmaker. The maximum amount of characters (without spaces) for the thesis is 70'000. Is there a decent way to count this? Copy-pasting it into Word ...
1
vote
1answer
85 views

Have pages of a separate document not count into \getpagerefnumber{LastPage}

I want to put a release document before my actual document. Currently I am doing this by using \input{"../Common Subdocuments/Documents/ReleaseDocument"} The problem that arises is the new page ...
4
votes
2answers
447 views

How to access the arithmetic value of count in \foreach, and use them in rotate box{}?

I have a question about access the mathematical value of count in \foreach, I will used that value to do some calculation in the following code. But it didn't work. \documentclass[margin=10pt]{...
5
votes
1answer
768 views

Included PDF pages mess up page numbering in PDF-reader

I have a report with a frontpage, abstract, preface and acknowledgement. These pages are not numbered. Then the remaining pages contain several chapters and all these pages are numbered. Today I added ...
1
vote
1answer
60 views

How to redefine a command to keep track of page assignments w/o exceeding TeX capacity

Seemed straight-forward enough (and I've changed it per Christian's suggestion of using \edef instead and added some status code): \documentclass{memoir} \newcommand{\tabloidpagecount}{} \newcommand{...
7
votes
1answer
5k views

Counting characters in a section of a document

Is there a way to count characters in a document portion? I need to write a summary that is 3000 characters long at most, and every time I compile the document I copy/paste the resulting text to Word ...