[OS X TeX] alignment of subfigures

Djones9976 djones9976 at aol.com
Tue Jun 10 11:43:53 EDT 2025


 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?
Wayne Jones
    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
  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://email.esm.psu.edu/pipermail/macosx-tex/attachments/20250610/efc5af0c/attachment.htm>


More information about the MacOSX-TeX mailing list