From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/65585 Path: news.gmane.org!not-for-mail From: Jeong Dalyoung Newsgroups: gmane.comp.tex.context Subject: how to make 3-line header? Date: Fri, 28 Jan 2011 12:20:35 +0900 Message-ID: <55E41619-E9C1-4F44-A164-7C28F6A0DEC5@me.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1296184854 21246 80.91.229.12 (28 Jan 2011 03:20:54 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 28 Jan 2011 03:20:54 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Fri Jan 28 04:20:50 2011 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PietE-0002cD-N6 for gctc-ntg-context-518@m.gmane.org; Fri, 28 Jan 2011 04:20:48 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id E9DB9CAA32; Fri, 28 Jan 2011 04:20:47 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 2-phsLaty84a; Fri, 28 Jan 2011 04:20:45 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 0946CCA9E3; Fri, 28 Jan 2011 04:20:45 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 2CA49CA9E3 for ; Fri, 28 Jan 2011 04:20:43 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 5RGOHdx158Jw for ; Fri, 28 Jan 2011 04:20:40 +0100 (CET) Original-Received: from filter4-til.mf.surf.net (filter4-til.mf.surf.net [194.171.167.220]) by balder.ntg.nl (Postfix) with ESMTP id A894DCA9DD for ; Fri, 28 Jan 2011 04:20:40 +0100 (CET) Original-Received: from asmtpout023.mac.com (asmtpout023.mac.com [17.148.16.98]) by filter4-til.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p0S3KdYv011376 for ; Fri, 28 Jan 2011 04:20:40 +0100 Original-Received: from [10.0.1.2] ([14.52.119.240]) by asmtp023.mac.com (Oracle Communications Messaging Exchange Server 7u4-20.01 64bit (built Nov 21 2010)) with ESMTPSA id <0LFP00IG4QMB5A60@asmtp023.mac.com> for ntg-context@ntg.nl; Thu, 27 Jan 2011 19:20:38 -0800 (PST) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.2.15,1.0.148,0.0.0000 definitions=2011-01-28_01:2011-01-28, 2011-01-27, 1970-01-01 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 ipscore=0 suspectscore=1 phishscore=0 bulkscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx engine=6.0.2-1012030000 definitions=main-1101270218 X-Mailer: Apple Mail (2.1082) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=17.148.16.98; country=US; region=CA; city=Cupertino; postalcode=95014; latitude=37.3042; longitude=-122.0946; metrocode=807; areacode=408; http://maps.google.com/maps?q=37.3042,-122.0946&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 05E0PkDyO - aedcd682c970 - 20110128 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.220 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:65585 Archived-At: 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 ___________________________________________________________________________________