On 2/19/2013 8:19 PM, Aditya Mahajan wrote:
On Tue, 19 Feb 2013, Hans Hagen wrote:

This is experimental in upcoming beta:

\starttext

\definemathfence [fancybracket] [bracket] [command=yes,color=blue]

Some feature requests:

1. Can we choose asymmetric fences, for example bra and ket notation in
quantum physics:

\bra{x} = \lvert x \rangle
\ket{x} = \langle x \rvert

by default we have this defined

\definemathfence [parenthesis] [\c!left="0028,\c!right="0029]
\definemathfence [bracket]     [\c!left="005B,\c!right="005D]
\definemathfence [braces]      [\c!left="007B,\c!right="007D]
\definemathfence [bar]         [\c!left="007C,\c!right="007C]
\definemathfence [doublebar]   [\c!left="2016,\c!right="2016]

to which I'll add:

\definemathfence [angle]       [\c!left="003C,\c!right="003E]

so, you can define

\definemathfence [bra]   [left="007C,right="003E,command=yes]
\definemathfence [ket]   [left="003C,right="007C,command=yes]

(the command=yes defines the command)

\bra{x} = \lvert x \rangle

2. Add scaling so that

\fancybracket{...} = \left\{ ... \right\}

is already there

3. Add mathstyle key (I think that we need to slowly add this to all
math comamnds)

mathstyle=text|display|script|scriptscript|cramped

ok, later as we probably need some adaptive relative mechanism .. basics already there

the auto matching code will also be redone

Hans

--

-----------------------------------------------------------------
                                          Hans Hagen | PRAGMA ADE
              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
    tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
                                             | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to