Graphics, Figures & Tablessubfig/subfloat problem

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
blstzus
Posts: 4
Joined: Tue Nov 16, 2010 2:21 am

subfig/subfloat problem

Post by blstzus »

Hi,

I'm Aiman. I'm using LyX/Latex in writing my thesis.

I have a problem with subfig/subfloat.
The thesis class of my university will automatically change the word 'Figure' in a figure caption to an uppercase 'FIGURE'.
Everything works well, until I started using subfloats for my figures. The word 'figure' will immediately changed to default ('Figure') instead of uppercase.

So, may I know what the problem is, and how can I solve that? I tried searching the web for the solution, but I'm unable to find any.

Thank you.

-Aiman-
Malaysia

p/s: We are currently at the early stage of promoting Latex/LyX to the students in our University. This is some of the issue that i am unable to answer, since I have the same problem ;)

Recommended reading 2024:

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

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

User avatar
Stefan Kottwitz
Site Admin
Posts: 10324
Joined: Mon Mar 10, 2008 9:44 pm

subfig/subfloat problem

Post by Stefan Kottwitz »

Hi Aiman,

you could try

Code: Select all

\renewcommand*{\figurename}{FIGURE}
or, if you're using babel:

Code: Select all

\addto\captionsenglish{\renewcommand*{\figurename}{FIGURE}}
Stefan
LaTeX.org admin
User avatar
sommerfee
Posts: 503
Joined: Mon Apr 09, 2007 4:20 pm

subfig/subfloat problem

Post by sommerfee »

The subfig package loads the caption package by default, and it seems the caption package is incompatible to the document class you use.

So give the option "caption=false" a try, e.g.:

Code: Select all

\usepackage[caption=false]{subfig}
(For more information about the "caption=false" option see documentation of the subfig package.)

HTH,
Axel
blstzus
Posts: 4
Joined: Tue Nov 16, 2010 2:21 am

Re: subfig/subfloat problem

Post by blstzus »

Hi again,

Sorry for the late reply.
Thank you for the comments. Combining both advice, it worked very well.
Thank you again.

-Aiman
Post Reply