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
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
- 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".