Hi guys,
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
Graphics, Figures & Tables ⇒ Align name of tables and Figures
NEW: TikZ book now 40% off at Amazon.com for a short time.

Align name of tables and Figures
Something like this:
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.
Hope this helps.
Cheers
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
The first answer by fatra2 seems to be a little misunderstanding - I think tdcpina asked for how to align the name of the table to the left, not the contents of the table.
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.
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.
OS, LaTeX-system, editor: Arch Linux 64bit, TeXlive, Kile | Windows 10 Professional 64bit, MikTeX 4.9, TeXnicCenter 2.02 64bit
- 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
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
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

OS, LaTeX-system, editor: Arch Linux 64bit, TeXlive, Kile | Windows 10 Professional 64bit, MikTeX 4.9, TeXnicCenter 2.02 64bit