From 55994f4bf1d4081cd3a038c425f6de7c173629bb Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Mon, 23 Jul 2012 23:37:22 +0000 Subject: leaflet (4jun12) git-svn-id: svn://tug.org/texlive/trunk@27126 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/tex/latex/leaflet/leaflet.cls | 26 +++++++++++++++++-------- 1 file changed, 18 insertions(+), 8 deletions(-) (limited to 'Master/texmf-dist/tex/latex/leaflet') diff --git a/Master/texmf-dist/tex/latex/leaflet/leaflet.cls b/Master/texmf-dist/tex/latex/leaflet/leaflet.cls index f4111b5edd9..77dd3dbf3cc 100644 --- a/Master/texmf-dist/tex/latex/leaflet/leaflet.cls +++ b/Master/texmf-dist/tex/latex/leaflet/leaflet.cls @@ -22,11 +22,12 @@ %% \NeedsTeXFormat{LaTeX2e}[1999/12/01] \ProvidesClass{leaflet} - [2004/12/22 v1.0d LaTeX document class (JS,WaS,RN,HjG)] + [2012/06/04 v1.0d LaTeX document class (JS,WaS,RN,HjG)] \let\LL@shipout\shipout \let\LL@outputpage\@outputpage \let\LL@begindvi\@begindvi \let\LL@@end\@@end \@ifundefined{iflandscape}{\newif\iflandscape}{}% \@ifundefined{iftumble}{\newif\iftumble}{}% +\@ifundefined{iftwopart}{\newif\iftwopart}{}% \newcommand\LL@debug@info[1]{}% \DeclareOption{dvips}{\PassOptionsToPackage{\CurrentOption}{graphics}} \DeclareOption{pdftex}{\PassOptionsToPackage{\CurrentOption}{graphics}} @@ -37,6 +38,8 @@ \DeclareOption{landscape}{\landscapetrue} \DeclareOption{portrait}{\landscapefalse} \DeclareOption{debug}{\let\LL@debug@info\typeout} +\DeclareOption{twopart}{\twoparttrue} +\DeclareOption{notwopart}{\twopartfalse} \DeclareOption{nospecialtricks}{% \AtEndOfClass{% \ifLL@combine @@ -87,7 +90,7 @@ } \DeclareOption*{\PassOptionsToClass{\CurrentOption}{article}} \PassOptionsToClass{landscape,a4paper}{article} -\ExecuteOptions{tumble,foldmark,bothsides,combine,landscape,final} +\ExecuteOptions{tumble,foldmark,bothsides,combine,landscape,notwopart} \ProcessOptions\relax \ifLL@combine \newcommand*\LL@rotate@I{}\newcommand*\LL@rotate@II{}% @@ -481,12 +484,19 @@ \LL@preparePage{##1}\LL@preparePage{##2}\LL@preparePage{##3}}% \newcommand*\LL@preparePage[1]{% \expandafter\box\csname LL@box\@Roman{##1}\endcsname}% - \LL@selectOutput - {\setcounter{page}{1}% - \LL@shipoutPage{\LL@rotate@I{\LL@preparePages{5}{6}{1}}}}% - {\setcounter{page}{2}% - \LL@shipoutPage{\LL@rotate@II{\LL@preparePages{2}{3}{4}}}}% - \LL@@end + \LL@selectOutput + \iftwopart + {\setcounter{page}{1}% + \LL@shipoutPage{\LL@rotate@I{\LL@preparePages{6}{4}{1}}}}% + {\setcounter{page}{2}% + \LL@shipoutPage{\LL@rotate@II{\LL@preparePages{2}{3}{5}}}}% + \else + {\setcounter{page}{1}% + \LL@shipoutPage{\LL@rotate@I{\LL@preparePages{5}{6}{1}}}}% + {\setcounter{page}{2}% + \LL@shipoutPage{\LL@rotate@II{\LL@preparePages{2}{3}{4}}}}% + \fi + \LL@@end }% \else \LL@pagesize@specials{\paperwidth}{\paperheight}% -- cgit v1.2.3