Questions tagged [count]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
3 votes
1 answer
70 views

How to count nodes in forest?

I'm complete beginner in LaTeX, this is my first document. I need to count every node in Forest, and nodes that are different color and I can't figure out how aggregate function .count works. This is ...
user avatar
1 vote
0 answers
29 views

Xelatex (Windows) / includegraphics - displayed just first 5000 images

I need to generate PDF document using xelatex.exe. .tex document is generated from the database and it contains thousands of pages and thousands of images displayed by \includegraphics. Problem is ...
user avatar
0 votes
2 answers
37 views

How to make Box with outer row count?

can someone tell me how to make the following picture in Latex? Especially the box and the outer row count? Thanks!
user avatar
2 votes
1 answer
47 views

Get number of pages between two \pagerefs?

I'm working on a thesis in Overleaf, and am experimenting with automatically updating the pagecounts on the title page. I want to update two numbers, the number of pages in the thesis, as well as the ...
user avatar
0 votes
2 answers
61 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 ...
user avatar
3 votes
1 answer
66 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 ...
user avatar
4 votes
1 answer
301 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} ...
user avatar
  • 6,217
4 votes
2 answers
138 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 ...
user avatar
  • 101
0 votes
0 answers
103 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{...
user avatar
3 votes
2 answers
79 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 ...
user avatar
  • 3,616
0 votes
1 answer
170 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}{...
user avatar
  • 3
3 votes
2 answers
80 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 ...
user avatar
  • 568
1 vote
0 answers
1k 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?
user avatar
  • 61
6 votes
2 answers
13k 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 ...
user avatar
  • 63
2 votes
3 answers
458 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 ...
user avatar
  • 349
3 votes
2 answers
258 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 ...
user avatar
1 vote
1 answer
147 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 ...
user avatar
0 votes
1 answer
179 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 \...
user avatar
2 votes
0 answers
188 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 ...
user avatar
0 votes
1 answer
181 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 ...
user avatar
  • 77
1 vote
0 answers
847 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 %...
user avatar
5 votes
1 answer
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....
user avatar
  • 155
1 vote
0 answers
312 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 ...
user avatar
  • 15
1 vote
1 answer
112 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 ...
user avatar
4 votes
2 answers
490 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]{...
user avatar
  • 175
5 votes
1 answer
1k 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 ...
user avatar
1 vote
1 answer
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{...
user avatar
  • 6,817
9 votes
1 answer
6k 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 ...
user avatar
  • 2,793