I have a problem regarding the space added by \right..
I have read this answer regarding the topic, where @egreg proposes a macro that deletes this space. However, when using this in my own documents the space is still added. I have written a MWE where I set the value of \nulldelimiterspace to 10pt for clarity. The MWE is:
\documentclass{minimal}
\usepackage{amsmath}
\newcommand{\zerodel}{.\kern-\nulldelimiterspace}
\begin{document}
\setlength{\nulldelimiterspace}{10pt}
I$\left(\delta t;\delta t;\right.\delta t;\delta t$I
I$\left(\delta t;\delta t;\right\zerodel\delta t;\delta t$I
I$\left(\delta t;\delta t;\delta t;\delta t\right.$I
I$(\delta t;\delta t;\delta t;\delta t$I
\end{document}
Which results in:
You can clearly see the large 10pt space after the second semicolon (line 1), a smaller space (line 2) where the \zerodel was used, a space after the math (line 3) where \right. was moved after the math block and no space added at all where neither \left nor \right where used (line 4).
The look of line 4 is what I want, but I want to have the \left/\right autospacing.
Why is \zerodel not working and how can I fix this?
Thanks!



\right\zerodel, or it won't act as punctuation. However, the "inner" atom built by\leftand\rightstill will give an additional space. Use instead\mleftand\mrightfrom themleftrightpackage. – egreg Jan 22 at 16:51mleftrightfixed the problem. If you add this as an answer I'll accept it. Is there any reason for using\zerodelwhen usingmleftrightat the same time? – elemakil Jan 22 at 16:59