views:

498

answers:

4

I made a figure within my latex document using the subfigure package, containing three subfigures. The part where the subfigures are now automatically labelled (a), (b), (c) needs to be uppercase, though.

i.e. the result from the latex code in the finally rendered PDF is

(a) img1 (b) img2 (c) img3

but it needs to be

(A) img1 (B) img2 (C) img3

How can I set this?

The code looks something like this:

    \usepackage{subfigure}
[...]
    \begin{sidewaysfigure}[p]
        \centering
        \subfigure[image1]{
            \label{fig:img1}
            \includegraphics[scale=2]{figures/img1.png}
        }
        \subfigure[image2]{
            \label{fig:img2}
            \includegraphics[scale=2]{figures/img2.png}
        }
        \subfigure[image3]{
            \label{fig:img3}
            \includegraphics[scale=2]{figures/img3.png}
        }
        \caption[my images]{\textbf{ My images} I am referring to (A), (B) and (C) respectively.}\label{fig:imgs}\end{sidewaysfigure}
A: 

To force capital letters, put the offending character in curly brackets.

\caption[my images]{\textbf{ My images} I am referring to ({A}), ({B}) and ({C}) respectively.}\label{fig:imgs}\end{sidewaysfigure}
darlinton
The text in the caption is uppercase anyway.The problem is that the automatically generated (=atuomatically generated figure caption by "subfigure" package) text in the figure caption is lowercase. The automaticcaly generated text needs to be made uppercase. The text which I type is fine as it is.
gojira
OK. just try to put the miss-generated-case letters inside curly brackets, as in the example. it was i meant to say.
darlinton
This is obviously impossible as the generated lowercase letters only show up in the finally generated PDF, not the latex sourcecode which I have also quoted. They are *generated* letters after all. Thanks for trying to help but I don't think you have any idea about what you are talking about.
gojira
@gojira: No, he has no idea what **you** are talking about. Who do you think is to blame for that?
Svante
+1  A: 

I didn't try this, but putting

\renewcommand{\thesubfigure}{(\Alph{subfigure})}

in your preamble should do it.

AVB
A: 

i have the same problem. How can i label the subfigures in upper case as (A), (B) and (C) instead of (a), (b) and (c). Can some one suggest me the solution? Below are the lines i use:

\begin{figure}[H]

\centering

\begin{tabular}{c}

\subfloat[][]{\label{fig:figure1a}

\includegraphics[width=0.8\textwidth]{Figure1A}}\

\subfloat[][]{\label{fig:figure1b}

\includegraphics[width=0.8\textwidth]{figure1B}}\

\subfloat[][]{\label{fig:figure1c}

\includegraphics[width=0.8\textwidth]{figure1C}}

\end{tabular}

See my answer to this above or below.
Ramashalanka
A: 

In answer to the new question within an answer by salmaaries, here is a tested, working version using the suggestion from AVB:

\documentclass{article}
\usepackage{graphicx}
\usepackage{subfig}
\renewcommand{\thesubfigure}{\Alph{subfigure}}
\begin{document}
    \begin{figure}[H]
        \centering
        \begin{tabular}{c}
            \subfloat[First caption]{\label{fig:figure1a}}
             \includegraphics[width=0.8\textwidth]{Figure1A}\\
             \subfloat[Second caption]{\label{fig:figure1b}}
             \includegraphics[width=0.8\textwidth]{figure1B}\\
             \subfloat[Third caption]{\label{fig:figure1c}}
            \includegraphics[width=0.8\textwidth]{figure1C}
        \end{tabular} 
    \end{figure}
\end{document}
Ramashalanka