Graphics, Figures & TablesCaptions: Tab. >> Table & Fig. >> Figure

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
ChrisDanger
Posts: 13
Joined: Tue Dec 07, 2010 5:25 pm

Captions: Tab. >> Table & Fig. >> Figure

Post by ChrisDanger »

Hi All,

My table and figure captions start with "Tab. x.x" and "Fig. x.x" but I'd like them to read "Table x.x" and "Figure x.x" instead.

Thanks for the help.
Chris
Last edited by ChrisDanger on Wed Dec 08, 2010 11:38 am, edited 3 times in total.

Recommended reading 2024:

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

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

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Captions: Tab. >> Table & Fig. >> Figure

Post by localghost »

Somehow I can't comprehend the problem.

Code: Select all

\documentclass[11pt,a4paper]{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}

\begin{document}
  \begin{figure}[!ht]
    \centering
    \rule{6.4cm}{3.6cm}
    \caption{Dummy figure}\label{fig:dummy}
  \end{figure}

  \begin{table}[!ht]
    \centering
    \rule{6.4cm}{3.6cm}
    \caption{Dummy table}\label{tab:dummy}
  \end{table}
\end{document}

Best regards and welcome to the board
Thorsten
ChrisDanger
Posts: 13
Joined: Tue Dec 07, 2010 5:25 pm

Captions: Tab. >> Table & Fig. >> Figure

Post by ChrisDanger »

I'm using the documentclass "thesis" that came with MiKTeX 2.7, which seems to change the default behaviour of the caption environment to have abbreviated titles.

Code: Select all

\documentclass[12pt, oneside, a4paper]{thesis}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}

\begin{document}
  \begin{figure}[!ht]
    \centering
    \rule{6.4cm}{3.6cm}
    \caption{Dummy figure}\label{fig:dummy}
  \end{figure}

  \begin{table}[!ht]
    \centering
    \rule{6.4cm}{3.6cm}
    \caption{Dummy table}\label{tab:dummy}
  \end{table}
\end{document}
Apologies for the lack of clarity, and thanks for the welcome.
User avatar
frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

Captions: Tab. >> Table & Fig. >> Figure

Post by frabjous »

If it's the one located here, then it should work to put this in the preamble:

Code: Select all

\renewcommand{\figureshortname}{Figure}
\renewcommand{\tableshortname}{Table}
I did notice though that this class is quite old, and no longer distributed with TeXlive. I wonder if it's the best choice....
ChrisDanger
Posts: 13
Joined: Tue Dec 07, 2010 5:25 pm

Captions: Tab. >> Table & Fig. >> Figure

Post by ChrisDanger »

Thanks for that. It worked like a charm.
frabjous wrote:I did notice though that this class is quite old, and no longer distributed with TeXlive. I wonder if it's the best choice....
Is there a class that you would recommend as a better choice? I'm writing a masters dissertation for an engineering degree.

Thanks again,
Chris
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Captions: Tab. >> Table & Fig. >> Figure

Post by localghost »

ChrisDanger wrote:[…] Is there a class that you would recommend as a better choice? I'm writing a masters dissertation for an engineering degree. […]
The document class is not so important if you are not strictly bounded to formatting demands. Modern document classes like those from KOMA Script or the memoir class help a lot to format your document mainly regarding the typography. A package that does the layout especially for a thesis is the classicthesis package.

For the content of a document with engineering stuff there are several packages which help you in formatting equations or physical units, creating and including graphics and diagrams or setting up and filling the bibliography. But in this regard you should ask specific questions within another topic when the time has come.
ChrisDanger
Posts: 13
Joined: Tue Dec 07, 2010 5:25 pm

Re: Captions: Tab. >> Table & Fig. >> Figure

Post by ChrisDanger »

Cool. Thanks for the suggestions.
Post Reply