[OS X TeX] Re: "! LaTeX Error: No counter 'a' defined."
John B. Thoo
jthoo at yccd.edu
Wed Dec 22 02:22:47 CET 2010
Thanks, Michael S, Michael W, and Peter D, for your replies.
On Dec 21, 2010, at 12:00 PM, <macosx-tex-request at email.esm.psu.edu> wrote:
> Send MacOSX-TeX mailing list submissions to
> macosx-tex at email.esm.psu.edu
>
> ------------------------------
>
> Message: 11
> Date: Mon, 20 Dec 2010 20:46:56 -0800
> From: Michael Sharpe <msharpe at ucsd.edu>
>
> Your code worked without problems for me. Perhaps you need to update all your packages with TeX Live Manager.
>
> [...snip, snip...]
>
>
> ------------------------------
>
> Message: 12
> Date: Tue, 21 Dec 2010 17:51:28 +1300
> From: Michael Welsh <yomcat at yomcat.geek.nz>
>
> I used your code, and it typeset fine. I've got TikZ 2.10, which comes with TL2010.
> .tex and .pdf file are at http://yomcat.geek.nz/LaTeX
Here is a minimal example:
<http://ms.yccd.edu/~jb2/PickUp/minexample.zip> (8.7 KB)
Reminder: I am using TeX-Live 2009 in X11.
If I typeset "latex narrowhom.tex" with all the \includeonly (lines 52--56) commented out, there are no errors.
If I then uncomment \includeonly{ch_geom}, I get the errors
! LaTeX Error: No counter 'a' defined.
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...
l.183 \include{ch_numthry}
?
! LaTeX Error: No counter 'b' defined.
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...
l.183 \include{ch_numthry}
?
! LaTeX Error: No counter 'temp' defined.
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...
l.183 \include{ch_numthry}
> ------------------------------
>
> Message: 17
> Date: Tue, 21 Dec 2010 15:17:10 +0100
> From: Peter Dyballa <Peter_Dyballa at Web.DE>
> Maybe you should rewrite the code using \pgfmathsetcounter/
> \pgfmathaddtocounter and omitting the LaTeX \newcounter lines. In
> version 2.10 \pgfmathsetcount/\pgfmathaddtocount exist which might aid
> reusing the original code.
I still get the same errors after replacing \setcounter with \pgfmathsetcounter in "ch_numthry.tex" (4 substitutions on 4 lines), and replace \addtocounter with \pgfmathaddtocounter (1 substitution).
> ------------------------------
>
> Message: 18
> Date: Tue, 21 Dec 2010 18:31:43 +0100
> From: Peter Dyballa <Peter_Dyballa at Web.DE>
>
> Am 19.12.2010 um 02:53 schrieb John B. Thoo:
>
>> % \includeonly{foo} processes/displays only foo.tex, keeping all
>> refs intact
>
> \includeonly is meant to extend the preamble by some external code,
> or, in clear English: to outsource code. So it may only contain
> declarations and choice of options, not code that executes and creates
> output on the TeX page.
>
> Try to just \include your external files!
If I use only \include (lines 175 and 182--185) in the minimal example main file "narrowhom.tex", and none of the \includeonly (lines 52--56), then how can I typeset only the chapter on which I'm presently working while keeping the cross references in all the chapters intact? I thought that's what \includeonly is for, but apparently I'm mistaken.
Thanks again everyone.
---John.
-----------------------------------------------------------------------
Pascal's wager
<http://www.catholic.com/thisrock/2003/0303fea1.asp>
More information about the macostex-archives
mailing list