From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/44202 Path: news.gmane.org!not-for-mail From: "Thomas A. Schmitz" Newsgroups: gmane.comp.tex.context Subject: Re: how to color italics? Date: Mon, 22 Sep 2008 13:48:28 +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 1222084429 9896 80.91.229.12 (22 Sep 2008 11:53:49 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 22 Sep 2008 11:53:49 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Sep 22 13:54:46 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 1Khk06-0000Om-Bc for gctc-ntg-context-518@m.gmane.org; Mon, 22 Sep 2008 13:54:46 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 3FFA420024; Mon, 22 Sep 2008 13:53:35 +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 03285-01-3; Mon, 22 Sep 2008 13:52:50 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 2F4CF2003B; Mon, 22 Sep 2008 13:50:41 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id CA2DF20034 for ; Mon, 22 Sep 2008 13:49:50 +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 01083-01-7 for ; Mon, 22 Sep 2008 13:48:52 +0200 (CEST) Original-Received: from mailout09.t-online.de (mailout09.t-online.de [194.25.134.84]) by ronja.ntg.nl (Postfix) with ESMTP id CDBC120060 for ; Mon, 22 Sep 2008 13:48:52 +0200 (CEST) Original-Received: from fwd02.aul.t-online.de by mailout09.sul.t-online.de with smtp id 1KhjuL-0007Qc-00; Mon, 22 Sep 2008 13:48:49 +0200 Original-Received: from [192.168.0.2] (EqRj6UZpYhnS-PShrINjnyowAcg-RHFSnpx7UY1BJPQ2-vrxg84p6i+sDQubnFSgAC@[87.178.87.229]) by fwd02.aul.t-online.de with esmtp id 1Khju0-1A0L0i0; Mon, 22 Sep 2008 13:48:28 +0200 In-Reply-To: <409BC877-2849-4311-85F9-7EBF49EC2492@st.estfiles.de> X-Mailer: Apple Mail (2.929.2) X-ID: EqRj6UZpYhnS-PShrINjnyowAcg-RHFSnpx7UY1BJPQ2-vrxg84p6i+sDQubnFSgAC@t-dialin.net X-TOI-MSGID: 21cb6995-b381-4745-894b-352d6edcb3b3 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:44202 Archived-At: 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}} Thomas ___________________________________________________________________________________ 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 ___________________________________________________________________________________