From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/44205 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 13:58:20 +0200 Message-ID: <68C6B933-A14E-4B58-8DD0-D3E769B09608@st.estfiles.de> 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 1222084857 11402 80.91.229.12 (22 Sep 2008 12:00:57 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 22 Sep 2008 12:00:57 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Sep 22 14:01:52 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 1Khk6d-00030F-4A for gctc-ntg-context-518@m.gmane.org; Mon, 22 Sep 2008 14:01:31 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 2C403200AD; Mon, 22 Sep 2008 14:00:22 +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 31339-04-26; Mon, 22 Sep 2008 13:59:24 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 1F12820082; Mon, 22 Sep 2008 13:59:22 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 8566B1FF11 for ; Mon, 22 Sep 2008 13:59:15 +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 31339-04-25 for ; Mon, 22 Sep 2008 13:58:35 +0200 (CEST) Original-Received: from smtprelay01.ispgateway.de (smtprelay01.ispgateway.de [80.67.18.13]) by ronja.ntg.nl (Postfix) with ESMTP id 811E8200A2 for ; Mon, 22 Sep 2008 13:58:21 +0200 (CEST) Original-Received: from [89.247.12.167] (helo=[192.168.1.2]) by smtprelay01.ispgateway.de with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.68) (envelope-from ) id 1Khk3Z-0004JK-9x for ntg-context@ntg.nl; Mon, 22 Sep 2008 13:58:21 +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:44205 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}} ... same problem as in Taco's proposal: the \it never stops st. ___________________________________________________________________________________ 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 ___________________________________________________________________________________