[OS X TeX] Re: "! LaTeX Error: No counter 'a' defined."
John B. Thoo
jthoo at yccd.edu
Sat Dec 18 20:53:26 EST 2010
Thanks Peter D, Ross M, and Herb S for your replies. I'm sorry I didn't respond sooner; I receive the digest.
On Dec 18, 2010, at 12:00 PM, <macosx-tex-request at email.esm.psu.edu> wrote:
> Message: 4
> Date: Fri, 17 Dec 2010 22:08:34 +0100
> From: Peter Dyballa <Peter_Dyballa at Web.DE>
>
>
> Am 17.12.2010 um 21:54 schrieb John B. Thoo:
>
>> If all the "includeonly" are commented out (like above), compiling
>> does not present any obvious errors.
>
> Do you know the difference (and restrictions) between \includeonly and
> \include? And \input?
Umm ... I'm not sure, but I do use them all. This is what I have in "narrowhom.tex" that is the main file:
\documentclass[11pt]{amsbook}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
[...list of \usepackage...]
\input{longdiv} % use \longdiv{dividend}{divisor} for long division
\usetikzlibrary{decorations.pathreplacing} % load tikz decorations library
\usetikzlibrary{calc} % load the tikz calc library
\hyphenation{Meso-po-ta-mian}
% \includeonly{foo} processes/displays only foo.tex, keeping all refs intact
%
%\includeonly{ch_preface}
%\includeonly{ch_numsys}
%\includeonly{ch_numthry}
%\includeonly{ch_solveeqn}
%\includeonly{ch_geom}
[...path to graphic files,
list or \renewcommand, \newcommand, \newtheorem, &c....]
%\listfiles
\makeindex
\begin{document}
[...\title, \author, &c....]
\pagenumbering{roman}
\maketitle
\include{ch_preface}
\setcounter{tocdepth}{3}
\tableofcontents
% CHAPTERS
\pagenumbering{arabic}
\include{ch_numsys}
\include{ch_numthry}
\include{ch_solveeqn}
\include{ch_geom}
% Bibliography
\nocite{*}
\bibliographystyle{plain}
\bibliography{narrowhom}
\printindex
\end{document}
> ------------------------------
>
> Message: 5
> Date: Sat, 18 Dec 2010 08:17:31 +1100
> From: Ross Moore <ross.moore at mq.edu.au>
>
> Hello John,
>
> Sent from my iPad
>
> On 18/12/2010, at 7:54 AM, "John B. Thoo" <jthoo at yccd.edu> wrote:
>
>> %\includeonly{ch.numsys}
>> %\includeonly{ch.numthry}
>> %\includeonly{ch.solveeqn}
>> %\includeonly{ch.geom}
>
> I think that you are playing with fire by having '.' in the names of your files.
> Try changing it to a '-' or other benign character.
OK, I replaced '.' in the the chapter filenames to '_' (see my reply to Peter D above).
> ------------------------------
>
> Message: 6
> Date: Fri, 17 Dec 2010 15:29:51 -0600
> From: Herbert Schulz <herbs at wideopenwest.com>
>
>
> On Dec 17, 2010, at 2:54 PM, John B. Thoo wrote:
>
> Are you saying you are uncommenting more than one \includeonly command?
No, I uncomment only one \includeonly at a time.
> Do you any command definitions in the (un)included files that are used by the other files?
I don't think so. But here's something else I discovered, viz., if I comment out the line
\include{ch_numthry}
then I do not get those other errors no matter which \includeonly is uncommented, so there must be something (but I don't know what) about the file "ch_numthry.tex".
> Are the \includeonly commands in the preamble or the body of the document?
They are before the \begin{document}; is that the preamble?
> Could something in the [...] be interfering with things?
I don't know. What should I be looking for?
Thanks again, y'all. I really appreciate your time helping.
---John.
(who reads the digest)
-----------------------------------------------------------------------
Please avoid sending Word or PowerPoint or Excel attachments. Why?
See <http://www.gnu.org/philosophy/no-word-attachments.html>
More information about the MacOSX-TeX
mailing list