From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/58270 Path: news.gmane.org!not-for-mail From: Michael Ewe Newsgroups: gmane.comp.tex.context Subject: Questions about \setuphead and \framed Date: Tue, 20 Apr 2010 23:01:57 +0200 Message-ID: <201004202301.57945.michael.ewe@arcor.de> 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 1271797358 2483 80.91.229.12 (20 Apr 2010 21:02:38 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 20 Apr 2010 21:02:38 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Tue Apr 20 23:02:32 2010 connect(): No such file or directory 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 1O4KaV-0008Eo-Fm for gctc-ntg-context-518@m.gmane.org; Tue, 20 Apr 2010 23:02:31 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id C2354C9D16; Tue, 20 Apr 2010 23:02:30 +0200 (CEST) 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 Oa5Vf5QaD8rL; Tue, 20 Apr 2010 23:02:30 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 84CEBC9D18; Tue, 20 Apr 2010 23:02:18 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 391B9C9D16 for ; Tue, 20 Apr 2010 23:02:16 +0200 (CEST) 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 lMXCBp7Fa+NG for ; Tue, 20 Apr 2010 23:02:00 +0200 (CEST) Original-Received: from mail-in-13.arcor-online.net (mail-in-13.arcor-online.net [151.189.21.53]) by balder.ntg.nl (Postfix) with ESMTP id BC1F8C9D12 for ; Tue, 20 Apr 2010 23:02:00 +0200 (CEST) Original-Received: from mail-in-11-z2.arcor-online.net (mail-in-11-z2.arcor-online.net [151.189.8.28]) by mx.arcor.de (Postfix) with ESMTP id 40B3C2BAB9C for ; Tue, 20 Apr 2010 23:02:00 +0200 (CEST) Original-Received: from mail-in-08.arcor-online.net (mail-in-08.arcor-online.net [151.189.21.48]) by mail-in-11-z2.arcor-online.net (Postfix) with ESMTP id 22A923483A3 for ; Tue, 20 Apr 2010 23:02:00 +0200 (CEST) Original-Received: from finkaraa.localnet (dslb-084-063-087-043.pools.arcor-ip.net [84.63.87.43]) (Authenticated sender: michael.ewe@arcor.de) by mail-in-08.arcor-online.net (Postfix) with ESMTPSA id EBAF22AEF71 for ; Tue, 20 Apr 2010 23:01:59 +0200 (CEST) X-DKIM: Sendmail DKIM Filter v2.8.2 mail-in-08.arcor-online.net EBAF22AEF71 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=arcor.de; s=mail-in; t=1271797320; bh=smflIYJjq3i7shkw11YNrwrk8GbKjcE3mBFmn4+/HZ0=; h=From:To:Subject:Date:MIME-Version:Content-Type: Content-Transfer-Encoding:Message-Id; b=SkRWTzVaiFCCxHvwVNU9xTuK/m9LUHcd6eHM+cJx5DfjuategbzUl3dvswO9RTrpG /YuUDoaR/+ZwvWGFTg26XvXU0BL5S4plArS0jR4F5fV/sF2Ql/F/22GFRgI3Qld+yd zEdC9juY5ikCYKNTj/EnRAYsEzWU0M3Dp0fAImOo= User-Agent: KMail/1.12.2 (Linux/2.6.31-20-generic; KDE/4.3.2; x86_64; ; ) 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:58270 Archived-At: Hi ConTeXt Gurus, enclosed please find a little snippet of code: %---snip--snip--snip--- \usetypescript[pagella] \setupbodyfont[pagella,rm,11pt] \definefont[FontA][Sans at 36pt] \definehead[ChapterA][chapter] \setuphead[ChapterA][command=\Cmd,style=\FontA] \definehead[ChapterB][chapter] \setuphead[ChapterB][command=\Cmd,textstyle=\FontA,numberstyle=\FontA] \def\Cmd#1#2{% \hbox{% {\framed[frame=on,offset=none,strut=1cm]{#1}} {\framed[frame=on,offset=none,strut=1cm]{#2}} } } \starttext \ChapterA{Test} \Cmd{\FontA 1}{\FontA Test} \hbox{% {\framed[frame=on,offset=none,strut=1cm]{\FontA 1}} {\framed[frame=on,offset=none,strut=1cm]{\FontA Test}} } \ChapterB{Test} \Cmd{\FontA 1}{\FontA Test} \hbox{% {\framed[frame=on,offset=none,strut=1cm]{\FontA 1}} {\framed[frame=on,offset=none,strut=1cm]{\FontA Test}} } \stoptext %---snip--snip--snip--- The code defines 2 chapter headings (ChapterA, ChapterB) and my assumption is, that the effect of setting "style=..." and "fontstyle=..., numberstyle=..." should be the same. As an additional test I included the usage of \Cmd and a manual copy of \Cmd in the normal text. If you run this through ConTeXt MkIV you will see: 1 The frames in the chapter both headings are much bigger than in the normal text. 2 The gap between the chapter number and the chapter name is different for chapter 1 (on page 1) and chapter 2 (on page 2). The word "test" is not aligned 3 The value of "strut" has no effect at all. I am trying to mimic a chapter style in a book of mine, but with the result above I am not sure about the tools to use. Best Regards from Germany, Michael Ewe ___________________________________________________________________________________ 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 ___________________________________________________________________________________