From 44f6214748806e7d082ab5dc18c2de04e393e536 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Mon, 11 Jan 2021 22:44:39 +0000 Subject: orientation (11jan21) git-svn-id: svn://tug.org/texlive/trunk@57390 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/tex/latex/orientation/orientation.sty | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 Master/texmf-dist/tex/latex/orientation/orientation.sty (limited to 'Master/texmf-dist/tex/latex/orientation') diff --git a/Master/texmf-dist/tex/latex/orientation/orientation.sty b/Master/texmf-dist/tex/latex/orientation/orientation.sty new file mode 100644 index 00000000000..e5f47922ba6 --- /dev/null +++ b/Master/texmf-dist/tex/latex/orientation/orientation.sty @@ -0,0 +1,15 @@ +\ProvidesPackage{orientation}[orientation 1.0] +% orientation package by Daniel Benjamin Miller +% 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} <> /PUT pdfmark true}} +\newcommand{\thispageupsidedown}{\special{ps:[{ThisPage} <> /PUT pdfmark true}} +\newcommand{\thispagecounterlandscape}{\special{ps:[{ThisPage} <> /PUT pdfmark true}} +\newcommand{\thispageportrait}{\special{ps:[{ThisPage} <> /PUT pdfmark true}} +\newcommand{\setlandscape}{\AddEverypageHook{\special{ps:[{ThisPage} <> /PUT pdfmark true}}} +\newcommand{\setcounterlandscape}{\AddEverypageHook{\special{ps:[{ThisPage} <> /PUT pdfmark true}}} +\newcommand{\setupsidedown}{\AddEverypageHook{\special{ps:[{ThisPage} <> /PUT pdfmark true}}} +\newcommand{\setportrait}{\AddEverypageHook{\special{ps:[{ThisPage} <> /PUT pdfmark true}}} +\endinput \ No newline at end of file -- cgit v1.2.3