Graphics, Figures & Tables ⇒ Align name of tables and Figures
Align name of tables and Figures
This problem is apparently very simple to solve, but happens that I don't know exactly how solve it.
I want to align the names of tables always to the left side, still leaving the table at the center. How can I do that?
Thanks a lot in advance,
Tiago
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
Align name of tables and Figures
Code: Select all
\begin{table}
\begin{center}
\begin{tabular}{¦l¦l¦l¦}
column 1
& column 2
& column 3
\end{tabular}
\end{center}
\end{table}
Hope this helps.
Cheers
Align name of tables and Figures
tdcpina, I think you need to look a little on the caption package: You can find the documentation here: http://www.dd.chalmers.se/latex/Docs/PDF/caption.pdf
The package option nooneline should do the trick, even though this will do the change to other floats too.
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Align name of tables and Figures
The center environment should be replaced by the \centering command and vertical lines should be avoided in tables to improve legibility.fatra2 wrote:The fact of putting "¦l¦l¦l¦" will produce a table of three columns. The table is in the center environment, but the content of the cells will be left justified (due to l). The ¦ will put a column marker between each column.
When referring to a package documentation, you should always use its entry on CTAN because there usually is the current version available. Your link leads to an outdated manual.Bozack wrote:[...] tdcpina, I think you need to look a little on the caption package: You can find the documentation here: http://www.dd.chalmers.se/latex/Docs/PDF/caption.pdf [...]
The current version of the caption package lets you setup the caption of certain floats so that it is always aligned to the left regardless of its width.tdcpina wrote:[...] I want to align the names of tables always to the left side, still leaving the table at the center. How can I do that? [...]
Code: Select all
\usepackage[font=small,labelfont=bf,tableposition=top]{caption}
\captionsetup[table]{singlelinecheck=false}
Best regards
Thorsten
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Align name of tables and Figures
Sorry for that - I just google'd itlocalghost wrote:Your link leads to an outdated manual.

I'll link to CTAN next time
