Graphics, Figures & Tables ⇒ How to aline the numbering of my tables to the left
How to aline the numbering of my tables to the left
I'm having a little truble whit my tables, I can't figure out how I aline the numbering of my tables and the tables them self to the left
i have tried the following code but whitout any luck
\begin{flushleft}
\begin{table}[!h]
\renewcommand\thetable{Buffer A}
\caption{}\label{bufa}
\begin{tabular}{|l|l|p{3.5cm}|l|l|}
\end{tabular}
\end{table}
\end{flushleft}
any ideas would be welcome.
Thank you in advance.
Kasper
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
How to aline the numbering of my tables to the left
Code: Select all
\documentclass[11pt,a4paper,english]{report}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{babel}
\usepackage[
font=small,
labelfont=bf,
singlelinecheck=false,
tableposition=top
]{caption}
\usepackage{blindtext}
\DeclareCaptionType[fileext=lob,placement=htb,within=chapter]{buffer}[Buffer][List of Buffers]
\begin{document}
\chapter{One}
\section{One}
\blindtext
\begin{buffer}[!ht]
\rule{6.4cm}{3.6cm}
\caption{Dummy buffer}\label{buf:dummy}
\end{buffer}
\blindtext
\end{document}
Best regards and welcome to the board
Thorsten
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Re: How to aline the numbering of my tables to the left
\DeclareCaptionType[fileext=lob,placement=htb,within=chapter]{buffer}[Buffer]
- that is responsible fore the change in lay out I have looked at the package pdf on page 27 but due to my restricted knowledge of LaTex I didn't understand the specificks of the code. so if you would be so kind as to tell me what the different tings in the {} and [] means I would be greatfull.
best regards Kasper
ps thanks fore the warm welcome.
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
How to aline the numbering of my tables to the left
Code: Select all
\usepackage[
font=small, % Smaller font for the whole caption text
labelfont=bf, % The label is bold
singlelinecheck=false, % No difference in justification between single-line and multi-line captions
tableposition=top % Formatting table captions
]{caption}
For details I recommend to take closer look at the caption manual. Take the time and browse a little bit.
For arguments to (new) commands you can keep the following in mind:
- mandatory arguments are given in curly braces ({…})
- optional arguments (shortly called options) are given in brackets ([…])
[1] View topic: LaTeX Resources for Beginners
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10