![](https://secure.gravatar.com/avatar/b16ca16bcbc474a1ba15813999e212da.jpg?s=120&d=mm&r=g)
\starttext $\k T$ \stoptext The above test file, to my surprise, compiled fine. [In Plain TeX I usually define \k as \kappa, but I had forgotten to carry over that definition.] The pdf output showed a T with little hook as a subscript. I can redefine \k as \kappa, but that might overwrite an important definition. However, I can't figure out where \k is defined. With \tracingmacros=1, the log had: \k ->\dohandleaccent {k} but lots of grepping in the context sources only produced: texmf/tex/context/base/mult-ini.tex:71:\def\k!prefix!{k!} \def\l!prefix!{l!} \def\m!prefix!{m!} -Sanjoy `A society of sheep must in time beget a government of wolves.' - Bertrand de Jouvenal
![](https://secure.gravatar.com/avatar/565476157eb3895a9c928ffce26d988d.jpg?s=120&d=mm&r=g)
Sanjoy Mahajan wrote:
\starttext $\k T$ \stoptext
The above test file, to my surprise, compiled fine. [In Plain TeX I usually define \k as \kappa, but I had forgotten to carry over that definition.] The pdf output showed a T with little hook as a subscript.
I can redefine \k as \kappa, but that might overwrite an important definition. However, I can't figure out where \k is defined.
enco-ini.tex: \definecommand k {\buildtextogonek} (but i knew what to look for) It is hard to come up with a clean solution to the problem (it soon be becmes confusing when commands polymorph on you), but this is a more or less sane way to get both: \unexpanded\def\k{\mathortext\kappa{\dohandleaccent{k}}} Cheers, Taco
![](https://secure.gravatar.com/avatar/b16ca16bcbc474a1ba15813999e212da.jpg?s=120&d=mm&r=g)
From: Taco Hoekwater
\definecommand k {\buildtextogonek} (but i knew what to look for)
Now I do too. I'll add that alternative to future egrep regexps.
\unexpanded\def\k{\mathortext\kappa{\dohandleaccent{k}}}
Thanks, that works. -Sanjoy `Never underestimate the evil of which men of power are capable.' --Bertrand Russell, _War Crimes in Vietnam_, chapter 1.
participants (2)
-
Sanjoy Mahajan
-
Taco Hoekwater