From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/4771 Path: main.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: Capitalization of synonyms Date: Thu, 31 May 2001 10:08:13 +0200 Sender: owner-ntg-context@let.uu.nl Message-ID: <3.0.6.32.20010531100813.01a3cd20@server-1> References: <3B156E80.24031.618A42@localhost> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-Trace: main.gmane.org 1035395412 28637 80.91.224.250 (23 Oct 2002 17:50:12 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 23 Oct 2002 17:50:12 +0000 (UTC) Cc: ntg-context@ntg.nl Original-To: "Peter Jander" In-Reply-To: <3B156E80.24031.618A42@localhost> Xref: main.gmane.org gmane.comp.tex.context:4771 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:4771 At 10:02 PM 5/30/01 GMT, Peter Jander wrote: >Hi, > >I am using quite a number of abbreviations with the synonym mechanism in >my text. It would sometimes be useful to capitalize the first letter of >the first word of the meaning e.g. to use it at the start of a sentence. >That is to get > >Just some text > >in the sample below. But use of \Cap or \Word or any of these gives an error. >\definesynonyms[abbreviation][abbreviations][\infull] >\abbreviation{sometext}{just some text} >\starttext >\infull{sometext} > >\Word{\infull{sometext}} >\stoptext First, patch this in cont-new.tex [after \unprotect] \def\processsynonym#1#2#3% {\begingroup % anders in mathmode lege \hbox, zie eenheden \ifsynonymmeaning \synonymmeaningfalse % moved outside {#3} to accept \Word etc \doattributes{\??sm#1}\c!synoniemletter\c!synoniemkleur{#3}% \else \explicithmode \doattributes{\??sm#1}\c!tekstletter\c!tekstkleur{#2}% \fi \endgroup} \setupsynonyms[abbreviation][synonymstyle=\Word] Hans ------------------------------------------------------------------------- Hans Hagen | PRAGMA ADE | pragma@wxs.nl Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com -------------------------------------------------------------------------