Re: [NTG-context] stretching smallcaps with a style command

2008-11-20 Thread Bob Reynolds
Just to let anyone know who's interested, I more or less solved this problem 
with the (more or less undocumented) command \definealternativestyle 
[StretchedSmallCaps] [\StretchedSmallCaps] [\StretchedSmallCaps]. It allows me 
to set \setupsynonyms [abbreviation] [textstyle=StretchedSmallCaps, 
criterium=all], which essentially works. Is this generally applicable enough to 
put on the wiki somewhere?

I now have another abbreviations question. What is the easiest way to allow 
digits (and, ideally, the forward slash) in abbreviation names (i.e. be able to 
type \PS/2 and not get the error \PS is undefined)? This occurs quite 
commonly, particularly with numbers. I can define the abbreviation fine, and I 
can use the \infull version of it fine, but I can't use the command version at 
all. Another example: \ATX12V. I've been working around it by defining both 
synonyms and a logo like \PSTwo which typesets like I want \PS/2 to typeset, 
but what is a more elegent way of doing this that doesn't involve definining 
two different commands? I don't know how to change catcodes, despite numerous 
failed attempts to do just that with commands like \unprotect 
\catcode`2=\@@letter \protect.

Thanks,
Bob




- Original Message 
From: Bob Reynolds [EMAIL PROTECTED]
To: ntg-context@ntg.nl
Sent: Friday, November 14, 2008 10:24:26 AM
Subject: stretching smallcaps with a style command

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
___


[NTG-context] stretching smallcaps with a style command

2008-11-15 Thread Bob Reynolds
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
___


[NTG-context] error: the file 'texexec' is not found

2007-01-19 Thread Bob Reynolds
Hi,

I just updated my TeX (and ConTeXt) tree, based on the
linuxtex.zip file at
http://www.pragma-ade.com/download-1.htm, at
/usr/local/share/tex from about the August version and
after a few minor tweaks I've got it working. No other
TeX stuff is installed on my Gentoo system. One big
problem: all of a sudden, I need to run source
/usr/local/share/tex/setuptex or else a command like
texmfstart texexec --color 'story.tex' exits with an
error message the file 'texexec' is not found. This
breaks the Kile program that I use to write and
compile TeX files. Is there any way to get this or
something similar that's not in a bash environment to
just work?

Thank you very much,
Bob


 

Food fight? Enjoy some healthy debate 
in the Yahoo! Answers Food  Drink QA.
http://answers.yahoo.com/dir/?link=listsid=396545367
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context