diff options
author | Norbert Preining <norbert@preining.info> | 2019-09-02 13:46:59 +0900 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2019-09-02 13:46:59 +0900 |
commit | e0c6872cf40896c7be36b11dcc744620f10adf1d (patch) | |
tree | 60335e10d2f4354b0674ec22d7b53f0f8abee672 /macros/latex/contrib/csbulletin/csbulobalka.cls |
Initial commit
Diffstat (limited to 'macros/latex/contrib/csbulletin/csbulobalka.cls')
-rw-r--r-- | macros/latex/contrib/csbulletin/csbulobalka.cls | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/macros/latex/contrib/csbulletin/csbulobalka.cls b/macros/latex/contrib/csbulletin/csbulobalka.cls new file mode 100644 index 0000000000..dd74aedf04 --- /dev/null +++ b/macros/latex/contrib/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} |