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

* Re: definehead and section=
  2001-11-02 17:44   ` Hans Hagen
@ 2001-11-02 20:35     ` Patrick Gundlach
  0 siblings, 0 replies; 6+ messages in thread
From: Patrick Gundlach @ 2001-11-02 20:35 UTC (permalink / raw)


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset="us-ascii", Size: 357 bytes --]

Good evening:

> >one more problem: why doesn't the placelist work ok after
> >\Hipart?

[...]

> do you mean the fact that it aborts the run due to uppercase? I'll look
> into it

thanks. It works perfectly smooth now :) This shows me again how little 
insight I have in context and the TeX expansion mechanism...

-- 
Viele Grüße, 

    Patrick Gundlach


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

* Re: definehead and section=
  2001-11-02 15:17 ` Patrick Gundlach
@ 2001-11-02 17:44   ` Hans Hagen
  2001-11-02 20:35     ` Patrick Gundlach
  0 siblings, 1 reply; 6+ messages in thread
From: Hans Hagen @ 2001-11-02 17:44 UTC (permalink / raw)
  Cc: ntg-context

At 04:17 PM 11/2/2001 +0100, Patrick Gundlach wrote:
>Hi,
>one more problem: why doesn't the placelist work ok after
>\Hipart?
>
>
>\definesection[hisec]
>\setupsection[hisec]
>  [conversion=Romannumerals,
>   previousnumber=no]
>\definehead[Hipart][section=hisec]
>\setuphead[Hipart][head=nomarking,style=\tfc,distance=1em]
>
>\definesection[losec]
>\setupsection[losec]
>  [conversion=characters,
>   previousnumber=no]
>\definehead[Lopart][section=losec]
>\setuphead[Lopart][head=nomarking,style=\tfc,distance=1em]
>
>\starttext
>\Hipart{hione}
>
>\placelist[Lopart]
>
>\Lopart{loone}
>\Lopart{lotwo}
>\Hipart{hitwo}
>\Lopart{lothree}
>\input tufte
>\stoptext

do you mean the fact that it aborts the run due to uppercase? I'll look 
into it

H
-------------------------------------------------------------------------
                                   Hans Hagen | PRAGMA ADE | pragma@wxs.nl
                       Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------


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

* definehead and section=
@ 2001-11-02 15:17 ` Patrick Gundlach
  2001-11-02 17:44   ` Hans Hagen
  0 siblings, 1 reply; 6+ messages in thread
From: Patrick Gundlach @ 2001-11-02 15:17 UTC (permalink / raw)


Hi,
one more problem: why doesn't the placelist work ok after 
\Hipart?

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

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

\starttext
\Hipart{hione}

\placelist[Lopart]

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

Viele Grüße,

  Patrick Gundlach

- I TeX, therefore I am -


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

* Re: definehead and section=
  2001-10-30 16:38 Patrick Gundlach
@ 2001-10-31  9:27 ` Hans Hagen
  0 siblings, 0 replies; 6+ messages in thread
From: Hans Hagen @ 2001-10-31  9:27 UTC (permalink / raw)
  Cc: ntg-context

At 05:38 PM 10/30/2001 +0100, Patrick Gundlach wrote:
>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:

aha, a bug !

in core-sec.tex, you need to add the =!!zeropoint to :

      {\getparameters
         [\??ko#1]
         [\c!sectie=\getvalue{\??ko\get.....
          \c!default=,
          \c!koppeling=,
          \c!prefix=,
          \c!voor=,
          \c!na=,
          \c!afstand=\!!zeropoint,

normally one defined heads by cloning and the main ones have the distance set.

   \definehead[mychapter][chapter]

clones, while your case needs a setup from scratch

Hans

-------------------------------------------------------------------------
                                   Hans Hagen | PRAGMA ADE | pragma@wxs.nl
                       Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------


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

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