From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/82658 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: \definehighlight with style=command problem Date: Mon, 27 May 2013 22:48:30 +0200 Message-ID: <187D769E-57D6-4943-A06C-BA53CDBC0787@gmail.com> References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 6.3 \(1503\)) Content-Type: multipart/mixed; boundary="===============0767728089==" X-Trace: ger.gmane.org 1369687739 24359 80.91.229.3 (27 May 2013 20:48:59 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 27 May 2013 20:48:59 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon May 27 22:49:01 2013 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 1Uh4Li-000637-DU for gctc-ntg-context-518@m.gmane.org; Mon, 27 May 2013 22:48:58 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 5EBFD101EF; Mon, 27 May 2013 22:48:57 +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 8AtSKkTyFWkN; Mon, 27 May 2013 22:48:50 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id CA3E1101E5; Mon, 27 May 2013 22:48:50 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id C5EC0101E5 for ; Mon, 27 May 2013 22:48: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 zb9AXJ9UXg3W for ; Mon, 27 May 2013 22:48:42 +0200 (CEST) Original-Received: from filter1-til.mf.surf.net (filter1-til.mf.surf.net [194.171.167.217]) by balder.ntg.nl (Postfix) with ESMTP id 6A765101E0 for ; Mon, 27 May 2013 22:48:32 +0200 (CEST) Original-Received: from mail-ea0-x233.google.com (mail-ea0-x233.google.com [IPv6:2a00:1450:4013:c01::233]) by filter1-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id r4RKmUV0028108 for ; Mon, 27 May 2013 22:48:30 +0200 Original-Received: by mail-ea0-f179.google.com with SMTP id z16so4162398ead.10 for ; Mon, 27 May 2013 13:48:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:content-type:message-id:mime-version:subject:date:references :to:in-reply-to:x-mailer; bh=vwspQ9G+vQOzHrKrUMTDQELMxbkDUKOfh+pWq/qwun0=; b=yQI9xRkys7EhxoQZFjW1VxeHAUJiqUyZ/B+kSbWMSJBDKq6g54gEXQ+da3VLhEqaus 7dillZWe7tXmer5UzrutKklvmz/rY+lWUd4AkL7s2HNJFvlmNjdEmW4tb04ZcEMRN12X uc8He38apTUBMFS+1qkpZNtCSx8Q64kVt0qrB8Mntr8IdsVGVSbeyAer/qmvtlQQT8TJ SzRBLoMn5of2UHK8/3E54gCQUTIpOyF6IMcWWpk8jk99Jm3CDb81tl6pwT3iCBy31jiu hQaYcsttHOr/Xntpcg4t6Ub9oZffLuJBioWd3qmT0pr5iRpDjZWkLxlxh0aX2QlvipG+ iTMw== X-Received: by 10.14.45.68 with SMTP id o44mr11525924eeb.80.1369687710551; Mon, 27 May 2013 13:48:30 -0700 (PDT) Original-Received: from keima.localdomain (nrbg-4d0756c3.pool.mediaWays.net. [77.7.86.195]) by mx.google.com with ESMTPSA id bp51sm43807342eeb.5.2013.05.27.13.48.29 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 27 May 2013 13:48:30 -0700 (PDT) In-Reply-To: X-Mailer: Apple Mail (2.1503) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=2a00:1450:4013:c01::233; country=IE X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0RJF8MuE0 - 50e27e11d12b - 20130527 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:82658 Archived-At: --===============0767728089== Content-Type: multipart/alternative; boundary="Apple-Mail=_CB7355D6-2675-467F-97DE-FEBC80E4E9A3" --Apple-Mail=_CB7355D6-2675-467F-97DE-FEBC80E4E9A3 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=windows-1252 Am 27.05.2013 um 15:36 schrieb Alan Bowen : > I an trying to use \definehighlight to define a macro that will color = and overstrike selected text. > Thus far, >=20 > \definehighlight[Delete][color=3Dred,style=3D{\overstrike}] > \starttext > test \Delete{test} test > \stoptext >=20 > reports >=20 > ! Too many }'s. > system > tex > error on line 4 in file ...TEST.tex: Too many = }'s ... >=20 > If I replace =93\overstrike=94 with =93bold=94, =93\Delete=94 works. = =93\overstrike=94 works otherwise, so am I trying the impossible here? \usemodule[annotation] \defineannotation[Delete][color=3Dred,textcommand=3D\overstrike] \starttext test \Delete{test} test \stoptext Wolfgang --Apple-Mail=_CB7355D6-2675-467F-97DE-FEBC80E4E9A3 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=windows-1252 bowenalan03@gmail.com>:=
I an trying to use \definehighlight to define a macro that = will color and overstrike selected text.
Thus = far,

\definehighlight[Delete][color=3Dred,style=3D= {\overstrike}]
\starttext
test  \Delete{test} = test
\stoptext

reports =

! Too many }'s.
If I replace =93\overstrike=94 with =93bold=94, =93\Delete=94 = works. =93\overstrike=94 works otherwise, so am I trying the impossible = here?
=

\usemodule[annotation]<= /div>

\defineannotation[Delete][color=3Dred,textcommand= =3D\overstrike]

\starttext
test =  \Delete{test} = test
\stoptext

Wolfgang

<= /div>

= --Apple-Mail=_CB7355D6-2675-467F-97DE-FEBC80E4E9A3-- --===============0767728089== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 ___________________________________________________________________________________ --===============0767728089==--