[OS X TeX] alignment of subfigures
Nitecki, Zbigniew H.
Zbigniew.Nitecki at tufts.edu
Mon Jun 9 21:31:01 EDT 2025
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)
\psgrid[subgriddiv=3, gridlabels=0](0,0)(3,3)
\end{pspicture}
}\\
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\subfloat[Level $3$]{
\begin{pspicture}[unit=1cm](0,0)(9,9)
\psgrid[subgriddiv=3, gridlabels=0](0,0)(9,9)
\end{pspicture}
}
%
%%%%%%%%
%
\caption{Level $2$ and Level $3$,}
\label{fig}
\end{center}
\end{figure}
\end{document}
yields
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://email.esm.psu.edu/pipermail/macosx-tex/attachments/20250610/3f45a122/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: SFCTest.pdf
Type: application/pdf
Size: 7055 bytes
Desc: SFCTest.pdf
URL: <https://email.esm.psu.edu/pipermail/macosx-tex/attachments/20250610/3f45a122/attachment.pdf>
More information about the MacOSX-TeX
mailing list