I wish to use two vertical bars to sandwich a whole object:
What I found is that
(Failure 1) if I use usual \mid or \rvert or |, it is too small.
(Failure 2) if I use usual \left| or \right|, it is too big (due to that the unequal sizes of the numerator and the denominator).
(Failure 3) if I use usual \left| or \right| on the numerator and the denominator separately, even though the size is correct, the the | is not connected. I wish to have | | sandwich from the outside. I wish to have the whole bar connected from the numerator to the denominator.
Here is my code:
\documentclass[aps]{revtex4}
\usepackage{amsmath,amssymb}
\begin{document}
$${\frac{ S }{ \overset{N}{\underset{{a=1}}{ \sum}} T_a } } $$
$$\left| {\frac{ S }{ \overset{N}{\underset{{a=1}}{ \sum}} T_a } } \right| $$
$$\lvert \mid | {\frac{ S }{ \overset{N}{\underset{{a=1}}{ \sum}} T_a } } | \mid \rvert$$
$${\frac{ \left| S \right| }{ \left| \overset{N}{\underset{{a=1}}{ \sum}} T_a \right| } }$$
\end{document}
Is there a better way to fix this problem? Many thanks. Comments are welcome.
\[
…\]
preferable to$$
?\delimitershortfall
. For instancemathmode.pdf