From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/18806 Path: news.gmane.org!not-for-mail From: Steffen Wolfrum Newsgroups: gmane.comp.tex.context Subject: Re: fundamental problem with headings Date: Thu, 10 Mar 2005 23:11:41 +0100 Message-ID: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" ; format="flowed" X-Trace: sea.gmane.org 1110493062 21891 80.91.229.2 (10 Mar 2005 22:17:42 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 10 Mar 2005 22:17:42 +0000 (UTC) Cc: taco@elvenkind.com Original-X-From: ntg-context-bounces@ntg.nl Thu Mar 10 23:17:42 2005 Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by ciao.gmane.org with esmtp (Exim 4.43) id 1D9Vvl-0004wm-Sk for gctc-ntg-context-518@m.gmane.org; Thu, 10 Mar 2005 23:14:57 +0100 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 1D9E912816; Thu, 10 Mar 2005 23:15:23 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (ronja.vet.uu.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 08286-05-4; Thu, 10 Mar 2005 23:15:18 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id DA73312800; Thu, 10 Mar 2005 23:15:18 +0100 (CET) Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id B43A112800 for ; Thu, 10 Mar 2005 23:15:17 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (ronja.vet.uu.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 08286-05-3 for ; Thu, 10 Mar 2005 23:15:16 +0100 (CET) Original-Received: from smtprelay03.ispgateway.de (smtprelay03.ispgateway.de [80.67.18.15]) by ronja.ntg.nl (Postfix) with ESMTP id DCE881276B for ; Thu, 10 Mar 2005 23:15:16 +0100 (CET) Original-Received: (qmail 10486 invoked from network); 10 Mar 2005 22:15:15 -0000 Original-Received: from unknown (HELO [62.134.76.54]) (698580@[62.134.76.54]) (envelope-sender ) by smtprelay03.ispgateway.de (qmail-ldap-1.03) with SMTP for ; 10 Mar 2005 22:15:15 -0000 Original-To: ntg-context@ntg.nl X-Virus-Scanned: by amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.5 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 X-Virus-Scanned: by amavisd-new at ntg.nl X-MailScanner-From: ntg-context-bounces@ntg.nl X-MailScanner-To: gctc-ntg-context-518@m.gmane.org Xref: news.gmane.org gmane.comp.tex.context:18806 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:18806 > Steffen Wolfrum wrote: > > Hi, > > > > Each kind of "emphasizing" - like \it \bf \cap \sc etc. - > > lets the respective phrase fall back to the documents > > bodyfont (see example below). > > > > How can I avoid this bug? > > not a bug, this is the expected behaviour of \definefont. > > > Do I use wrong code? > > Yes. \definefont defines a single font (hence it's name). > > What you actually need is a full-blown bodyfont switch: > > \def\SectionStyle{% > \switchtobodyfont[rm,20pt] > \setupinterlinespace[line=30pt] > } > > Greetings, Taco OK, so my example changes to \starttext \def\Textit{\groupedcommand\it\/} % \definefont[SectionFont][SerifBold at 20pt] % \def\SectionStyle{\SectionFont\setupinterlinespace[line=30pt]} \def\SectionStyle{% \switchtobodyfont[rm,20pt] \setupinterlinespace[line=30pt] } \setuphead[section] [alternative=paragraph,style=\SectionStyle] text \section{heading \Textit{italic} heading} text \stoptext But if the heading should be set in general in a bold face what do I use instead of \rm so that italic parts of he heading will be typeset in bold-italic (and \sc parts to bold-smallcaps)? I guess something (next to serif, sans, mono, ...) like serifbold (\brm?) should be defined in my typescript? Thank you, Steffen