[OS X TeX] alignment of subfigures

Herbert Voss Herbert.Voss at fu-berlin.de
Tue Jun 10 12:08:31 EDT 2025



Am 10.06.25 um 17:43 schrieb Djones9976 via MacOSX-TeX:
> I ran the program using lualatex and got one pdf document with no 
> problems.  Did I misunderstand?  I thought the subfig package would 
> give me two documents?

The sugfig package does the counting of the subfigures, in this
case (a), (b), ...

 From the documentation:

[...] LaTeX package ‘subfig’, which provides support for the
inclusion of small, ‘sub’, figures and tables.


Herbert


> On Tuesday, June 10, 2025 at 04:53:44 AM CDT, Herbert Voss 
> <herbert.voss at fu-berlin.de> wrote:
>
>
>
>
> Am 10.06.25 um 03:31 schrieb Nitecki, Zbigniew H.:
> > I’m clearly misunderstanding some of the parameters  for floats,
> > pspicture, and \psgrid.
> >
> > The code below yields two grids of the same size (with different
> > subdivisions).
> > Should I have set the two pspicture parameters differently?
> > From what I understand,
> > the two pspictures are both 9cm x 9cm boxes, so why are they aligned
> > differently?
> >
> > % !TEX TS-program = latex
> > \documentclass{article}
> >
> > \usepackage{pstricks}
> > \usepackage{subfig}
> >
> > \begin{document}
> >
> > %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
> >
> > \begin{figure}
> > \begin{center}
> > %
> > \subfloat[Level $2$]{
> > \begin{pspicture}[unit=3cm](0,0)(3,3)
>
> That setting is too late for (3,3). Use
>
> \subfloat[Level $2$]{%
>     \psset{unit=3cm}
>     \begin{pspicture}(0,0)(3,3)
>         \psgrid[subgriddiv=3, gridlabels=0](0,0)(3,3)
>     \end{pspicture}
> }
>
> You can also run the document with lualatex, then you'll get directly
> the PDF.
>
> Herbert
>
>
>
>
>
>
> ----------- Please Consult the Following Before Posting -----------
> TeX FAQ: https://www.tug.org/mactex/faq/index.html
> List Reminders and Etiquette: https://sites.esm.psu.edu/~gray/TeX/
> List Archives: http://dir.gmane.org/gmane.comp.tex.macosx
> https://email.esm.psu.edu/pipermail/macosx-tex/
> TeX on Mac OS X Website: https://www.tug.org/mactex/index.html
> List Info: https://email.esm.psu.edu/mailman/listinfo/macosx-tex
>
> ----------- Please Consult the Following Before Posting -----------
> TeX FAQ: https://www.tug.org/mactex/faq/index.html
> List Reminders and Etiquette: https://sites.esm.psu.edu/~gray/TeX/
> List Archives: http://dir.gmane.org/gmane.comp.tex.macosx
>                  https://email.esm.psu.edu/pipermail/macosx-tex/
> TeX on Mac OS X Website: https://www.tug.org/mactex/index.html
> List Info: https://email.esm.psu.edu/mailman/listinfo/macosx-tex



More information about the MacOSX-TeX mailing list