Re: [NTG-context] \definemathfence commands

2017-09-10 Thread Hans Hagen

On 9/10/2017 12:09 PM, Otared Kavian wrote:

Hi everyone,

With the command \definemathfence it is possible to define for instance the 
following command

\definemathfence[duality][angle][command=yes,factor=auto]

so that $\duality{T,\phi}$ results in $\langle T,\phi \rangle$ and the \langle 
and \rangle are appropriately scaled when necessary.
How can one create a command called \bracparenth in order to get a left bracket 
on the left and a right parenthesis on the right, that is

$\bracparenth{a,b} = [a,b)$

and so that when necessary it scales automatically.

Below is the example for \duality.

Thanks in advance: OK

%%% begin mathfence-example.tex
\definemathfence[duality][angle][command=yes,factor=auto]
\definemathfence[parenth][parenthesis][command=yes,factor=auto]

\starttext

The action of $T$ on a smooth function $\phi$ is denoted by
\startformula
\duality{T,\phi}
\stopformula
while the scalar product of two functions $f$ and $g$ is denoted 
$\parenth{f|g}$.

\stoptext
%%% end mathfence-example.tex

you can set left and right as : left="27E6, right="27E7

Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

[NTG-context] \definemathfence commands

2017-09-10 Thread Otared Kavian
Hi everyone,

With the command \definemathfence it is possible to define for instance the 
following command

\definemathfence[duality][angle][command=yes,factor=auto]

so that $\duality{T,\phi}$ results in $\langle T,\phi \rangle$ and the \langle 
and \rangle are appropriately scaled when necessary.
How can one create a command called \bracparenth in order to get a left bracket 
on the left and a right parenthesis on the right, that is

$\bracparenth{a,b} = [a,b)$

and so that when necessary it scales automatically.

Below is the example for \duality.

Thanks in advance: OK

%%% begin mathfence-example.tex
\definemathfence[duality][angle][command=yes,factor=auto]
\definemathfence[parenth][parenthesis][command=yes,factor=auto]

\starttext

The action of $T$ on a smooth function $\phi$ is denoted by 
\startformula
\duality{T,\phi}
\stopformula
while the scalar product of two functions $f$ and $g$ is denoted 
$\parenth{f|g}$.

\stoptext
%%% end mathfence-example.tex
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___