[OS X TeX] alignment of subfigures

Herbert Voss Herbert.Voss at fu-berlin.de
Tue Jun 10 05:53:31 EDT 2025



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







More information about the MacOSX-TeX mailing list