diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/calendar/hpplotsz.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/calendar/hpplotsz.sty | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/calendar/hpplotsz.sty b/Master/texmf-dist/tex/latex/calendar/hpplotsz.sty new file mode 100644 index 00000000000..cb8e17f5a4a --- /dev/null +++ b/Master/texmf-dist/tex/latex/calendar/hpplotsz.sty @@ -0,0 +1,14 @@ +\NeedsTeXFormat{LaTeX2e}[1995/06/01] +\ProvidesPackage{hpplotsz} + [1997/11/07 Custom page sizes with HP 6xx series plotters (Frank Bennett)] +\newlength\hps@templen +\newwrite\hps@pagesizeheader +\newcount\hps@orientation +\def\hps@@strip#1.#2\end{#1} +\def\hps@strip#1{\expandafter\hps@@strip\the#1\end} +\def\sethpplotsize{% + \ifnum\hsize>\vsize\hps@orientation=3\else\hps@orientation=0\fi + \immediate\openout\hps@pagesizeheader=./\jobname.hps + \immediate\write\hps@pagesizeheader{% + <</PageSize [\hps@strip\paperwidth\space\hps@strip\paperheight] /Orientation \the\hps@orientation>>setpagedevice} + \immediate\closeout\hps@pagesizeheader} |