Graphics, Figures & TablesRoman numbering in Table caption

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
dmuthu_cse
Posts: 97
Joined: Fri Sep 04, 2009 4:56 pm

Roman numbering in Table caption

Post by dmuthu_cse »

Hello all,

I am facing problem in generating my table caption in the following format. I think that caption package is useful for that, but i couldn't get what actually i want.

I want the table caption to look like

TABLE III ROLLED STEEL UNEQUAL ANGLES

But it appears as

Table 1.3 ROLLED STEEL UNEQUAL ANGLES
I am using this code :

Code: Select all

\usepackage[font=small,format=plain,labelfont=bf,up,labelsep=space]{caption}
Let me know your suggestions and ideas. I would be grateful if you can give me an example code for the format.

Thank you in anticipation.

Regards,
Muthu ;)

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

sommerfee
Posts: 503
Joined: Mon Apr 09, 2007 4:20 pm

Roman numbering in Table caption

Post by sommerfee »

dmuthu_cse wrote:I would be grateful if you can give me an example code for the format.
Here it comes:

Code: Select all

\documentclass{book}
\usepackage[font=small,format=plain,labelfont={bf,up},labelsep=space]{caption}

% Change "Table" to "TABLE" in tables, but leave \autoref intact
\DeclareCaptionLabelFormat{table}{TABLE~#2}
\captionsetup[table]{labelformat=table}

% Change the numbering scheme from "1.3" to "III"
\captionsetup{tablewithin=none}
\renewcommand\thetable{\Roman{table}}

\begin{document}
\chapter{A chapter}
\begin{table}
\caption{A table}
\end{table}

\end{document}
HTH,
Axel
dmuthu_cse
Posts: 97
Joined: Fri Sep 04, 2009 4:56 pm

Re: Roman numbering in Table caption

Post by dmuthu_cse »

Hello Axel,

Thanks for your quick reply.. It is working fine.

Thanks again for sharing the code..

Regards,
Muthu
Post Reply