Search found 3 matches

by trashus
Tue Oct 07, 2008 3:55 am
Forum: General
Topic: subfigure numbering using figurewithin in caption package
Replies: 1
Views: 3910

subfigure numbering using figurewithin in caption package

I am trying to use the caption and subcaption packages to label subfigures, and I am having problems with the numbering (perhaps I should say "lettering") of the subfigures when I use the figurewithin=section option.

When I load the caption packages this way:
\usepackage[font=small,labelfont={bf ...
by trashus
Tue Sep 30, 2008 12:39 am
Forum: General
Topic: how to use numberwithin with listings package?
Replies: 5
Views: 18422

how to use numberwithin with listings package?

Thanks for the quick responses Stefan_K and localghost!

I got everything working when \numberwithin{lstlisting}{section} is called after \begin{document}, but I didn't like having anything other than the document itself after \begin{document}, so I came up with a quick (sloppy) fix for ...
by trashus
Mon Sep 29, 2008 10:33 pm
Forum: General
Topic: how to use numberwithin with listings package?
Replies: 5
Views: 18422

how to use numberwithin with listings package?

I am composing a large document with many source code listings using the listings package, i.e.
\usepackage{listings}
and I want the listings to be numbered with their section numbers (i.e. Listing 2.5 is the 5th listing in Section 2). I did this for equations with
\numberwithin{equation}{section ...