Re: [NTG-context] ownnumber=yes

2005-12-21 Thread Hans Hagen

David Arnold wrote:


%output=pdf

\definehead[david][section]
\setuphead[david][ownnumber=yes]

\starttext

\chapter{One}
\input tufte

\section{Two}
\input tufte

\david{Three}
\input tufte

\section{Four}
\input tufte

\stoptext



you need to provide the 'own' number!

\david{own number}{Three}

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] ownnumber=yes

2005-12-21 Thread Vit Zyka

David Arnold wrote:

All,

This:

%output=pdf

\definehead[david][section]


If you set


\setuphead[david][ownnumber=yes]



\starttext

\chapter{One}
\input tufte

\section{Two}
\input tufte



then add a mandatory argument:

  \david{10}{Three}

Vit


\david{Three}
\input tufte

\section{Four}
\input tufte

\stoptext


Causes this:

! TeX capacity exceeded, sorry [input stack size=5000].
argument \s!section
  -3
\previoussection #1-\csname \??se #1
 \c!before \endcsname
\countervalue #1-\csname #1
\endcsname
\@@longsectionnumber ...?se \previoussection {#1}}
  \zerocount  \csname 
\previ...


\finalsectionnumber ...alue {\@@sectie \c!number }
  \fi \fi
\@@shortsectionnumber ...1\c!ownnumber \endcsname
  \fi
...
l.14 \david{Three}


Any ideas?


___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context



--
===
Ing. Vít Zýka, Ph.D. TYPOkvítek

database publishing  databazove publikovani
data maintaining and typesetting in typographic quality
priprava dat a jejich sazba v typograficke kvalite

tel.: (+420) 777 198 189 www: http://typokvitek.com
===

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] ownnumber=yes

2005-12-20 Thread David Arnold

All,

This:

%output=pdf

\definehead[david][section]
\setuphead[david][ownnumber=yes]

\starttext

\chapter{One}
\input tufte

\section{Two}
\input tufte

\david{Three}
\input tufte

\section{Four}
\input tufte

\stoptext


Causes this:

! TeX capacity exceeded, sorry [input stack size=5000].
argument \s!section
  -3
\previoussection #1-\csname \??se #1
 \c!before \endcsname
\countervalue #1-\csname #1
\endcsname
\@@longsectionnumber ...?se \previoussection {#1}}
  \zerocount  
\csname \previ...


\finalsectionnumber ...alue {\@@sectie \c!number }
  \fi \fi
\@@shortsectionnumber ...1\c!ownnumber \endcsname
  \fi
...
l.14 \david{Three}


Any ideas?


___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context