2

in tabular environment, I would like to use \left. in one row but not in some another one. It results in items not verticaly aligned in the table column.

Here is the affected minimal example:

\begin{tabular}{ll}
    one & $85$ \\
    two & $\left.85\right\rbrace$ \\
\end{tabular}

looks like this, see the right column:

display sample

How to make those 85 numbers be aligned vertically?

Thanks

1
  • What's the reason for writing $\left.85\right\rbrace$ instead of $85\rbrace$?
    – Mico
    Commented Nov 30, 2021 at 14:13

3 Answers 3

3

You want to remove the \nulldelimiterspace:

\left.\kern-\nulldelimiterspace 85\right\}

On the other hand, I can't see what good the \left-\right pair is doing.

2
  • Thanks, the question was simplified, for completeness the real case I wanted to solve is having the \rbrace span multiple table rows. I found a solution here, but it introduces the space, when there are more rows around without the brace: tex.stackexchange.com/a/448123/257708 Commented Nov 30, 2021 at 17:36
  • @PavelBazika I added an answer with nicematrix that's very handy for such jobs.
    – egreg
    Commented Nov 30, 2021 at 17:50
6

Rather than using \right you could specify the size directly and avoid \left. entirely.

\documentclass{article}
\begin{document}
\begin{tabular}{ll}
    one & $85$ \\
    two & $85\big\}\Big\}\bigg\}\Bigg\}$ \\
\end{tabular}
\end{document}

enter image description here

3

The space of the null delimiter is set by \nulldelimiterspace:

\documentclass{article}
\begin{document}

\setlength{\nulldelimiterspace}{0pt}

\begin{tabular}{ll}
    one & $85$ \\
    two & $\left.85\right\rbrace$ \\
\end{tabular}

\end{document}

Output of the above code

You must log in to answer this question.

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