From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/82661 Path: news.gmane.org!not-for-mail From: Alan Bowen Newsgroups: gmane.comp.tex.context Subject: Re: \definehighlight with style=command problem Date: Tue, 28 May 2013 10:21:32 -0400 Message-ID: References: <187D769E-57D6-4943-A06C-BA53CDBC0787@gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1849716444==" X-Trace: ger.gmane.org 1369750922 21414 80.91.229.3 (28 May 2013 14:22:02 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 28 May 2013 14:22:02 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue May 28 16:22:04 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 1UhKmp-00065W-GU for gctc-ntg-context-518@m.gmane.org; Tue, 28 May 2013 16:22:03 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id BCE2A101E8; Tue, 28 May 2013 16:22:02 +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 r2SnqjsqlYu9; Tue, 28 May 2013 16:21:56 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 34762101E5; Tue, 28 May 2013 16:21:56 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 37332101E5 for ; Tue, 28 May 2013 16:21:54 +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 CRW943bbXRbB for ; Tue, 28 May 2013 16:21:44 +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 96C07101E0 for ; Tue, 28 May 2013 16:21:34 +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 r4SELWMl015538 for ; Tue, 28 May 2013 16:21:33 +0200 Original-Received: by mail-ve0-f180.google.com with SMTP id pa12so997275veb.11 for ; Tue, 28 May 2013 07:21:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=9esjZZk5fOa2wfPrAufdthBz2XcZ+b5fE+S4DTF8AFw=; b=ndX23vV9WiH0QTeYEb1en3PyqWBwTA8VOj1qoELGepvH9v52t4NIF+zZGIQMfSL4MA GaaAstAPq99cvtga2rtOcsIIjwD9J9xB5iEs1yV6i4YySZEXitoK5drZxp/RbhuzDjve gTKcGsqc9NcsGhE+UL/Dlg5Ob6pRhjL/cJBXuxj2DR7NkRaKc7RwvDHI9cup54xkgK2D 9JSUUgj2YTlFa6aAPY/CHtsfrxpvgj8t3YpEwhSGK5nQHdqtNcB+DW2OZn+C4h/4FsW7 MUyoqqXpZO8tR/jFISh83/VvSH3KhFYBFuv8zmeX/66EJNW+XK2luWhVP9rCjeUW7lqL FJnA== X-Received: by 10.59.2.199 with SMTP id bq7mr17665128ved.51.1369750892549; Tue, 28 May 2013 07:21:32 -0700 (PDT) Original-Received: by 10.220.32.76 with HTTP; Tue, 28 May 2013 07:21:32 -0700 (PDT) In-Reply-To: <187D769E-57D6-4943-A06C-BA53CDBC0787@gmail.com> 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: 03JFqlxTp - 046c66ff2509 - 20130528 (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:82661 Archived-At: --===============1849716444== Content-Type: multipart/alternative; boundary=047d7bb04ce661ea6e04ddc7fbfa --047d7bb04ce661ea6e04ddc7fbfa Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable Thanks, Wolfgang. I missed this module first time around, sorry to say. ConTeXt now has some very nice tools for editorial markup. Alan On Mon, May 27, 2013 at 4:48 PM, Wolfgang Schuster < schuster.wolfgang@gmail.com> wrote: > > 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, > > \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\= 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 > > > > > _________________________________________________________________________= __________ > 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 > > _________________________________________________________________________= __________ > --047d7bb04ce661ea6e04ddc7fbfa Content-Type: text/html; charset=windows-1252 Content-Transfer-Encoding: quoted-printable
Thanks, Wolfgang. I missed this module =A0first time aroun= d, sorry to say.=A0

ConTeXt now has some very nice= tools for editorial markup.

Alan



On Mon, May 27, 2013 at 4:48 PM, Wolfgang Schuster <= ;schuster.= wolfgang@gmail.com> wrote:

Am 27.05.2013 um 15:36 schrieb Alan Bowen <bowenalan03@gmail.com>:

I an = trying to use \definehighlight to define a macro that will color and overst= rike selected text.
Thus far,

\definehigh= light[Delete][color=3Dred,style=3D{\overstrike}]
\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 }'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[a= nnotation]

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

\start= text
test =A0\Delete{test} test
\stoptext

Wolfgang
<= br>


________________________________= ___________________________________________________
If your question is of interest to others as well, please add an entry to t= he Wiki!

maillist : ntg-context@ntg.nl / <= a href=3D"http://www.ntg.nl/mailman/listinfo/ntg-context" target=3D"_blank"= >http://www.ntg.nl/mailman/listinfo/ntg-context
webpage =A0: http://= www.pragma-ade.nl / http://tex.aanhet.net
archive =A0: http://foundry.supelec.fr/projects/contextrev/
wiki =A0 =A0 : http:= //contextgarden.net
___________________________________________________________________________= ________

--047d7bb04ce661ea6e04ddc7fbfa-- --===============1849716444== 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 ___________________________________________________________________________________ --===============1849716444==--