Graphics, Figures & Tables ⇒ removing vertical lines in tables
-
- Posts: 7
- Joined: Wed Jan 28, 2009 11:25 am
removing vertical lines in tables
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Re: removing vertical lines in tables
Best regards and welcome to the board
Thorsten¹
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
-
- Posts: 7
- Joined: Wed Jan 28, 2009 11:25 am
removing vertical lines in tables
Code: Select all
\begin{tabular}{c c|c c c c|}\multicolumn{2}{c}{} & Piano & Trumpet & Flute & Viola\\\multicolumn{2}{c}{}& \textbf{pno} & \textbf{tpt} & \textbf{flt} & \textbf{vla}\\\cline{3-6}Piano & \textbf{pno} & 0 & 0.5 & 0.25 & 0.75\\Trumpet & \textbf{tpt} & 0 & 0 & 0.25 & 0.5\\Flute & \textbf{flt} & 0 & 0 & 0 & 0.75\\Viola & \textbf{vla} & 0& 0 & 0 & 0\\\cline{3-6}\end{tabular}
removing vertical lines in tables
Code: Select all
\documentclass[a4paper]{article}\usepackage[T1]{fontenc}\usepackage[utf8]{inputenc}\begin{document}\begin{tabular}{c c|c c c c|}\multicolumn{2}{c}{} & Piano & Trumpet & Flute & \multicolumn{1}{c}{Viola}\\\multicolumn{2}{c}{}& \textbf{pno} & \textbf{tpt} & \textbf{flt} & \multicolumn{1}{c}{\textbf{vla}}\\\cline{3-6}Piano & \textbf{pno} & 0 & 0.5 & 0.25 & 0.75\\Trumpet & \textbf{tpt} & 0 & 0 & 0.25 & 0.5\\Flute & \textbf{flt} & 0 & 0 & 0 & 0.75\\Viola & \textbf{vla} & 0& 0 & 0 & 0\\\cline{3-6}\end{tabular}\end{document}
-
- Posts: 7
- Joined: Wed Jan 28, 2009 11:25 am
Re: removing vertical lines in tables
removing vertical lines in tables
- Ijon Tichy
- Posts: 640
- Joined: Mon Dec 24, 2018 10:12 am
removing vertical lines in tables
Package tocloft isn't used in the question nor the answers. Please do not badmouth packages without giving an explicit reason and without reference to the given question.kikicheng wrote:Please remove the command in the package like this uspackage{tocloft}, everything will be normal. I did like this when I face this problem. I hope it helps.
