Re: wordcount

Roland Eckert <[email protected]>
Newsgroups gmane.comp.tex.german
Message-ID <[email protected]>
Hallo Doris,
ich nutze diese Code: 

%Run texcount on tex-file and write results to a sum-file
\immediate\write18{texcount  -nc  -enc=latin1 \jobname.tex > \jobname.sum} %freq
% Define macro \wordcount for including the counts
\usepackage{verbatim}
\newcommand\wordcount{\verbatiminput{\jobname.sum}}

und am Ende füge ich dann ein
\wordcount 
ein

Im Dokument erscheint dann (den Fehler ignoriere ich):

!!! Could not identify document class. !!!
File: XXX.tex
Words in text: 2727
Words in headers: 8
Words outside text (captions, etc.): 0
Number of headers: 6
Number of floats/tables/figures: 0
Number of math inlines: 0
Number of math displayed: 0
Subcounts:
text+headers+captions (#headers/#floats/#inlines/#displayed)
195+3+0 (1/0/0/0) _top_
572+1+0 (1/0/0/0) Section: xxx
612+1+0 (1/0/0/0) Section: xxx
700+1+0 (1/0/0/0) Section: xxx
629+1+0 (1/0/0/0) Section: xxx
19+1+0 (1/0/0/0) Section: xxx


Aber kann sein, dass du diese Lösung schon getestet und verworfen hast.
Grüße,
Roland





On Mon, 28 Nov 2022 07:31:48 +0100,
Doris Behrendt (via tex-d-l Mailing List) wrote:
> 
> [1  <text/plain; utf-8 (quoted-printable)>]
> Hallo Liste,
> 
> ich stehe vor der Aufgabe, die Wörter eines 700-Seiten PDF zu zählen, welches sehr viel Mathe, Codebeispiele, Bilder etc. enthält.
> 
> 
> Wie würdet ihr das machen? Ich habe ps2ascii datei.pdf | wc -w genommen, aber befürchte, dass der Count sehr ungenau ist.
> 
> Mit MSWord öffnen hab ich auch probiert, das war sehr lustig ;-)
> 
> Mich wundert nur, dass man das mit Acrobat Pro nicht machen kann, den habe ich auch, aber der hat keinen wordcount ... oder doch und ich bin nur zu doof, ihn zu finden?
> 
> Grüße
> Doris
> [2  <text/plain; UTF-8 (8bit)>]
> -- 
> FAQ: http://texfragen.de/
> Durchsuchbares Archiv: https://www.listserv.dfn.de/sympa/arc/tex-d-l 
> Unsubscribe/Verwaltung: https://www.listserv.dfn.de/sympa/info/tex-d-l

-- 
FAQ: http://texfragen.de/
Durchsuchbares Archiv: https://www.listserv.dfn.de/sympa/arc/tex-d-l 
Unsubscribe/Verwaltung: https://www.listserv.dfn.de/sympa/info/tex-d-l
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.