Hello Everyone:

I'm an intermediate-skilled user trying to typeset notes for my CompTIA A+ 
certification course with ConTeXt, but I'm having trouble with styling 
abbreviations. I would like to letterspace (I think that is a correct 
typographical term, I'm a little new at typesetting, sorry) and smallcap my 
dozens of abbreviations, and I can get it to work manually but not with 
\setupsynonyms. Googling the wiki, mailing lists, etc. didn't help and I'm not 
enough of a TeX programmer to understand the definitions in the source code in 
this case. I run TeXLive 2008 on Gentoo Linux with ConTeXt version:

CtxTools | context version: 2008.05.21 15:21 
(/usr/share/texmf-dist/tex/context/base/context.tex)
CtxTools | context version: 2008.05.21 15:21 
(/usr/share/texmf-dist/tex/context/base/cont-new.tex)

http://live.contextgarden.net/ doesn't seem to be working for anything at the 
moment, so I don't know if it works there or not. Below is a small sample input 
I made to illustrate my attempts; I tried to make it as transparent as 
possible. I would greatly appreciate any help.

Thank You Very Much,
Bob



\setupcolor [hex]
\definecolor [LightBlue] [h=8080FF]
\setupcolors [state=start]

\setupbodyfont [10pt]
\setupcapitals [sc=yes]

\def\stretchedspaceamount {.1em}
\define [1] \StretchedSmallCaps {\smallcaps {\stretchedlowercase {#1}}}
\define \Term {\color [LightBlue]}

% \setupsynonyms [abbreviation] [textstyle=\StretchedSmallCaps] % I would like 
this to work, but it doesn't
% \setupsynonyms [abbreviation] [textstyle=\italic] % other commands like this 
work
\abbreviation {CPU} {central processing unit}


\starttext

\Term {\StretchedSmallCaps {CPU}} = \Term {\infull {CPU}} % this produces the 
output that I want

\Term {\smallcaps {\lowercase {CPU}}} = \Term {\infull {CPU}} % this is what it 
looks like without stretching

\Term {\CPU} = \Term {\infull {CPU}} % this is what I want to type to produce 
the stretched, smallcaps output

\stoptext


      
___________________________________________________________________________________
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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to