4

The following code:

\documentclass{article}
\usepackage{nicematrix}

\begin{document}

\begin{NiceTabular}{r@{---}l} 1 & 2 \ 10 & 20 \ \Block{1-2}{100} \end{NiceTabular}

\end{document}

produces this table

enter image description here

The problem is that column separator @{---} is still present in multicolumn created with \Block which overlaps the content. Is it possible to remove it?

antshar
  • 4,238
  • 9
  • 30

1 Answers1

4

enter image description here

Try the legacy \multicolumn command instead

\documentclass{article}
\usepackage{nicematrix}

\begin{document}

\begin{NiceTabular}{r@{---}l}
    1 & 2 \\
    10 & 20 \\
    \multicolumn{2}{c}{100}
\end{NiceTabular}

\end{document}