texlive[57390] Master: orientation (11jan21)
commits+karl at tug.org
commits+karl at tug.org
Mon Jan 11 23:44:40 CET 2021
Revision: 57390
http://tug.org/svn/texlive?view=revision&revision=57390
Author: karl
Date: 2021-01-11 23:44:39 +0100 (Mon, 11 Jan 2021)
Log Message:
-----------
orientation (11jan21)
Modified Paths:
--------------
trunk/Master/tlpkg/bin/tlpkg-ctan-check
trunk/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc
Added Paths:
-----------
trunk/Master/texmf-dist/doc/latex/orientation/
trunk/Master/texmf-dist/doc/latex/orientation/README
trunk/Master/texmf-dist/tex/latex/orientation/
trunk/Master/texmf-dist/tex/latex/orientation/orientation.sty
trunk/Master/tlpkg/tlpsrc/orientation.tlpsrc
Added: trunk/Master/texmf-dist/doc/latex/orientation/README
===================================================================
--- trunk/Master/texmf-dist/doc/latex/orientation/README (rev 0)
+++ trunk/Master/texmf-dist/doc/latex/orientation/README 2021-01-11 22:44:39 UTC (rev 57390)
@@ -0,0 +1,33 @@
+orientation 1.0 (January 10, 2021)
+Set page orientation for dvips/Ghostscript
+Daniel Benjamin Miller <dbmiller at dbmiller.org>
+
+When using dvips with Ghostscript, the various PDF auto-rotation modes may
+sometimes need some tweaking. Using the auto-rotation feature of Ghostscript
+may suffice in most cases: it sets the orientation of the pages of the PDF
+according to text direction (either per-page or for the whole document).
+
+But sometimes we don't want this. For instance, Ghostscript may not obey
+the orientation set by geometry or other packages.
+
+We have eight commands available, in two categories.
+
+These commands orient the current page and all following pages:
+
+* \setportrait
+* \setlandscape
+* \setupsidedown
+* \setcounterlandscape
+
+These commands orient the current page only:
+
+* \thispageportrait
+* \thispagelandscape
+* \thispageupsidedown
+* \thispagecounterlandscape
+
+If you don't process your file with dvips and Ghostscript/ps2pdf, then don't
+expect any of these commands to do anything.
+
+Made available under the CC-Zero Dedication, 2021
+For more info: https://creativecommons.org/publicdomain/zero/1.0/
Property changes on: trunk/Master/texmf-dist/doc/latex/orientation/README
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: trunk/Master/texmf-dist/tex/latex/orientation/orientation.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/orientation/orientation.sty (rev 0)
+++ trunk/Master/texmf-dist/tex/latex/orientation/orientation.sty 2021-01-11 22:44:39 UTC (rev 57390)
@@ -0,0 +1,15 @@
+\ProvidesPackage{orientation}[orientation 1.0]
+% orientation package by Daniel Benjamin Miller <dbmiller at dbmiller.org>
+% Made available under the CC-Zero Dedication, 2021
+% For more info: https://creativecommons.org/publicdomain/zero/1.0/
+\RequirePackage{everypage}
+\makeatletter
+\newcommand{\thispagelandscape}{\special{ps:[{ThisPage} <</Rotate 90>> /PUT pdfmark true}}
+\newcommand{\thispageupsidedown}{\special{ps:[{ThisPage} <</Rotate 180>> /PUT pdfmark true}}
+\newcommand{\thispagecounterlandscape}{\special{ps:[{ThisPage} <</Rotate 270>> /PUT pdfmark true}}
+\newcommand{\thispageportrait}{\special{ps:[{ThisPage} <</Rotate 0>> /PUT pdfmark true}}
+\newcommand{\setlandscape}{\AddEverypageHook{\special{ps:[{ThisPage} <</Rotate 90>> /PUT pdfmark true}}}
+\newcommand{\setcounterlandscape}{\AddEverypageHook{\special{ps:[{ThisPage} <</Rotate 270>> /PUT pdfmark true}}}
+\newcommand{\setupsidedown}{\AddEverypageHook{\special{ps:[{ThisPage} <</Rotate 180>> /PUT pdfmark true}}}
+\newcommand{\setportrait}{\AddEverypageHook{\special{ps:[{ThisPage} <</Rotate 0>> /PUT pdfmark true}}}
+\endinput
\ No newline at end of file
Property changes on: trunk/Master/texmf-dist/tex/latex/orientation/orientation.sty
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Modified: trunk/Master/tlpkg/bin/tlpkg-ctan-check
===================================================================
--- trunk/Master/tlpkg/bin/tlpkg-ctan-check 2021-01-11 22:43:51 UTC (rev 57389)
+++ trunk/Master/tlpkg/bin/tlpkg-ctan-check 2021-01-11 22:44:39 UTC (rev 57390)
@@ -551,7 +551,8 @@
oldstyle olsak-misc
onedown onlyamsmath onrannual opcit opensans oplotsymbl
opteng optex optidef optional options
- orcidlink ordinalpt orkhun oscola oswald ot-tableau othello othelloboard
+ orcidlink ordinalpt orientation orkhun
+ oscola oswald ot-tableau othello othelloboard
oubraces oup-authoring-template
outerhbox outline outliner outlines outlining
overlays overlock overpic
Modified: trunk/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc
===================================================================
--- trunk/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc 2021-01-11 22:43:51 UTC (rev 57389)
+++ trunk/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc 2021-01-11 22:44:39 UTC (rev 57390)
@@ -884,6 +884,7 @@
depend optional
depend options
depend orcidlink
+depend orientation
depend outline
depend outliner
depend outlines
Added: trunk/Master/tlpkg/tlpsrc/orientation.tlpsrc
===================================================================
More information about the tex-live-commits
mailing list.