* Capitalization of synonyms
@ 2001-05-30 22:02 Peter Jander
2001-05-31 8:08 ` Hans Hagen
0 siblings, 1 reply; 2+ messages in thread
From: Peter Jander @ 2001-05-30 22:02 UTC (permalink / raw)
<color><param>0100,0100,0100</param>Hi,
I am using quite a number of abbreviations with the synonym
mechanism in my text. It would </color>sometimes <color><param>0100,0100,0100</param>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.
Any suggestions anybody?
Thanks,
Peter
\definesynonyms[abbreviation][abbreviations][\infull]
\abbreviation{sometext}{just some text}
\starttext
\infull{sometext}
\Word{\infull{sometext}}
\stoptext
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Capitalization of synonyms
2001-05-30 22:02 Capitalization of synonyms Peter Jander
@ 2001-05-31 8:08 ` Hans Hagen
0 siblings, 0 replies; 2+ messages in thread
From: Hans Hagen @ 2001-05-31 8:08 UTC (permalink / raw)
Cc: ntg-context
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
-------------------------------------------------------------------------
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2001-05-31 8:08 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-05-30 22:02 Capitalization of synonyms Peter Jander
2001-05-31 8:08 ` Hans Hagen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).