[OS X TeX] alignment of subfigures
Martin Costabel
costabel at wanadoo.fr
Tue Jun 10 05:22:11 EDT 2025
If you replace in your first pspicture line (3,3) by (9,9), i.e.
\begin{pspicture}[unit=3cm](0,0)(9,9)
you will get what you probably want. It seems the [unit=...] command is
taken into account only inside the pspicture, but I wish you good luck
in finding this documented.
On 10/06/2025 03:31, Nitecki, Zbigniew H. wrote:
> 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
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> ----------- 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