I decided to write my completion of course work for my computer's science degree using LaTeX, contrary to university's popular choice, MS Word.
I had a great time venturing though this tool and I must say that I loved it, but I'm having some troubles adapting some of the formatting rules that my university uses, specially with captions.
Inserting figures is a piece of cake, but formatting the caption to look like the way my university wants it is not. Take a look at the picture below:
The figure shown here is centered to the text, and so is the first caption. I've achieve this with the caption package:
\usepackage[center,small]{caption}
The second caption must be left aligned with the first one, and it must not be present at the figures list index.
Even after some though search on the internet, I could not find anything related to creating a second caption (or subcaption
) right bellow the first one.
Actually, I don't think this kind of customization has ever been implemented by any package at all.
So what I want to know is: "What's the best way to achieve this specific caption formatting?".
I have another doubt related to customizing the figure's list index at the begging of my paper. I'm using these two commands ...
% Creates an auxiliary command for the criation of the figures list
\newcommand{\figfillnum}[1]{%
{\hspace{1em}\normalfont\dotfill}\nobreak
\hb@xt@\@pnumwidth{\hfil\normalfont #1}{}\par}
% Changes the way that the figure's list is printed
\renewcommand*{\l@figure}[2]{
\leftskip 3cm
\rightskip 2cm
\parfillskip -\rightskip
\parindent 0cm
\@tempdima 2.0em
\advance\leftskip \@tempdima \null\nobreak\hskip -\leftskip
{Figure \normalfont #1}\nobreak \figfillnum{#2}}
... to create an output like this one:
Figure 1 Gauntlet ................................................... 1
What I need to do here is to add a dot after the number following the "Figure" text, like this:
Figure 1. Gauntlet ................................................... 1
I studied those two commands, and I realized that the second one (\l@figure
) is the one responsible for placing the "Figure" text, and that it's #1
argument represents this text: "1 \tab Gauntlet
".
Now, I don't know where #1
comes from, but what I need to do here is to place a dot
between those two words contained in the #1
argument.
Is this possible? How?
\documentclass
and the appropriate packages so that those trying to help don't have to recreate it.