[OS X TeX] Two issues -- need help

Ross Moore ross at ics.mq.edu.au
Sun Aug 7 09:40:10 CEST 2005


On 07/08/2005, at 3:49 AM, M. Tamer Özsu wrote:

> ---
> I wonder if someone can help me with two issues:

> \newcounter{exmp}[chapter]
> \newcommand{\bex}{\renewcommand{\theexmp}{\stepcounter{exmp} 
> \thechapter.\a
> rabic{exmp}}\vspace{11pt}\par\noindent{\bf Example
> \theexmp}\vspace{11pt}\par\noindent\begin{inpar}\parskip=2pt plus  
> 0.5pt}
>
> but this did not work either. The numbering is OK, but \ref{...}  
> simply
> generates the number of the section within which the example occurs.

Try using  \refstepcounter  instead of  \stepcounter .

>
> I would appreciate any help in changing the \bex definition so that it
> generates the numbers prefixed with chapter numbers and also  
> handles the
> references right.


Hope this helps,

     Ross Moore


> Thanks for any suggestions.
> -- 
> M. Tamer Ozsu
> University of Waterloo
>

------------------------------------------------------------------------
Ross Moore                                         ross at maths.mq.edu.au
Mathematics Department                             office: E7A-419
Macquarie University                               tel: +61 +2 9850 8955
Sydney, Australia  2109                            fax: +61 +2 9850 8114
------------------------------------------------------------------------


--------------------- Info ---------------------
Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
           & FAQ: http://latex.yauh.de/faq/
TeX FAQ: http://www.tex.ac.uk/faq
List Post: <mailto:MacOSX-TeX at email.esm.psu.edu>





More information about the macostex-archives mailing list