From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/82655 Path: news.gmane.org!not-for-mail From: Alan Bowen Newsgroups: gmane.comp.tex.context Subject: \definehighlight with style=command problem Date: Mon, 27 May 2013 09:36:35 -0400 Message-ID: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0330007131==" X-Trace: ger.gmane.org 1369661824 9018 80.91.229.3 (27 May 2013 13:37:04 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 27 May 2013 13:37:04 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon May 27 15:37:06 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 1Ugxbg-0001gk-6Q for gctc-ntg-context-518@m.gmane.org; Mon, 27 May 2013 15:37:00 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 60333101EA; Mon, 27 May 2013 15:36: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 OHt6sJtVtvBI; Mon, 27 May 2013 15:36:53 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 2AFFF101E5; Mon, 27 May 2013 15:36:53 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 8C33D101E5 for ; Mon, 27 May 2013 15:36:51 +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 P+SuEN4Pq-6u for ; Mon, 27 May 2013 15:36:46 +0200 (CEST) Original-Received: from filter3-ams.mf.surf.net (filter3-ams.mf.surf.net [192.87.102.71]) by balder.ntg.nl (Postfix) with ESMTP id DCB6E101E0 for ; Mon, 27 May 2013 15:36:36 +0200 (CEST) Original-Received: from mail-ve0-x234.google.com (mail-ve0-x234.google.com [IPv6:2607:f8b0:400c:c01::234]) by filter3-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id r4RDaZj2030564 for ; Mon, 27 May 2013 15:36:36 +0200 Original-Received: by mail-ve0-f180.google.com with SMTP id pa12so159567veb.11 for ; Mon, 27 May 2013 06:36:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=Py/pM6BEA+J2as6wsZOmV0axOSOebm1MBcgRWQqv0aQ=; b=woTYISvbLyhiYLcxKDJ1x68Rg3cKbzTaOfBdzWFKtHyFhR37azEGFqLM8K0jT92lpD 4dUMRHWQb4SusmT31Qw2cSgSdmRWQGmPbZ5qTHuXvqohIEO7DWBvTFqDJ948jQFyQRq0 Jq/QHlIkHDkwoyP6X8gM+8CpSIDS5vnhhCJqcypwaHH253rR7pTPNohI505PFZ1Bssaq dGVmcR02R5GRaQTPnwbxp6vqFx3AwGu8Bk/22vpT07fjAHuJgn1hEylu81jVs6TUGr+5 RG9gwYnby97gdJmay1JVZZy3R1Qp92oTkLla5OJMARzFc11pbHjJ5+S7pm7AUZFuBZ1N 2PeA== X-Received: by 10.220.228.74 with SMTP id jd10mr15205618vcb.65.1369661795094; Mon, 27 May 2013 06:36:35 -0700 (PDT) Original-Received: by 10.220.100.201 with HTTP; Mon, 27 May 2013 06:36:35 -0700 (PDT) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=2607:f8b0:400c:c01::234; country=US X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 03JF1AzHr - a11922d85cb2 - 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:82655 Archived-At: --===============0330007131== Content-Type: multipart/alternative; boundary=14dae9ccd516c2586c04ddb33c19 --14dae9ccd516c2586c04ddb33c19 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable 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. system > tex > error on line 4 in file ...TEST.tex: Too many }'s ... If I replace =93\overstrike=94 with =93bold=94, =93\Delete=94 works. =93\ov= erstrike=94 works otherwise, so am I trying the impossible here? Alan --14dae9ccd516c2586c04ddb33c19 Content-Type: text/html; charset=windows-1252 Content-Transfer-Encoding: quoted-printable
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{\overs= trike}]
\starttext
test =A0\Delete{test} test
\stoptex= t

reports

! Too many }= 's.

system=A0 =A0 = =A0 =A0 =A0 > tex > error on line 4 in file ...TEST.tex: Too many }&#= 39;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?

Alan
--14dae9ccd516c2586c04ddb33c19-- --===============0330007131== 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 ___________________________________________________________________________________ --===============0330007131==--