3

I read the similar question here, but I cannot manage to adjust the spacing correctly.

Following the answers in the linked question, I wrote this:

\documentclass[a4paper]{article}
\usepackage{float}

\newcommand{\bmin}{\textbf{--}}
\newcommand{\D}{\Delta}

\begin{document}
    \begin{table}[H]
    \parbox{.45\linewidth}{%
    \centering
    \begin{tabular}{c l r}
        & \textbf{Risultato operativo lordo (EBIT)} & \textbf{480}\\
        \bmin{} & Oneri straordinari/finanziari & 80\\
        \midrule
        = & \textbf{Risultato ante imposte (RAI)} & \textbf{400}\\
        \bmin{} & Imposte & 120\\
        \midrule
        = & \textbf{Utile netto} & \textbf{280}\\
    \end{tabular}
    }
    \hfill
    \parbox{.45\linewidth}{%
    \centering
    \begin{tabular}{c l r}
        & \textbf{\D Patrimonio netto} & \textbf{100}\\
        \bmin{} & Utile netto & 280\\
        \\
        \\
        \midrule
        = & \textbf{Flusso di cassa per azionisti} & \textbf{-180}\\
    \end{tabular}
    }
\end{table}
\end{document}

What I obtain is this: Tables

As you can see they are misaligned: I'd like the rows to be completely aligned (above all the last midrule).

  • Do one table. – egreg May 8 '15 at 21:00
  • @egreg I thought about that, but then the rules are joined. I'd like to avoid that. – rubik May 8 '15 at 21:02
3

Just use one table with a mock column in the middle:

\documentclass[a4paper]{article}
\usepackage[margin=1cm]{geometry}
\usepackage{booktabs}

\newcommand{\bmin}{\textbf{--}}
\newcommand{\D}{\ensuremath{\Delta}}

\begin{document}
\begin{tabular}{c l r c c l r}
& \textbf{Risultato operativo lordo (EBIT)} & \textbf{480} &&
& \textbf{\D Patrimonio netto} & \textbf{100}\\
\bmin{} & Oneri straordinari/finanziari & 80 &&
\bmin{} & Utile netto & 280\\
\cmidrule{1-3}
= & \textbf{Risultato ante imposte (RAI)} & \textbf{400}\\
\bmin{} & Imposte & 120\\
\cmidrule{1-3}\cmidrule{5-7}
= & \textbf{Utile netto} & \textbf{280} &&
= & \textbf{Flusso di cassa per azionisti} & \boldmath$-180$\\
\end{tabular}
\end{document}

enter image description here

  • Ahh thanks! I didn't know about \cmidrule! – rubik May 8 '15 at 21:13

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.