From bvoisin at icloud.com Tue Dec 7 00:19:44 2021 From: bvoisin at icloud.com (Bruno Voisin) Date: Tue, 7 Dec 2021 00:19:44 +0100 Subject: [texshop] Auto-rotation of landscape pages upon printing Message-ID: <40E42A16-218E-4877-BF39-BB4C23C0DB16@icloud.com> Just today I noticed something odd with TeXShop. I may have raised the issue already in the past, I'm not sure. If I have, I'm sorry to bring it up again. I was printing a LuaLaTex PDF document including one rotated page (a sideways table). The page was rotated automatically by using, before \documentclass, \RequirePackage[figuresright]{rotating} \RequirePackage{pdfmanagement-testphase} \DeclareDocumentMetadata{} and after it \ExplSyntaxOn \AddToHook{env/sidewaysfigure/end}{\pdfmanagement_add:nnn{ThisPage}{Rotate}{90}} \ExplSyntaxOff I don't think the specifics matter here, only the fact the page was rotated hence in landscape orientation. Printing the document in TeXShop, I realized the rotated page looked awful (attached Buoyant-Oscillations-TeXShop): the landscape page was stretched but left as is, resulting in portrait output containing only a part of the original page. First I thought the printer was to blame, but it turns out it's not. Printing the same page in Preview, everything's fine (attached Buoyant-Oscillations-Preview). Looking closely, the Preview Print window includes an Auto Rotate checkbox while TeXShop doesn't (at least I couldn't find it), and this box seems automatically checked by default. Again, the above reminds vaguely of something, so I may have raised the issue already. If so, I'm sorry to bother you again with that. The original document (Buoyant-Oscillations.pdf) is also attached. Bruno -------------- next part -------------- A non-text attachment was scrubbed... Name: Buoyant-Oscillations-Preview.pdf Type: application/pdf Size: 332905 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Buoyant-Oscillations-TeXShop.pdf Type: application/pdf Size: 330897 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Buoyant-Oscillations.pdf Type: application/pdf Size: 444411 bytes Desc: not available URL: -------------- next part -------------- From herbs at wideopenwest.com Tue Dec 7 00:29:41 2021 From: herbs at wideopenwest.com (Herbert Schulz) Date: Mon, 6 Dec 2021 17:29:41 -0600 Subject: [texshop] Auto-rotation of landscape pages upon printing In-Reply-To: <40E42A16-218E-4877-BF39-BB4C23C0DB16@icloud.com> References: <40E42A16-218E-4877-BF39-BB4C23C0DB16@icloud.com> Message-ID: <98E59093-C23A-4C7D-B950-3A906DE44E18@wideopenwest.com> > On Dec 6, 2021, at 5:19 PM, Bruno Voisin via texshop wrote: > > Just today I noticed something odd with TeXShop. I may have raised the issue already in the past, I'm not sure. If I have, I'm sorry to bring it up again. > > I was printing a LuaLaTex PDF document including one rotated page (a sideways table). The page was rotated automatically by using, before \documentclass, > > \RequirePackage[figuresright]{rotating} > \RequirePackage{pdfmanagement-testphase} > \DeclareDocumentMetadata{} > > and after it > > \ExplSyntaxOn > \AddToHook{env/sidewaysfigure/end}{\pdfmanagement_add:nnn{ThisPage}{Rotate}{90}} > \ExplSyntaxOff > > I don't think the specifics matter here, only the fact the page was rotated hence in landscape orientation. > > Printing the document in TeXShop, I realized the rotated page looked awful (attached Buoyant-Oscillations-TeXShop): the landscape page was stretched but left as is, resulting in portrait output containing only a part of the original page. > > First I thought the printer was to blame, but it turns out it's not. Printing the same page in Preview, everything's fine (attached Buoyant-Oscillations-Preview). Looking closely, the Preview Print window includes an Auto Rotate checkbox while TeXShop doesn't (at least I couldn't find it), and this box seems automatically checked by default. > > Again, the above reminds vaguely of something, so I may have raised the issue already. If so, I'm sorry to bother you again with that. > > The original document (Buoyant-Oscillations.pdf) is also attached. > > Bruno > > > > > Howdy, I believe by default ps2pdf does auto-rotation (usually when you don't want it :-(). If you can use latex->dvips->ps2pdf (i.e., the latex engine) try that. Good Luck, Herb Schulz herbs at wideopenwest.com From bvoisin at icloud.com Tue Dec 7 00:42:50 2021 From: bvoisin at icloud.com (Bruno Voisin) Date: Tue, 7 Dec 2021 00:42:50 +0100 Subject: [texshop] Auto-rotation of landscape pages upon printing In-Reply-To: <98E59093-C23A-4C7D-B950-3A906DE44E18@wideopenwest.com> References: <40E42A16-218E-4877-BF39-BB4C23C0DB16@icloud.com> <98E59093-C23A-4C7D-B950-3A906DE44E18@wideopenwest.com> Message-ID: > On 7 Dec 2021, at 00:29, Herbert Schulz wrote: > > I believe by default ps2pdf does auto-rotation (usually when you don't want it :-(). If you can use latex->dvips->ps2pdf (i.e., the latex engine) try that. Hi Herb, The problem is not in the auto-rotation in TeX: auto-rotation does work there. If you look at Buoyant-Oscillations.pdf, the first three pages are portrait and the fourth landscape, exactly as intended. The problem is when printing this PDF file in TeXShop: Preview rotates automatically the landscape page before sending it to the printer, yielding the portrait output in Buoyant-Oscillations-Preview.pdf. TeXShop doesn't, however, so you get the output in Buoyant-Oscillations-TeXShop.pdf, where the landscape page is kept landscape, shrinked horizontally, cropped and inserted in portrait output. This is in PDF files, but that's exactly when I saw first, to my great surprise, on the paper sheets out of the printer. Bruno From herbs at wideopenwest.com Tue Dec 7 00:47:59 2021 From: herbs at wideopenwest.com (Herbert Schulz) Date: Mon, 6 Dec 2021 17:47:59 -0600 Subject: [texshop] Auto-rotation of landscape pages upon printing In-Reply-To: References: <40E42A16-218E-4877-BF39-BB4C23C0DB16@icloud.com> <98E59093-C23A-4C7D-B950-3A906DE44E18@wideopenwest.com> Message-ID: > On Dec 6, 2021, at 5:42 PM, Bruno Voisin wrote: > >> On 7 Dec 2021, at 00:29, Herbert Schulz wrote: >> >> I believe by default ps2pdf does auto-rotation (usually when you don't want it :-(). If you can use latex->dvips->ps2pdf (i.e., the latex engine) try that. > > Hi Herb, > > The problem is not in the auto-rotation in TeX: auto-rotation does work there. If you look at Buoyant-Oscillations.pdf, the first three pages are portrait and the fourth landscape, exactly as intended. > > The problem is when printing this PDF file in TeXShop: Preview rotates automatically the landscape page before sending it to the printer, yielding the portrait output in Buoyant-Oscillations-Preview.pdf. TeXShop doesn't, however, so you get the output in Buoyant-Oscillations-TeXShop.pdf, where the landscape page is kept landscape, shrinked horizontally, cropped and inserted in portrait output. > > This is in PDF files, but that's exactly when I saw first, to my great surprise, on the paper sheets out of the printer. > > Bruno Howdy, I was just wondering if using latex->dvips->ps2pdf would print properly. Good Luck, Herb Schulz herbs at wideopenwest.com From bvoisin at icloud.com Tue Dec 7 01:53:48 2021 From: bvoisin at icloud.com (Bruno Voisin) Date: Tue, 7 Dec 2021 01:53:48 +0100 Subject: [texshop] Auto-rotation of landscape pages upon printing In-Reply-To: References: <40E42A16-218E-4877-BF39-BB4C23C0DB16@icloud.com> <98E59093-C23A-4C7D-B950-3A906DE44E18@wideopenwest.com> Message-ID: <36C8AC9F-5B84-41B5-9B83-C3B61DBCB8C6@icloud.com> > On 7 Dec 2021, at 00:47, Herbert Schulz wrote: > > I was just wondering if using latex->dvips->ps2pdf would print properly. This took a bit of time as I needed to convert the PDF figures to EPS, and rewrite some macros dependent on unicode-math. The result with tex + dvips + ps2pdf is the same as before, unfortunately: the PDF output has all pages but one portrait, and one page landscape; upon printing, Preview rotates the landscape page, so the printed output is fine; TeXShop doesn't, so the landscape page ends up shrinked horizontally and cropped. To be sure, I tried with a PDF file produced entirely without TeX (a Pages file exported to PDF), rotated one page to landscape. Exactly the same as before happens when opening the PDF file in Preview and TeXShop and printing it from there. Bruno