ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Comments on \defineshortcut
@ 2001-02-01 12:16 Giuseppe Bilotta
  2001-02-02  9:07 ` Hans Hagen
  0 siblings, 1 reply; 6+ messages in thread
From: Giuseppe Bilotta @ 2001-02-01 12:16 UTC (permalink / 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


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2001-02-04 17:53 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-02-01 12:16 Comments on \defineshortcut Giuseppe Bilotta
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

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).