From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/44216 Path: news.gmane.org!not-for-mail From: Steffen Wolfrum Newsgroups: gmane.comp.tex.context Subject: Re: how to color italics? Date: Mon, 22 Sep 2008 14:00:53 +0200 Message-ID: References: <409BC877-2849-4311-85F9-7EBF49EC2492@st.estfiles.de> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v929.2) Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1222089371 27080 80.91.229.12 (22 Sep 2008 13:16:11 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 22 Sep 2008 13:16:11 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Sep 22 15:17:04 2008 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by lo.gmane.org with esmtp (Exim 4.50) id 1KhlHd-00037Q-CC for gctc-ntg-context-518@m.gmane.org; Mon, 22 Sep 2008 15:16:57 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 541AF1FD59; Mon, 22 Sep 2008 15:15:53 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 18409-03; Mon, 22 Sep 2008 15:15:10 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 2BD1D1FD37; Mon, 22 Sep 2008 14:40:16 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 006A91FD16 for ; Mon, 22 Sep 2008 14:40:13 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 12167-01-4 for ; Mon, 22 Sep 2008 14:39:13 +0200 (CEST) Original-Received: from smtprelay11.ispgateway.de (smtprelay11.ispgateway.de [80.67.29.28]) by ronja.ntg.nl (Postfix) with ESMTP id 8CAFB20082 for ; Mon, 22 Sep 2008 14:00:55 +0200 (CEST) Original-Received: from [89.247.12.167] (helo=[192.168.1.2]) by smtprelay11.ispgateway.de with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.68) (envelope-from ) id 1Khk63-0005BI-CE; Mon, 22 Sep 2008 14:00:55 +0200 In-Reply-To: X-Mailer: Apple Mail (2.929.2) X-Df-Sender: 698580 X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.9 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: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:44216 Archived-At: Am 22.09.2008 um 13:48 schrieb Thomas A. Schmitz: > > On Sep 22, 2008, at 1:24 PM, Steffen Wolfrum wrote: > >> It should be something like \Colorit{this} example: >> >> \def\Colorit{\it\color[magenta]} >> >> >> But this above never closes the italics, while ... >> >> \def\Colorit{\strut\groupedcommand\it\color[magenta]\/} >> >> ... gives an error. >> >> >> Someone can help? >> >> >> St. > > You want your command to take an argument, so you have to mention that > argument in the definition (untested): > > \define[1]\Colorit% > {\color[magenta]{\it #1}} but, hey ... what about this: \define[1]\Colorit% {\color[magenta]{\groupedcommand\em\/ #1}} Thanks for pointing it to that Thomas! Steffen ___________________________________________________________________________________ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________