From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/15293 Path: main.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: Re[2]: \=i Date: Tue, 01 Jun 2004 21:04:49 +0200 Sender: ntg-context-admin@ntg.nl Message-ID: <6.1.1.1.2.20040601205229.07dab140@server-1> References: <6.0.1.1.2.20040521122805.02ba09d8@server-1> <1847436607.20040527123110@iol.it> <6.0.1.1.2.20040527234558.0205d918@localhost> Reply-To: ntg-context@ntg.nl NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Trace: sea.gmane.org 1086117294 26543 80.91.224.253 (1 Jun 2004 19:14:54 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 1 Jun 2004 19:14:54 +0000 (UTC) Original-X-From: ntg-context-admin@ntg.nl Tue Jun 01 21:14:47 2004 Return-path: Original-Received: from ref.vet.uu.nl ([131.211.172.13] helo=ref.ntg.nl) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BVEil-0001gH-00 for ; Tue, 01 Jun 2004 21:14:47 +0200 Original-Received: from ref.ntg.nl (localhost.localdomain [127.0.0.1]) by ref.ntg.nl (Postfix) with ESMTP id 2403F10B61; Tue, 1 Jun 2004 21:09:53 +0200 (MEST) Original-Received: from mailrelay02.solcon.nl (maillb.solcon.nl [212.45.32.200]) by ref.ntg.nl (Postfix) with ESMTP id 2C48410B60 for ; Tue, 1 Jun 2004 21:00:42 +0200 (MEST) Original-Received: from server-1.pragma-net.nl (dsl-212-84-128-085.solcon.nl [212.84.128.85]) by mailrelay02.solcon.nl (8.12.11/SQL-8.12.11-5/8.12.11) with ESMTP id i51J5SY2024981 for ; Tue, 1 Jun 2004 21:05:28 +0200 Original-Received: by server-1.pragma-net.nl (Postfix, from userid 65534) id BFC561B28B; Tue, 1 Jun 2004 21:05:32 +0200 (CEST) Original-Received: from laptop-3.wxs.nl (unknown [10.100.1.191]) by server-1.pragma-net.nl (Postfix) with ESMTP id 195AE1D3FC for ; Tue, 1 Jun 2004 19:05:25 +0000 (UTC) X-Sender: hagen-mail@server-1 X-Mailer: QUALCOMM Windows Eudora Version 6.1.1.1 Original-To: ntg-context@ntg.nl In-Reply-To: Original-References: <6.0.1.1.2.20040521122805.02ba09d8@server-1> <1847436607.20040527123110@iol.it> <6.0.1.1.2.20040527234558.0205d918@localhost> X-Virus-Scanned: clamd / ClamAV version 0.70, clamav-milter version 0.70j Errors-To: ntg-context-admin@ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.0.13 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.comp.tex.context:15293 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:15293 At 05:24 29/05/2004, you wrote: >On Thu, 27 May 2004 23:47:07 +0200, Hans Hagen wrote: > >>ah, we stand you sitting there crying over tex, can we? > >Sometimes I want to curse TeX, believe me... Seriously though, I have a >real phobia for all that low low-level stuff... > >Did u have a chance 2 look at my general solution 4 medium fonts? I would >like to generalize it to bold and small caps but I don't understand how to >set up a conditionals macro that expands in accordance with the >surrounding font. I need sthing like > >\ifboldtrue >\IBARA % parameterized for bold fonts >\else >\ifsctrue >\IBARB % parameterized for sc fonts >\else >\IBAR % parameterized for medium fonts >\fi\fi take a look at font-ini and search for the definition of \em; but since you suffered already a lot: \unprotect \definesystemvariable{sx} \def\definestylecollection {\dotripleargument\dodefinestylecollection} \def\dodefinestylecollection[#1][#2][#3]% {\unexpanded\setvalue{#1}{\styleinstance[#1]}% \setvalue{\??sx#1:#2}{#3}} \unexpanded\def\styleinstance[#1]% {\executeifdefined{\??sx#1:\fontalternative}{\getvalue{\??sx#1:\s!default}}} \protect \definestylecollection[mine][default][sorry] \definestylecollection[mine][bf][\sl] \definestylecollection[mine][sl][\tt] {\bf test \mine test \sl test \mine test \bs oeps \mine oeps} let me know if this works ok, maybe i can add it to the kernel then Hans