ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Re: definehead and section=
@ 2001-11-02 13:47 Patrick Gundlach
  0 siblings, 0 replies; 6+ messages in thread
From: Patrick Gundlach @ 2001-11-02 13:47 UTC (permalink / raw)
  Cc: gundlach

Hi,

now it works. Thanks

one comment/question

it looks, as if the higher level sections must be defined before 
the lower level sections:

\definesection[losec]
\setupsection[losec]
 [conversion=characters,
  previousnumber=no]
\definehead[Lopart][section=losec]
\setuphead[Lopart][head=nomarking,style=\tfc,distance=1em] 

\definesection[hisec]
\setupsection[hisec]
 [conversion=Romannumerals,
  previousnumber=no]
\definehead[Hipart][section=hisec]
\setuphead[Hipart][head=nomarking,style=\tfc,distance=1em] 

\starttext
\Hipart{hione}
\Lopart{loone}
\Lopart{lotwo}
\Hipart{hitwo}
\Lopart{lothree}
\input tufte
\stoptext

If you switch the two definitions (the \definesection[..] is 
sufficient) around, the sections are in correct ordering and 
numbering.

This should be stated in the manual. (I have read this part more 
than once but could not find a note.)

Viele Grüße,

  Patrick Gundlach

- I TeX, therefore I am -


^ permalink raw reply	[flat|nested] 6+ messages in thread
[parent not found: <Your message of "Wed, 31 Oct 2001 10:27:51 +0100." <5.1.0.14.1.20011031102548.031d6828@server-1>]
* definehead and section=
@ 2001-10-30 16:38 Patrick Gundlach
  2001-10-31  9:27 ` Hans Hagen
  0 siblings, 1 reply; 6+ messages in thread
From: Patrick Gundlach @ 2001-10-30 16:38 UTC (permalink / raw)


Hi,
once again, a (probably simple) thing I don't know how to do:

the file is:
--------------
\definehead[teil][section=section-1]
\setuphead[teil][head=nomarking,style=\tfc] 
\starttext
\teil{one}
\input tufte
\stoptext
--------------

and it gives me an error:

[...]
This is pdfeTeX, Version 3.14159-14h-released-20010417-2.1 (Web2C 7.3.3.1)
entering extended mode
(./defhead.tex{/app/unido-inf/sun4_56/tetex/1.0.7/share/texmf/pdftex/config/pdf
tex.cfg}

ConTeXt  ver: 2001.7.11  fmt: 2001.7.16  int: english  mes: english

[...]

system         : mark teil defined [teil]
system         : mark teilnumber defined [teilnumber]
systems        : begin file defhead at line 3
! Missing number, treated as zero.
<to be read again> 
                   }
\plaatskopnormaal ...}\hskip \numberheaddistance }
                                                  \vbox {\localkopsetup \han...

\doplaatskopnummertekst ...onhead \endgraf \fi }}}
                                                  }\endheadplacement {#1}{#5}
\dodododosomekop ...mmer ]{\finalsectionnumber }}}
                                                  \writesection {#1}{#4}{#5}...
l.4 \teil{one}

? x  

what am I doing wrong? Do I understand something wrong? 
Even with a self-defined sectiontype it is the same error:

\definesection[mysec]
\setupsection[mysec]
 [conversion=Character,
  previousnumber=no]
\definehead[teil][section=mysec]

Viele Grüße,

  Patrick Gundlach

- I TeX, therefore I am -


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

end of thread, other threads:[~2001-11-02 20:35 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-11-02 13:47 definehead and section= Patrick Gundlach
     [not found] <Your message of "Wed, 31 Oct 2001 10:27:51 +0100." <5.1.0.14.1.20011031102548.031d6828@server-1>
2001-11-02 15:17 ` Patrick Gundlach
2001-11-02 17:44   ` Hans Hagen
2001-11-02 20:35     ` Patrick Gundlach
  -- strict thread matches above, loose matches on Subject: below --
2001-10-30 16:38 Patrick Gundlach
2001-10-31  9:27 ` Hans Hagen

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).