11

I am using tabular to make simple table, I want to have double line on the sides. The problem is that the double-lines do not meet elegantly at the bottom-right corner:

badcorner

How can I make the double lines meet in a better what (e.g. forming an double ell shape)?

Other environments and packages are welcomed but tabular is preferred.

Minimal code:

\documentclass[]{article}
\usepackage{array}
\begin{document}
\begin{tabular}{c|c||}
1 & 2 \\
3 & 4 \\
\hline\hline
\end{tabular}
\end{document}
1
  • 3
    Vertical rules in tabular material are always ugly and distracting. Have a look at booktabs. This package gives you some useful macros and some hints on nice looking tables.
    – Johannes_B
    Dec 18, 2013 at 9:21

1 Answer 1

12

As mentioned in the comment by Johannes, vertical rules should be avoided. You should use the package booktabs to create nice tables.

However David Carlisle created the package hhline which supports such requests.

\documentclass[]{article}
\usepackage{array,hhline}
\begin{document}
\begin{tabular}{c|c||}
1 & 2 \\
3 & 4 \\
 \hhline{=:=:b|}
\end{tabular}
\end{document}

enter image description here

2
  • Thanks! :) :P :/ . Do you know why the lines are rendered with some irregularities (as if they were superimposed)?
    – alfC
    Dec 18, 2013 at 9:56
  • 4
    @alfC: Normally this is related to your viewer. Heiko Oberdiek explained this issue related to another package: tex.stackexchange.com/questions/124539/… Dec 18, 2013 at 9:58

You must log in to answer this question.

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