Graphics, Figures & Tables ⇒ vertical lines
vertical lines
I want to make a table with vertical lines to separate the columns so i do:
\begin{tabular}{|l|c|}
aaa & aaa \\
\hline
bbb & bbb \\
\hline
\end{tabular}
But it does not work, the vertical lines are not printed!
Does anyone has an idea why??
thanks
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
vertical lines
Code: Select all
\documentclass{article}
\begin{document}
\begin{tabular}{|l|c|}\hline
aaa & aaa \\ \hline
bbb & bbb \\ \hline
\end{tabular}
\end{document}
Best regards and welcome to the board
Thorsten
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Re: vertical lines
But for me, it does not work...
Is there another way to set the vertical lines?
vertical lines
Does it not even work when you process the simple document Thorsten listed, or does it only not work in your larger document? If the former, then tell us what TeX distribution you're using, what viewer and what compilation method, and post the resulting log file as an attachment. If the latter, then do as you have been instructed, and create a minimal working example that will allow us to recreate the problem. No one can diagnose what they cannot duplicate.
I also suggest reading "How to Ask Questions the Smart Way".