ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Wolfgang Schuster <schuster.wolfgang@googlemail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: What happened with sectionworld?
Date: Wed, 29 Apr 2009 23:07:49 +0200	[thread overview]
Message-ID: <DDE841F8-249D-4DFF-81B2-69D16B45B01B@gmail.com> (raw)
In-Reply-To: <D153C71F-DCC1-42A6-8A3B-BF1840782C51@fiee.net>


Am 29.04.2009 um 17:11 schrieb Henning Hraban Ramm:

> I try to understand here, how to redo my chapter setup that once  
> worked using sectionworld commands.
> At the moment I get no output for the chapter title at all.
>
> My input reads:
>
> \Titel{Author}{Title}{Subtitle}


You never needed the sectionworld command for your own header command,
this solution is cleaner and works with mkii and mkiv.

\setuphead
   [chapter]
   [header=high,
    incrementnumber=no,
    command=\ChapterCommand,
    page=yes,
    number=no,
    align={flushleft,nothyphenated,verytolerant},
    style=]

\setuphead
   [title]
   [command=,
    style=\tfc]

\define\ChapterAuthor
   {\doiftext{\theChapterAuthor}
  	{\rm\tf\theChapterAuthor\crlf\vskip0.25em}}

\define\ChapterTitle
   {{\ss\bfb\theChapterTitle}}

\define\ChapterSubTitle
   {\doiftext{\theChapterSubTitle}
  	{\crlf\vskip0.2em\ss\bf\theChapterSubTitle}}

\define[2]\ChapterCommand
   {\doiftextelse{\theChapterAuthor}
      {\expanded{\writetolist[chapter]{}{\theChapterAuthor:  
\theChapterTitle}}}
      {\expanded{\writetolist[chapter]{}{\theChapterTitle}}}%
    \vbox{\ChapterAuthor\ChapterTitle\ChapterSubTitle}}

\let\theChapterAuthor  \relax
\let\theChapterTitle   \relax
\let\theChapterSubTitle\relax

\define[3]\Titel
   {\def\theChapterAuthor  {#1}%
    \def\theChapterTitle   {#2}%
    \def\theChapterSubTitle{#3}%
    \chapter{}}

\starttext

\completecontent

\Titel{Author}{Title}{Subtitle}

\stoptext

___________________________________________________________________________________
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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


  reply	other threads:[~2009-04-29 21:07 UTC|newest]

Thread overview: 40+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-04-28 17:42 Henning Hraban Ramm
2009-04-28 18:53 ` Wolfgang Schuster
2009-04-28 21:25   ` Henning Hraban Ramm
2009-04-29  8:24     ` Hans Hagen
2009-04-29 10:24       ` Wolfgang Schuster
2009-04-29 12:35         ` R. Bastian
2009-04-29 12:54           ` Wolfgang Schuster
2009-04-29 15:07             ` Idris Samawi Hamid ادريس سماوي حامد
2009-04-29 15:43               ` R. Bastian
2009-04-29 15:55                 ` luigi scarso
2009-04-29 16:46                   ` R. Bastian
2009-04-29 18:00                     ` luigi scarso
2009-04-29 21:16                       ` R. Bastian
2009-04-29 21:24                         ` BNF grammar for ConTeXt (was: What happened with sectionworld?) Wolfgang Schuster
2009-04-30  7:48                           ` luigi scarso
2009-04-30  8:16                             ` R. Bastian
2009-04-30  8:57                               ` luigi scarso
2009-04-30 10:05                                 ` R. Bastian
2009-04-30 10:12                                   ` luigi scarso
2009-04-30 20:03                                     ` R. Bastian
2009-04-29 15:57                 ` footnote numbers size in heads Horacio Suarez
2009-04-29 21:17                   ` Wolfgang Schuster
2009-04-29 18:14               ` What happened with sectionworld? Wolfgang Schuster
2009-04-29 18:23                 ` Idris Samawi Hamid ادريس سماوي حامد
2009-04-29 18:27                   ` Hans Hagen
2009-04-29 18:31                   ` Wolfgang Schuster
2009-04-29 18:34                     ` Wolfgang Schuster
2009-04-29 18:40                     ` Idris Samawi Hamid ادريس سماوي حامد
2009-04-29 13:12         ` Hans Hagen
2009-04-29 13:53   ` Mohamed Bana
2009-04-29 15:11     ` Henning Hraban Ramm
2009-04-29 21:07       ` Wolfgang Schuster [this message]
2009-04-30 15:40         ` Henning Hraban Ramm
2009-04-30 17:06           ` Wolfgang Schuster
2009-04-30 18:33             ` Henning Hraban Ramm
2009-04-30 18:46               ` Wolfgang Schuster
     [not found] <mailman.508.1241031213.3589.ntg-context@ntg.nl>
2009-04-29 19:01 ` Vyatcheslav Yatskovsky
2009-04-29 19:05   ` Wolfgang Schuster
2009-04-29 19:13     ` Otared Kavian
2009-04-29 19:15       ` Wolfgang Schuster

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=DDE841F8-249D-4DFF-81B2-69D16B45B01B@gmail.com \
    --to=schuster.wolfgang@googlemail.com \
    --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).