I have many nested \left( and \right) parentheses in my document and I'm trying to find a flexible way to make outer pairs larger.
Unfortunately, I cannot use \delimitershortfall recommended here. That made me try \vphantom.
Most of the time, \vphantom has zero width but when \left( and \right) are nested, it looks like \vphantom's width becomes non-zero:
\documentclass{article}
\begin{document}
\( \left( \vphantom{\Big|} \left( x \right) \right) \)
\( \left( \left( x \right) \vphantom{\Big|} \right) \)
\end{document}
Is there a way around it?
I tried to add \hspace{-0.17em} in order to compensate for the non-zero width of \vphantom above but it's probably not a good solution because \vphantom's behaviour appears to be inconsistent. For example, if you replace the inner pair with normal parentheses the problem disappears:
\documentclass{article}
\begin{document}
\( \left( \vphantom{\Big|} ( x ) \right) \)
\( \left( ( x ) \vphantom{\Big|} \right) \)
\end{document}

\big(and friends) over\left...\rightin the TeXbook. – Ruixi Zhang May 22 '20 at 03:18\bigland\bigr. Otherwise you could mess up spacing. (example,\big( - A \big)makes latex think you are substracting A from the left paren) – Max Xiong May 22 '20 at 12:57\big(and friends)”… – Ruixi Zhang May 26 '20 at 00:24