Re: [mathtools] DeclarePairedDelimiter does not apply desired spacing (minimal example)
- From: Morten Høgholm <morten.hoegholm@xxxxxxxxx>
- Date: Tue, 31 Jan 2006 05:11:13 +0100
On Mon, 30 Jan 2006 20:57:11 +0100, Erik Quaeghebeur <equaeghe@xxxxxxxxxxxxxx> wrote:
I would like to be able to use symbols that are usually used as opening/closing delimiters as closing/opening symbols. I expected to be able to do this with `\DeclarePairedDelimiter' from the `mathtools' package: its syntax suggests one can declare specific opening and closing symbols. It seems however that `\DeclarePairedDelimter' does not give the desired spacing.
Try this in the preamble:
\MHInternalSyntaxOn
\renewcommand*\DeclarePairedDelimiter[3]{%
\@ifdefinable#1{
\@namedef{MT_delim_\MH_cs_to_str:N #1 _star:}##1{\left#2 ##1 \right #3}%
\@xp\@xp\@xp\newcommand
\@xp\csname MT_delim_\MH_cs_to_str:N #1 _nostar:\endcsname[2][\\@gobble]
{
\mathopen{\@nameuse {\MH_cs_to_str:N ##1 l} #2} ##2
\mathclose{\@nameuse {\MH_cs_to_str:N ##1 r} #3}
}
\newcommand#1{
\@ifstar
{\@nameuse{MT_delim_\MH_cs_to_str:N #1 _star:}}
{\@nameuse{MT_delim_\MH_cs_to_str:N #1 _nostar:}}
}
}
}
\MHInternalSyntaxOff
-- Morten .
- Follow-Ups:
- References:
- [mathtools] \DeclarePairedDelimiter does not apply desired spacing (minimal example)
- From: Erik Quaeghebeur
- [mathtools] \DeclarePairedDelimiter does not apply desired spacing (minimal example)
- Prev by Date: Re: [mathtools] DeclarePairedDelimiter does not apply desired spacing (minimal example)
- Next by Date: TpX 1.3 beta released
- Previous by thread: Re: [mathtools] DeclarePairedDelimiter does not apply desired spacing (minimal example)
- Next by thread: Re: [mathtools] DeclarePairedDelimiter does not apply desired spacing (minimal example)
- Index(es):