* Chapter name in new line
@ 2011-06-04 14:24 Marco
2011-06-04 14:29 ` Wolfgang Schuster
2011-06-04 14:35 ` luigi scarso
0 siblings, 2 replies; 4+ messages in thread
From: Marco @ 2011-06-04 14:24 UTC (permalink / raw)
To: ntg-context
How can I get the chapter name in a new line, like:
Chapter 1
Foo Bar
The following yields to “Chapter1Foo Bar”.
\setuplabeltext [en] [chapter=Chapter~]
\def\MyChapter#1#2{#1\blank#2}
\setuphead [chapter] [command=\MyChapter]
\starttext
\chapter{Foo Bar}
\stoptext
Marco
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Chapter name in new line
2011-06-04 14:24 Chapter name in new line Marco
@ 2011-06-04 14:29 ` Wolfgang Schuster
2011-06-04 14:35 ` luigi scarso
1 sibling, 0 replies; 4+ messages in thread
From: Wolfgang Schuster @ 2011-06-04 14:29 UTC (permalink / raw)
To: mailing list for ConTeXt users
Am 04.06.2011 um 16:24 schrieb Marco:
> How can I get the chapter name in a new line, like:
>
> Chapter 1
> Foo Bar
>
> The following yields to “Chapter1Foo Bar”.
>
> \setuplabeltext [en] [chapter=Chapter~]
> \def\MyChapter#1#2{#1\blank#2}
\define[2]\MyChapter
{\framed[frame=off,width=broad,align=flushleft]{#1\\#2}}
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Chapter name in new line
2011-06-04 14:24 Chapter name in new line Marco
2011-06-04 14:29 ` Wolfgang Schuster
@ 2011-06-04 14:35 ` luigi scarso
2011-06-04 14:48 ` Marco
1 sibling, 1 reply; 4+ messages in thread
From: luigi scarso @ 2011-06-04 14:35 UTC (permalink / raw)
To: mailing list for ConTeXt users
On Sat, Jun 4, 2011 at 4:24 PM, Marco <netuse@lavabit.com> wrote:
> How can I get the chapter name in a new line, like:
>
> Chapter 1
> Foo Bar
>
> The following yields to “Chapter1Foo Bar”.
>
> \setuplabeltext [en] [chapter=Chapter~]
> \def\MyChapter#1#2{#1\blank#2}
> \setuphead [chapter] [command=\MyChapter]
>
> \starttext
> \chapter{Foo Bar}
> \stoptext
>
> Marco
If you don't want to use framedtext (cfr wolfgang)
\setuplabeltext [en] [chapter=Chapter~]
\def\MyChapter#1#2{\vbox{#1\blank#2}}
\setuphead [chapter] [command=\MyChapter]
\starttext
\chapter{Foo Bar}
\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 : http://foundry.supelec.fr/projects/contextrev/
> wiki : http://contextgarden.net
> ___________________________________________________________________________________
--
luigi
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2011-06-04 14:48 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-06-04 14:24 Chapter name in new line Marco
2011-06-04 14:29 ` Wolfgang Schuster
2011-06-04 14:35 ` luigi scarso
2011-06-04 14:48 ` Marco
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).