From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/76035 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: \definehighlight + \words | \WORDS Date: Tue, 8 May 2012 11:07:05 +0200 Message-ID: <772467F5-38AB-47F9-928B-7BB3EAC0308F@googlemail.com> References: <20120508083547.GA10102@phlegethon> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Apple Message framework v1257) Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1336468037 17712 80.91.229.3 (8 May 2012 09:07:17 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 8 May 2012 09:07:17 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue May 08 11:07:16 2012 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 1SRgO4-000671-9W for gctc-ntg-context-518@m.gmane.org; Tue, 08 May 2012 11:07:16 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 2334E101E9; Tue, 8 May 2012 11:07:15 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (localhost [127.0.0.1]) (amavisd-new, port 10024) with LMTP id sDIVem5hUJ6o; Tue, 8 May 2012 11:07:12 +0200 (CEST) Original-Received: from [127.0.0.1] (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 58506101E3; Tue, 8 May 2012 11:07:12 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 1ADAF101E3 for ; Tue, 8 May 2012 11:07:11 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (localhost [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 4sxFHz3wquQr for ; Tue, 8 May 2012 11:07:10 +0200 (CEST) Original-Received: from filter2-ams.mf.surf.net (filter2-ams.mf.surf.net [192.87.102.70]) by balder.ntg.nl (Postfix) with ESMTP id 265DD101E2 for ; Tue, 8 May 2012 11:07:10 +0200 (CEST) Original-Received: from mail-bk0-f41.google.com (mail-bk0-f41.google.com [209.85.214.41]) by filter2-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id q48979jk011343 for ; Tue, 8 May 2012 11:07:09 +0200 Original-Received: by bkcjm19 with SMTP id jm19so6254142bkc.14 for ; Tue, 08 May 2012 02:07:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer; bh=mUfeDqKF3rhX5kCvN5Isd192WX5p2ys5SyHiI/0cMD0=; b=k4esD9m7dbSoZuv/tTejFsynnAy+5mMLwWDKhy6BHm1ljuR2KgcSdcbK9JXj2Vh4a0 vsnFB8tHs7ngVtCTweAzJqpQ+5m7GXLblsFWPdxIYJBw4xT27LTduqyEq1+3LM0KrC42 31Ndnm+oVhQD41G0amuLyIMyT5RRSEWni9UCfud3z0hkckL65nMPXdhdVwj4B9wYH3kN OwirphqZCkPZ2rDLN4yP903aUvTJ/TlCO8OsEVaTUuwmngMemAQstDypaPyB0+WzatbA SWVoHODeXP+iruJuCMTfLCH+OMbkWREbp+ANx2PDJghyBCBLSIn9B09XVtqkilbQ5ZVr 4zNQ== Original-Received: by 10.204.130.212 with SMTP id u20mr3077715bks.87.1336468029182; Tue, 08 May 2012 02:07:09 -0700 (PDT) Original-Received: from [192.168.2.36] (p57AFB951.dip.t-dialin.net. [87.175.185.81]) by mx.google.com with ESMTPS id fw10sm29719202bkc.11.2012.05.08.02.07.07 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 08 May 2012 02:07:08 -0700 (PDT) In-Reply-To: <20120508083547.GA10102@phlegethon> X-Mailer: Apple Mail (2.1257) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.214.41; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0QH7l79jQ - 64b55479daf1 - 20120508 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.70 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 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 Xref: news.gmane.org gmane.comp.tex.context:76035 Archived-At: Am 08.05.2012 um 10:35 schrieb Philipp Gesang: > Dear listmates, > = > I rely on automated uppercasing and lowercasing a lot and I=92m > very happy with the \words and \WORD macros. But I can=92t find a > way to properly combine them with the =93style=94 parameter of > highlights: it breaks frames and enumerations. Example: > = > =B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7= =B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7= =B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7 > = > \definehighlight [tolower] [style=3D\words,] %%% This is problematic. > \def\mylower#1{\bgroup\words#1\egroup} %%% The command itself > %%% works, though. > = > \starttext > = > FOO \tolower{FOO} FOO\par %%% Works. > \framed{BAR \mylower{BAR} BAR} %%% Works. > \framed{BAR \tolower{BAR} BAR} %%% Fails. > \startitemize %%% Enumerations don=92t work either. > \item FOO \mylower{FOO} FOO %%% Works. > \item FOO \tolower{FOO} FOO %%% Fails. > \stopitemize > = > \stoptext > = > =B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7= =B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7= =B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7 > = > In short: while I can always wrap it in a \def, the more elegant > doesn=92t work in all cases. Is there anything wrong with my > approach? You can use \definehighlight [tolower] [style=3D{\setcharactercasing[2]}] to create the \tolower command. Wolfgang ___________________________________________________________________________= ________ If your question is of interest to others as well, please add an entry to t= he Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-cont= ext webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________= ________