summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/csbulletin/csbulobalka.cls
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2019-01-12 23:06:52 +0000
committerKarl Berry <karl@freefriends.org>2019-01-12 23:06:52 +0000
commit82ed147d344c50bb86c8c3ce51faf5043303b28d (patch)
tree2a8fea74b2069af14601d64989b9cd08d4ff4213 /Master/texmf-dist/tex/latex/csbulletin/csbulobalka.cls
parent316516ea8d43bcd57e9ed58bfe0aa1f5a6585994 (diff)
csbulletin (12jan19)
git-svn-id: svn://tug.org/texlive/trunk@49681 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/csbulletin/csbulobalka.cls')
-rw-r--r--Master/texmf-dist/tex/latex/csbulletin/csbulobalka.cls23
1 files changed, 23 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/csbulletin/csbulobalka.cls b/Master/texmf-dist/tex/latex/csbulletin/csbulobalka.cls
new file mode 100644
index 00000000000..dd74aedf042
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/csbulletin/csbulobalka.cls
@@ -0,0 +1,23 @@
+%% $Id$
+\ProvidesClass{csbulobalka}[2008/12/08 Naskladej obalku]
+\newif\if@ZWzadek
+\newif\if@ZWvnitrek
+\def\ZW@sz{a5}
+\DeclareOption{zadek}{\def\ZW@sz{a4,Landscape,spine=0mm}\@ZWzadektrue}
+\DeclareOption{Zadek}{\def\ZW@sz{a4,Landscape,spine=0mm}\@ZWzadektrue\@ZWvnitrektrue}
+\ProcessOptions
+\LoadClass{article}
+\RequirePackage[\ZW@sz,margins=0mm,strictheight,cropmarks,nopagenumbers]{zwpagelayout}
+\RequirePackage{zwtools,graphicx}
+\RequirePackage[T1]{fontenc}
+\RequirePackage{lmodern}
+\parindent 0mm
+\pagestyle{empty}
+\newcount\zw@pg
+\newcommand\BulObalka[2][bul.pdf]{\setkeys{zwpl}{croptitle=Zpravodaj #2}\ZWPDFgetnum #1 \ZW@pgnum
+ \if@ZWzadek \includegraphics[page=\ZW@pgnum]{#1}\hfill \fi
+ \includegraphics[page=1]{#1}\if@ZWvnitrek
+ \clearpage
+ \zw@pg=\ZW@pgnum \advance\zw@pg\m@ne
+ \includegraphics[page=2]{#1}\hfill
+ \includegraphics[page=\number\zw@pg]{#1}\fi}