[XeTeX] Counter reset problem

Karljurgen Feuerherm kfeuerherm at wlu.ca
Fri Sep 18 20:02:21 CEST 2009


Hello all,
 
I have set up a counter and environment (using XeLaTeX) as follows:
 
\newcounter{examples}[chapter]
 
\newenvironment{examples}
 {\begin{list}%
  {\textsc{Example} \arabic{examples}.} %
  {\setlength{\labelsep}{10pt} %
   \setlength{\itemindent}{10pt} %
   \setlength{\leftmargin}{0pt} %
   \setlength{\labelwidth}{0pt} %
   \usecounter{examples}%
  } %
 } %
 {\end{list}}
 
The idea is to let the examples counter run through each chapter and
only reset at the next chapter. For some reason, it resets itself in
environment changes (for example after enumerates, at each new
section...).
 
What am I doing wrong?
 
Thanks
 
K
 
Karljürgen G. Feuerherm, PhD
Department of Archaeology and Classical Studies
Wilfrid Laurier University
75 University Avenue West
Waterloo, Ontario N2L 3C5
Tel. (519) 884-1970 x3193
Fax (519) 883-0991 (ATTN Arch. & Classics)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/xetex/attachments/20090918/31f340c2/attachment.html>


More information about the XeTeX mailing list