ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Taco Hoekwater <taco@elvenkind.com>
Subject: Re: \k in inline math
Date: Wed, 26 Apr 2006 22:35:59 +0200	[thread overview]
Message-ID: <444FD9AF.90303@elvenkind.com> (raw)
In-Reply-To: <E1FYqUJ-0002At-JH@approximate.corpus.cam.ac.uk>

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

  reply	other threads:[~2006-04-26 20:35 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-04-26 20:19 Sanjoy Mahajan
2006-04-26 20:35 ` Taco Hoekwater [this message]
2006-04-26 21:01   ` Sanjoy Mahajan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=444FD9AF.90303@elvenkind.com \
    --to=taco@elvenkind.com \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).