I would like to use pst-optic to create some figures in a A4 landscape page and use the full size of the paper.

I have a two lenses system that I would like to draw.

The code I wrote is the following :

    \rput(0,0){\lens[lensScale=1.5,yBottom=-5,yTop=5,XO=-4,focus=1.5,OA=-2.5,AB=2,lensGlass=false, lensWidth=0.05]}

My problems are the following:

  1. Whatever the size I enter in the pspicture command, I can't obtain the full drawing of the rays in the picture
  2. I can't change the size of the pspicture environment to occupy the full size of the page

Can someone explain to me how to fix this ? Best regards

1 Answer 1


use the optional argument showgrid ant the star version of pspicture. Then yiu can easily see what coordinates for pspicture are useful. By the way, I always use lualatex, then I get directly a pdf output and do not need auto-pst-pdf:

            lensGlass=false, lensWidth=0.05,xRight=8.5]}%

enter image description here

In the end you can set showgrid=false to remove the grid.

  • Thank you! I have an additional question: on the right of the picture we can see that the rays are cut before the place where they cross. I tried to increase the size of the pspicture and even there the rays don't cross. What do I miss ?
    – Eric Leroy
    Jan 19, 2023 at 11:44
  • 1
    For the second lens use \lens[..., xLeft=-8,xRight=8]
    – user187802
    Jan 19, 2023 at 13:10
  • now I have the superposition of the AB object of the second lens with the A'B' image of the first lens.
    – Eric Leroy
    Jan 22, 2023 at 9:34
  • I read the documentation of pst-optic but I didn't found the syntax for all the options used here. Do you know if there is a more complete documentation or a website ?
    – Eric Leroy
    Jan 22, 2023 at 16:00
  • page 4 in the tabular
    – user187802
    Jan 23, 2023 at 10:13

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .