ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen <pragma@wxs.nl>
Subject: Re: compound titles, lists and headers
Date: Mon, 17 Feb 2003 00:31:05 +0100	[thread overview]
Message-ID: <5.1.0.14.1.20030217002901.03716b10@remote-1> (raw)
In-Reply-To: <4C48346A-406D-11D7-92E9-0030659899AA@fiee.net>

At 11:40 PM 2/14/2003 +0100, you wrote:
>>\def\Eintrag#1{\writetolist[chapter]{%
>>
>>\framed[{frame=on,align=right,width=0.5\textwidth,height=2.5\bodyfontsi ze}]{
>>#1}}}
>
>Thanks for the tip. I have now:
>
>\def\KomplexTitel#1#2#3{%
>{\writetolist[chapter]{%
>\framed[{frame=off, align=right,
>width=0.8\textwidth, height=2\baselineskip,
>offset=none}]{#3}%
>}%
>\nohyphens\title{#1}%
>\Untertitel{#2}}}
>
>But the code (fixed measures) is as ugly as the output.
>The lines in the frames are set a bit to high, and the page number is
>too low.
>I guess it could work with linecorrection, but that always throws
>errors (at least
>if used in a \def).
>
>Any more hints?

(untested)

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 | 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
-------------------------------------------------------------------------
                        information: http://www.pragma-ade.com/roadmap.pdf
                     documentation: http://www.pragma-ade.com/showcase.pdf
-------------------------------------------------------------------------

  parent reply	other threads:[~2003-02-16 23:31 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-02-12 21:05 Henning Hraban Ramm
2003-02-13 21:45 ` Willi Egger
2003-02-14 16:15   ` Henning Hraban Ramm
2003-02-14 21:21     ` Willi Egger
2003-02-14 22:40       ` Henning Hraban Ramm
2003-02-15 11:23         ` Willi Egger
2003-02-16 23:31         ` Hans Hagen [this message]
2003-02-17 21:54           ` Henning Hraban Ramm
2010-09-26 15:54           ` Tomas Bures
2010-09-26 16:06             ` Wolfgang Schuster
2010-09-26 18:39               ` Tomas Bures

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5.1.0.14.1.20030217002901.03716b10@remote-1 \
    --to=pragma@wxs.nl \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).