summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/leaflet
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2012-07-23 23:37:22 +0000
committerKarl Berry <karl@freefriends.org>2012-07-23 23:37:22 +0000
commit55994f4bf1d4081cd3a038c425f6de7c173629bb (patch)
tree4b02d7fb1c8f7780a4f6f3d5c9774154228eb8bd /Master/texmf-dist/tex/latex/leaflet
parent46182f49862367599680945cbd4188c96f0c6071 (diff)
leaflet (4jun12)
git-svn-id: svn://tug.org/texlive/trunk@27126 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/leaflet')
-rw-r--r--Master/texmf-dist/tex/latex/leaflet/leaflet.cls26
1 files changed, 18 insertions, 8 deletions
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}%