ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* how to make 3-line header?
@ 2011-01-28  3:20 Jeong Dalyoung
  2011-01-28  7:15 ` Wolfgang Schuster
  0 siblings, 1 reply; 2+ messages in thread
From: Jeong Dalyoung @ 2011-01-28  3:20 UTC (permalink / raw)
  To: ntg-context

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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: how to make 3-line header?
  2011-01-28  3:20 how to make 3-line header? Jeong Dalyoung
@ 2011-01-28  7:15 ` Wolfgang Schuster
  0 siblings, 0 replies; 2+ messages in thread
From: Wolfgang Schuster @ 2011-01-28  7:15 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 742 bytes --]


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


[-- Attachment #1.2: Type: text/html, Size: 1674 bytes --]

[-- Attachment #2: Type: text/plain, Size: 486 bytes --]

___________________________________________________________________________________
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] 2+ messages in thread

end of thread, other threads:[~2011-01-28  7:15 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-01-28  3:20 how to make 3-line header? Jeong Dalyoung
2011-01-28  7:15 ` Wolfgang Schuster

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).