Hello to everybody.
My question is: How can i put the caption of the tables and figures before the float itself??
Thanks
Carlos - Colombia
General ⇒ caption of the tables and figures
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
caption of the tables and figures
Just write the caption inside the float environment before the actual contents.
Note that typographically correct captions of figures are placed below and captions of tables are placed above.
Best regards
Thorsten¹
Code: Select all
\begin{figure}[!ht]
\centering
\caption{Dummy figure}\label{fig:dummy}
\rule{4cm}{3cm}
\end{figure}
\begin{table}[!ht]
\centering
\caption{Dummy table}\label{tab:dummy}
\begin{tabular}{ll}
...
\end{tabular}
\end{table}
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
Re: caption of the tables and figures
Jajajaj..thanks, that was easier than that i expect.
I also believe that the captions should be below the float, but the 'Norma Técnica Colombiana' (Colombian
technical standards) doesn't see that way.
Thanks again.
Carlos - Colombia
I also believe that the captions should be below the float, but the 'Norma Técnica Colombiana' (Colombian
technical standards) doesn't see that way.
Thanks again.
Carlos - Colombia
Re: caption of the tables and figures
I am brand new to the forum and quite new to LaTeX. I also have a question about table captions and thought I'd post the question in this existing thread.
How do I replace a colon with a period in the table heading?
The code below produces a table heading and caption that reads:
"TABLE A: This is my caption."
I want it to read:
"TABLE A. This is my caption."
Thank you for any help.
\documentclass[12pt]{article}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{graphicx}
\renewcommand{\tablename}{TABLE}
\renewcommand{\thetable}{\Alph{table}}
\begin{document}
\begin{table*}
\caption{This is my caption.}
\centering%
\begin{tabular} {l }
\hline
\\
Name \\ \hline
\\
Arnold \\ \hline
\end{tabular}
\end{table*}
\end{document}
How do I replace a colon with a period in the table heading?
The code below produces a table heading and caption that reads:
"TABLE A: This is my caption."
I want it to read:
"TABLE A. This is my caption."
Thank you for any help.
\documentclass[12pt]{article}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{graphicx}
\renewcommand{\tablename}{TABLE}
\renewcommand{\thetable}{\Alph{table}}
\begin{document}
\begin{table*}
\caption{This is my caption.}
\centering%
\begin{tabular} {l }
\hline
\\
Name \\ \hline
\\
Arnold \\ \hline
\end{tabular}
\end{table*}
\end{document}
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
caption of the tables and figures
Take a look at the caption package. It lets you customize captions of floats in many ways. Take the following example.
Other capabilities of this package are described in its documentation.
Best regards and welcome to the board
Thorsten¹
Code: Select all
\usepackage[font=small,labelfont=bf,labelsep=period]{caption}
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: caption of the tables and figures
Thank you! That was very helpful.