Theses, Books, Title pagesTexcount with \include

Classicthesis, Bachelor and Master thesis, PhD, Doctoral degree
Post Reply
holgiun86
Posts: 2
Joined: Sat Jan 28, 2017 6:54 pm

Texcount with \include

Post by holgiun86 »

I have been unable to run texcount ( texcount ) on main.tex in Masters/Doctoral Thesis (version 2.4, from http://www.LaTeXTemplates.com ) and have it count all included files.

The include block looks like

Code: Select all

%\include{Chapters/Chapter1}
\include{Chapters/1intro}
\include{Chapters/2theory}
\include{Chapters/3method}
(I have tried it with and without .tex suffixes) and I get these errors:

Code: Select all

ERROR: File Chapters/1intro not found in path [./].
ERROR: File Chapters/2theory not found in path [./].
ERROR: File Chapters/3method not found in path [./].
ERROR: File Appendices/AppendixA not found in path [./].
Would anyone be able to advise on how to get texcount to parse the includes properly? Many thanks.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Texcount with \include

Post by Johannes_B »

Just a guess: Move all the chapter files from the chapters folder into the main folder. The one where main.tex is.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
User avatar
Stefan Kottwitz
Site Admin
Posts: 10324
Joined: Mon Mar 10, 2008 9:44 pm

Texcount with \include

Post by Stefan Kottwitz »

Welcome to the forum!

Use texcount with the -inc option.

Stefan
LaTeX.org admin
holgiun86
Posts: 2
Joined: Sat Jan 28, 2017 6:54 pm

Texcount with \include

Post by holgiun86 »

Hi both, thanks for the quick reply and welcome! I had already tried running with both -inc and -merge options. Have just tried moving the chapter tex files up to the main directory and that fixed my problem! Thanks again
Post Reply