Re: [NTG-context] compound titles, lists and headers

2010-09-26 Thread Tomas Bures

Dear all,

I found this useful, but still I'm wondering, how shall I extend the 
\KomplexTitel to put current chapter number to the \writetolist command?


Thank you. Best regards,
Tomas

On 17.2.2003 0:31, Hans Hagen wrote:


better make a dedicated list:

\definelist
[mylist]

and configure that one (so no \framed in write)

\setuplist
[mychapter]
[alternative=command,
command=\MyChapterList]

with something

\def\ChapterList#1#2#3%
{\framed
[frame=off,
align={right,broad,nothyphenated},
width=0.8\textwidth,
height=2\baselineskip,
offset=none]
{#2}}

your title command

\def\KomplexTitel#1#2#3%
{\title{#1}\subject{#2}\writetolist[mychapter]{}{#3}}

(next version will contain a direct write command, which avoids an
interfering node)

call lists like:

\placelist[chapter,mychapter]

etc
-
Hans Hagen | PRAGMA ADE | pra...@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
-
information: http://www.pragma-ade.com/roadmap.pdf
documentation: http://www.pragma-ade.com/showcase.pdf
-


___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] compound titles, lists and headers

2010-09-26 Thread Wolfgang Schuster

Am 26.09.2010 um 17:54 schrieb Tomas Bures:

 Dear all,
 
 I found this useful, but still I'm wondering, how shall I extend the 
 \KomplexTitel to put current chapter number to the \writetolist command?

I wouldn’t use this method anymore because with \startchapter etc. you have a 
even more powerful mechanism without such tricks, see also 
http://www.ntg.nl/pipermail/ntg-context/2010/052429.html

Wolfgang

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] compound titles, lists and headers

2010-09-26 Thread Tomas Bures

Thank you Wolfgang and all,

this was exactly what I needed. One more thing. I would like to add a 
date to every chapter in TOC. I do it this way:


\define[1]\ChapterListTextCommand{%
#1\hskip 1.5em
\hbox{
\doiftextelse{\structurelistuservariable{date}{(\structurelistuservariable{datum})}{}
}
}

But actually I would like to align the date to some fixed horizontal 
position. Something like this:


1. Title of chapter 1 (9.2.2010)  5
2. Title of another chapter   (10.3.2010) .. 10
3. A very long title of a chapter
  (10.5.2010) .. 34
4. Title of fourth chap.  (8.4.2010) ... 25

Another complication is that I would like the line to snap to a grid.
I tried it with framed, but I'm not good enough in ConTeXt.

Please, any idea?

Thank you, best regards,
Tomas


On 26.9.2010 18:06, Wolfgang Schuster wrote:


Am 26.09.2010 um 17:54 schrieb Tomas Bures:


Dear all,

I found this useful, but still I'm wondering, how shall I extend the
\KomplexTitel to put current chapter number to the \writetolist command?


I wouldn’t use this method anymore because with \startchapter etc. you
have a even more powerful mechanism without such tricks, see also
http://www.ntg.nl/pipermail/ntg-context/2010/052429.html

Wolfgang



___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___