1

I place two blocks side by side, each with a heading and table using minipage. One heading is underlined. This creates additional vertical spacing, so that the tables are at different heights.

I would like to align them.

According to the documentation, the thickness of the line is stored in \ULthickness; if I add this vertical spacing, the tables are still not at the same height.

What can I do?

MWE

\documentclass{scrartcl}
\usepackage{ulem}

\begin{document}
\begin{minipage}[t][][b]{0.475\linewidth}
    \subsection*{\uwave{Section 1}}
    
    \hfill\begin{tabular}{r|lllll}
\textbf{line 1}                 & 15 & 14 & 13 & 12 & 11 \\ \hline
\textbf{line 2} & 29 & 27 & 26 & 24 & 23
\end{tabular}
\end{minipage}\hfill
\begin{minipage}[t][][b]{0.475\linewidth}
    \subsection*{Section 2}
    \vspace{\ULthickness}
    \begin{tabular}{r|lllll}
\textbf{line 1}                 & 15 & 14 & 13 & 12 & 11 \\ \hline
\textbf{line 2} & 29 & 27 & 26 & 24 & 23
\end{tabular}
\end{minipage}
\end{document}

1 Answer 1

3

you can give both headings the same depth

enter image description here

\documentclass{scrartcl}
\usepackage{ulem}

\begin{document}
\begin{minipage}[t][][b]{0.475\linewidth}
    \subsection*{\strut\uwave{Section 1}}
    
    \hfill\begin{tabular}{r|lllll}
\textbf{line 1}                 & 15 & 14 & 13 & 12 & 11 \\ \hline
\textbf{line 2} & 29 & 27 & 26 & 24 & 23
\end{tabular}
\end{minipage}\hfill
\begin{minipage}[t][][b]{0.475\linewidth}
    \subsection*{\strut Section 2}

    \begin{tabular}{r|lllll}
\textbf{line 1}                 & 15 & 14 & 13 & 12 & 11 \\ \hline
\textbf{line 2} & 29 & 27 & 26 & 24 & 23
\end{tabular}
\end{minipage}
\end{document}

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.