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?

1 Answer 1

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}

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .