ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Matija Pretnar <matija@pretnar.info>
Subject: Generalized \installcompoundcharacter
Date: Thu, 15 Apr 2004 16:17:02 +0200	[thread overview]
Message-ID: <910E780E-8EE7-11D8-9FA5-000A957B0E70@pretnar.info> (raw)

With the advent of UTF-8, there comes a great possibility to improve 
readability of the TeX code.
For example: instead of \int_a^b, you could write S_a^b, where S is the 
character for integral. Or greek letters and any other math symbol 
imaginable.
I tried using \installcompoundcharacter S {\int} and similar commands 
and all the characters show up nicely, but the spacing is all wrong, 
because they are interpreted as variables instead of operations, 
relations, ...
I think this replacement would be easy to implement (if it isn't 
already implemented), because with math symbols, you don't have to 
worry about hyphenation. You could simply replace the characters with 
corresponding command before sending it to TeX. I already made some 
kind of python script that does that, but for each file separately. And 
with many files, you have to preprocess each one individually, which 
sums up to another shell script and many temporary files.

Cheers, Matija

             reply	other threads:[~2004-04-15 14:17 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-04-15 14:17 Matija Pretnar [this message]
2004-04-15 14:38 ` Gary Pajer
2004-04-15 14:58   ` Matija Pretnar
2004-04-15 17:27     ` Gary Pajer

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=910E780E-8EE7-11D8-9FA5-000A957B0E70@pretnar.info \
    --to=matija@pretnar.info \
    --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).