ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Giuseppe Bilotta" <oblomov@freemail.it>
Subject: Comments on \defineshortcut
Date: Thu, 1 Feb 2001 13:16:07 +0100	[thread overview]
Message-ID: <000301c08c98$30ec8b20$a3ccfea9@nuovo> (raw)

Hello, I'm playing with shortcuts now, and I found some limitations on the
current implementation.

It's impossible to re-define shortcuts other than <>; the reason is that, once I
issue

\defineshortcut [()][a][style=\overstrike]

I cannot issue

\defineshortcut [()][b][style=\underline]

later because an "undefined control sequence" error is issued.

(the problem is not present for <> because for them you can use

\defineshortcut [a][style=\overstrike]
\defineshortcut [b][style=\underline]

and <> do no appear again)

Second problem: ligs fail in some cases (if I \defineshortcut
[--][o][style\overstrike] then the following lines misses a few beats:

it seems -o:to work- well--does it?---really?

Third problem: math fails too:

$(a+b)/(a-c-d)_{a+b}$

with -- and ++ defined as shortcuts fail (not on parenthesis, if I make those
active too; depends on the fact that parenthesis are delimiters in math mode?)

(possibily this depends on shortcuts not being nestable); the latter is maybe
more important.

Giuseppe Bilotta

Using Microsoft products is like
having sex without condoms---but
much less pleasurable


             reply	other threads:[~2001-02-01 12:16 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-02-01 12:16 Giuseppe Bilotta [this message]
2001-02-02  9:07 ` Hans Hagen
2001-02-02 21:47   ` Giuseppe Bilotta
2001-02-04 17:52     ` Hans Hagen
2001-02-04 17:53     ` Hans Hagen
2001-02-02 23:18   ` Giuseppe Bilotta

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='000301c08c98$30ec8b20$a3ccfea9@nuovo' \
    --to=oblomov@freemail.it \
    /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).