# Vertical space at the bottom of nested tabulars

I’m trying to make a macro which typeset a text "accross a vertical line", and I’m using a tabular for that :

documentclass{article}

begin{document}

makeatletter

[email protected]

[email protected][3]{parbox[c][#1][c]{#2}{makebox[#2][c]{#3}}}

[email protected]@[email protected][1]{%
settowidth{[email protected]}{$#1$}%
begin{tabular}{@{hspace{0pt}}[email protected]{hspace{0pt}}}%
rule{5pt}{8mm}\%
[email protected]{8mm}{[email protected]}{#1}\%
rule{5pt}{8mm}\%[-4pt]%
end{tabular}%
}

begin{tabular}{|c|c|}
hline
$1$ & $2$ \
hline
[email protected]@[email protected]{0} & 2 \
hline
end{tabular}

end{document}


There’s a tiny space at the bottom, which I think is related to arraystretch.

But if I set defarraystretch{0}, the first line is stretched (at the very worst, I could put a strut there), and if I try to uncomment the \[-4pt], the cells are not aligned vertically anymore.

TeX - LaTeX Asked on December 8, 2021

## Related Questions

### Use .sty in IguanaTex

1  Asked on May 20, 2021

### Genealogytree: “black” edges are not black

2  Asked on May 20, 2021 by astianthus-viminalis

### Deleting external/auxiliary files?

15  Asked on May 20, 2021 by mats

### How to create a comment in Latex?

1  Asked on May 20, 2021

### Different Behaviors Digesting csname xendcsname and Digesting x (expansion issue)

2  Asked on May 20, 2021

### Can one have year as bib labels for biblatex publist with plnumbered=false option?

1  Asked on May 20, 2021 by ss1789

### Adding speaker 1 and 2 in a titlepage (I think it’s simple but I don’t know how to do it)

1  Asked on May 19, 2021

### Package for chemistry assemblies

0  Asked on May 19, 2021

### Change header in bibliography – bibtex

1  Asked on May 19, 2021 by elidor00

### How can I add a zero line to a plot?

4  Asked on May 19, 2021

### Repeating paragraphs title after page break

0  Asked on May 19, 2021

### How to include a PDF image into a PDFLaTeX document

3  Asked on May 19, 2021 by pavani

### Incorporate .html plots

0  Asked on May 19, 2021

### Issue in title of frame during allowframebreaks

1  Asked on May 19, 2021 by math-man

### PGFPlots intersection segments wrong curve and endpoint

0  Asked on May 19, 2021

### Biblatex display references as Section also in toc

1  Asked on May 19, 2021

### Make node size independent of content?

1  Asked on May 19, 2021 by flawr

### Package hyperref Warning: Token not allowed in a PDF string (PDFDocEncoding): (hyperref) removing `-command’

0  Asked on May 19, 2021 by john-voight

### Texmaker does not edit pdf file

0  Asked on May 19, 2021 by dvtpetrosyan

### Show return symbol on listings line breaks

2  Asked on May 19, 2021