I want to remove all vertical space below an align environment, but inside a tabularx environment. I tried setting belowdisplayskip and belowdisplayshortskip to 0 (as suggested here), but while this removed some vertical space, the result still looks like this:
What can I do to remove the vertical space directly after the a+b=c equation? The above image has been obtained using the following code:
\documentclass{scrartcl}
\usepackage{amsmath}
\usepackage{tabularx}
\begin{document}
\begin{tabularx}{\linewidth}{|l|X|}
\hline
some & text
\setlength{\belowdisplayskip}{0pt}
\setlength{\belowdisplayshortskip}{0pt}
\begin{align*}
a + b = c
\end{align*}
\\
\hline
* & this row should be directly under the equation with no vertical space in between. \\
\hline
\end{tabularx}
\end{document}
Note that it works fine if...
- I simply remove the equation;
- there is another line of text after the equation in the same table cell;
- or the equation contains a
casesenvironment with at least two lines
... as can be seen in this image:



\setlength{\belowdisplayskip}{0pt}to-1em, instead of 0? – gilu May 23 '17 at 07:19casesenvironment). Ideally, I'd like a solution that works regardless of whether the equation contains cases / is followed by text or not. – vauge May 23 '17 at 07:25\newcommand{\minusspace}{\setlength{\belowdisplayskip}{-1em}\setlength{\belowdisplayshortskip}{0pt}} \newcommand{\nospace}{\setlength{\belowdisplayskip}{0em}\setlength{\belowdisplayshortskip}{0pt}}and call the one you need beforealign*. – gilu May 23 '17 at 07:31