The command \DeclarePairedDelimiter (from the mathtools package) allows to use the delimiter size commands \big,\Big,\bigg,\Bigg, and allows to define custom paired delimiters. For example, the macro\DeclarePairedDelimiter{\Paren}{\lparen}{\rparen} (which uses the mathtools commands \lparen and \rparen) allows to write expressions like \Paren[\Bigg]{x}, whose output is the letter "x" enclosed by the biggest parentheses (not a very interesting example of "custom" paired delimiters, of course).
However, sometimes one might want to invoke the custom opening and closing delimiters with independent commands: for example, I prefer this whenever the content between the delimiters is too long, like
\customleftdelimiter A very long math expression \customrightdelimiter
instead of
\customdelimiter{A very long long math expression}
In the mathtools user manual (version 2022/06/29), p. 28, one reads:
Note 2: If you want to define your own manual scaler macros, it is important that you besides
\fooalso define\fooland\foor. When a scaler is specified, in say\abs[\big]{〈arg〉}, we actually use \bigl and\bigr.
The problem is that no instructions are given to do this. Perhaps a DeclareOpeningDelimiter command exists, but it is not described in the mathtools documentation.
Question
How to define the \fool and \foor commands, in the spirit of the mathtools package?
Note: This is a rephrasing of a previous question I asked, which I deleted because it was mixed with another issue (I will ask a separate question about that).


\abs[\big]is\bigl | A very long long math expression \bigr |is that what you are looking for? – David Carlisle Mar 25 '23 at 18:52