# Double vertical spacing : how to fix this?

Consider the following :

\documentclass[12pt]{report}
\usepackage{amsmath, amssymb, amsthm}
\usepackage{lipsum}

\usepackage{tikz}
\newcommand*\squared[1]{\tikz[baseline=(char.base)]{\node[shape=rectangle, draw, inner color = white, drop shadow = {opaque, black}, inner sep=3pt, text justified] (char) {#1};}}

\newtheoremstyle{exercise}
{\topsep}
{\topsep}
{\hangindent=2em}
{}
{}
{}
{.8em}
{\squared{\thmnumber{#2}}}

\theoremstyle{exercise}
\newtheorem{exercise}{}

\renewcommand{\arraystretch}{1.75}
\usepackage{tabularx}

\begin{document}

\begin{exercise}
\begin{tabularx}{\textwidth}[t]{r @{\hskip .4em} X}
a) & This is a test. \\
b) & I say
$$\pi \approx 3.14.$$ \\
c) & Do you agree?
\end{tabularx}
\end{exercise}

\end{document}


It seems like the fact that b) finishes with math mode adds extra vertical spacing before c). But I would like the spacing to be uniform. That is, I want the same vertical space before b) and before c). How to do it ?

• off topic: don't use . Use  instead. Jul 28 '14 at 0:32
• @Sigur Why ? I've always used  and it has never done anything bad up to this date. Jul 28 '14 at 0:33
• Jul 28 '14 at 0:36
}\\
c) & Do you agree?
\end{tabularx}
\end{exercise}
\begin{exercise}
\begin{minipage}[t]{0.928\linewidth}
\begin{enumerate}[label = \alph*),leftmargin=*,topsep=0pt,partopsep=0pt]
\item This is a test.
\item I say
$π\approx 3.14.$
\item Do you agree?
\end{enumerate}
\end{minipage}%
\end{exercise}
\end{document}

• So simple and clear. Jul 28 '14 at 0:47
• @HarishKumar But then the spacing before the math mode will be that of the array, which may differ from other parts of the text not in an array ? Jul 28 '14 at 0:53
• @Amateur True, but you want same spacing. As a remedy, try enclosing the equation inside a \parbox and use $...$
– user11232
Jul 28 '14 at 1:27
• @HarishKumar Thanks for the idea. I've also tried to use a list enumerate, as you suggested. But the \hangindent won't work on the list. Is that why you say "after some modifications to the exercise environment" ? Jul 28 '14 at 1:29