From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/18822 Path: news.gmane.org!not-for-mail From: Steffen Wolfrum Newsgroups: gmane.comp.tex.context Subject: Re: fundamental problem with headings Date: Fri, 11 Mar 2005 12:33:13 +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 1110542991 19599 80.91.229.2 (11 Mar 2005 12:09:51 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 11 Mar 2005 12:09:51 +0000 (UTC) Cc: atl@comp.lancs.ac.uk Original-X-From: ntg-context-bounces@ntg.nl Fri Mar 11 13:09:50 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 1D9ixR-0008Bw-33 for gctc-ntg-context-518@m.gmane.org; Fri, 11 Mar 2005 13:09:33 +0100 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 2EC5612830; Fri, 11 Mar 2005 13:10:06 +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 19212-03; Fri, 11 Mar 2005 13:10:05 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 68E5F12824; Fri, 11 Mar 2005 12:33:46 +0100 (CET) Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 72ABA12824 for ; Fri, 11 Mar 2005 12:33:45 +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 18719-03-4 for ; Fri, 11 Mar 2005 12:33:44 +0100 (CET) Original-Received: from smtprelay01.ispgateway.de (smtprelay01.ispgateway.de [80.67.18.13]) by ronja.ntg.nl (Postfix) with ESMTP id 8C583127B7 for ; Fri, 11 Mar 2005 12:33:44 +0100 (CET) Original-Received: (qmail 18799 invoked from network); 11 Mar 2005 11:33:43 -0000 Original-Received: from unknown (HELO [62.134.77.169]) (698580@[62.134.78.106]) (envelope-sender ) by smtprelay01.ispgateway.de (qmail-ldap-1.03) with SMTP for ; 11 Mar 2005 11:33:43 -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:18822 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:18822 Adam Lindsay wrote: > Steffen Wolfrum said this at Thu, 10 Mar 2005 23:11:41 +0100: > > >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? > > I'm a bit confused why you're not using \em in this situation, as it > adapts to both bold and roman contexts. If you dislike that it defaults > to slanted, then there's: > > \setupbodyfontenvironment[default][em=italic] > {\bf Hello \em World} Hello \em World > > > But if you want to follow the path of defining your own, adaptive > switches, then you could look at these goodies already defined in font-ini: > > %D \macros > %D {emphbf,emphit,emphsl,emphtf} > %D > %D The next emphasis alternatives are for \THANH. They adapt > %D their style as good as possible. > > \def\emphbf{\groupedcommand{\bf\def\emphit{\bi}\def\emphsl{\bs}}{}} > \def\emphit{\groupedcommand{\it\def\emphbf{\bi}\def\emphsl{\sl}}{}} > \def\emphsl{\groupedcommand{\sl\def\emphbf{\bs}\def\emphit{\it}}{}} > \def\emphtf{\groupedcommand{\tf\def\e > mphbf{\bf}\def\emphit{\it}\def\emphsl{\sl}} > {}} Right. I can use \em. But my workflow of using ConTeXt is typesetting already finished books (.doc-files). And so I would like to change the "text" as little as possible and instead use an suitable set of typescript and setup environment. That's why I thought I'd need a mysans (or \myrm) defined in the typescript to be used in Taco's full-blown bodyfont switch as described above: \def\SectionStyle{% \switchtobodyfont[myrm,20pt] \setupinterlinespace[line=30pt] } In fact, this is something I would like to have also for other purposes (for example to use a second set of oldstyle figures): defining my own *myserif* or *mysans* that could be used then in a typescriptfile the same way as sans, serif and mono are used there. But up to now I didn't manage it. Somebody did and would like to share his/her knowledge? Thank you, Steffen