[OS X TeX] Reflecting numbering in the source
Alain Schremmer
schremmer.alain at gmail.com
Tue Aug 14 12:40:45 EDT 2007
I am using
\newcounter{eex}[chapter]
\newenvironment{EEXAMPLE}{\textsf{\bfseries{E\smaller{XAMPLE}\hspace
{1.5mm}}\refstepcounter{eex}\theeex.\hspace{2.5mm}}\small\sffamily}
{\par}
along with the macro
\begin{EEXAMPLE}%
#INS#
\end{EEXAMPLE}
where, for ease of editing, I reflect the example number (eex) after
\begin{EEXAMPLE}%.
But of course, when I add or remove example(s), I have to adjust the
example number by hand.
Would there be a way to do this automatically?
Hopeful regards
--schremmer
------------------------- Helpful Info -------------------------
Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
TeX FAQ: http://www.tex.ac.uk/faq
List Archive: http://tug.org/pipermail/macostex-archives/
List Reminders & Etiquette: http://www.esm.psu.edu/mac-tex/list/
More information about the MacOSX-TeX
mailing list