From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/76986 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: combined style? Date: Tue, 19 Jun 2012 13:08:31 +0200 Message-ID: References: <4ED20042-DA8D-4B6B-A73C-A4D9EFB2CAE9@uva.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Apple Message framework v1278) Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1340104139 23742 80.91.229.3 (19 Jun 2012 11:08:59 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 19 Jun 2012 11:08:59 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Jun 19 13:08:58 2012 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SgwIj-0007Hh-81 for gctc-ntg-context-518@m.gmane.org; Tue, 19 Jun 2012 13:08:49 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id DB4ED10200; Tue, 19 Jun 2012 13:08:48 +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 pG+SoFTXzm6N; Tue, 19 Jun 2012 13:08:47 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id E5DCB101EB; Tue, 19 Jun 2012 13:08:46 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id A47D5101EB for ; Tue, 19 Jun 2012 13:08:45 +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 pIxFD4p+JNHh for ; Tue, 19 Jun 2012 13:08:40 +0200 (CEST) Original-Received: from filter2-til.mf.surf.net (filter2-til.mf.surf.net [194.171.167.218]) by balder.ntg.nl (Postfix) with ESMTP id AB471101E9 for ; Tue, 19 Jun 2012 13:08:40 +0200 (CEST) Original-Received: from mail-bk0-f41.google.com (mail-bk0-f41.google.com [209.85.214.41]) by filter2-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id q5JB8doo017826 for ; Tue, 19 Jun 2012 13:08:39 +0200 Original-Received: by bkcjm19 with SMTP id jm19so6414471bkc.14 for ; Tue, 19 Jun 2012 04:08:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer; bh=7w0LzoJEKknoW1bieerzgDk1OvTr1nGvaRM0NglWgVA=; b=G6vlJA/PuAWIjsXdkGZ0XNe729HQBErsKOJKBaNf1H5qRY5NTpaRL5hmd38bUuHMAg 4nuEcLPyFdTJHacQNgofttsNXyAgiTT9DtMXq3dkxQccnFT4fyR5CRDlEUU8VfNvTImJ ZcjKHCz/3id9pbm3BxINwFWvxWWFcbOgQo0y/FJhC+3CxlbitAAU0yKkQ639Corf+H7x UUi7rEsSl2yEfzB5JMJ297cSsXOQTmigSpKCcL//6mvqI2IKm2mpg1uLh/ovwgXp7Vae OIHAxsb+kR1iOwy8/I+dtA39Ekm9fhP23p3XSAC6ex74ZPxpLWBHjFXGZvrNi5T2xo1M +Fjw== Original-Received: by 10.204.156.22 with SMTP id u22mr7627334bkw.22.1340104119129; Tue, 19 Jun 2012 04:08:39 -0700 (PDT) Original-Received: from [192.168.2.36] (p54BAF3AB.dip.t-dialin.net. [84.186.243.171]) by mx.google.com with ESMTPS id ie3sm22707156bkc.1.2012.06.19.04.08.36 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 19 Jun 2012 04:08:38 -0700 (PDT) In-Reply-To: <4ED20042-DA8D-4B6B-A73C-A4D9EFB2CAE9@uva.nl> X-Mailer: Apple Mail (2.1278) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.214.41; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0THob8DVe - f0a0febd2412 - 20120619 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.218 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.13 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:76986 Archived-At: Am 19.06.2012 um 12:44 schrieb Meer, H. van der: > I had hoped to be able to combine style features in parameters, in this m= anner: > \macro[param=3D{a,b}]. Doing this with foregroundstyle did not work, see = the following examples: > = > \framed[foregroundstyle=3Ditalic]{ABCD} =3D> typesets in italic > \framed[foregroundstyle=3Dsmall]{ABCD} =3D> typesets small > \framed[foregroundstyle=3D{small,italic}]{ABCD} =3D> typesets not in smal= l-italic but first "small,italic" followed by the framed ABCD > = > Of course the effect wanted can be obtained by \framed[foregroundstyle=3D= {\tfx\it}]{ABCD} > = > But my problem is the fact that I would like to use style settings from w= ithin XML-nodes in the following manner: > = > leading to somewhere a call of \setupsomething[foregroundstyle=3D{small,i= talic}]. > It is a pity that does not work, = because with two successive calls > \setupsomething[foregroundstyle=3Dsmall] > \setupsomething[foregroundstyle=3Ditalic] > the first setting is lost. > = > Translating internally smallitallic to \tfx\it is a remote possibility, b= ut then each and every combination has to be provided for. There are simply= too many of them if one wants to combine size (small,large) type (mono,cal= ligraphic,serif,sansserif) and (bold, italic, slanted, normal). > = > Is there a solution? \definealternativestyle[smallitalic][\itx][\itx] \starttext \framed[foregroundstyle=3Dsmall]{text} \framed[foregroundstyle=3Ditalic]{text} \framed[foregroundstyle=3Dsmallitalic]{text} \stoptext or \starttext \scratchtoks\emptytoks \appendtoks\tx\to\scratchtoks % check if the style attribute contains =93sm= all=94 \appendtoks\it\to\scratchtoks % check if the style attribute contains =93it= alic=94 \framed[foregroundstyle=3D\the\scratchtoks]{text} \stoptext Wolfgang ___________________________________________________________________________= ________ If your question is of interest to others as well, please add an entry to t= he Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-cont= ext webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________= ________