Closed u-fischer closed 2 years ago
The most robust approach is perhaps replicating all existing paper format entries in config.ps
with swapped paper width and height values. Otherwise, dvips
automatically inserts the DSC comment %%Orientation: Landscape
at the top of the PS output when it finds a matching Portrait paper format entry in config.ps
. This cannot be undone by adding clever PostScript, it seems. Eventually, the DSC comment %%Orientation: Landscape
signals to ps2pdf
to add /Rotate 90
to the Page dictionary, with the implications Ulrike described.
dvips will probably change its behaviour in texlive 2022 here. So waiting for now.
looks ok in texlive 2022.
gives
The main problem is that dvips is actually cheating when setting the paper size. The media box is portrait and it rotates it:
One can avoid it
which is then used for the mediabox.
Related discussion on the texlive list: https://tug.org/pipermail/tex-live/2021-July/047291.html