ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* bug in \setuphead?
@ 2005-04-19 15:04 Idris Samawi Hamid
  2005-04-19 17:05 ` Hans Hagen
  0 siblings, 1 reply; 3+ messages in thread
From: Idris Samawi Hamid @ 2005-04-19 15:04 UTC (permalink / raw)


Dear gang,

The [ownnumber=yes] option overflows ConTeXt's memory, and I have not found an 
adjustment to texmf.cnf to fix it (mswincontext 3-16, 2005). I increased the 
param and stack sizes by an entire order of magnitude.

Other options such as [ownnumber=no] work fine.

This bug is not benign:-) Please advise...

Best
Idris
=======================
% output=pdf interface=en

\definehead[appendix][section]
\setuphead [appendix][ownnumber=yes]
\setuplabeltext[appendix=Appendix~]

\starttext

\appendix{Test}

\stoptext
=======================

log:

=======================
systems         : begin file test5 at line 7
! TeX capacity exceeded, sorry [parameter stack size=6000].
\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
\@@longsectionnumber ...\@@shortsectionnumber {#1}
                                                  \fi
...
l.9 \appendix{Test}

If you really absolutely need more capacity,
you can ask a wizard to enlarge me.
=======================

============================
Professor Idris Samawi Hamid
Department of Philosophy
Colorado State University
Fort Collins, CO 80523

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: bug in \setuphead?
  2005-04-19 15:04 bug in \setuphead? Idris Samawi Hamid
@ 2005-04-19 17:05 ` Hans Hagen
  0 siblings, 0 replies; 3+ messages in thread
From: Hans Hagen @ 2005-04-19 17:05 UTC (permalink / raw)


Idris Samawi Hamid wrote:

> This bug is not benign:-) Please advise...

> \appendix{Test}

shouldn't that be \appendix{MyOwnNumber}{Test}

Hans

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
      tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------

^ permalink raw reply	[flat|nested] 3+ messages in thread

* RE: bug in \setuphead?
@ 2005-04-19 17:49 Idris Samawi Hamid
  0 siblings, 0 replies; 3+ messages in thread
From: Idris Samawi Hamid @ 2005-04-19 17:49 UTC (permalink / raw)


>===== Original Message From Hans Hagen <pragma@wxs.nl> =====
>> \appendix{Test}
>
>shouldn't that be \appendix{MyOwnNumber}{Test}

I get it now-) It's amazing how one can try 101 things and still miss the 
obvious...

Now that I can handle this manually, what I really want to do is have the 
first \appendix start with the numeral 1, after following previous sections. I 
seem to remember doing this once before; don't know why I can't seem to get it 
right this time. The following still inherits the section numeral from 
\section: how do I reset it to 1? (I also tried lots of other options but, as 
usual, I must be missing the obvious again->)

===================================================
% output=pdf interface=en

\definehead[appendix][section]
\setuphead [appendix][continue=no]
\setupheadnumber [appendix][1]
\setuplabeltext[appendix=Appendix~]

\starttext

\section{Test}

\appendix{Test} % should be 1

\appendix{Test} % should be 2

\stoptext
===================================================

BEst
Idris

============================
Professor Idris Samawi Hamid
Department of Philosophy
Colorado State University
Fort Collins, CO 80523

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2005-04-19 17:49 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-04-19 15:04 bug in \setuphead? Idris Samawi Hamid
2005-04-19 17:05 ` Hans Hagen
2005-04-19 17:49 Idris Samawi Hamid

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).