From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/76985 Path: news.gmane.org!not-for-mail From: "Meer, H. van der" Newsgroups: gmane.comp.tex.context Subject: combined style? Date: Tue, 19 Jun 2012 10:44:57 +0000 Message-ID: <4ED20042-DA8D-4B6B-A73C-A4D9EFB2CAE9@uva.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1340102712 12392 80.91.229.3 (19 Jun 2012 10:45:12 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 19 Jun 2012 10:45:12 +0000 (UTC) To: ConTeXt NTG Original-X-From: ntg-context-bounces@ntg.nl Tue Jun 19 12:45:10 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 1Sgvvj-0004RS-2q for gctc-ntg-context-518@m.gmane.org; Tue, 19 Jun 2012 12:45:03 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id F3036101EB; Tue, 19 Jun 2012 12:45:01 +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 XeuEe+uu+bpJ; Tue, 19 Jun 2012 12:45:00 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 535A3101EE; Tue, 19 Jun 2012 12:45:00 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 55AB0101EE for ; Tue, 19 Jun 2012 12:44:59 +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 v9w7tz1XuSWT for ; Tue, 19 Jun 2012 12:44:58 +0200 (CEST) Original-Received: from filter5-til.mf.surf.net (filter5-til.mf.surf.net [194.171.167.221]) by balder.ntg.nl (Postfix) with ESMTP id 4BC08101EB for ; Tue, 19 Jun 2012 12:44:58 +0200 (CEST) Original-Received: from HUB01.uva.nl (hub01.uva.nl [146.50.108.230]) by filter5-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id q5JAi5Uj025605 for ; Tue, 19 Jun 2012 12:44:05 +0200 Original-Received: from ketelaar.uva.nl ([fe80::cc61:4c73:c438:df97]) by HUB01.uva.nl ([2002:9232:6737::9232:6737]) with mapi id 14.02.0298.004; Tue, 19 Jun 2012 12:44:57 +0200 Thread-Topic: combined style? Thread-Index: AQHNTgiR3ClHWseTvUu7PE1cdLxsag== Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [82.95.102.36] Content-ID: <2FC5045B046CAB45A527B5B84BF9EDCB@uva.nl> X-Bayes-Prob: 0.9992 (Score 4.7, tokens from: @@RPTN) X-CanIt-Geo: ip=146.50.108.230; country=NL; region=07; city=Amsterdam; latitude=52.3500; longitude=4.9167; http://maps.google.com/maps?q=52.3500,4.9167&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0WHoaI5vH - 192c388d48f1 - 20120619 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.221 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:76985 Archived-At: I had hoped to be able to combine style features in parameters, in this manner: \macro[param={a,b}]. Doing this with foregroundstyle did not work, see the following examples: \framed[foregroundstyle=italic]{ABCD} => typesets in italic \framed[foregroundstyle=small]{ABCD} => typesets small \framed[foregroundstyle={small,italic}]{ABCD} => typesets not in small-italic but first "small,italic" followed by the framed ABCD Of course the effect wanted can be obtained by \framed[foregroundstyle={\tfx\it}]{ABCD} But my problem is the fact that I would like to use style settings from within XML-nodes in the following manner: leading to somewhere a call of \setupsomething[foregroundstyle={small,italic}]. It is a pity that does not work, because with two successive calls \setupsomething[foregroundstyle=small] \setupsomething[foregroundstyle=italic] the first setting is lost. Translating internally smallitallic to \tfx\it is a remote possibility, but 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,calligraphic,serif,sansserif) and (bold, italic, slanted, normal). Is there a solution? Hans van der Meer ___________________________________________________________________________________ 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 ___________________________________________________________________________________