I'm trying to replicate the folowing table in LaTeX with booktabs:
However, I have trouble making the vertical lines. Here's what I have so far:
\begin{tabularx}{\textwidth}{l | c c c c c c c c c c c c}
\toprule
& \ce{NH4^{+}} & \ce{Na+} & \ce{K+} & \ce{Mg^{2+}} & \ce{Zn^{2+}} & \ce{Cu^{2+}} & \ce{Fe^{2+}} & \ce{Fe^{3+}} & \ce{Ca^{2+}} & \ce{Ba^{2+}} & \ce{Pb^{2+}} & \ce{Ag^{+}} \\
\midrule
\ce{NO3^{-}} & L & L & L & L & L & L & L & L & L & L & L & L \\ \cmidrule(r){12-13}
\ce{Cl-} & L & L & L & L & L & L & L & L & L & L & T & T \\
\ce{Br-} & L & L & L & L & L & L & L & L & L & L & T & T \\
\ce{I-} & L & L & L & L & L & L & L & L & L & L & T & T \\
\bottomrule
\end{tabularx}
Which gives this:
There's a small gap highlighted with the red circle, which I don't want to have.
How do I a) make vertical lines in the table such as in the original and b) prevent the small gap due to to the "local" horizontal lines, preferebly using booktabs
.
\cline
rather than\cmidrule