Re: [NTG-context] how to make 3-line header?

2011-01-27 Thread Wolfgang Schuster

Am 28.01.2011 um 04:20 schrieb Jeong Dalyoung:

> Dear all,
> 
> I tried to make a chapter head with 3 lines as following:
> 
>   Chapter #1
> 
>   Main Title
> 
>   subtitle
> 
> 
> I looked up wiki and saw many good examples. I modified them to test the 
> above structure. I am using 3 arguments. But it fails. It worked for only 2 
> arguments.
> In simpleslide module, we can set many lines for a title. 
> Is there a way of doing that? The following is a slight modification of one 
> in the wiki. It worked for 2 arguments but not for 3.

Why don’t you use \startchapter etc. where you can set your own values with the 
second argument.

http://wiki.contextgarden.net/Generate_Authorlist_from_Head_Content

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
___


[NTG-context] how to make 3-line header?

2011-01-27 Thread Jeong Dalyoung
Dear all,

I tried to make a chapter head with 3 lines as following:

Chapter #1

Main Title

subtitle


I looked up wiki and saw many good examples. I modified them to test the above 
structure. I am using 3 arguments. But it fails. It worked for only 2 arguments.
In simpleslide module, we can set many lines for a title. 
Is there a way of doing that? The following is a slight modification of one in 
the wiki. It worked for 2 arguments but not for 3.

Thank for reading.

Best regards,

Dalyoung


\setupcolors[state=start]

\setuphead[chapter][command=\Myheader]
%\setupheadtext[chapter=Chapitre]
%\defineoverlay[HeaderDeco][\uniqueMPgraphic{HeaderDeco}]

\def\Myheader#1#2%#3
{%
\framedtext
[width= \overlaywidth,
height=6\bodyfontsize,
background=screen,%{foreground,HeaderDeco},
offset=0pt,
strut=no,
frame=off,
align=middle]{%
{\tfb  #1 }%\headtext{chapter} #1
\blank[big]
{\ss\tfc #2}
%   \blank[small]
%{\ss\tfc #3}
}
}   
\starttext
  \chapter{ConTeXt}{It is good.}
\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
___