From: Henning Hraban Ramm <hraban@fiee.net>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: What happened with sectionworld?
Date: Wed, 29 Apr 2009 17:11:13 +0200 [thread overview]
Message-ID: <D153C71F-DCC1-42A6-8A3B-BF1840782C51@fiee.net> (raw)
In-Reply-To: <49F85BEA.6040003@googlemail.com>
Am 2009-04-29 um 15:53 schrieb Mohamed Bana:
> Would it be possible to go through a deprecation phase? E.g., allow
>
> \section hello world
>
> to compile, but prompt the user to acknowledge that it's going to be
> replaced with \section{hello world} in future versions.
Please don't mix your concern about structurals without braces into
this thread, would you please? Or is it the same topic?
I agree that it would be nice to know if commands disappear.
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}
The output as chapter title should become like:
\vbox{
{\rm\tf Author\crlf}
{\ss\bfb Title\crlf}
{\ss\bf Subtitle}
}
In the table of contents I need:
Author: Title \hfill pagenumber
So, using \startchapter, I define \Titel like this:
\def\Titel#1#2#3{\startchapter[title={#2},bookmark={#2}]
[author={#1},subtitle={#3}]}
I guess, even \startchapter should obey to \setuphead[chapter]:
\setuphead[chapter][
header=high,
incrementnumber=no,
command=\ChapterCommand,
page=yes, number=no,
align={flushleft,nothyphenated,verytolerant},
style=,]
Therefore I define (i.e. Wolfgang defined) \ChapterCommand like:
\def\ChapterCommand#1#2{\vbox{\ChapterAuthor\ChapterTitle
\ChapterSubTitle}}
While \ChapterAuthor cum suis is defined in a setup.
Now, what's the replacement for:
\setupsectionworld[chapter][setups={chapter:list},author=]
I tried to adapt Wolfgang's code to Hans' sparse hints:
\unprotect
\resetvalue{\??sw\v!chapter}
\startsetups chapter:list
\doiftextelse{\structureuservalue{author}}
{\expanded{\writetolist[\v!chapter]
{\structureuservalue{author}:\space
\structurevalue{title}}{}}}
{\expanded{\writetolist[\v!chapter]
{\structurevalue{title}}{}}}
\def\ChapterAuthor{%
\doiftextelse%
{\structureuservalue{author}}%
{\rm\tf\structureuservalue{author}\crlf\vskip0.25em}
{}%
}
\def\ChapterTitle{{\ss\bfb\structurevalue{title}}}
\def\ChapterSubTitle{%
\doiftextelse%
{\structureuservalue{subtitle}}%
{\crlf\vskip0.2em\ss\bf\structureuservalue{subtitle}}%
{}%
}
\stopsetups
\def\ChapterCommand#1#2{\vbox{\ChapterAuthor\ChapterTitle
\ChapterSubTitle}}
% why is/was this needed?
\let\ChapterAuthor\relax
\let\ChapterTitle\relax
\let\ChapterSubTitle\relax
\protect
(The original code is still in http://wiki.contextgarden.net/Proceedings_style)
Greetlings from Lake Constance!
Hraban
---
http://www.fiee.net/texnique/
http://wiki.contextgarden.net
https://www.cacert.org (I'm an assurer)
___________________________________________________________________________________
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
___________________________________________________________________________________
next prev parent reply other threads:[~2009-04-29 15:11 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 [this message]
2009-04-29 21:07 ` Wolfgang Schuster
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=D153C71F-DCC1-42A6-8A3B-BF1840782C51@fiee.net \
--to=hraban@fiee.net \
--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).