
subfigure[]{...} \end{subfigmatrix} \caption{Example.} \label{f:eg} \end{figure} the result would look similar to the following, [subfig] [subfig] (a) (b) [subfig] [subfig] (c) (d)

## 2 notes:

comments, bugs, fixes can be sent to w.l.kleb@larc.nasa.gov. what becomes of them is another story. ;)

each subfigure is placed within a minipage of the proper width to fit \(NC\) subfigures within the current float's \linewidth, accounting for \(2\times\)\tabcolsep's worth of space between each adjacent subfigure.

\linewidth is a fairly general length. it is equal to \textwidth for single-column formats, \columnwidth for multiple-column documents (and also single-column documents), or according to a \parbox or minipage environment.

if you are using the graphicx package, the subfigure widths are automatically set to the local \linewidth.

the separation between figures can be changed via the \sfmcolsep variable, e. g.,

``` \setlength{\sfmcolsep}{\hspace{0.2in}} to set a "hard" inter-column spacing as opposed to the default behavior of tying the inter-column spacing to the documents tabular column spacing (\tabcolsep}.

## 3 to do:
* transposed ordering: from top-to-bottom, then left-to-right.

Figure 1: Example.

## 4 history:

**25 Feb 1999**: Bil Kleb <w.l.kleb@larc.nasa.gov> [v1.0]

Edited for Arseneau-style release to ctan. Changed \sfm@colsep to a more user-tunable \sfmcolsep.
**27 Feb 1997**: Bil Kleb <w.l.kleb@larc.nasa.gov>

Minor changes.
**27 Feb 1997**: Steven Douglas Cochran <sdc+@cs.cmu.edu>

Created.
**24 Feb 1997**: Bil Kleb <w.l.kleb@larc.nasa.gov>

Posted question to news:comp.text.tex.

## 5 distribution:

this program can redistributed and/or modified under the terms of the LaTeX Project Public License Distributed from CTAN archives in directory macros/latex/base/lppl.txt; either version 1 of the License, or (at your option) any later version.