Hi,
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
Graphics, Figures & Tables ⇒ vertical lines
NEW: TikZ book now 40% off at Amazon.com for a short time.

- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
vertical lines
Please, always post a full example. It is recommendable to abstain from vertical lines for better legibility of tables. Apart from that I have no problem with your code.
Best regards and welcome to the board
Thorsten
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
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Re: vertical lines
Thank you.
But for me, it does not work...
Is there another way to set the vertical lines?
But for me, it does not work...
Is there another way to set the vertical lines?
vertical lines
"It does not work" is not a helpful reply. In what way doesn't it work? What happens? Do you get errors? Do you not get errors, but the lines don't show up? Does it matter what viewer you use, or compilation method?
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".
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".