Responsive Navbar with Google Search
☰ Menu
🏠 Home
Python
📄 LaTeX
📊 GNUPlot
💬 Feedback
✉️ Contact
Creating Tables: Table Borders
Creating Tables
Table Create
Table Borders
Table Formatting
Table Borders: Program 1
\documentclass{article} \usepackage{array} \title{Table with Double Borders} \date{} \begin{document} \maketitle \begin{tabular}{||c||c||c||} \hline Column 1 & Column 2 & Column 3 \\ \hline A & B & C \\ \hline D & E & F \\ \hline \end{tabular} \end{document}
Run Code
Output 1
Table Borders: Program 2
\documentclass{article} \usepackage{array} \title{Table with No Vertical Borders} \date{} \begin{document} \maketitle \begin{tabular}{|c c c|} \hline Column 1 & Column 2 & Column 3 \\ \hline A & B & C \\ D & E & F \\ \hline \end{tabular} \end{document}
Run Code
Output 2
Table Borders: Program 3
\documentclass{article} \usepackage{array} \title{Table with Thick Borders} \date{} \begin{document} \maketitle \setlength{\arrayrulewidth}{2pt} \begin{tabular}{|c|c|c|} \hline Column 1 & Column 2 & Column 3 \\ \hline A & B & C \\ \hline D & E & F \\ \hline \end{tabular} \end{document}
Run Code
Output 3
Table Borders: Program 4
\documentclass{article} \usepackage{array} \title{Table with Mixed Thin and Thick Borders} \date{} \begin{document} \maketitle \setlength{\arrayrulewidth}{0.5pt} \begin{tabular}{|c|c|c|} \hline Column 1 & Column 2 & Column 3 \\ \hline \setlength{\arrayrulewidth}{2pt} A & B & C \\ \hline \setlength{\arrayrulewidth}{0.5pt} D & E & F \\ \hline \end{tabular} \end{document}
Run Code
Output 4
Table Borders: Program 5
\documentclass{article} \usepackage{arydshln} \title{Table with Dashed Borders} \date{} \begin{document} \maketitle \begin{tabular}{:c:|c|:c:} \hdashline Column 1 & Column 2 & Column 3 \\ \hdashline A & B & C \\ \hdashline D & E & F \\ \hdashline \end{tabular} \end{document}
Run Code
Output 5
Table Borders: Program 6
\documentclass{article} \usepackage{array} \title{Table with Double Horizontal Header Line} \date{} \begin{document} \maketitle \begin{tabular}{|c|c|c|c|} \hline\hline Column 1 & Column 2 & Column 3 \\ \hline A & B & C & CC \\ \hline D & E & F & FF \\ \hline G & H & I & II \\ \hline\hline \end{tabular} \end{document}
Run Code
Output 6