File: csbulobalka.cls

package info (click to toggle)
texlive-lang 2022.20230122-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,447,264 kB
  • sloc: perl: 61,377; xml: 53,781; makefile: 4,525; sh: 4,338; ansic: 2,892; python: 2,861; ruby: 1,031; lisp: 750; awk: 649; java: 159; sed: 142; csh: 25
file content (23 lines) | stat: -rw-r--r-- 874 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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}