Debian Codegraph @

texmf-dist/source/latex/simplecd/simplecd.dtx

raw
1
2 % \iffalse meta-comment
3 %
4 % Copyright (C) 2010-2013 by Daniel Majoros
5 %
6 % This file may be distributed and/or modified under the
7 % conditions of the LaTeX Project Public License, either
8 % version 1.2 of this license or (at your option) any later
9 % version. The latest version of this license is in:
10 %
11 % http://www.latex-project.org/lppl.txt
12 %
13 % and version 1.2 or later is part of all distributions of
14 % LaTeX version 1999/12/01 or later.
15 %
16 % \fi
17 %
18 %\iffalse
19 %<package>\NeedsTeXFormat{LaTeX2e}
20 %<package>\ProvidesPackage{simplecd}
21 %<package> [2013/02/28 v1.4 Simple CD, DVD covers and many more]
22 %
23 %<*driver>
24 \documentclass{ltxdoc}
25 \usepackage{simplecd}
26 \usepackage{graphicx}
27 \usepackage{float}
28 \usepackage{listings}
29
30 %Provides clickable links in content tables, references
31 \usepackage[hyperindex=false,%
32 pdftitle={simplecd},%
33 pdfauthor={Daniel Majoros},%
34 pdfsubject={CD, DVD and other media covers and labels},%
35 pdfkeywords={cover,cd,dvd,bluray,sheet,keepcase,layout,disk,zip,VHS}]{hyperref}
36 \EnableCrossrefs
37 \CodelineIndex
38 \RecordChanges
39
40 \begin{document}
41 \lstset{language=[LaTeX]Tex}
42 \lstset{numbers=left, numberstyle=\tiny, stepnumber=1, numbersep=5pt}
43 \lstset{gobble=1,float,frame=tb}
44 \lstset{tabsize=2}
45 \DocInput{./simplecd.dtx}
46 \end{document}
47 %</driver>
48 %\fi
49 %
50 % \CheckSum{1464}
51 %
52 % \CharacterTable
53 % {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
54 % Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
55 % Digits \0\1\2\3\4\5\6\7\8\9
56 % Exclamation \! Double quote \" Hash (number) \#
57 % Dollar \$ Percent \% Ampersand \&
58 % Acute accent \' Left paren \( Right paren \)
59 % Asterisk \* Plus \+ Comma \,
60 % Minus \- Point \. Solidus \/
61 % Colon \: Semicolon \; Less than \<
62 % Equals \= Greater than \> Question mark \?
63 % Commercial at \@ Left bracket \[ Backslash \\
64 % Right bracket \] Circumflex \^ Underscore \_
65 % Grave accent \` Left brace \{ Vertical bar \|
66 % Right brace \} Tilde \~}
67 %
68 % \changes{v1.0}{2010/07/01}{Initial version}
69 % \changes{v1.1}{2012/11/04}{Rewrote drawing mechanism, added layouts, disk images, additional covers}
70 % \changes{v1.2}{2012/12/21}{Added new layouts and many new covers, labels}
71 % \changes{v1.3}{2013/01/26}{Added nohcenter option, more layouts and singlesheet}
72 % \changes{v1.4}{2013/02/28}{Made unitlength setting local}
73 %
74 % \DoNotIndex{\newline,\\,\space,\begin,\end,\rule,\cline,\hspace,\vspace,\centering,\DeclareRobustCommand,\{,\},\ }
75 % \DoNotIndex{\newcommand,\newlength,\setlength,\parbox,\line,\putline,\resizebox,\unitlength}
76 % \DoNotIndex{\put,\RequirePackage,\vrule,\DeclareOption,\fontsize,\ProcessOptions,\relax}
77 % \DoNotIndex{\renewcommand,\selectfont,\multicolumn,\framebox,\usebox,\put,\line,\value,\rotatebox,\setcounter,\newcounter,\!,!\!,!\,! ,\! ,!\! ,!\ , }
78 % \DoNotIndex{\Large,\Huge,\huge,\footnotesize,\underline,\savebox,\equal,\boolean,\newboolean,\setboolean,\baselineskip,\ifthenelse}
79 % \DoNotIndex{\scalebox,\makebox,\OR,\AND,\newsavebox,\qbezier,\circle,\space,\textless,\textgreater,\csname,\endcsname}
80 % \begingroup
81 % \makeatletter
82 % \lccode`9=32\relax
83 % \lowercase{%^^A
84 % \edef\x{\noexpand\DoNotIndex{\@backslashchar9}}%^^A
85 % }%^^A
86 % \expandafter\endgroup\x
87 %
88 % \GetFileInfo{simplecd.sty}
89 %
90 % \title{The \textsf{simplecd} package\thanks{This document
91 % corresponds to \textsf{simplecd}~\fileversion,
92 % dated~\filedate.}}
93 % \author{D\'aniel Majoros}
94 %
95 % \maketitle
96 %
97 % \begin{abstract}
98 % The simplecd package provides printable cut-outs for various CD, DVD and other data storage holders.
99 % The name of the package comes form it's implementation and ease of use.
100 % \end{abstract}
101 %
102 % \newlength{\orig}
103 % \setlength{\orig}{\baselineskip}
104 % \setlength{\baselineskip}{0.9\baselineskip}
105 % \tableofcontents
106 % \setlength{\baselineskip}{\orig}
107 %
108 % \section{Introduction}
109 % The \textsf{simplecd} package was created for producing cut-outs for creating covers, inlays(inlets) for
110 % optical disc packaging such as jewel cases, keepcases. Additional data storage cover support were added for
111 % VHS, audio cassette and gramophone records. The covers were aimed for containing only
112 % simple text with different font sizes, but since everything is placed inside a |\parbox| environment, it can
113 % contain a wide range of things.
114 %
115 % There are also macros which can resize ready-to-print images to the appropriate size.
116 %
117 % The layout macros provide ready-to-use formatting for the covers.
118 %
119 % \section{Installation}
120 %
121 % The install procedure is the usual. Run \texttt{(pdf)latex} on the \texttt{simplecd.ins} file to obtain the necessary \texttt{simplecd.sty} file: \\
122 %
123 % \texttt{pdflatex ./simplecd.ins --output-directory=./} \\
124 %
125 % Then place the \texttt{simplecd.sty} file in a directory that is searched by \TeX.
126 % If you use some kind of \LaTeX\ distribution, like MiKTeX, see it's documentation.
127 %
128 % \section{Usage}
129 %
130 % To use the package, put this in the document preamble: |\usepackage{simplecd}|.
131 % This section gives a detailed information on macros, lists their parameters also.
132 %
133 % It is worth to decrease the document's margins, so the covers can fit onto
134 % an A4 sized paper. For this, use the \textsf{geometry} package, for example like this: \\
135 % |\usepackage[left=1cm, top=1cm, right=1cm, bottom=1cm]{geometry}|
136 %
137 % All examples in this document were resized, for full size output, see the \texttt{examples.pdf} file.
138 %
139 % \vspace{0.3cm}
140 %
141 % \begin{lstlisting}
142 % LaTeX example source codes in this document are placed in
143 % listings like this. They are usually followed by output
144 % produced with the code samples.
145 % \end{lstlisting}
146 %
147 % \vspace{0.3cm}
148 %
149 % Please note that not all the covers were tested ( printed and placed on actual media ) as the appropriate media was not available.
150 %
151 % \subsection{Cut-outs}
152 %
153 % \subsubsection{Jewel cases}
154 %
155 % \DescribeMacro{\covers}
156 % The first and foremost macro is for the standard jewel case and it's backsheet with two spines.
157 % The parameters of the |\covers| macro are as follows:
158 % |\covers| \oarg{backsheet text} \marg{cover title} \marg{spine text}. The first two can be
159 % whole paragraphs with different font sized texts. For a new line, you can use |\\|,
160 % and for a skip, use |\vspace{length to skip}| in the text after a new line.
161 % The spine text will be printed on both spines. The spine
162 % text should be short enough to fit into the desired space.
163 %
164 % Example:
165 % \begin{lstlisting}
166 % \covers
167 % [{\Large Backsheet text}]
168 % {{\Huge Jewelcase Title} \\ \vspace{1cm} Subtitle}
169 % {Spine Text}
170 % \end{lstlisting}
171 %
172 % \begin{figure}[H]
173 % \centering
174 % \resizebox{0.95\textwidth}{!}{\covers[{\Large Backsheet text}]{{\Huge Jewelcase Title} \\ \vspace{1cm} Subtitle}{Spine Text}}
175 % \caption{Jewel case covers}
176 % \end{figure}
177 %
178 % \vspace*{0.5cm}
179 %
180 % \DescribeMacro{\frontcover}
181 % The |\frontcover|, which is called in the previously mentioned macro, produces the front cover for
182 % the jewel case. It's mandatory argument is the cover text: |\frontcover| \marg{cover text}.
183 %
184 % \DescribeMacro{\LXfrontcover} \DescribeMacro{\LXXXfrontcover} The |\LXfrontcover| and |\LXXXfrontcover| macros work just the same as
185 % |\frontcover| but they produce covers for jewel cases that holds 60 or 80 millimeter disks (LX and LXXX are roman numbers, their values are 60 and 80).
186 %
187 % \DescribeMacro{\backsheet}
188 % The |\backsheet| macro is also called from the |\covers| macro. It produces the backsheet with two
189 % identical spines. The usage is |\backsheet| \oarg{backsheet middle text} \marg{spine text}.
190 %
191 % \DescribeMacro{\jewelspine}
192 % The |\jewelspine| macro creates a single spine for the jewelcase. It's usage is |\jewelspine| \marg{spine text}.
193 %
194 % \DescribeMacro{\singlesheet} The |\singlesheet| macro creates a single sheet for a special jewel case. The \marg{front side}
195 % argument makes it possible to put content beside the jewel case sized front content.
196 % Usage: |\singlesheet| \marg{front} \marg{front side} \marg{spine} \marg{back}
197 %
198 % \begin{lstlisting}
199 % \singlesheet
200 % {\huge Front}
201 % {Front side}
202 % {Spine}
203 % {Back}
204 % \end{lstlisting}
205 %
206 % \begin{figure}[H]
207 % \centering
208 % \resizebox{0.8\textwidth}{!}{
209 % \singlesheet
210 % {\huge Front}
211 % {Front side}
212 % {Spine}
213 % {Back}}
214 % \caption{Single sheet}
215 % \end{figure}
216 %
217 % \DescribeMacro{\djewel}
218 % The |\djewel| macro creates a double page jewel case cover. Text can be put on one side, then it should be folded
219 % in half. The usage is: |\djewel| \marg{first page text} \marg{second page text}.
220 %
221 % \begin{lstlisting}
222 % \djewel
223 % {\fontsize{70}{36}\selectfont Big Title}
224 % {Second page}
225 % \end{lstlisting}
226 %
227 % \begin{figure}[H]
228 % \centering
229 % \rotatebox{270}{\resizebox{0.48\textwidth}{!}{\djewel{\fontsize{70}{36}\selectfont Big Title}{Second page}}}
230 % \caption{Double page jewel book}
231 % \end{figure}
232 %
233 % \vspace*{0.5cm}
234 %
235 % This is also an example of using fix sized fonts with the \textsf{fix-cm} package.
236 %
237 % \subsubsection{Keepcases}
238 %
239 % \DescribeMacro{\slimdvd} \DescribeMacro{\dvd}
240 % The |\slimdvd| and |\dvd| macros creates a slim and a simple DVD keepcase. Text can be put on both
241 % sides plus on the spine area. \DescribeMacro{\bluray} The |\bluray| macro creates a keepcase for Blu-Ray disks.
242 % Their usage is: |\dvd| \oarg{backside text} \marg{cover text} \marg{spine text}.
243 %
244 % \begin{lstlisting}
245 % \slimdvd
246 % [{\Large Backsheet text}]
247 % {{\Huge \underline{SlimDVD Title}}%
248 % \\ \vspace{1cm} Subtitle}
249 % {Spine Text}
250 % \end{lstlisting}
251 %
252 % \begin{figure}[H]
253 % \centering
254 % \rotatebox{270}{\resizebox{0.65\textwidth}{!}{\slimdvd[{\Large Backsheet text}]%
255 % {{\Huge \underline{SlimDVD Title}} \\ \vspace{1cm} Subtitle}{Spine Text}} }
256 % \caption{Slim DVD keepcase cover}
257 % \end{figure}
258 %
259 % \vspace*{0.5cm}
260 %
261 % \subsubsection{Sleeves}
262 %
263 % \DescribeMacro{\sleeve}
264 % The |\sleeve| macro creates a disk-sleeve which requires some glue after cutting it out. The upper part
265 % can be used to close the sleeve. Text can be put on
266 % it's cover and back. The usage is: |\sleeve| \oarg{back text} \marg{cover text}.
267 %
268 % \begin{lstlisting}
269 % \sleeve[Back text]{{\Huge Sleeve text}}
270 % \end{lstlisting}
271 %
272 % \begin{figure}[H]
273 % \centering
274 % \resizebox{0.7\textwidth}{!}{\sleeve[Back text]{{\Huge Sleeve text}}}
275 % \caption{Paper sleeve}
276 % \end{figure}
277 %
278 % \DescribeMacro{\sleeveLX} \DescribeMacro{\sleeveLXXX} The |\sleeveLX| and |\sleeveLXXX| macros produce sleeves for
279 % the 60 and the 80 millimeter sized disks, respectively. Their use is the same as |\sleeve|.
280 %
281 % \begin{lstlisting}
282 % \sleeveLX[Back text]{\large Front text}
283 % \sleeveLXXX[Back text]{\large Front text}
284 % \end{lstlisting}
285 %
286 % \begin{figure}[H]
287 % \begin{minipage}[b]{0.45\textwidth}
288 % \centering
289 % \resizebox{0.8\textwidth}{!}{\sleeveLX[Back text]{\large Front text}}
290 % \caption{60 millimeter disk sleeve}
291 % \end{minipage}
292 % \hspace{0.5cm}
293 % \begin{minipage}[b]{0.45\textwidth}
294 % \centering
295 % \resizebox{0.8\textwidth}{!}{\sleeveLXXX[Back text]{\large Front text}}
296 % \caption{80 millimeter disk sleeve}
297 % \end{minipage}
298 % \end{figure}
299 %
300 % \DescribeMacro{\sleevela} The |\sleevela| macro creates a sleeve that can be used in lever arch files.
301 % The small circles must be cut out, they are for the levers. The distance between the circle centers is 8 centimeter.
302 %
303 % \begin{lstlisting}
304 % \sleevela[Back text]{\scalebox{4}{Front text}}
305 % \end{lstlisting}
306 %
307 % \begin{figure}[H]
308 % \centering
309 % \resizebox{0.8\textwidth}{!}{\sleevela[Back text]{\scalebox{4}{Front text}}}
310 % \caption{Sleeve for lever arch files}
311 % \end{figure}
312 %
313 % \vspace*{0.5cm}
314 %
315 % \subsubsection{Image as cover}
316 %
317 % \DescribeMacro{\coverimg} \DescribeMacro{\backsheetimg} \DescribeMacro{\dvdimg} \DescribeMacro{\slimdvdimg}
318 % \DescribeMacro{\blurayimg}
319 % The macros width the \emph{img} ending are expecting an image, and resizing this image to the appropriate cover
320 % size. The macros are |\coverimg|, |\backsheetimg|, |\dvdimg|, |\slimdvdimg|, |\blurayimg|. Their usage is
321 % |\coverimg| \parg{picture}. No image macro for
322 % the sleeve. These macros does not keep the aspect ratio of the given image, thus it should already be at the
323 % correct ratio.
324 %
325 % An example without the result:
326 % \begin{lstlisting}
327 % \dvdimg{includegraphics{coverpic}}
328 % \end{lstlisting}
329 %
330 % \vspace*{0.5cm}
331 %
332 % \subsubsection{Inlays}
333 %
334 % \DescribeMacro{\dvdinlay} \DescribeMacro{\blurayinlay}
335 % The |\dvdinlay| and |\blurayinlay| macros create a one sided inlay for the appropriate keepcases.
336 % Their usage is |\dvdinlay| \marg{text}.
337 %
338 % \begin{lstlisting}
339 % \dvdinlay
340 % {{\Large DVD Inlay}
341 %
342 % \vspace{5cm} TextTextText
343 %
344 % \vspace{1cm} {\fontsize{20}{36}\selectfont TextText}}
345 % \end{lstlisting}
346 %
347 % \begin{figure}[H]
348 % \centering
349 % \resizebox{0.5\textwidth}{!}{%
350 % \dvdinlay{{\Large DVD Inlay
351 %
352 % \vspace{5cm} TextTextText
353 %
354 % \vspace{1cm} {\fontsize{20}{36}\selectfont TextText}}}}
355 % \caption{DVD keepcase inlay}
356 % \end{figure}
357 %
358 % \vspace*{0.5cm}
359 %
360 % \subsubsection{Floppy covers}
361 %
362 % These macros can be used to produce covers that can be glued to floppy disks at the appropriate place.
363 %
364 % \DescribeMacro{\floppyIIIV} The |\floppyIIIV| macro creates cover for the 3.5-inch (89 mm) disks. The cover
365 % should be glued to both sides of the disk. Usage: |\floppyIIIV| \marg{front} \marg{back}
366 %
367 % \begin{lstlisting}
368 % \floppyIIIV{Front content}{Back content}}
369 % \end{lstlisting}
370 %
371 % \begin{figure}[H]
372 % \centering
373 % \resizebox{0.5\textwidth}{!}{%
374 % \floppyIIIV{Front content}{Back content}}%
375 % \caption{The 3.5-inch floppy disk cover}
376 % \end{figure}
377 %
378 % \subsubsection{Zip disks}
379 %
380 % \DescribeMacro{\zipdisk} The |\zipdisk| macro provides a cover label for zip disks.
381 % Cover dimensions: 98 millimeter wide, 120 millimeter high. Usage: |\zipdisk| \marg{front} \marg{back}
382 %
383 % \begin{lstlisting}
384 % \zipdisk{Front content}{Back content}
385 % \end{lstlisting}
386 %
387 % \begin{figure}[H]
388 % \centering
389 % \resizebox{0.5\textwidth}{!}{%
390 % \zipdisk{Front content}{Back content}}%
391 % \caption{Cover label for zip disks}
392 % \end{figure}
393 %
394 % \DescribeMacro{\zipdiskII} The |\zipdiskII| macro provides a cover label for zip disks.
395 % Cover dimensions: 60 millimeter wide, 51 millimeter high. Usage: |\zipdiskII| \marg{content}
396 %
397 % \begin{lstlisting}
398 % \zipdiskII{Content}
399 % \end{lstlisting}
400 %
401 % \begin{figure}[H]
402 % \centering
403 % \resizebox{0.4\textwidth}{!}{%
404 % \zipdiskII{Content}}%
405 % \caption{Cover label for zip disks}
406 % \end{figure}
407 %
408 % \subsubsection{Disk covers}
409 %
410 % Macros presented below can be used to create images like actual disks. The results can be used for example for top cover of a cake box.
411 % For printing directly on the disks themselves, use a printing software especially designed for this task.
412 %
413 % Content can be placed anywhere in the rectangle which is always defined by the largest circle in the picture.
414 % \begin{figure}[H]
415 % \centering
416 % \resizebox{0.5\textwidth}{!}{%
417 % \setlength{\unitlength}{1mm}%
418 % \cdrdisk{\begin{picture}(116,116)\framebox(116,116){}\end{picture}}%
419 % }
420 % \caption{The rectangle that is the boundary for the content}
421 % \end{figure}
422 %
423 % \DescribeMacro{\cdrdisk} The |\cdrdisk| macro creates an image of a CD-R disk. It's inner circle leaves space for the transparent part of the disk.
424 % Usage: |\cddvddisk| \marg{content}
425 %
426 % \begin{lstlisting}
427 % \cdrdisk{
428 % {\Huge Title} \\ \vspace{3cm}
429 % Left \hspace{7cm} Right \\ \vspace{3cm}
430 % TextText}
431 % \end{lstlisting}
432 %
433 % \begin{figure}[H]
434 % \centering
435 % \resizebox{0.5\textwidth}{!}{%
436 % \cdrdisk{%
437 % {\Huge Title} \\ \vspace{3cm}%
438 % Left \hspace{7cm} Right \\ \vspace{3cm}%
439 % TextText}%
440 % }
441 % \caption{CD-R image with positioned texts}
442 % \end{figure}
443 %
444 % \DescribeMacro{\cddvddisk} The |\cddvddisk| macro is slightly bigger than the |\cdrdisk|, and has a smaller inner circle. This smaller inner cicrle
445 % is nearly as small as the center hole in the disks.
446 %
447 % \begin{lstlisting}
448 % \cddvddisk{
449 % {\Huge Title} \\ \vspace{3cm}
450 % Left \hspace{7cm} Right \\ \vspace{3cm}
451 % TextText}
452 % \end{lstlisting}
453 %
454 % \begin{figure}[H]
455 % \centering
456 % \resizebox{0.5\textwidth}{!}{%
457 % \cddvddisk{
458 % {\Huge Title} \\ \vspace{3cm}
459 % Left \hspace{7cm} Right \\ \vspace{3cm}
460 % TextText}
461 % }
462 % \caption{CD, DVD image with positioned texts}
463 % \end{figure}
464 %
465 % \DescribeMacro{\disk} The |\disk| macro provides the picture of a standard compact disk with all the circles indicating the different parts.
466 % The innermost circle is the size of the center hole in the disks.
467 %
468 % \begin{lstlisting}
469 % \disk{
470 % {\Huge Title} \\ \vspace{3cm}
471 % Left \hspace{7cm} Right \\ \vspace{3cm}
472 % TextText}
473 % \end{lstlisting}
474 %
475 % \begin{figure}[H]
476 % \centering
477 % \resizebox{0.5\textwidth}{!}{%
478 % \disk{%
479 % {\Huge Title} \\ \vspace{3cm}%
480 % Left \hspace{7cm} Right \\ \vspace{3cm}%
481 % TextText}%
482 % }
483 % \caption{Disk image with positioned texts}
484 % \end{figure}
485 %
486 % \DescribeMacro{\emptydisk} The |\emptydisk| macro provides the picture of a standard compact disk without all the circles indicating the different parts.
487 % The innermost circle is the size of the center hole in the disks.
488 %
489 % \begin{lstlisting}
490 % \emptydisk{
491 % {\Huge Title} \\ \vspace{3cm}
492 % Left \hspace{7cm} Right \\ \vspace{3cm}
493 % TextText}
494 % \end{lstlisting}
495 %
496 % \begin{figure}[H]
497 % \centering
498 % \resizebox{0.5\textwidth}{!}{%
499 % \emptydisk{%
500 % {\Huge Title} \\ \vspace{3cm}%
501 % Left \hspace{7cm} Right \\ \vspace{3cm}%
502 % TextText}%
503 % }
504 % \caption{Empty disk image with positioned texts}
505 % \end{figure}
506 %
507 % \DescribeMacro{\LXXXdisk} The |\LXXXdisk| macro is the disk image of a 80 millimeter disk.
508 %
509 % \begin{lstlisting}
510 % \LXXXdisk{Title \\ \vsapce{4cm} Text}
511 % \end{lstlisting}
512 %
513 % \begin{figure}[H]
514 % \centering
515 % \resizebox{0.4\textwidth}{!}{%
516 % \LXXXdisk{{\large Title } \\ \vspace{4cm} Text}
517 % }
518 % \caption{80 millimeter disk image with positioned texts}
519 % \end{figure}
520 %
521 % \subsubsection{VHS covers}
522 %
523 % \DescribeMacro{\vhsfront} The |\vhsfront| macro creates the label that can be placed on the front middle part of a VHS cassette.
524 % Usage: |\vhsfront| \marg{content} \\
525 %
526 % \begin{lstlisting}
527 % \vhsfront{\huge Text}
528 % \end{lstlisting}
529 %
530 % \begin{figure}[H]
531 % \centering
532 % \resizebox{0.5\textwidth}{!}{%
533 % \vhsfront{\huge Text}
534 % }
535 % \caption{VHS front label}
536 % \end{figure}
537 %
538 % \DescribeMacro{\vhsspine} The |\vhsspine| macro creates the spine that can be placed on the side of a VHS cassette.
539 % Usage: |\vhsspine| \marg{content} \\
540 %
541 % \begin{lstlisting}
542 % \vhsspine{\huge Text}
543 % \end{lstlisting}
544 %
545 % \begin{figure}[H]
546 % \centering
547 % \resizebox{0.8\textwidth}{!}{%
548 % \vhsspine{\huge Text}
549 % }
550 % \caption{VHS front label}
551 % \end{figure}
552 %
553 % \DescribeMacro{\CCCvhscover} \DescribeMacro{\CCCCvhscover} The |\CCCvhscover| and |\CCCvhscover| macros
554 % create a cover for a 300 series and 400 series VHS cassette, respectively. To differentiate between the two:
555 % the 300 series cover is 257 millimeter wide, the 400 series cover is 296 millimeter wide.
556 % Their usage is the same: |\CCCvhscover| \marg{front} \marg{spine} \marg{back} \\
557 %
558 % \begin{lstlisting}
559 % \CCCvhscover
560 % {\scalebox{6}{Front}}
561 % {\scalebox{4}{Spine}}
562 % {\scalebox{4}{Back}}
563 % \end{lstlisting}
564 %
565 % \begin{figure}[H]
566 % \centering
567 % \resizebox{0.9\textwidth}{!}{%
568 % \CCCvhscover{\scalebox{6}{Front}}{\scalebox{4}{Spine}}{\scalebox{4}{Back}}
569 % }
570 % \caption{Cover for a 300 series VHS case}
571 % \end{figure}
572 %
573 % \subsubsection{Audio cassette covers}
574 %
575 % \DescribeMacro{\cassettecover} The |\cassettecover| macro creates cover label for an audio cassette. Many types of cassettes exist with more or less
576 % different labels, so the provided label may need adjustments, like cutting off the corners or a rectangular inner part.
577 % Usage: |\cassettecover| \marg{content} \\
578 %
579 % \begin{lstlisting}
580 % \cassettecover
581 % {{\huge Upper text} \\ \vspace{2cm} Lower text}
582 % \end{lstlisting}
583 %
584 % \begin{figure}[H]
585 % \centering
586 % \resizebox{0.7\textwidth}{!}{%
587 % \cassettecover{{\huge Upper text} \\ \vspace{2cm} Lower text}
588 % }
589 % \caption{Cover label for an audio cassette}
590 % \end{figure}
591 %
592 % \DescribeMacro{\cassetteinlay} The |\cassetteinlay| macro provides an inlay for the standard cassette case.
593 % Usage: |\cassetteinlay| \marg{front} \marg{spine} \marg{back} \\
594 %
595 % \begin{lstlisting}
596 % \cassetteinlay
597 % {\huge Front}
598 % {Spine}
599 % {Back}
600 % \end{lstlisting}
601 %
602 % \begin{figure}[H]
603 % \centering
604 % \resizebox{0.7\textwidth}{!}{%
605 % \cassetteinlay
606 % {\huge Front}
607 % {Spine}
608 % {Back}
609 % }
610 % \caption{Cover label for an audio cassette}
611 % \end{figure}
612 %
613 % \subsubsection{Gramophone records}
614 %
615 % \DescribeMacro{\vinylcdcover} The |\vinylcdcover| macro provides a cover label for vinyl CDs.
616 % The vinyl CDs have the same size as standard CDs, they just look like old gramophone records. The outer circle is 65 millimeter in diameter,
617 % the inner circle is 16.7 milimeter in diameter. Usage: |\vinylcdcover| \marg{content} \\
618 %
619 % \begin{lstlisting}
620 % \vinylcdcover
621 % {{\huge Upper text} \\ \vspace{3cm} Lower text}
622 % \end{lstlisting}
623 %
624 % \begin{figure}[H]
625 % \centering
626 % \resizebox{0.7\textwidth}{!}{%
627 % \vinylcdcover{{\huge Upper text} \\ \vspace{3cm} Lower text}
628 % }
629 % \caption{Cover label for a vinyl CD}
630 % \end{figure}
631 %
632 % \DescribeMacro{\recordcover} The |\recordcover| macro creates cover label for a 30 centimeter record. The outer circle is 99 millimeter in diameter,
633 % the inner circle is 8 milimeter in diameter. Usage: |\recordcover| \marg{content} \\
634 %
635 % \begin{lstlisting}
636 % \recordcover
637 % {{\huge Upper text} \\ \vspace{3cm} Lower text}
638 % \end{lstlisting}
639 %
640 % \begin{figure}[H]
641 % \centering
642 % \resizebox{0.7\textwidth}{!}{%
643 % \recordcover{{\huge Upper text} \\ \vspace{3cm} Lower text}
644 % }
645 % \caption{Cover label for a gramophone record}
646 % \end{figure}
647 %
648 % \subsection{Layouts}
649 %
650 % The layouts are pre-set cover layouts for ease of use. Similar content can be produced and used in the cover macros.
651 %
652 % Some layouts contain preconfigured text. The texts are always
653 % in English and represent a personal preference. All layouts have a macro suffixed with the \texttt{empty} word that
654 % only contains the frames with no text, so one can insert any content.
655 %
656 % A layout can be used on various cover types. The first word in the layout's name decides the type.
657 % \begin{description}
658 % \item[jewel] type layouts are compatible with: |\covers| |\frontcover| |\sleeve| |\djewel| |\sleevela| |\singlesheet|
659 % \item[LX] type layouts are compatible with: |\LXfrontcover| |\sleeveLX|
660 % \item[LXXX] type layouts are compatible with: |\LXXXfrontcover| |\sleeveLXXX|
661 % \item[dvd] type layouts are compatible with: |\dvd| |\slimdvd|
662 % \item[bluray] type layouts are compatible with: |\bluray|
663 % \end{description}
664 % Note that this compatibility is not checked in the macros. The layouts were designed to be centered on the covers.
665 % If the |nohcenter| package option is used, they could get misplaced.
666 %
667 % Any parameter in a layout can be empty. It means that no content will be put in the appropriate cell. For example |\jewelflaglempty {} {Middle} {}|
668 %
669 % The numbers in the parentheses in the below examples marks the number of the parameter which will be placed there. For example (3) means the
670 % third parameter of the macro.
671 %
672 % Many layouts have a meaningful name, like driver, movie or music.
673 % These names indicate a sugessted usage and they are easier to remeber than layoutA, layoutB etc.
674 %
675 % \subsubsection{Jewel case layouts}
676 %
677 % \DescribeMacro{\jeweldriverl} \DescribeMacro{\jeweldriverlempty} The |\jeweldriverl| can be used to create cover for driver disks that are supplied with
678 % PC hardware elements.
679 % Usage: |\jeweldriverl| \marg{title} \marg{subtitle} \marg{date} \marg{serial} \marg{disk version} \marg{right middle cell} \marg{bottom cell}
680 %
681 % \begin{lstlisting}
682 % \frontcover
683 % {\jeweldriverl
684 % {Motherboard(1)}
685 % {Model XYZ (2)}
686 % {2012.20.12 (3)}
687 % {123456789 (4)}
688 % {12-ABC (5)}
689 % {Driver \\ Manual (6)}
690 % {Driver not compatible with ZYX operating system (7)}}
691 % \end{lstlisting}
692 %
693 % \begin{figure}[H]
694 % \centering
695 % \scalebox{0.6}{\frontcover{\jeweldriverl{Motherboard(1)}{Model XYZ (2)}{2012.20.12 (3)}{123456789 (4)}%
696 % {12-ABC (5)}{Driver \\ Manual (6)}{Driver not compatible with ZYX operating system (7)}}}
697 % \caption{Driver CD layout on a jewel case fronrcover}
698 % \end{figure}
699 %
700 % \vspace*{0.5cm}
701 %
702 % \DescribeMacro{\jewellempty} The |\jewellempty| macro provides the same border as in the other layouts, just with one cell with centered content.
703 % Usage: |\jewellempty| \marg{content} \\
704 %
705 % \DescribeMacro{\jewelmusiclempty} The |\jewelmusiclempty| macro is for music disks. There is no non-empty version as there isn't any text to be left out.
706 % Usage: |\jewelmusiclempty| \marg{title} \marg{performer} \marg{year} \marg{style} \\
707 %
708 % \begin{lstlisting}
709 % \sleeve
710 % [\jewellempty
711 % {\begin{enumerate}
712 % \item Track One
713 % \item Track Two
714 % \end{enumerate}}]
715 % {\jewelmusiclempty
716 % {Album X (1)}
717 % {XYZ band(2)}
718 % {2222 (3)}
719 % {Styles (4)}}
720 % \end{lstlisting}
721 %
722 % \begin{figure}[H]
723 % \centering
724 % \resizebox{0.5\textwidth}{!}{\sleeve[\jewellempty{\begin{enumerate} \item Track One \item Track Two \end{enumerate}}]%
725 % {\jewelmusiclempty{Album X (1)}{XYZ band(2)}{2222 (3)}{Styles (4)}}}
726 % \caption{Music layout on front, empty layout on back}
727 % \end{figure}
728 %
729 % \DescribeMacro{\jewelbacklempty}\DescribeMacro{\jewelbackIIlempty}
730 % The |\jewelbacklempty| macro is the pair of the |\jewellempty| macro. This is for the backsheet of a jewel case. The |\jewelbackIIlempty| macro is
731 % the same, without the layout border and centering. Their usage is the same.
732 % Usage: |\jewelbacklempty| \marg{content} \\
733 %
734 % \begin{lstlisting}
735 % \backsheet
736 % [\jewelbacklempty
737 % {Backsheet content}]
738 % {Spine text}
739 % \backsheet
740 % [\jewelbackIIlempty
741 % {Backsheet content}]
742 % {Spine text}
743 % \end{lstlisting}
744 %
745 % \begin{figure}[H]
746 % \begin{minipage}[b]{0.45\textwidth}
747 % \centering
748 % \resizebox{0.9\textwidth}{!}{\backsheet[\jewelbacklempty{Backsheet content}]{Spine text}}
749 % \caption{Empty jewel backsheet layout}
750 % \end{minipage}
751 % \hspace{0.5cm}
752 % \begin{minipage}[b]{0.45\textwidth}
753 % \centering
754 % \resizebox{0.9\textwidth}{!}{\backsheet[\jewelbackIIlempty{Backsheet content}]{Spine text}}
755 % \caption{Empty jewel backsheet layout without border and centering}
756 % \end{minipage}
757 % \end{figure}
758 %
759 % \DescribeMacro{\LXlempty} \DescribeMacro{\LXXXlempty} \DescribeMacro{\LXemptydriverl} \DescribeMacro{\LXXXemptydriverl} %
760 % \DescribeMacro{\LXdriverl} \DescribeMacro{\LXXXdriverl} The empty, empty driver and driver layouts for the 60
761 % and 80 millimeter disk covers: |\LXlempty|, |\LXXXlempty|, |\LXemptydriverl|, |\LXXXemptydriverl|, |\LXdriverl| and |\LXXXdriverl| macros.
762 %
763 % \begin{lstlisting}
764 % \LXfrontcover{\LXlempty{\scalebox{3}{Title}}}
765 % \LXXXfrontcover
766 % {\LXXXdriverl
767 % {Motherboard(1)}
768 % {Model XYZ (2)}
769 % {2012.20.12 (3)}
770 % {123456789 (4)}
771 % {12-ABC (5)}
772 % {Driver \\ Manual (6)}
773 % {Driver not compatible with ZYX operating system (7)}}
774 % \end{lstlisting}
775 %
776 % \begin{figure}[H]
777 % \begin{minipage}[b]{0.45\textwidth}
778 % \centering
779 % \resizebox{0.7\textwidth}{!}{\LXfrontcover{\LXlempty{\scalebox{3}{Title}}}}
780 % \caption{The \texttt{\textbackslash LXlempty} layout}
781 % \end{minipage}
782 % \hspace{0.5cm}
783 % \begin{minipage}[b]{0.45\textwidth}
784 % \centering
785 % \resizebox{0.75\textwidth}{!}{\LXXXfrontcover{\LXXXdriverl{Motherboard(1)}{Model XYZ (2)}{2012.20.12 (3)}{123456789 (4)}%
786 % {12-ABC (5)}{Driver \\ Manual (6)}{Driver not compatible with ZYX operating system (7)}}}
787 % \caption{The \texttt{\textbackslash LXXXdriverl} layout}
788 % \end{minipage}
789 % \end{figure}
790 %
791 % \DescribeMacro{\jewelstripeslempty} The |\jewelstripeslempty| macro provides a layout of a stiped jewel cover. If the second or
792 % the third parameters are empty, then the appropriate diagonal stripe will not be drawn.
793 % Usage: |\jewelstripeslempty| \marg{center content} \marg{upper right content} \marg{lower left content} \\
794 %
795 % \begin{lstlisting}
796 % \frontcover
797 % {\jewelstripeslempty
798 % {Main Title (1)}
799 % {Right upper text (2)}
800 % {Left lower text (3)}}
801 % \end{lstlisting}
802 %
803 % \begin{figure}[H]
804 % \centering
805 % \scalebox{0.6}{\frontcover
806 % {\jewelstripeslempty
807 % {Main Title (1)}
808 % {Right upper text (2)}
809 % {Left lower text (3)}}}
810 % \caption{Striped jewel cover with missing upper right stripe}
811 % \end{figure}
812 %
813 % \DescribeMacro{\jewelgamel} \DescribeMacro{\jewelgamelempty} The |\jewelgamel| and the |\jewelgamelempty| macros provide a layout for game disks.
814 % As usual, the empty version does not contain the preset texts.
815 % Usage: |\jewelgamel| \marg{title} \marg{release year} \marg{genres} \marg{developer} \marg{publisher} \marg{serial} \marg{comment} \\
816 %
817 % \begin{lstlisting}
818 % \frontcover
819 % {\jewelgamel
820 % {Title (1)}
821 % {<release year> (2)}
822 % {<genre list> (3)}
823 % {<developer> (4)}
824 % {<publisher> (5)}
825 % {<serial> (6)}
826 % {<comment> (7)}}
827 % \end{lstlisting}
828 %
829 % \begin{figure}[H]
830 % \centering
831 % \scalebox{0.6}{\frontcover
832 % {\jewelgamel
833 % {Title (1)}
834 % {\textless release year\textgreater (2)}
835 % {\textless genre list\textgreater (3)}
836 % {\textless developer\textgreater (4)}
837 % {\textless publisher\textgreater (5)}
838 % {\textless serial\textgreater (6)}
839 % {\textless comment\textgreater (7)}}}
840 % \caption{The \texttt{\textbackslash jewelgamel} layout}
841 % \end{figure}
842 %
843 % \DescribeMacro{\jewelflaglempty} The |\jewelflaglempty| macro creates a cover layout in a 3-striped flag format. Content can be put in each stripe.
844 % Usage: |\jewelflaglempty| \marg{upper content} \marg{middle content} \marg{lower content} \\
845 %
846 % \begin{lstlisting}
847 % \frontcover
848 % {\jewelflaglempty
849 % {Upper (1)}
850 % {\scalebox{3}{Middle (2)}}
851 % {Lower (3)}}
852 % \end{lstlisting}
853 %
854 % \begin{figure}[H]
855 % \centering
856 % \scalebox{0.6}{\frontcover
857 % {\jewelflaglempty
858 % {Upper (1)}
859 % {\scalebox{3}{Middle (2)}}
860 % {Lower (3)}}}
861 % \caption{The \texttt{\textbackslash jewelflaglempty} layout}
862 % \end{figure}
863 %
864 % \DescribeMacro{\jewellineslempty} The |\jewellineslempty| macro creates horizontal lines. The main purpose of these is
865 % to be written onto them by hand after printing. Nevertheless, content can be placed onto it with the first parameter.
866 % The content text must not be resized and it must contain odd number of lines. After even number of lines, add |\\ \ | like in
867 % the below example.
868 % Usage: |\jewellineslempty| \marg{content} \\
869 %
870 % \begin{lstlisting}
871 % \frontcover
872 % {\jewellineslempty
873 % {Text line 1 \\ Text line 2 \\ \ }}
874 % \end{lstlisting}
875 %
876 % \begin{figure}[H]
877 % \centering
878 % \scalebox{0.6}{
879 % \frontcover
880 % {\jewellineslempty
881 % {Text line 1 \\ Text line 2 \\ \ }}}
882 % \caption{The \texttt{\textbackslash jewellineslempty} layout}
883 % \end{figure}
884 %
885 % \DescribeMacro{\jeweltitledlempty} The |\jeweltitledlempty| macro creates a layout with an upper title part and a large lower part for content.
886 % Usage: |\jeweltitledlempty| \marg{title} \marg{content} \\
887 %
888 % \begin{lstlisting}
889 % \singlesheet
890 % {\jeweltitledlempty
891 % {Title}
892 % {Lots of content \\ More\dots \\ Even more\dots}}
893 % {}{}{}
894 % \end{lstlisting}
895 %
896 % \begin{figure}[H]
897 % \centering
898 % \scalebox{0.6}{
899 % \singlesheet
900 % {\jeweltitledlempty
901 % {Title}
902 % {Lots of content \\ More\dots \\ Even more\dots}}
903 % {}{}{}}
904 % \caption{The \texttt{\textbackslash jeweltitledlempty} layout}
905 % \end{figure}
906 %
907 % \subsubsection{Keepcase layouts}
908 %
909 % \DescribeMacro{\dvdlempty} The |\dvdlempty| macro provides the mandatory empty layout
910 % for the standard keepcases. It's usage is |\dvdlempty| \marg{content}.
911 %
912 % \DescribeMacro{\dvdmovielempty} \DescribeMacro{\dvdmoviel} The |\dvdmoviel| macro is for a movie disk cover.
913 % Usage: |\dvdmoviel| \marg{title} \marg{original title} \marg{release year} \marg{director}
914 % \marg{languages} \marg{subtitles} \marg{actors} \marg{comment} \\
915 %
916 % \begin{lstlisting}
917 % \dvd
918 % [\dvdlempty{\Large Back text}]
919 % {\dvdmoviel
920 % {Movie title (1)}
921 % {Original title (2)}
922 % {Release year (3)}
923 % {Director (4)}
924 % {Language1 \\ Language2 (5)}
925 % {Subtitle1 \\ Subtitle2 (6)}
926 % {Actor1 \\ Actor2 \\ Actor3 \\ Actor4 (7)}
927 % {Comment, rating, etc. (8)}}
928 % {spinetext}
929 % \end{lstlisting}
930 %
931 % \begin{figure}[H]
932 % \centering
933 % \scalebox{0.45}{\rotatebox{270}{\dvd[\dvdlempty{\Large Back text}]{\dvdmoviel{Movie title (1)}%
934 % {Original title (2)}{2012 (3)}{Director (4)}{Language1 \\ Language2 (5)}%
935 % {Subtitle1 \\ Subtitle2 (6)}{Actor1 \\ Actor2 \\ Actor3 \\ Actor4 (7)}{Comment, rating, etc. (8)}}{spinetext}} }
936 % \caption{Front movie and empty back layouts for DVD keepcase}
937 % \end{figure}
938 %
939 % \DescribeMacro{\bluraylempty} The |\bluraylempty| macro provides the mandatory empty
940 % layout for the Blu-ray keepcases. It's usage is |\bluraylempty| \marg{content}.
941 %
942 % \DescribeMacro{\bluraymovielempty} \DescribeMacro{\bluraymoviel} The |\bluraymoviel| macro is for a Blu-ray movie disk cover.
943 % Usage: |\bluraymoviel| \marg{title} \marg{original title} \marg{release year}
944 % \marg{director} \marg{languages} \marg{subtitles} \marg{actors} \marg{comment} \\
945 %
946 % \begin{lstlisting}
947 % \bluray
948 % [\bluraylempty{\Large Back text}]
949 % {\bluraymoviel
950 % {Movie title (1)}
951 % {Original title (2)}
952 % {Release year (3)}
953 % {Director (4)}
954 % {Language1 \\ Language2 (5)}
955 % {Subtitle1 \\ Subtitle2 (6)}
956 % {Actor1 \\ Actor2 \\ Actor3 \\ Actor4 (7)}
957 % {Comment, rating, etc. (8)}}
958 % {spinetext}
959 % \end{lstlisting}
960 %
961 % \begin{figure}[H]
962 % \centering
963 % \scalebox{0.45}{\rotatebox{270}{\bluray[\bluraylempty{\Large Back text}]{\bluraymoviel{Movie title (1)}%
964 % {Original title (2)}{2012 (3)}{Director (4)}{Language1 \\ Language2 (5)}%
965 % {Subtitle1 \\ Subtitle2 (6)}{Actor1 \\ Actor2 \\ Actor3 \\ Actor4 (7)}{Comment, rating, etc. (8)}}{spinetext}} }
966 % \caption{Front movie and empty back layouts for Blu-ray keepcase}
967 % \end{figure}
968 %
969 % \subsection{General macros}
970 %
971 % These macros are used behind the macros described above. They are made public, with one note:
972 % keep in mind that these can change during package development, so
973 % do not be suprised when after a package update, they work differently.
974 %
975 % Those parameters that require a length, expect a single, positive integer, for example a counter value.
976 % The numbers represent length in millimeters.
977 %
978 % \DescribeMacro{\keepcase} With |\keepcase|, one can create
979 % a custom sized keepcase in the format of cover, spine and a backside. It's usage is:
980 % |\keepcase| \oarg{backtext} \marg{cover text} \marg{spinetext} \marg{cover height} \marg{cover width} \marg{spine width}.
981 % The cover width refers to one side's width without the spine.
982 %
983 % \DescribeMacro{\inlay} With the general |\inlay| macro, one can create
984 % a custom sized inlay. It's usage is: |\inlay| \marg{text} \marg{inlay width} \marg{inlay height}.
985 %
986 % \vspace*{0.5cm}
987 %
988 % \subsection{Package Options}
989 %
990 % Use package options at the package loading as usual, for example: \\ |\usepackage[nofold,noalign]{simplecd}|.
991 %
992 % \begin{description}
993 % \item[noalign:] Many cover macros are containing some text alignment lengths. Without them, the content would be
994 % centered vertically in the frames. \label{opt:noalign}The |noalign| option sets these alignment lengths to zero, so one can align the
995 % contents individually. This option does not affect layout placement.
996 %
997 % \item[nofold:] As default, many covers contain folding lines with the same line type as where the pieces must be cut out.
998 % With the |nofold| option, the folding lines won't be drawn.
999 %
1000 % \item[spiner:] The |spiner| option rotates all spine texts with $180^\circ$.
1001 %
1002 % \item[nohcenter:] The |nohcenter| option disables the horizontal centering of the contents of all covers, labels and layouts.
1003 % \end{description}
1004 %
1005 % \vspace*{0.5cm}
1006 %
1007 % \section{Font size}
1008 %
1009 % For covers, often a large font is desired. Here is a list of the standard \LaTeX\ sizing macros:
1010 % \begin{itemize}
1011 % \item {\tiny |\tiny|}
1012 % \item {\scriptsize |\scriptsize|}
1013 % \item {\footnotesize |\footnotesize|}
1014 % \item {\small |\small|}
1015 % \item {\normalsize |\normalsize|}
1016 % \item {\large |\large|}
1017 % \item {\Large |\Large|}
1018 % \item {\LARGE |\LARGE|}
1019 % \item {\huge |\huge|}
1020 % \item {\Huge |\Huge|}
1021 % \end{itemize}
1022 % Their use is the same: |{\huge text to be resized}|.
1023 %
1024 % If the largest is still not enough, use the |\scalebox| \marg{ratio} \marg{text} macro:
1025 % \begin{itemize}
1026 % \item \scalebox{4}{ratio is 4}
1027 % \item \scalebox{5}{ratio is 5}
1028 % \item \scalebox{7}{ratio is 7}
1029 % \end{itemize}
1030 % The |\scalebox| macro can be used on many other things, not just text.
1031 %
1032 % All of the above presented methods increase or decrease the font size relative to the document's default font size.
1033 % To create fixed size fonts, use the \textsf{fix-cm} package's |\fontsize| macro.
1034 %
1035 % \section{Troubleshooting}
1036 %
1037 % \begin{description}
1038 % \item[Problem: the text won't fit into a frame.] Suggestions: try to break it into multiple lines, for example with the |\\| macro.
1039 % Decrease the font size. Use scaling to shrink the content with the |\scalebox{ratio}{object}| macro.
1040 % \item[Problem: printed pieces do not fit.] Suggestions: make sure the pieces are appropriate for the selected container. Make sure
1041 % the software used for viewing and printing result file (the PDF/DVI/PS viewer) does not resize the page before printing.
1042 % \item[Problem: the cover won't fit onto one page.] Suggestions: use a large enough paper size. Decrease te margin of the paper with
1043 % the \texttt{geometry} package. An A4 paper with 1cm margins should be able to contain all cover types.
1044 % \item[Problem: the content is not in the vertical center of a cover.] Suggestion: see the \texttt{noalign}
1045 % package option on page \pageref{opt:noalign}.
1046 % \end{description}
1047 %
1048 % \StopEventually{\PrintChanges\PrintIndex}
1049 %
1050 % \section{Implementation}
1051 %
1052 % Used for setting fix font size for spine texts.
1053 % \begin{macrocode}
1054 \RequirePackage{fix-cm}
1055 % \end{macrocode}
1056 %
1057 % Used for calculating lengths
1058 % \begin{macrocode}
1059 \RequirePackage{calc}
1060 % \end{macrocode}
1061 %
1062 % Used for the nofold option
1063 % \begin{macrocode}
1064 \RequirePackage{ifthen}
1065 % \end{macrocode}
1066
1067 % Used for drawing, resizing, rotating
1068 % \begin{macrocode}
1069 \RequirePackage{graphicx}
1070 % \end{macrocode}
1071
1072 %% The |noalign| option sets all text aligning lengths to zero.
1073 % \begin{macrocode}
1074 \DeclareOption{noalign}{
1075 \setlength{\sc@jewelalign}{0cm}
1076 \setlength{\sc@keepcasealign}{0cm}
1077 \setlength{\sc@inalign}{0cm}
1078 \setboolean{sc@align}{false}
1079 }
1080 % \end{macrocode}
1081
1082 %% Layouts should set this to true to indicate the containing cover
1083 %% to not use align spaces even if noalign is not used
1084 % \begin{macrocode}
1085 \newboolean{sc@layout}
1086 \setboolean{sc@layout}{false}
1087 % \end{macrocode}
1088
1089
1090 %% The |nofold| option removes the folding lines on the cut-outs.
1091 % \begin{macrocode}
1092 \DeclareOption{nofold}{
1093 \setboolean{sc@fold}{false}
1094 }
1095 % \end{macrocode}
1096
1097
1098 %% Redefines rotation degrees to rotate spine text with $180^\circ$.
1099 % \begin{macrocode}
1100 \DeclareOption{spiner}{
1101 \renewcommand{\sc@spinerotone}{270}
1102 \renewcommand{\sc@spinerottwo}{90}
1103 }
1104 % \end{macrocode}
1105
1106 %% Disables horizontal centering everywhere
1107 % \begin{macrocode}
1108 \DeclareOption{nohcenter}{
1109 \renewcommand{\sc@centering}{}
1110 }
1111 % \end{macrocode}
1112
1113 % \begin{macro}{\sc@spinerotone}
1114 % Default rotation degree. \\
1115 % Usage: |\sc@spinerotone|
1116 % \begin{macrocode}
1117 \newcommand{\sc@spinerotone}{90}
1118 % \end{macrocode}
1119 % \end{macro}
1120
1121 % \begin{macro}{\sc@spinerottwo}
1122 % Default rotation degree. \\
1123 % Usage: |\sc@spinerottwo|
1124 % \begin{macrocode}
1125 \newcommand{\sc@spinerottwo}{270}
1126 % \end{macrocode}
1127 % \end{macro}
1128
1129 %% Boolean for indicating whether or not the folding lines need to be drawn. True value means to draw.
1130 % \begin{macrocode}
1131 \newboolean{sc@fold}
1132 \setboolean{sc@fold}{true}
1133 % \end{macrocode}
1134
1135 %% Boolean for indicating whether or not the default aligning is needed.
1136 % \begin{macrocode}
1137 \newboolean{sc@align}
1138 \setboolean{sc@align}{true}
1139 % \end{macrocode}
1140
1141 % \begin{macro}{\sc@truestr}
1142 % Stores the string that is used to indicate to always draw a border in |\sc@choicebox|. \\
1143 % Usage: |\sc@truestr|
1144 % \begin{macrocode}
1145 \newcommand{\sc@truestr}{t}
1146 % \end{macrocode}
1147 % \end{macro}
1148
1149 % \begin{macro}{\sc@falsestr}
1150 % Stores the string that is used to indicate to not draw a border in |\sc@choicebox| if nofold option is set. \\
1151 % Usage: |\sc@falsestr|
1152 % \begin{macrocode}
1153 \newcommand{\sc@falsestr}{f}
1154 % \end{macrocode}
1155 % \end{macro}
1156
1157 % \begin{macro}{\sc@centering}
1158 % Centering alias to allow disabling the centering, see novcenter package option
1159 % Usage: |\sc@centering|
1160 % \begin{macrocode}
1161 \newcommand{\sc@centering}{\centering}
1162 % \end{macrocode}
1163 % \end{macro}
1164
1165 % \begin{macro}{\sc@unittype}
1166 % Unit type for all lengths. \\
1167 % Usage: |\sc@unittype|
1168 % \begin{macrocode}
1169 \newcommand{\sc@unittype}{mm}
1170 % \end{macrocode}
1171 % \end{macro}
1172
1173 % Setting unit length for drawing
1174 % \begin{macrocode}
1175 \newcommand{\sc@picinit}{%
1176 \setlength{\unitlength}{1\sc@unittype}%
1177 }
1178 % \end{macrocode}
1179
1180 %% Text aligning lengths
1181 % These lengths ensure that the text is not in the vertical center of a cell,
1182 % instead, they are little above of the center.
1183 % \begin{macrocode}
1184 \newlength{\sc@jewelalign}
1185 \setlength{\sc@jewelalign}{15 \sc@unittype}
1186 \newlength{\sc@keepcasealign}
1187 \setlength{\sc@keepcasealign}{40 \sc@unittype}
1188 \newlength{\sc@inalign}
1189 \setlength{\sc@inalign}{30 \sc@unittype}
1190 % \end{macrocode}
1191
1192 % Dimension names are created as follows: prefixed with |sc@|, then some letters for
1193 % identifying the case, then place, then width or height and the draw word.
1194
1195 %% CD jewel case dimensions
1196 % \begin{macrocode}
1197 \newcounter{sc@cdjccoverwidthdraw}
1198 \setcounter{sc@cdjccoverwidthdraw}{120}
1199 \newcounter{sc@cdjccoverheightdraw}
1200 \setcounter{sc@cdjccoverheightdraw}{120}
1201 \newcounter{sc@cdjcspinewidthdraw}
1202 \setcounter{sc@cdjcspinewidthdraw}{6}
1203 \newcounter{sc@cdjcbackheightdraw}
1204 \setcounter{sc@cdjcbackheightdraw}{117}
1205 \newcounter{sc@cdjcbackwidthdraw}
1206 \setcounter{sc@cdjcbackwidthdraw}{151}
1207 \newcounter{sc@cdjcbackinwidthdraw}
1208 \setcounter{sc@cdjcbackinwidthdraw}{%
1209 \value{sc@cdjcbackwidthdraw} - 2*\value{sc@cdjcspinewidthdraw}}
1210 % \end{macrocode}
1211
1212 %% Mini disk dimensions
1213 % \begin{macrocode}
1214 \newcounter{sc@cdLXXXjccoverwidthdraw}
1215 \setcounter{sc@cdLXXXjccoverwidthdraw}{80}
1216 \newcounter{sc@cdLXXXjccoverheightdraw}
1217 \setcounter{sc@cdLXXXjccoverheightdraw}{80}
1218 \newcounter{sc@cdLXjccoverwidthdraw}
1219 \setcounter{sc@cdLXjccoverwidthdraw}{60}
1220 \newcounter{sc@cdLXjccoverheightdraw}
1221 \setcounter{sc@cdLXjccoverheightdraw}{60}
1222 % \end{macrocode}
1223
1224 %% Jewelcase spine fixed text font size
1225 % \begin{macro}{\sc@cdjfontsize}
1226 % Usage: |\sc@cdjfontsize|
1227 % \begin{macrocode}
1228 \newcommand{\sc@cdjfontsize}{15}
1229 % \end{macrocode}
1230 % \end{macro}
1231
1232 %% DVD keepcase dimensions
1233 % \begin{macrocode}
1234 \newcounter{sc@dvdkccoverwidthdraw}
1235 \setcounter{sc@dvdkccoverwidthdraw}{128}
1236 \newcounter{sc@dvdkccoverheightdraw}
1237 \setcounter{sc@dvdkccoverheightdraw}{183}
1238 \newcounter{sc@dvdkcspinewidthdraw}
1239 \setcounter{sc@dvdkcspinewidthdraw}{14}
1240 \newcounter{sc@dvdkcinletwidthdraw}
1241 \setcounter{sc@dvdkcinletwidthdraw}{115}
1242 \newcounter{sc@dvdkcinletheightdraw}
1243 \setcounter{sc@dvdkcinletheightdraw}{175}
1244 % \end{macrocode}
1245
1246 % Slim DVD keepcase dimensions
1247 % \begin{macrocode}
1248 \newcounter{sc@sdvdkcspinewidthdraw}
1249 \setcounter{sc@sdvdkcspinewidthdraw}{7}
1250 % \end{macrocode}
1251
1252 %% Blu-ray keepcase dimensions
1253 % \begin{macrocode}
1254 \newcounter{sc@brcoverheightdraw}
1255 \setcounter{sc@brcoverheightdraw}{149}
1256 \newcounter{sc@brinletwidthdraw}
1257 \setcounter{sc@brinletwidthdraw}{115}
1258 \newcounter{sc@brinletheightdraw}
1259 \setcounter{sc@brinletheightdraw}{140}
1260 % \end{macrocode}
1261
1262 %% Dimensions for drawing the sleeves
1263 % \begin{macrocode}
1264 \newcounter{sc@dssleeve}
1265 \setcounter{sc@dssleeve}{15}
1266 \newcounter{sc@dssleeveLXXXmm}
1267 \setcounter{sc@dssleeveLXXXmm}{10}
1268 \newcounter{sc@dssleeveLXmm}
1269 \setcounter{sc@dssleeveLXmm}{8}
1270 % \end{macrocode}
1271
1272 % \begin{macrocode}
1273 \ProcessOptions\relax
1274 % \end{macrocode}
1275
1276 %% Temporary counters for the implementation.
1277 % \begin{macrocode}
1278 \newcounter{sc@tempa}
1279 \newcounter{sc@tempb}
1280 \newcounter{sc@tempc}
1281 \newcounter{sc@tempd}
1282 \newcounter{sc@tempe}
1283 \newcounter{sc@tempf}
1284 \newcounter{sc@tempg}
1285 \newcounter{sc@layouttempa}
1286 \newcounter{sc@layouttempb}
1287 \newcounter{sc@layouttempc}
1288 \newcounter{sc@resizertempa}
1289 % \end{macrocode}
1290
1291 % Puts the desired vspace if the amount is not null and no layout is currently being used
1292 % \begin{macrocode}
1293 \newcommand{\sc@doalign}[1]{%
1294 \ifthenelse{\equal{#1}{} \OR \boolean{sc@layout}}{}{\ \\ \vspace{#1}}%
1295 \setboolean{sc@layout}{false}%
1296 }
1297 % \end{macrocode}
1298
1299 % The covers are drawed inside the \texttt{picture} environment. The text is always placed inside a |\parbox| .
1300 %
1301 % The space produced with the |\vspace| macros are for aligning purposes. Without them, the texts would be
1302 % vertically centered in the cell.
1303
1304 % \begin{macro}{\covers}
1305 % Creates a jewel case cover with a front and a backsheet.
1306 % Usage: |\covers| \oarg{backsheet text} \marg{cover title} \marg{spine text}
1307 % \begin{macrocode}
1308 \DeclareRobustCommand{\covers}[3][\ ]{%
1309 \frontcover{#2}
1310
1311 \vspace*{0.5cm}%
1312 \backsheet[#1]{#3}%
1313 }
1314 % \end{macrocode}
1315 % \end{macro}
1316
1317 % \begin{macro}{\frontcover}
1318 % Creates front cover for a jewel case.
1319 % Usage: |\frontcover| \marg{cover title}
1320 % \begin{macrocode}
1321 \DeclareRobustCommand{\frontcover}[1]{%
1322 \sc@cell{#1}{\value{sc@cdjccoverwidthdraw}}%
1323 {\value{sc@cdjccoverheightdraw}}%
1324 {\sc@jewelalign}%
1325 }
1326 % \end{macrocode}
1327 % \end{macro}
1328
1329 % \begin{macro}{\LXfrontcover}
1330 % Creates front cover for a 60 millimeter jewel case.
1331 % Usage: |\LXfrontcover| \marg{cover title}
1332 % \begin{macrocode}
1333 \DeclareRobustCommand{\LXfrontcover}[1]{%
1334 \sc@cell{#1}{\value{sc@cdLXjccoverwidthdraw}}%
1335 {\value{sc@cdLXjccoverheightdraw}}%
1336 {\sc@jewelalign}%
1337 }
1338 % \end{macrocode}
1339 % \end{macro}
1340
1341 % \begin{macro}{\LXXXfrontcover}
1342 % Creates front cover for a 80 millimeter jewel case.
1343 % Usage: |\LXXXfrontcover| \marg{cover title}
1344 % \begin{macrocode}
1345 \DeclareRobustCommand{\LXXXfrontcover}[1]{%
1346 \sc@cell{#1}{\value{sc@cdLXXXjccoverwidthdraw}}%
1347 {\value{sc@cdLXXXjccoverheightdraw}}%
1348 {\sc@jewelalign}%
1349 }
1350 % \end{macrocode}
1351 % \end{macro}
1352
1353 % Rotating for one of the spine texts. Also used in |\singlesheet|
1354 % \begin{macrocode}
1355 \newcounter{sc@backsheetspinerot}
1356 \setcounter{sc@backsheetspinerot}{180+\sc@spinerotone}
1357 % \end{macrocode}
1358
1359 % \begin{macro}{\backsheet}
1360 % Creates backsheet for a jewel case with 2 spines.
1361 % Usage: |\backsheet| \oarg{backsheet middle text} \marg{spine text}
1362 % \begin{macrocode}
1363 \DeclareRobustCommand{\backsheet}[2][\ ]{%
1364 \sc@picinit%
1365 \begin{picture}%
1366 (\value{sc@cdjcbackwidthdraw}, \value{sc@cdjcbackheightdraw})%
1367 \sc@choicebox{\value{sc@cdjcspinewidthdraw}}%
1368 {\value{sc@cdjcbackheightdraw}}%
1369 {\rotatebox{\sc@spinerotone}%
1370 {\fontsize{\sc@cdjfontsize}{36}\selectfont #2}}%
1371 {\sc@truestr}{\sc@truestr}{\sc@truestr}{\sc@falsestr}%
1372 \sc@choicebox{\value{sc@cdjcbackinwidthdraw}}%
1373 {\value{sc@cdjcbackheightdraw}}%
1374 {\parbox[c]{\value{sc@cdjcbackinwidthdraw} \sc@unittype}{%
1375 \sc@centering #1\sc@doalign{\sc@jewelalign}}}%
1376 {\sc@truestr}{\sc@truestr}{\sc@falsestr}{\sc@falsestr}%
1377 \sc@choicebox{\value{sc@cdjcspinewidthdraw}}%
1378 {\value{sc@cdjcbackheightdraw}}%
1379 {\rotatebox{\value{sc@backsheetspinerot}}{%
1380 \fontsize{\sc@cdjfontsize}{36}\selectfont #2}}%
1381 {\sc@truestr}{\sc@truestr}{\sc@falsestr}{\sc@truestr}%
1382 \end{picture}%
1383 }
1384 % \end{macrocode}
1385 % \end{macro}
1386
1387 % \begin{macro}{\jewelspine}
1388 % Creates a single spine for a jewel case.
1389 % Usage: |\jewelspine| \marg{text}
1390 % \begin{macrocode}
1391 \DeclareRobustCommand{\jewelspine}[1]{%
1392 \sc@picinit%
1393 \begin{picture}%
1394 (\value{sc@cdjccoverheightdraw}, \value{sc@cdjcspinewidthdraw})%
1395 \framebox%
1396 (\value{sc@cdjccoverheightdraw}, \value{sc@cdjcspinewidthdraw})%
1397 {\fontsize{\sc@cdjfontsize}{36}\selectfont #1}%
1398 \end{picture}%
1399 }
1400 % \end{macrocode}
1401 % \end{macro}
1402
1403 % \begin{macro}{\singlesheet}
1404 % Creates a single sheet for a special jewel case.
1405 % Usage: |\singlesheet| \marg{front} \marg{front side} \marg{spine} \marg{back}
1406 % \begin{macrocode}
1407 \DeclareRobustCommand{\singlesheet}[4]{%
1408 \sc@picinit%
1409 \begin{picture}(155,120)%
1410 \put(0,2){%
1411 \sc@choicebox{15}{116}%
1412 {\rotatebox{90}{\parbox[c]{116\sc@unittype}{\sc@centering #4}}}%
1413 {\sc@truestr}{\sc@truestr}{\sc@truestr}{\sc@falsestr}}%
1414 \put(15,2){%
1415 \sc@choicebox{3}{116}%
1416 {\rotatebox{\value{sc@backsheetspinerot}}{\fontsize{9}{36}\selectfont #3}}%
1417 {\sc@truestr}{\sc@truestr}{\sc@falsestr}{\sc@falsestr}}%
1418 \put(36,0){%
1419 \makebox(120,120)[c]{%
1420 \parbox[c]{120\sc@unittype}{%
1421 \sc@centering #1\sc@doalign{\sc@jewelalign}}}}%
1422 \put(18,2){%
1423 \makebox(18,120)[c]{%
1424 \rotatebox{270}{\parbox[c]{18\sc@unittype}{\sc@centering #2}}}}%
1425 \put(18,2){\line(1,0){18}}%
1426 \put(18,118){\line(1,0){18}}%
1427 \put(36,0){\line(0,1){2}}%
1428 \put(36,118){\line(0,1){2}}%
1429 \put(36,0){\line(1,0){119}}%
1430 \put(36,120){\line(1,0){119}}%
1431 \put(155,0){\line(0,1){120}}%
1432 \end{picture}%
1433 }
1434 % \end{macrocode}
1435 % \end{macro}
1436
1437 % \begin{macro}{\sc@sleeve}
1438 % Creates a custom-sized sleeve for cutting out and glueing together.
1439 % Usage: |\sc@sleeve| \oarg{other side middle text} \marg{middle text} \marg{sleeve length}
1440 % \marg{cover height} \marg{cover width} \marg{sleeve drawing}
1441 % \begin{macrocode}
1442 \DeclareRobustCommand{\sc@sleeve}[6][]{%
1443 \setcounter{sc@tempc}{#5 + 2}%
1444 \setcounter{sc@tempd}{#4 + 2}%
1445 \setcounter{sc@tempe}{\value{sc@tempc} + #3 *2}%
1446 \setcounter{sc@tempf}{2 * \value{sc@tempd} + #3}%
1447 \setcounter{sc@tempg}{2 * \value{sc@tempd}}%
1448 \sc@picinit%
1449 \begin{picture}(\value{sc@tempe}, \value{sc@tempf})%
1450 \put(0,\value{sc@tempd}){#6}%
1451 \put(#3,\value{sc@tempf}){\rotatebox{270}{#6}}%
1452 \put(\value{sc@tempe},\value{sc@tempg}){\rotatebox{180}{#6}}%
1453 \put(#3,\value{sc@tempd}){%
1454 \sc@choicebox{\value{sc@tempc}}{\value{sc@tempd}}{%
1455 \parbox[c]{\value{sc@tempc} \sc@unittype}{%
1456 \sc@centering #2\sc@doalign{\sc@jewelalign}}%
1457 }{\sc@falsestr}{\sc@falsestr}{\sc@falsestr}{\sc@falsestr}%
1458 }%
1459 \put(#3,0){%
1460 \sc@choicebox{\value{sc@tempc}}{\value{sc@tempd}}{%
1461 \rotatebox{180}{\parbox[c]{\value{sc@tempc} \sc@unittype}{%
1462 \sc@centering #1\sc@doalign{\sc@jewelalign}}}%
1463 }{\sc@truestr}{\sc@falsestr}{\sc@truestr}{\sc@truestr}%
1464 }%
1465 \end{picture}%
1466 }
1467 % \end{macrocode}
1468 % \end{macro}
1469
1470 % \begin{macro}{\sc@sleevebox}
1471 % Draws a fold part of the sleeve.
1472 % Usage: |\usebox{\sc@sleevebox}|
1473 % \begin{macrocode}
1474 \newsavebox{\sc@sleevebox}
1475 \savebox{\sc@sleevebox}{%
1476 \sc@picinit%
1477 \setcounter{sc@tempa}{\value{sc@cdjccoverheightdraw} + 2}%
1478 \put(\value{sc@dssleeve},0){\line(-1,1){\value{sc@dssleeve}}}%
1479 \put(0,\value{sc@dssleeve}){\line(0,1){92}}%
1480 \put(\value{sc@dssleeve},\value{sc@tempa}){%
1481 \line(-1,-1){\value{sc@dssleeve}}}%
1482 }
1483 % \end{macrocode}
1484 % \end{macro}
1485
1486 % \begin{macro}{\sc@sleeveboxLXmm}
1487 % Draws a fold part of the 60 mm sleeve.
1488 % Usage: |\usebox{\sc@sleeveboxLXmm}|
1489 % \begin{macrocode}
1490 \newsavebox{\sc@sleeveboxLXmm}
1491 \savebox{\sc@sleeveboxLXmm}{%
1492 \sc@picinit%
1493 \setcounter{sc@tempa}{\value{sc@cdLXjccoverheightdraw} + 2}%
1494 \put(\value{sc@dssleeveLXmm},0)%
1495 {\line(-1,1){\value{sc@dssleeveLXmm}}}%
1496 \put(0,\value{sc@dssleeveLXmm}){\line(0,1){46}}%
1497 \put(\value{sc@dssleeveLXmm},\value{sc@tempa}){%
1498 \line(-1,-1){\value{sc@dssleeveLXmm}}}%
1499 }
1500 % \end{macrocode}
1501 % \end{macro}
1502
1503 % \begin{macro}{\sc@sleeveboxLXXXmm}
1504 % Draws a fold part of the 80 mm sleeve.
1505 % Usage: |\usebox{\sc@sleeveboxLXXXmm}|
1506 % \begin{macrocode}
1507 \newsavebox{\sc@sleeveboxLXXXmm}
1508 \savebox{\sc@sleeveboxLXXXmm}{%
1509 \sc@picinit%
1510 \setcounter{sc@tempa}{\value{sc@cdLXXXjccoverheightdraw} + 2}%
1511 \put(\value{sc@dssleeveLXXXmm},0)%
1512 {\line(-1,1){\value{sc@dssleeveLXXXmm}}}%
1513 \put(0,\value{sc@dssleeveLXXXmm}){\line(0,1){62}}%
1514 \put(\value{sc@dssleeveLXXXmm},\value{sc@tempa}){%
1515 \line(-1,-1){\value{sc@dssleeveLXXXmm}}}%
1516 }
1517 % \end{macrocode}
1518 % \end{macro}
1519
1520 % \begin{macro}{\sleeve}
1521 % Creates a disk sleeve for cutting out and glueing together.
1522 % Usage: |\sleeve| \oarg{other side middle text} \marg{middle text}
1523 % \begin{macrocode}
1524 \DeclareRobustCommand{\sleeve}[2][]{%
1525 \sc@sleeve[#1]{#2}{\value{sc@dssleeve}}%
1526 {\value{sc@cdjccoverheightdraw}}%
1527 {\value{sc@cdjccoverwidthdraw}}%
1528 {\usebox{\sc@sleevebox}}%
1529 }
1530 % \end{macrocode}
1531 % \end{macro}
1532
1533 % \begin{macro}{\sleeveLXXX}
1534 % Creates a 80 millimeter disk sleeve for cutting out and glueing together.
1535 % Usage: |\sleeveLXXX| \oarg{other side middle text} \marg{middle text}
1536 % \begin{macrocode}
1537 \DeclareRobustCommand{\sleeveLXXX}[2][]{%
1538 \sc@sleeve[#1]{#2}{\value{sc@dssleeveLXXXmm}}%
1539 {\value{sc@cdLXXXjccoverheightdraw}}%
1540 {\value{sc@cdLXXXjccoverwidthdraw}}%
1541 {\usebox{\sc@sleeveboxLXXXmm}}%
1542 }
1543 % \end{macrocode}
1544 % \end{macro}
1545
1546 % \begin{macro}{\sleeveLX}
1547 % Creates a 60 millimeter disk sleeve for cutting out and glueing together.
1548 % Usage: |\sleeveLX| \oarg{other side middle text} \marg{middle text}
1549 % \begin{macrocode}
1550 \DeclareRobustCommand{\sleeveLX}[2][]{%
1551 \sc@sleeve[#1]{#2}{\value{sc@dssleeveLXmm}}%
1552 {\value{sc@cdLXjccoverheightdraw}}%
1553 {\value{sc@cdLXjccoverwidthdraw}}%
1554 {\usebox{\sc@sleeveboxLXmm}}%
1555 }
1556 % \end{macrocode}
1557 % \end{macro}
1558
1559
1560
1561 % \begin{macro}{\sleevela}
1562 % Creates a disk sleeve for lever arch files.
1563 % Usage: |\sleevela| \oarg{back text} \marg{front text}
1564 % \begin{macrocode}
1565 \DeclareRobustCommand{\sleevela}[2][]{%
1566 \sc@picinit%
1567 \begin{picture}(165,248)%
1568 \put(13,0){\usebox{\sc@sleevebox}}%
1569 \put(165,122){\rotatebox{180}{\usebox{\sc@sleevebox}}}%
1570 \put(28,0){%
1571 \sc@choicebox{122}{122}{%
1572 \rotatebox{180}{%
1573 \parbox[c]{122\sc@unittype}{\sc@centering #1\sc@doalign{\sc@jewelalign}}%
1574 }}{\sc@truestr}{\sc@falsestr}{\sc@falsestr}{\sc@falsestr}%
1575 }%
1576 \put(28,122){%
1577 \sc@choicebox{122}{122}{%
1578 \parbox[c]{122\sc@unittype}{\sc@centering #2\sc@doalign{\sc@jewelalign}}%
1579 }{\sc@falsestr}{\sc@truestr}{\sc@falsestr}{\sc@truestr}%
1580 }%
1581 \put(0,122){%
1582 \sc@choicebox{28}{122}{}%
1583 {\sc@truestr}{\sc@truestr}{\sc@truestr}{\sc@falsestr}}%
1584 \put(14,142.5){\circle{6}}%
1585 \put(14,222.5){\circle{6}}%
1586 \end{picture}%
1587 }
1588 % \end{macrocode}
1589 % \end{macro}
1590
1591
1592 % \begin{macro}{\keepcase}
1593 % Universal macro for creating keepcases in various sizes.
1594 % Usage: |\keepcase| \oarg{backtext} \marg{cover text} \marg{spinetext} \marg{cover height}
1595 % \marg{cover width} \marg{spine width}
1596 % \begin{macrocode}
1597 \DeclareRobustCommand{\keepcase}[6][]{%
1598 \setcounter{sc@tempa}{2*#5 + #6 }%
1599 \sc@picinit%
1600 \begin{picture}(#4, \value{sc@tempa})%
1601 \rotatebox{90}{%
1602 \sc@choicebox{#5}{#4}{%
1603 \parbox[c]{#5 \sc@unittype}{%
1604 \sc@centering #1\sc@doalign{\sc@keepcasealign}}%
1605 }{\sc@truestr}{\sc@truestr}{\sc@truestr}{\sc@falsestr}%
1606 \sc@choicebox{#6}{#4}{%
1607 \rotatebox{\sc@spinerottwo}{\parbox[c]{#4 \sc@unittype}{%
1608 \sc@centering #3}}%
1609 }{\sc@truestr}{\sc@truestr}{\sc@falsestr}{\sc@falsestr}%
1610 \sc@choicebox{#5}{#4}{%
1611 \parbox[c]{#5 \sc@unittype}{%
1612 \sc@centering #2\sc@doalign{\sc@keepcasealign}}%
1613 }{\sc@truestr}{\sc@truestr}{\sc@falsestr}{\sc@truestr}%
1614 }%
1615 \end{picture}%
1616 }
1617 % \end{macrocode}
1618 % \end{macro}
1619
1620 % \begin{macro}{\slimdvd}
1621 % Creates a slim dvd keepcase cover.
1622 % Usage: |\slimdvd| \oarg{back text} \marg{cover text} \marg{spine text}
1623 % \begin{macrocode}
1624 \DeclareRobustCommand{\slimdvd}[3][]{%
1625 \keepcase[#1]{#2}{#3}{\value{sc@dvdkccoverheightdraw}}%
1626 {\value{sc@dvdkccoverwidthdraw}}%
1627 {\value{sc@sdvdkcspinewidthdraw}}%
1628 }
1629 % \end{macrocode}
1630 % \end{macro}
1631
1632 % \begin{macro}{\dvd}
1633 % Creates a dvd keepcase.
1634 % Usage: |\dvd| \oarg{back text} \marg{cover text} \marg{spine text}
1635 % \begin{macrocode}
1636 \DeclareRobustCommand{\dvd}[3][]{%
1637 \keepcase[#1]{#2}{#3}{\value{sc@dvdkccoverheightdraw}}%
1638 {\value{sc@dvdkccoverwidthdraw}}%
1639 {\value{sc@dvdkcspinewidthdraw}}%
1640 }
1641 % \end{macrocode}
1642 % \end{macro}
1643
1644 % \begin{macro}{\bluray}
1645 % Creates a Blu-Ray keepcase.
1646 % Usage: |\bluray| \oarg{backtext} \marg{cover text} \marg{spine text}
1647 % \begin{macrocode}
1648 \DeclareRobustCommand{\bluray}[3][]{%
1649 \keepcase[#1]{#2}{#3}{\value{sc@brcoverheightdraw}}%
1650 {\value{sc@dvdkccoverwidthdraw}}%
1651 {\value{sc@dvdkcspinewidthdraw}}%
1652 }
1653 % \end{macrocode}
1654 % \end{macro}
1655
1656 % \begin{macro}{\coverimg}
1657 % Resizes the image for a jewel case cover.
1658 % Usage: |\coverimg| \parg{picture}
1659 % \begin{macrocode}
1660 \DeclareRobustCommand{\coverimg}[1]{%
1661 \resizebox{\value{sc@cdjccoverwidthdraw} \sc@unittype}{%
1662 \value{sc@cdjccoverheightdraw} \sc@unittype}{#1}%
1663 }
1664 % \end{macrocode}
1665 % \end{macro}
1666
1667 % \begin{macro}{\backsheetimg}
1668 % Resizes the image for a jewel case backsheet with spines.
1669 % Usage: |\backsheetimg| \parg{picture}
1670 % \begin{macrocode}
1671 \DeclareRobustCommand{\backsheetimg}[1]{%
1672 \resizebox{%
1673 \value{sc@cdjcbackwidthdraw}+\value{sc@cdjcspinewidthdraw}*2%
1674 \sc@unittype}%
1675 {\value{sc@cdjcbackheightdraw} \sc@unittype}{#1}%
1676 }
1677 % \end{macrocode}
1678 % \end{macro}
1679
1680 % \begin{macro}{\slimdvdimg}
1681 % Resizes an image for the slim dvd keepcase.
1682 % Usage: |\slimdvdimg| \parg{picture}
1683 % \begin{macrocode}
1684 \DeclareRobustCommand{\slimdvdimg}[1]{%
1685 \resizebox{\value{sc@dvdkcheightdraw} \sc@unittype}%
1686 {\value{sc@sdvdkccoverwidthdraw}*2+\value{sc@sdvdkcspinewidthdraw}%
1687 \sc@unittype}{#1}%
1688 }
1689 % \end{macrocode}
1690 % \end{macro}
1691
1692 % \begin{macro}{\dvdimg}
1693 % Resizes an image for a dvd keepcase.
1694 % Usage: |\dvdimg| \parg{picture}
1695 % \begin{macrocode}
1696 \DeclareRobustCommand{\dvdimg}[1]{%
1697 \resizebox{\value{sc@dvdkcheightdraw} \sc@unittype}%
1698 {\value{sc@dvdkccoverwidthdraw}*2+\value{sc@dvdkcspinewidthdraw}%
1699 \sc@unittype}{#1}%
1700 }
1701 % \end{macrocode}
1702 % \end{macro}
1703
1704 % \begin{macro}{\blurayimg}
1705 % Resizes an image for the Blu-Ray keepcase.
1706 % Usage: |\blurayimg| \parg{picture}
1707 % \begin{macrocode}
1708 \DeclareRobustCommand{\blurayimg}[1]{%
1709 \resizebox{\value{sc@brcoverheightdraw} \sc@unittype}%
1710 {\value{sc@dvdkccoverwidthdraw}*2+\value{sc@dvdkcspinewidthdraw}%
1711 \sc@unittype}{#1}%
1712 }
1713 % \end{macrocode}
1714 % \end{macro}
1715
1716 % \begin{macro}{\sc@cell}
1717 % Creates a single cell for a cover, inlay.
1718 % Usage: |\sc@cell| \marg{text} \marg{width} \marg{height} \marg{aligning space}
1719 % \begin{macrocode}
1720 \DeclareRobustCommand{\sc@cell}[4]{%
1721 \sc@picinit%
1722 \begin{picture}(#2,#3)%
1723 \framebox(#2,#3)[c]{%
1724 \parbox[c]{#2 \sc@unittype}{\sc@centering #1\sc@doalign{#4}}%
1725 }%
1726 \end{picture}%
1727 }
1728 % \end{macrocode}
1729 % \end{macro}
1730
1731 % \begin{macro}{\sc@choicebox}
1732 % Creates a box with configurable borders. If a parameter in 4-7 range is |\sc@truestr|, then
1733 % the appropriate border is drawn. If |\sc@falsestr| or nofold option is used, border is not drawn.
1734 % Usage: |\sc@choicebox| \marg{width} \marg{height} \marg{text} \marg{bottom border}
1735 % \marg{top border} \marg{left border} \marg{right border}
1736 % \begin{macrocode}
1737 \newcommand{\sc@choicebox}[7]{%
1738 \makebox(#1,#2)[c]{%
1739 \parbox[c]{#1 \sc@unittype}{\sc@centering #3}%
1740 }%
1741 \ifthenelse{\boolean{sc@fold} \OR \equal{#4}{\sc@truestr}}%
1742 {\put(-#1,0){\line(1,0){#1}}}{}%
1743 \ifthenelse{\boolean{sc@fold} \OR \equal{#5}{\sc@truestr}}%
1744 {\put(-#1,#2){\line(1,0){#1}}}{}%
1745 \ifthenelse{\boolean{sc@fold} \OR \equal{#6}{\sc@truestr}}%
1746 {\put(-#1,0){\line(0,1){#2}}}{}%
1747 \ifthenelse{\boolean{sc@fold} \OR \equal{#7}{\sc@truestr}}%
1748 {\put(0,0){\line(0,1){#2}}}{}%
1749 }
1750 % \end{macrocode}
1751 % \end{macro}
1752
1753 % \begin{macro}{\inlay}
1754 % Creates a custom sized inlay.
1755 % Usage: |\inlay| \marg{text} \marg{width} \marg{height}
1756 % \begin{macrocode}
1757 \DeclareRobustCommand{\inlay}[3]{%
1758 \sc@cell{#1}{#2}{#3}{\sc@inalign}%
1759 }
1760 % \end{macrocode}
1761 % \end{macro}
1762
1763 % \begin{macro}{\dvdinlay}
1764 % Creates an inlay card for a dvd/slimdvd keepcase.
1765 % Usage: |\dvdinlay| \marg{text}
1766 % \begin{macrocode}
1767 \DeclareRobustCommand{\dvdinlay}[1]{%
1768 \inlay{#1}{\value{sc@dvdkcinletwidthdraw}}%
1769 {\value{sc@dvdkcinletheightdraw}}%
1770 }
1771 % \end{macrocode}
1772 % \end{macro}
1773
1774 % \begin{macro}{\blurayinlay}
1775 % Creates an inlay for a Blu-Ray keepcase.
1776 % Usage: |\blurayinlay| \marg{text}
1777 % \begin{macrocode}
1778 \DeclareRobustCommand{\blurayinlay}[1]{%
1779 \inlay{#1}{\value{sc@brinletwidthdraw}}%
1780 {\value{sc@brinletheightdraw}}%
1781 }
1782 % \end{macrocode}
1783 % \end{macro}
1784
1785 % \begin{macro}{\djewel}
1786 % Creates a two-page jewel case cover.
1787 % Usage: |\djewel| \marg{first page text} \marg{second page text}
1788 % \begin{macrocode}
1789 \DeclareRobustCommand{\djewel}[2]{%
1790 \setcounter{sc@tempa}{2 * \value{sc@cdjccoverwidthdraw}}%
1791 \sc@picinit%
1792 \begin{picture}(\value{sc@cdjccoverheightdraw}, \value{sc@tempa})%
1793 \rotatebox{90}{%
1794 \sc@choicebox{\value{sc@cdjccoverwidthdraw}}%
1795 {\value{sc@cdjccoverheightdraw}}{%
1796 \parbox[c]{\value{sc@cdjccoverwidthdraw} \sc@unittype}{%
1797 \sc@centering #2\sc@doalign{\sc@jewelalign}}%
1798 }{\sc@truestr}{\sc@truestr}{\sc@truestr}{\sc@falsestr}%
1799 \sc@choicebox{\value{sc@cdjccoverwidthdraw}}%
1800 {\value{sc@cdjccoverheightdraw}}{%
1801 \parbox[c]{\value{sc@cdjccoverwidthdraw} \sc@unittype}{%
1802 \sc@centering #1\sc@doalign{\sc@jewelalign}}%
1803 }{\sc@truestr}{\sc@truestr}{\sc@falsestr}{\sc@truestr}%
1804 }%
1805 \end{picture}%
1806 }
1807 % \end{macrocode}
1808 % \end{macro}
1809
1810 % \begin{macro}{\floppyIIIV}
1811 % Cover for the 3.5-inch floppy.
1812 % Usage: |\floppyIIIV| \marg{front content} \marg{back content}
1813 % \begin{macrocode}
1814 \DeclareRobustCommand{\floppyIIIV}[2]{%
1815 \sc@picinit%
1816 \begin{picture}(70,69.5)%
1817 \put(-2,66.5){\qbezier(3, 3)(2, 3)(2, 2)}%
1818 \put(1,69.5){\line(1,0){68}}%
1819 \put(66,66.5){\qbezier(4, 2)(4, 3)(3, 3)}%
1820 \put(0,56.5){%
1821 \makebox(70,13)[c]{\rotatebox{180}{\parbox[c]{70mm}{\sc@centering #2}}}}%
1822 \put(0,54){\sc@choicebox{70}{2.5}{}%
1823 {\sc@falsestr}{\sc@falsestr}{\sc@truestr}{\sc@truestr}}%
1824 \put(0,0){\makebox(70,54)[c]{\parbox[c]{70mm}{\sc@centering #1}}}%
1825 \put(0,1){\line(0,1){67.5}}%
1826 \put(70,1){\line(0,1){67.5}}%
1827 \put(1,0){\line(1,0){68}}%
1828 \put(-2,-1){\qbezier(2, 2)(2, 1)(3, 1)}%
1829 \put(66,-1){\qbezier(3, 1)(4, 1)(4, 2)}%
1830 \end{picture}%
1831 }
1832 % \end{macrocode}
1833 % \end{macro}
1834
1835 % \begin{macro}{\zipdisk}
1836 % Cover for a zip disk.
1837 % Usage: |\zipdisk| \marg{front content} \marg{back content}
1838 % \begin{macrocode}
1839 \DeclareRobustCommand{\zipdisk}[2]{%
1840 \sc@picinit%
1841 \begin{picture}(98,120)%
1842 \put(0,20){\makebox(98,100)[c]{\parbox[c]{98\sc@unittype}{\sc@centering #1}}}%
1843 \put(0,13){\sc@choicebox{98}{7}{}%
1844 {\sc@falsestr}{\sc@falsestr}{\sc@truestr}{\sc@truestr}}%
1845 \put(0,0){%
1846 \makebox(98,13)[c]{%
1847 \rotatebox{180}{\parbox[c]{98\sc@unittype}{\sc@centering #2}}}}%
1848 \put(0,0){\framebox(98,120){}}%
1849 \end{picture}%
1850 }
1851 % \end{macrocode}
1852 % \end{macro}
1853
1854 % \begin{macro}{\zipdiskII}
1855 % Cover for a zip disk.
1856 % Usage: |\zipdiskII| \marg{content}
1857 % \begin{macrocode}
1858 \DeclareRobustCommand{\zipdiskII}[1]{%
1859 \sc@cell{#1}{60}{51}{}%
1860 }
1861 % \end{macrocode}
1862 % \end{macro}
1863
1864 % \begin{macro}{\disk}
1865 % Creates a CD-R image.
1866 % Usage: |\disk| \marg{content}
1867 % \begin{macrocode}
1868 \DeclareRobustCommand{\disk}[1]{%
1869 \sc@picinit%
1870 \begin{picture}(120,120)%
1871 % Ellipse: u = 60.0 v = 60.0 a = 60.0 b = 60.0 phi = 0.0 Grad
1872 \qbezier(120.0, 60.0)(120.0, 84.8528)(102.4264, 102.4264)%
1873 \qbezier(102.4264, 102.4264)(84.8528, 120.0)(60.0, 120.0)%
1874 \qbezier(60.0, 120.0)(35.1472, 120.0)(17.5736, 102.4264)%
1875 \qbezier(17.5736, 102.4264)(0.0, 84.8528)(0.0, 60.0)%
1876 \qbezier(0.0, 60.0)(0.0, 35.1472)(17.5736, 17.5736)%
1877 \qbezier(17.5736, 17.5736)(35.1472, 0.0)(60.0, 0.0)%
1878 \qbezier(60.0, 0.0)(84.8528, 0.0)(102.4264, 17.5736)%
1879 \qbezier(102.4264, 17.5736)(120.0, 35.1472)(120.0, 60.0)%
1880 % Ellipse: u = 60.0 v = 60.0 a = 58.0 b = 58.0 phi = 0.0 Grad
1881 \qbezier(118.0, 60.0)(118.0, 84.0244)(101.0122, 101.0122)%
1882 \qbezier(101.0122, 101.0122)(84.0244, 118.0)(60.0, 118.0)%
1883 \qbezier(60.0, 118.0)(35.9756, 118.0)(18.9878, 101.0122)%
1884 \qbezier(18.9878, 101.0122)(2.0, 84.0244)(2.0, 60.0)%
1885 \qbezier(2.0, 60.0)(2.0, 35.9756)(18.9878, 18.9878)%
1886 \qbezier(18.9878, 18.9878)(35.9756, 2.0)(60.0, 2.0)%
1887 \qbezier(60.0, 2.0)(84.0244, 2.0)(101.0122, 18.9878)%
1888 \qbezier(101.0122, 18.9878)(118.0, 35.9756)(118.0, 60.0)%
1889 % Ellipse: u = 60.0 v = 60.0 a = 23.0 b = 23.0 phi = 0.0 Grad
1890 \qbezier(83.0, 60.0)(83.0, 69.5269)(76.2635, 76.2635)%
1891 \qbezier(76.2635, 76.2635)(69.5269, 83.0)(60.0, 83.0)%
1892 \qbezier(60.0, 83.0)(50.4731, 83.0)(43.7365, 76.2635)%
1893 \qbezier(43.7365, 76.2635)(37.0, 69.5269)(37.0, 60.0)%
1894 \qbezier(37.0, 60.0)(37.0, 50.4731)(43.7365, 43.7365)%
1895 \qbezier(43.7365, 43.7365)(50.4731, 37.0)(60.0, 37.0)%
1896 \qbezier(60.0, 37.0)(69.5269, 37.0)(76.2635, 43.7365)%
1897 \qbezier(76.2635, 43.7365)(83.0, 50.4731)(83.0, 60.0)%
1898 % Ellipse: u = 60.0 v = 60.0 a = 11.5 b = 11.5 phi = 0.0 Grad
1899 \qbezier(71.5, 60.0)(71.5, 64.7635)(68.1317, 68.1317)%
1900 \qbezier(68.1317, 68.1317)(64.7635, 71.5)(60.0, 71.5)%
1901 \qbezier(60.0, 71.5)(55.2365, 71.5)(51.8683, 68.1317)%
1902 \qbezier(51.8683, 68.1317)(48.5, 64.7635)(48.5, 60.0)%
1903 \qbezier(48.5, 60.0)(48.5, 55.2365)(51.8683, 51.8683)%
1904 \qbezier(51.8683, 51.8683)(55.2365, 48.5)(60.0, 48.5)%
1905 \qbezier(60.0, 48.5)(64.7635, 48.5)(68.1317, 51.8683)%
1906 \qbezier(68.1317, 51.8683)(71.5, 55.2365)(71.5, 60.0)%
1907 % Ellipse: u = 60.0 v = 60.0 a = 7.5 b = 7.5 phi = 0.0 Grad
1908 \qbezier(67.5, 60.0)(67.5, 63.1066)(65.3033, 65.3033)%
1909 \qbezier(65.3033, 65.3033)(63.1066, 67.5)(60.0, 67.5)%
1910 \qbezier(60.0, 67.5)(56.8934, 67.5)(54.6967, 65.3033)%
1911 \qbezier(54.6967, 65.3033)(52.5, 63.1066)(52.5, 60.0)%
1912 \qbezier(52.5, 60.0)(52.5, 56.8934)(54.6967, 54.6967)%
1913 \qbezier(54.6967, 54.6967)(56.8934, 52.5)(60.0, 52.5)%
1914 \qbezier(60.0, 52.5)(63.1066, 52.5)(65.3033, 54.6967)%
1915 \qbezier(65.3033, 54.6967)(67.5, 56.8934)(67.5, 60.0)%
1916 \put(0,0){%
1917 \makebox(120,120)[c]{%
1918 \parbox[c]{120\sc@unittype}{\sc@centering #1}%
1919 }}%
1920 \end{picture}%
1921 }
1922 % \end{macrocode}
1923 % \end{macro}
1924
1925 % \begin{macro}{\emptydisk}
1926 % Creates a CD-R image.
1927 % Usage: |\emptydisk| \marg{content}
1928 % \begin{macrocode}
1929 \DeclareRobustCommand{\emptydisk}[1]{%
1930 \sc@picinit%
1931 \begin{picture}(120,120)%
1932 % Ellipse: u = 60.0 v = 60.0 a = 60.0 b = 60.0 phi = 0.0 Grad
1933 \qbezier(120.0, 60.0)(120.0, 84.8528)(102.4264, 102.4264)%
1934 \qbezier(102.4264, 102.4264)(84.8528, 120.0)(60.0, 120.0)%
1935 \qbezier(60.0, 120.0)(35.1472, 120.0)(17.5736, 102.4264)%
1936 \qbezier(17.5736, 102.4264)(0.0, 84.8528)(0.0, 60.0)%
1937 \qbezier(0.0, 60.0)(0.0, 35.1472)(17.5736, 17.5736)%
1938 \qbezier(17.5736, 17.5736)(35.1472, 0.0)(60.0, 0.0)%
1939 \qbezier(60.0, 0.0)(84.8528, 0.0)(102.4264, 17.5736)%
1940 \qbezier(102.4264, 17.5736)(120.0, 35.1472)(120.0, 60.0)%
1941 % Ellipse: u = 60.0 v = 60.0 a = 7.5 b = 7.5 phi = 0.0 Grad
1942 \qbezier(67.5, 60.0)(67.5, 63.1066)(65.3033, 65.3033)%
1943 \qbezier(65.3033, 65.3033)(63.1066, 67.5)(60.0, 67.5)%
1944 \qbezier(60.0, 67.5)(56.8934, 67.5)(54.6967, 65.3033)%
1945 \qbezier(54.6967, 65.3033)(52.5, 63.1066)(52.5, 60.0)%
1946 \qbezier(52.5, 60.0)(52.5, 56.8934)(54.6967, 54.6967)%
1947 \qbezier(54.6967, 54.6967)(56.8934, 52.5)(60.0, 52.5)%
1948 \qbezier(60.0, 52.5)(63.1066, 52.5)(65.3033, 54.6967)%
1949 \qbezier(65.3033, 54.6967)(67.5, 56.8934)(67.5, 60.0)%
1950 \put(0,0){%
1951 \makebox(120,120)[c]{%
1952 \parbox[c]{120\sc@unittype}{\sc@centering #1}%
1953 }}%
1954 \end{picture}%
1955 }
1956 % \end{macrocode}
1957 % \end{macro}
1958
1959 % \begin{macro}{\cdrdisk}
1960 % Creates a CD-R image.
1961 % Usage: |\cdrdisk| \marg{content}
1962 % \begin{macrocode}
1963 \DeclareRobustCommand{\cdrdisk}[1]{%
1964 \sc@picinit%
1965 \begin{picture}(116, 116)%
1966 % Ellipse: u = 58.0 v = 58.0 a = 58.0 b = 58.0 phi = 0.0 Grad
1967 \qbezier(116.0, 58.0)(116.0, 82.0244)(99.0122, 99.0122)%
1968 \qbezier(99.0122, 99.0122)(82.0244, 116.0)(58.0, 116.0)%
1969 \qbezier(58.0, 116.0)(33.9756, 116.0)(16.9878, 99.0122)%
1970 \qbezier(16.9878, 99.0122)(0.0, 82.0244)(0.0, 58.0)%
1971 \qbezier(0.0, 58.0)(0.0, 33.9756)(16.9878, 16.9878)%
1972 \qbezier(16.9878, 16.9878)(33.9756, 0.0)(58.0, 0.0)%
1973 \qbezier(58.0, 0.0)(82.0244, 0.0)(99.0122, 16.9878)%
1974 \qbezier(99.0122, 16.9878)(116.0, 33.9756)(116.0, 58.0)%
1975 % Ellipse: u = 58.0 v = 58.0 a = 19.0 b = 19.0 phi = 0.0 Grad
1976 \qbezier(77.0, 58.0)(77.0, 65.8701)(71.435, 71.435)%
1977 \qbezier(71.435, 71.435)(65.8701, 77.0)(58.0, 77.0)%
1978 \qbezier(58.0, 77.0)(50.1299, 77.0)(44.565, 71.435)%
1979 \qbezier(44.565, 71.435)(39.0, 65.8701)(39.0, 58.0)%
1980 \qbezier(39.0, 58.0)(39.0, 50.1299)(44.565, 44.565)%
1981 \qbezier(44.565, 44.565)(50.1299, 39.0)(58.0, 39.0)%
1982 \qbezier(58.0, 39.0)(65.8701, 39.0)(71.435, 44.565)%
1983 \qbezier(71.435, 44.565)(77.0, 50.1299)(77.0, 58.0)%
1984 \put(0,0){%
1985 \makebox(116,116)[c]{%
1986 \parbox[c]{116\sc@unittype}{\sc@centering #1}%
1987 }}%
1988 \end{picture}%
1989 }
1990 % \end{macrocode}
1991 % \end{macro}
1992
1993 % \begin{macro}{\cddvddisk}
1994 % Creates a CD, DVD image.
1995 % Usage: |\cddvddisk| \marg{content}
1996 % \begin{macrocode}
1997 \DeclareRobustCommand{\cddvddisk}[1]{%
1998 \sc@picinit%
1999 \begin{picture}(117, 117)%
2000 % Ellipse: u = 58.5 v = 58.5 a = 58.5 b = 58.5 phi = 0.0 Grad
2001 \qbezier(117.0, 58.5)(117.0, 82.7315)(99.8657, 99.8657)%
2002 \qbezier(99.8657, 99.8657)(82.7315, 117.0)(58.5, 117.0)%
2003 \qbezier(58.5, 117.0)(34.2685, 117.0)(17.1343, 99.8657)%
2004 \qbezier(17.1343, 99.8657)(0.0, 82.7315)(0.0, 58.5)%
2005 \qbezier(0.0, 58.5)(0.0, 34.2685)(17.1343, 17.1343)%
2006 \qbezier(17.1343, 17.1343)(34.2685, 0.0)(58.5, 0.0)%
2007 \qbezier(58.5, 0.0)(82.7315, 0.0)(99.8657, 17.1343)%
2008 \qbezier(99.8657, 17.1343)(117.0, 34.2685)(117.0, 58.5)%
2009 % Ellipse: u = 58.5 v = 58.5 a = 11.25 b = 11.25 phi = 0.0 Grad
2010 \qbezier(69.75, 58.5)(69.75, 63.1599)(66.455, 66.455)%
2011 \qbezier(66.455, 66.455)(63.1599, 69.75)(58.5, 69.75)%
2012 \qbezier(58.5, 69.75)(53.8401, 69.75)(50.545, 66.455)%
2013 \qbezier(50.545, 66.455)(47.25, 63.1599)(47.25, 58.5)%
2014 \qbezier(47.25, 58.5)(47.25, 53.8401)(50.545, 50.545)%
2015 \qbezier(50.545, 50.545)(53.8401, 47.25)(58.5, 47.25)%
2016 \qbezier(58.5, 47.25)(63.1599, 47.25)(66.455, 50.545)%
2017 \qbezier(66.455, 50.545)(69.75, 53.8401)(69.75, 58.5)%
2018 \put(0,0){%
2019 \makebox(117,117)[c]{%
2020 \parbox[c]{117\sc@unittype}{\sc@centering #1}%
2021 }}%
2022 \end{picture}%
2023 }
2024 % \end{macrocode}
2025 % \end{macro}
2026
2027 % \begin{macro}{\LXXXdisk}
2028 % Creates a 80 millimeter disk image.
2029 % Usage: |\LXXXdisk| \marg{content}
2030 % \begin{macrocode}
2031 \DeclareRobustCommand{\LXXXdisk}[1]{%
2032 \sc@picinit%
2033 \begin{picture}(76, 76)%
2034 % Ellipse: u = 38.0 v = 38.0 a = 38.0 b = 38.0 phi = 0.0 Grad
2035 \qbezier(76.0, 38.0)(76.0, 53.7401)(64.8701, 64.8701)%
2036 \qbezier(64.8701, 64.8701)(53.7401, 76.0)(38.0, 76.0)%
2037 \qbezier(38.0, 76.0)(22.2599, 76.0)(11.1299, 64.8701)%
2038 \qbezier(11.1299, 64.8701)(0.0, 53.7401)(0.0, 38.0)%
2039 \qbezier(0.0, 38.0)(0.0, 22.2599)(11.1299, 11.1299)%
2040 \qbezier(11.1299, 11.1299)(22.2599, 0.0)(38.0, 0.0)%
2041 \qbezier(38.0, 0.0)(53.7401, 0.0)(64.8701, 11.1299)%
2042 \qbezier(64.8701, 11.1299)(76.0, 22.2599)(76.0, 38.0)%
2043 % Ellipse: u = 38.0 v = 38.0 a = 9.0 b = 9.0 phi = 0.0 Grad
2044 \qbezier(47.0, 38.0)(47.0, 41.7279)(44.364, 44.364)%
2045 \qbezier(44.364, 44.364)(41.7279, 47.0)(38.0, 47.0)%
2046 \qbezier(38.0, 47.0)(34.2721, 47.0)(31.636, 44.364)%
2047 \qbezier(31.636, 44.364)(29.0, 41.7279)(29.0, 38.0)%
2048 \qbezier(29.0, 38.0)(29.0, 34.2721)(31.636, 31.636)%
2049 \qbezier(31.636, 31.636)(34.2721, 29.0)(38.0, 29.0)%
2050 \qbezier(38.0, 29.0)(41.7279, 29.0)(44.364, 31.636)%
2051 \qbezier(44.364, 31.636)(47.0, 34.2721)(47.0, 38.0)%
2052 \put(0,0){%
2053 \makebox(76,76)[c]{%
2054 \parbox[c]{76\sc@unittype}{\sc@centering #1}%
2055 }}%
2056 \end{picture}%
2057 }
2058 % \end{macrocode}
2059 % \end{macro}
2060
2061 % \begin{macro}{\vhsfront}
2062 % Front label for a VHS cassette.
2063 % Usage: |\vhsfront| \marg{content}
2064 % \begin{macrocode}
2065 \DeclareRobustCommand{\vhsfront}[1]{%
2066 \sc@cell{#1}{76}{44}{}%
2067 }
2068 % \end{macrocode}
2069 % \end{macro}
2070
2071 % \begin{macro}{\vhsspine}
2072 % Side spine label for a VHS cassette.
2073 % Usage: |\vhsspine| \marg{content}
2074 % \begin{macrocode}
2075 \DeclareRobustCommand{\vhsspine}[1]{%
2076 \sc@cell{#1}{145}{17}{}%
2077 }
2078 % \end{macrocode}
2079 % \end{macro}
2080
2081 % \begin{macro}{\CCCvhscover}
2082 % Case for a 300 series VHS cassette.
2083 % Usage: |\CCCvhscover| \marg{front} \marg{spine} \marg{back}
2084 % \begin{macrocode}
2085 \DeclareRobustCommand{\CCCvhscover}[3]{%
2086 \keepcase[#3]{#1}{#2}{197}{115}{27}%
2087 }
2088 % \end{macrocode}
2089 % \end{macro}
2090
2091 % \begin{macro}{\CCCCvhscover}
2092 % Case for a 400 series VHS cassette.
2093 % Usage: |\CCCCvhscover| \marg{front} \marg{spine} \marg{back}
2094 % \begin{macrocode}
2095 \DeclareRobustCommand{\CCCCvhscover}[3]{%
2096 \keepcase[#3]{#1}{#2}{210}{134.5}{27}%
2097 }
2098 % \end{macrocode}
2099 % \end{macro}
2100
2101 % \begin{macro}{\cassettecover}
2102 % Cover label for an audio cassette.
2103 % Usage: |\cassettecover| \marg{content}
2104 % \begin{macrocode}
2105 \DeclareRobustCommand{\cassettecover}[1]{%
2106 \sc@picinit%
2107 \begin{picture}(88,39)%
2108 % Ellipse: u = 22.0 v = 16.5 a = 7.5 b = 7.5 phi = 0.0 Grad
2109 % \qbezier(29.5, 16.5)(29.5, 19.6066)(27.3033, 21.8033)%
2110 % \qbezier(27.3033, 21.8033)(25.1066, 24.0)(22.0, 24.0)%
2111 \qbezier(22.0, 24.0)(18.8934, 24.0)(16.6967, 21.8033)%
2112 \qbezier(16.6967, 21.8033)(14.5, 19.6066)(14.5, 16.5)%
2113 \qbezier(14.5, 16.5)(14.5, 13.3934)(16.6967, 11.1967)%
2114 \qbezier(16.6967, 11.1967)(18.8934, 9.0)(22.0, 9.0)%
2115 % \qbezier(22.0, 9.0)(25.1066, 9.0)(27.3033, 11.1967)%
2116 % \qbezier(27.3033, 11.1967)(29.5, 13.3934)(29.5, 16.5)%
2117 % Ellipse: u = 66.0 v = 16.5 a = 7.5 b = 7.5 phi = 0.0 Grad
2118 \qbezier(73.5, 16.5)(73.5, 19.6066)(71.3033, 21.8033)%
2119 \qbezier(71.3033, 21.8033)(69.1066, 24.0)(66.0, 24.0)%
2120 % \qbezier(66.0, 24.0)(62.8934, 24.0)(60.6967, 21.8033)%
2121 % \qbezier(60.6967, 21.8033)(58.5, 19.6066)(58.5, 16.5)%
2122 % \qbezier(58.5, 16.5)(58.5, 13.3934)(60.6967, 11.1967)%
2123 % \qbezier(60.6967, 11.1967)(62.8934, 9.0)(66.0, 9.0)%
2124 \qbezier(66.0, 9.0)(69.1066, 9.0)(71.3033, 11.1967)%
2125 \qbezier(71.3033, 11.1967)(73.5, 13.3934)(73.5, 16.5)%
2126 \put(22,9){\line(1,0){44}}%
2127 \put(22,24){\line(1,0){44}}%
2128 \framebox(88,39)[c]{\parbox[c]{88\sc@unittype}{\sc@centering #1}}%
2129 \end{picture}%
2130 }
2131 % \end{macrocode}
2132 % \end{macro}
2133
2134 % \begin{macro}{\cassetteinlay}
2135 % Cover label for an audio cassette.
2136 % Usage: |\cassetteinlay| \marg{content}
2137 % \begin{macrocode}
2138 \DeclareRobustCommand{\cassetteinlay}[3]{%
2139 \sc@picinit%
2140 \begin{picture}(102,104)%
2141 \put(0,38){%
2142 \sc@choicebox{102}{66}{\parbox[c]{102\sc@unittype}{\sc@centering #1}}%
2143 {\sc@falsestr}{\sc@truestr}{\sc@truestr}{\sc@truestr}}%
2144 \put(0,25){%
2145 \sc@choicebox{102}{13}{\parbox[c]{102\sc@unittype}{\sc@centering #2}}%
2146 {\sc@falsestr}{\sc@falsestr}{\sc@truestr}{\sc@truestr}}%
2147 \put(0,0){%
2148 \sc@choicebox{102}{25}{\parbox[c]{102\sc@unittype}{\sc@centering #3}}%
2149 {\sc@truestr}{\sc@falsestr}{\sc@truestr}{\sc@truestr}}%
2150 \end{picture}%
2151 }
2152 % \end{macrocode}
2153 % \end{macro}
2154
2155
2156 % \begin{macro}{\vinylcdcover}
2157 % Cover label for a vinyl CD.
2158 % Usage: |\vinylcdcover| \marg{content}
2159 % \begin{macrocode}
2160 \DeclareRobustCommand{\vinylcdcover}[1]{%
2161 \sc@picinit%
2162 \begin{picture}(65,65)%
2163 % Ellipse: u = 32.5 v = 32.5 a = 32.5 b = 32.5 phi = 0.0 Grad
2164 \qbezier(65.0, 32.5)(65.0, 45.9619)(55.481, 55.481)%
2165 \qbezier(55.481, 55.481)(45.9619, 65.0)(32.5, 65.0)%
2166 \qbezier(32.5, 65.0)(19.0381, 65.0)(9.519, 55.481)%
2167 \qbezier(9.519, 55.481)(0.0, 45.9619)(0.0, 32.5)%
2168 \qbezier(0.0, 32.5)(0.0, 19.0381)(9.519, 9.519)%
2169 \qbezier(9.519, 9.519)(19.0381, 0.0)(32.5, 0.0)%
2170 \qbezier(32.5, 0.0)(45.9619, 0.0)(55.481, 9.519)%
2171 \qbezier(55.481, 9.519)(65.0, 19.0381)(65.0, 32.5)%
2172 % Ellipse: u = 32.5 v = 32.5 a = 8.35 b = 8.35 phi = 0.0 Grad
2173 \qbezier(40.85, 32.5)(40.85, 35.9587)(38.4043, 38.4043)%
2174 \qbezier(38.4043, 38.4043)(35.9587, 40.85)(32.5, 40.85)%
2175 \qbezier(32.5, 40.85)(29.0413, 40.85)(26.5957, 38.4043)%
2176 \qbezier(26.5957, 38.4043)(24.15, 35.9587)(24.15, 32.5)%
2177 \qbezier(24.15, 32.5)(24.15, 29.0413)(26.5957, 26.5957)%
2178 \qbezier(26.5957, 26.5957)(29.0413, 24.15)(32.5, 24.15)%
2179 \qbezier(32.5, 24.15)(35.9587, 24.15)(38.4043, 26.5957)%
2180 \qbezier(38.4043, 26.5957)(40.85, 29.0413)(40.85, 32.5)%
2181 \put(0,0){%
2182 \makebox(65,65)[c]{\parbox[c]{65\sc@unittype}{\sc@centering #1}}}%
2183 \end{picture}%
2184 }
2185 % \end{macrocode}
2186 % \end{macro}
2187
2188 % \begin{macro}{\recordcover}
2189 % Cover label for a 30 centimeter record.
2190 % Usage: |\recordcover| \marg{content}
2191 % \begin{macrocode}
2192 \DeclareRobustCommand{\recordcover}[1]{%
2193 \sc@picinit%
2194 \begin{picture}(99,99)%
2195 % Ellipse: u = 49.5 v = 49.5 a = 49.5 b = 49.5 phi = 0.0 Grad
2196 \qbezier(99.0, 49.5)(99.0, 70.0036)(84.5018, 84.5018)%
2197 \qbezier(84.5018, 84.5018)(70.0036, 99.0)(49.5, 99.0)%
2198 \qbezier(49.5, 99.0)(28.9964, 99.0)(14.4982, 84.5018)%
2199 \qbezier(14.4982, 84.5018)(0.0, 70.0036)(0.0, 49.5)%
2200 \qbezier(0.0, 49.5)(0.0, 28.9964)(14.4982, 14.4982)%
2201 \qbezier(14.4982, 14.4982)(28.9964, 0.0)(49.5, 0.0)%
2202 \qbezier(49.5, 0.0)(70.0036, 0.0)(84.5018, 14.4982)%
2203 \qbezier(84.5018, 14.4982)(99.0, 28.9964)(99.0, 49.5)%
2204 % Ellipse: u = 49.5 v = 49.5 a = 4.0 b = 4.0 phi = 0.0 Grad
2205 \qbezier(53.5, 49.5)(53.5, 51.1569)(52.3284, 52.3284)%
2206 \qbezier(52.3284, 52.3284)(51.1569, 53.5)(49.5, 53.5)%
2207 \qbezier(49.5, 53.5)(47.8431, 53.5)(46.6716, 52.3284)%
2208 \qbezier(46.6716, 52.3284)(45.5, 51.1569)(45.5, 49.5)%
2209 \qbezier(45.5, 49.5)(45.5, 47.8431)(46.6716, 46.6716)%
2210 \qbezier(46.6716, 46.6716)(47.8431, 45.5)(49.5, 45.5)%
2211 \qbezier(49.5, 45.5)(51.1569, 45.5)(52.3284, 46.6716)%
2212 \qbezier(52.3284, 46.6716)(53.5, 47.8431)(53.5, 49.5)%
2213 \put(0,0){%
2214 \makebox(99,99)[c]{\parbox[c]{99\sc@unittype}{\sc@centering #1}}}%
2215 \end{picture}%
2216 }
2217 % \end{macrocode}
2218 % \end{macro}
2219
2220 % \begin{macro}{\sc@jewelemptyl}
2221 % Empty jewel layout.
2222 % Usage: |\sc@jewelemptyl| \marg{content} \marg{cover width} \marg{cover height}
2223 % \begin{macrocode}
2224 \DeclareRobustCommand{\sc@jewelemptyl}[3]{%
2225 \setboolean{sc@layout}{true}%
2226 \setcounter{sc@layouttempa}{#2 - 10}%
2227 \setcounter{sc@layouttempb}{#3 - 10}%
2228 \sc@picinit%
2229 \begin{picture}(\value{sc@layouttempa}, \value{sc@layouttempb})%
2230 \framebox(\value{sc@layouttempa}, \value{sc@layouttempb})[c]{#1}%
2231 \end{picture}%
2232 }
2233 % \end{macrocode}
2234 % \end{macro}
2235
2236 % \begin{macro}{\jewellempty}
2237 % Empty layout border.
2238 % Usage: |\jewellempty| \marg{content}
2239 % \begin{macrocode}
2240 \DeclareRobustCommand{\jewellempty}[1]{%
2241 \setcounter{sc@layouttempa}{\value{sc@cdjccoverwidthdraw} - 10}%
2242 \setcounter{sc@layouttempb}{\value{sc@cdjccoverheightdraw} - 10}%
2243 \sc@jewelemptyl{
2244 \makebox(\value{sc@layouttempa},\value{sc@layouttempb})[c]{%
2245 \parbox[c]{\value{sc@layouttempa} \sc@unittype}{\sc@centering #1}}}%
2246 {\value{sc@cdjccoverwidthdraw}}%
2247 {\value{sc@cdjccoverheightdraw}}%
2248 }
2249 % \end{macrocode}
2250 % \end{macro}
2251
2252 % \begin{macro}{\jeweldriverlempty}
2253 % Empty cover layout for a hardware driver disk.
2254 % Usage: |\jeweldriverlempty| \marg{title} \marg{subtitle} \marg{date} \marg{serial}
2255 % \marg{disk version} \marg{right middle cell} \marg{bottom cell}
2256 % \begin{macrocode}
2257 \DeclareRobustCommand{\jeweldriverlempty}[7]{%
2258 \sc@jewelemptyl{%
2259 \put(0,80){%
2260 \framebox(110,30){\parbox[c]{110mm}{\sc@centering\scalebox{4.5}{#1}}}}%
2261 \put(0,60){\framebox(110,20){\parbox[c]{110mm}{\sc@centering\huge #2}}}%
2262 \put(0,50){\framebox(55,10){\parbox[c]{55mm}{\sc@centering #3}}}%
2263 \put(0,40){\framebox(55,10){\parbox[c]{55mm}{\sc@centering #4}}}%
2264 \put(0,30){\framebox(55,10){\parbox[c]{55mm}{\sc@centering #5}}}%
2265 \put(55,30){\framebox(55,30)[t]{%
2266 \parbox[c]{4cm}{%
2267 \vspace{0.5cm}%
2268 \setlength{\baselineskip}{1.5\baselineskip} #6%
2269 }%
2270 }}%
2271 \put(0,0){\framebox(110,30)[t]{%
2272 \parbox[c]{10.5cm}{\vspace{0.5cm} #7}%
2273 }}}%
2274 {\value{sc@cdjccoverwidthdraw}}%
2275 {\value{sc@cdjccoverheightdraw}}%
2276 }
2277 % \end{macrocode}
2278 % \end{macro}
2279
2280 % \begin{macro}{\jeweldriverl}
2281 % Cover layout for a hardware driver disk.
2282 % Usage: |\jeweldriverl| \marg{title} \marg{subtitle} \marg{date} \marg{serial}
2283 % \marg{disk version} \marg{right middle cell} \marg{bottom cell}
2284 % \begin{macrocode}
2285 \DeclareRobustCommand{\jeweldriverl}[7]{%
2286 \jeweldriverlempty{#1}{#2}{Acquisition date: #3}{Serial: #4}%
2287 {Disk version/ID: #5}{#6}{#7}%
2288 }
2289 % \end{macrocode}
2290 % \end{macro}
2291
2292 % \begin{macro}{\jewelmusiclempty}
2293 % Cover layout for music disks.
2294 % Usage: |\jewelmusiclempty| \marg{title} \marg{performer} \marg{year} \marg{style}
2295 % \begin{macrocode}
2296 \DeclareRobustCommand{\jewelmusiclempty}[4]{%
2297 \sc@jewelemptyl{%
2298 \put(0,60){%
2299 \makebox(110,40)[c]{\parbox[c]{110mm}{\sc@centering\scalebox{4}{#1}}}}%
2300 \put(0,60){\makebox(110,10)[c]{\parbox[c]{110mm}{\sc@centering\Large #2}}}%
2301 \put(0,15){\makebox(110,20)[c]{\parbox[c]{110mm}{\sc@centering\Large #4}}}%
2302 \put(0,10){\makebox(110,10)[c]{\parbox[c]{110mm}{\sc@centering\Large #3}}}%
2303 }%
2304 {\value{sc@cdjccoverwidthdraw}}%
2305 {\value{sc@cdjccoverheightdraw}}%
2306 }
2307 % \end{macrocode}
2308 % \end{macro}
2309
2310 % \begin{macro}{\sc@jewelbackemptyl}
2311 % Empty jewel backsheet layout.
2312 % Usage: |\sc@jewelbackemptyl| \marg{content}
2313 % \begin{macrocode}
2314 \DeclareRobustCommand{\sc@jewelbackemptyl}[2]{%
2315 \setboolean{sc@layout}{true}%
2316 \setcounter{sc@layouttempa}{\value{sc@cdjcbackinwidthdraw} - 10}%
2317 \setcounter{sc@layouttempb}{\value{sc@cdjcbackheightdraw} - 10}%
2318 \sc@picinit%
2319 \begin{picture}(\value{sc@layouttempa}, \value{sc@layouttempb})%
2320 \csname#2\endcsname(\value{sc@layouttempa}, \value{sc@layouttempb})[c]{#1}%
2321 \end{picture}%
2322 }
2323 % \end{macrocode}
2324 % \end{macro}
2325
2326 % \begin{macro}{\jewelbacklempty}
2327 % Empty layout border.
2328 % Usage: |\jewelbacklempty| \marg{content}
2329 % \begin{macrocode}
2330 \DeclareRobustCommand{\jewelbacklempty}[1]{%
2331 \setcounter{sc@layouttempa}{\value{sc@cdjcbackinwidthdraw} - 10}%
2332 \setcounter{sc@layouttempb}{\value{sc@cdjcbackheightdraw} - 10}%
2333 \sc@jewelbackemptyl{%
2334 \parbox[c]{\value{sc@layouttempa} \sc@unittype}{\sc@centering #1}}{framebox}%
2335 }
2336 % \end{macrocode}
2337 % \end{macro}
2338
2339 % \begin{macro}{\jewelbackIIlempty}
2340 % Empty layout without border.
2341 % Usage: |\jewelbackIIlempty| \marg{content}
2342 % \begin{macrocode}
2343 \DeclareRobustCommand{\jewelbackIIlempty}[1]{%
2344 \setcounter{sc@layouttempa}{\value{sc@cdjcbackinwidthdraw} - 10}%
2345 \setcounter{sc@layouttempb}{\value{sc@cdjcbackheightdraw} - 10}%
2346 \sc@jewelbackemptyl{%
2347 \parbox[c]{\value{sc@layouttempa} \sc@unittype}{#1}}{makebox}%
2348 }
2349 % \end{macrocode}
2350 % \end{macro}
2351
2352 % \begin{macro}{\LXlempty}
2353 % Empty layout border for 60 millimeter disk covers.
2354 % Usage: |\LXlempty| \marg{content}
2355 % \begin{macrocode}
2356 \DeclareRobustCommand{\LXlempty}[1]{%
2357 \setboolean{sc@layout}{true}%
2358 \setcounter{sc@resizertempa}{\value{sc@cdLXjccoverwidthdraw} - 10}%
2359 \resizebox{\value{sc@resizertempa}\sc@unittype}{!}{%
2360 \sc@jewelemptyl{%
2361 \parbox[c]{\value{sc@resizertempa} \sc@unittype}{\sc@centering #1}}%
2362 {\value{sc@cdLXjccoverwidthdraw}}%
2363 {\value{sc@cdLXjccoverheightdraw}}}%
2364 }
2365 % \end{macrocode}
2366 % \end{macro}
2367
2368 % \begin{macro}{\LXXXlempty}
2369 % Empty layout border for 80 millimeter disk covers.
2370 % Usage: |\LXXXlempty| \marg{content}
2371 % \begin{macrocode}
2372 \DeclareRobustCommand{\LXXXlempty}[1]{%
2373 \setboolean{sc@layout}{true}%
2374 \setcounter{sc@resizertempa}{\value{sc@cdLXXXjccoverwidthdraw} - 10}%
2375 \resizebox{\value{sc@resizertempa}\sc@unittype}{!}{%
2376 \sc@jewelemptyl{%
2377 \parbox[c]{\value{sc@resizertempa} \sc@unittype}{\sc@centering #1}}%
2378 {\value{sc@cdLXXXjccoverwidthdraw}}%
2379 {\value{sc@cdLXXXjccoverheightdraw}}}%
2380 }
2381 % \end{macrocode}
2382 % \end{macro}
2383
2384 % \begin{macro}{\LXdriverlempty}
2385 % Driver layout border for 60 millimeter disk covers.
2386 % Usage: |\LXdriverlempty| \marg{title} \marg{subtitle} \marg{date} \marg{serial}
2387 % \marg{version} \marg{right middle cell} \marg{bottom cell}
2388 % \begin{macrocode}
2389 \DeclareRobustCommand{\LXdriverlempty}[7]{%
2390 \setboolean{sc@layout}{true}%
2391 \setcounter{sc@resizertempa}{\value{sc@cdLXjccoverheightdraw} - 10}%
2392 \resizebox{\value{sc@resizertempa}\sc@unittype}{!}{%
2393 \jeweldriverlempty{#1}{#2}{#3}{#4}{#5}{#6}{#7}}%
2394 }
2395 % \end{macrocode}
2396 % \end{macro}
2397
2398 % \begin{macro}{\LXXXdriverlempty}
2399 % Driver layout border for 80 millimeter disk covers.
2400 % Usage: |\LXXXdriverlempty| \marg{title} \marg{subtitle} \marg{date} \marg{serial}
2401 % \marg{disk version} \marg{right middle cell} \marg{bottom cell}
2402 % \begin{macrocode}
2403 \DeclareRobustCommand{\LXXXdriverlempty}[7]{%
2404 \setboolean{sc@layout}{true}%
2405 \setcounter{sc@resizertempa}{\value{sc@cdLXXXjccoverheightdraw} - 10}%
2406 \resizebox{\value{sc@resizertempa}\sc@unittype}{!}{%
2407 \jeweldriverlempty{#1}{#2}{#3}{#4}{#5}{#6}{#7}}%
2408 }
2409 % \end{macrocode}
2410 % \end{macro}
2411
2412 % \begin{macro}{\LXdriverl}
2413 % Driver layout border for 60 millimeter disk covers.
2414 % Usage: |\LXdriverl| \marg{title} \marg{subtitle} \marg{date} \marg{serial}
2415 % \marg{disk version} \marg{right middle cell} \marg{bottom cell}
2416 % \begin{macrocode}
2417 \DeclareRobustCommand{\LXdriverl}[7]{%
2418 \LXdriverlempty{#1}{#2}{Acquisition date: #3}{Serial: #4}%
2419 {Disk version/ID: #5}{#6}{#7}%
2420 }
2421 % \end{macrocode}
2422 % \end{macro}
2423
2424 % \begin{macro}{\LXXXdriverl}
2425 % Driver layout border for 80 millimeter disk covers.
2426 % Usage: |\LXXXdriverl| \marg{title} \marg{subtitle} \marg{date} \marg{serial}
2427 % \marg{disk version} \marg{right middle cell} \marg{bottom cell}
2428 % \begin{macrocode}
2429 \DeclareRobustCommand{\LXXXdriverl}[7]{%
2430 \LXXXdriverlempty{#1}{#2}{Acquisition date: #3}{Serial: #4}%
2431 {Disk version/ID: #5}{#6}{#7}%
2432 }
2433 % \end{macrocode}
2434 % \end{macro}
2435
2436 % \begin{macro}{\jewelstripeslempty}
2437 % One centered stripe and 2 optional diagonal stripes with content.
2438 % Usage: |\jewelstripeslempty| \marg{center content} \marg{upper right content} \marg{lower left content}
2439 % \begin{macrocode}
2440 \DeclareRobustCommand{\jewelstripeslempty}[3]{%
2441 \setboolean{sc@layout}{true}%
2442 \sc@picinit%
2443 \begin{picture}%
2444 (\value{sc@cdjccoverwidthdraw},\value{sc@cdjccoverheightdraw})%
2445 \put(0,75){\line(1,0){120}}%
2446 \put(0,45){\line(1,0){120}}%
2447 \put(0,45){\makebox(\value{sc@cdjccoverwidthdraw},30)[c]%
2448 {\parbox[c]{\value{sc@cdjccoverwidthdraw}\sc@unittype}{\sc@centering #1}}}%
2449 \ifthenelse{\equal{#2}{}}{}{%
2450 \put(62,117.5){\rotatebox{-40}{%
2451 \put(13.5,15){\line(1,0){49.8}}%
2452 \put(2.2,5){\line(1,0){69.8}}%
2453 \put(5,5){\makebox(60,10)[c]{\parbox[c]{50mm}{\sc@centering #2}}}}}}%
2454 \ifthenelse{\equal{#3}{}}{}{%
2455 \put(-5,29.5){\rotatebox{-40}{%
2456 \put(-6,15){\line(1,0){69.8}}%
2457 \put(2.2,5){\line(1,0){49.8}}%
2458 \put(0,5){\makebox(60,10)[c]{\parbox[c]{50mm}{\sc@centering #3}}}}}}%
2459 \end{picture}%
2460 }
2461 % \end{macrocode}
2462 % \end{macro}
2463
2464 % \begin{macro}{\jewelgamelempty}
2465 % Empty cover layout for a game disk.
2466 % Usage: |\jewelgamelempty| \marg{title} \marg{release year} \marg{genres} \marg{developer}
2467 % \marg{publisher} \marg{serial} \marg{comment}
2468 % \begin{macrocode}
2469 \DeclareRobustCommand{\jewelgamelempty}[7]{%
2470 \sc@jewelemptyl{%
2471 \put(0,70){%
2472 \framebox(110,40){\parbox[c]{110mm}{\sc@centering\scalebox{3}{#1}}}}%
2473 \put(0,60){\framebox(55,10){\parbox[c]{55mm}{\sc@centering #2}}}%
2474 \put(55,60){\framebox(55,10){\parbox[c]{55mm}{\sc@centering #3}}}%
2475 \put(0,50){\framebox(55,10){\parbox[c]{55mm}{\sc@centering #4}}}%
2476 \put(55,50){\framebox(55,10){\parbox[c]{55mm}{\sc@centering #5}}}%
2477 \put(0,40){\framebox(110,10){\parbox[c]{110mm}{\sc@centering #6}}}%%
2478 \put(0,0){\framebox(110,40)[t]{%
2479 \parbox[c]{105mm}{\vspace{5mm} #7}%
2480 }}}%
2481 {\value{sc@cdjccoverwidthdraw}}%
2482 {\value{sc@cdjccoverheightdraw}}%
2483 }
2484 % \end{macrocode}
2485 % \end{macro}
2486
2487 % \begin{macro}{\jewelgamel}
2488 % Cover layout for a game disk.
2489 % Usage: |\jewelgamel| \marg{title} \marg{release year} \marg{genres} \marg{developer}
2490 % \marg{publisher} \marg{serial} \marg{comment}
2491 % \begin{macrocode}
2492 \DeclareRobustCommand{\jewelgamel}[7]{%
2493 \jewelgamelempty{#1}{Released: #2}{Genre(s): #3}{Developer: #4}%
2494 {Publisher: #5}{Serial: #6}{#7}%
2495 }
2496 % \end{macrocode}
2497 % \end{macro}
2498
2499 % \begin{macro}{\jewelflaglempty}
2500 % Empty cover layout in a 3-striped flag format.
2501 % Usage: |\jewelflaglempty| \marg{upper content} \marg{middle content} \marg{lower content}
2502 % \begin{macrocode}
2503 \DeclareRobustCommand{\jewelflaglempty}[3]{%
2504 \sc@jewelemptyl{%
2505 \put(0,73.33){%
2506 \framebox(110,36.66){\parbox[c]{110mm}{\sc@centering #1}}}%
2507 \put(0,36.66){\framebox(110,36.66){\parbox[c]{110mm}{\sc@centering #2}}}%
2508 \put(0,0){\framebox(110,36.66){\parbox[c]{110mm}{\sc@centering #3}}}%
2509 }%
2510 {\value{sc@cdjccoverwidthdraw}}%
2511 {\value{sc@cdjccoverheightdraw}}%
2512 }
2513 % \end{macrocode}
2514 % \end{macro}
2515
2516 % \begin{macro}{\jewellineslempty}
2517 % Cover with horizontal lines.
2518 % Usage: |\jewellineslempty| \marg{content}
2519 % \begin{macrocode}
2520 \DeclareRobustCommand{\jewellineslempty}[1]{%
2521 \setboolean{sc@layout}{true}%
2522 \sc@picinit%
2523 \begin{picture}%
2524 (\value{sc@cdjccoverwidthdraw},\value{sc@cdjccoverheightdraw})%
2525 \put(5,110){\line(1,0){110}}%
2526 \put(5,100){\line(1,0){110}}%
2527 \put(5,90){\line(1,0){110}}%
2528 \put(5,80){\line(1,0){110}}%
2529 \put(5,70){\line(1,0){110}}%
2530 \put(5,60){\line(1,0){110}}%
2531 \put(5,50){\line(1,0){110}}%
2532 \put(5,40){\line(1,0){110}}%
2533 \put(5,30){\line(1,0){110}}%
2534 \put(5,20){\line(1,0){110}}%
2535 \put(5,10){\line(1,0){110}}%
2536 \put(5,10){%
2537 \makebox(110,110){%
2538 \parbox[c]{110mm}{\sc@centering \setlength\baselineskip{1cm} #1}}}%
2539 \end{picture}%
2540 }
2541 % \end{macrocode}
2542 % \end{macro}
2543
2544 % \begin{macro}{\jeweltitledlempty}
2545 % Empty cover layout with a top title part and a larger bottom part.
2546 % Usage: |\jeweltitledlempty| \marg{title} \marg{content}
2547 % \begin{macrocode}
2548 \DeclareRobustCommand{\jeweltitledlempty}[2]{%
2549 \setboolean{sc@layout}{true}%
2550 \sc@picinit%
2551 \begin{picture}(\value{sc@cdjccoverwidthdraw}, \value{sc@cdjccoverheightdraw})
2552 \put(5,100){%
2553 \makebox(110,20){\parbox[c]{110mm}{\sc@centering\huge #1}}}%
2554 \put(5,0){\makebox(110,100){\parbox[c]{110mm}{#2}}}%
2555 \end{picture}%
2556 }
2557 % \end{macrocode}
2558 % \end{macro}
2559
2560 % \begin{macro}{\dvdmovielempty}
2561 % Cover layout for movie DVDs.
2562 % Usage: |\dvdmovielempty| \marg{title} \marg{original title} \marg{release year}
2563 % \marg{director} \marg{languages} \marg{subtitle} \marg{actors} \marg{comment}
2564 % \begin{macrocode}
2565 \DeclareRobustCommand{\dvdmovielempty}[8]{%
2566 \setboolean{sc@layout}{true}%
2567 \setcounter{sc@layouttempa}{\value{sc@dvdkccoverwidthdraw} - 10}%
2568 \setcounter{sc@layouttempb}{\value{sc@dvdkccoverheightdraw} - 10}%
2569 \sc@picinit%
2570 \begin{picture}(\value{sc@layouttempa}, \value{sc@layouttempb})%
2571 \put(0,140){%
2572 \framebox(118,33)[c]{\parbox[c]{110mm}{\sc@centering\scalebox{3}{#1}}}}%
2573 \put(0,120){%
2574 \framebox(118,20)[c]{\parbox[c]{110mm}{\sc@centering\huge #2}}}%
2575 \put(0,110){\framebox(59,10)[c]{\parbox[c]{50mm}{\sc@centering #3}}}%
2576 \put(0,100){\framebox(59,10)[c]{\parbox[c]{50mm}{#4}}}%
2577 \put(0,70){\framebox(59,30)[c]{\parbox[c]{50mm}{#5}}}%
2578 \put(0,40){\framebox(59,30)[c]{\parbox[c]{50mm}{#6}}}%
2579 \put(59,40){\framebox(59,80)[c]{\parbox[c]{50mm}{#7}}}%
2580 \put(0,0){\framebox(118,40)[t]{\parbox[c]{108mm}{\vspace{0.5cm} #8}}}%
2581 \end{picture}%
2582 }
2583 % \end{macrocode}
2584 % \end{macro}
2585
2586 % \begin{macro}{\dvdmoviel}
2587 % Cover layout for movie DVDs.
2588 % Usage: |\dvdmoviel| \marg{title} \marg{original title} \marg{release year}
2589 % \marg{director} \marg{languages} \marg{subtitle} \marg{actors} \marg{comment}
2590 % \begin{macrocode}
2591 \DeclareRobustCommand{\dvdmoviel}[8]{%
2592 \dvdmovielempty{#1}{#2}{Released: #3}{Directed by: #4}%
2593 {\underline{Spoken languages:} \\ #5}%
2594 {\underline{Subtitles:} \\ #6}{\underline{Starring:} \\ #7}{#8}%
2595 }
2596 % \end{macrocode}
2597 % \end{macro}
2598
2599 % \begin{macro}{\dvdlempty}
2600 % Empty layout for DVD keepcases.
2601 % Usage: |\dvdlempty| \marg{content}
2602 % \begin{macrocode}
2603 \DeclareRobustCommand{\dvdlempty}[1]{%
2604 \setboolean{sc@layout}{true}%
2605 \setcounter{sc@layouttempa}{\value{sc@dvdkccoverwidthdraw} - 10}%
2606 \setcounter{sc@layouttempb}{\value{sc@dvdkccoverheightdraw} - 10}%
2607 \sc@picinit%
2608 \begin{picture}(\value{sc@layouttempa}, \value{sc@layouttempb})%
2609 \put(0,0){%
2610 \framebox(\value{sc@layouttempa}, \value{sc@layouttempb})[c]{%
2611 \parbox[c]{\value{sc@layouttempa}\sc@unittype}{\sc@centering #1}}}%
2612 \end{picture}%
2613 }
2614 % \end{macrocode}
2615 % \end{macro}
2616
2617 % \begin{macro}{\bluraymovielempty}
2618 % Cover layout for movie Blu-rays.
2619 % Usage: |\bluraymovielempty| \marg{title} \marg{original title} \marg{release year}
2620 % \marg{director} \marg{languages} \marg{subtitles} \marg{actors} \marg{comment}
2621 % \begin{macrocode}
2622 \DeclareRobustCommand{\bluraymovielempty}[8]{%
2623 \setboolean{sc@layout}{true}%
2624 \setcounter{sc@layouttempa}{\value{sc@dvdkccoverwidthdraw} - 10}%
2625 \setcounter{sc@layouttempb}{\value{sc@brcoverheightdraw} - 10}%
2626 \sc@picinit%
2627 \begin{picture}(\value{sc@layouttempa}, \value{sc@layouttempb})%
2628 \put(0,120){%
2629 \framebox(118,20)[c]{\parbox[c]{110mm}{\sc@centering\scalebox{3}{#1}}}}%
2630 \put(0,105){%
2631 \framebox(118,15)[c]{\parbox[c]{110mm}{\sc@centering\huge #2}}}%
2632 \put(0,95){\framebox(59,10)[c]{\parbox[c]{50mm}{\sc@centering #3}}}%
2633 \put(0,85){\framebox(59,10)[c]{\parbox[c]{50mm}{#4}}}%
2634 \put(0,55){\framebox(59,30)[c]{\parbox[c]{50mm}{#5}}}%
2635 \put(0,25){\framebox(59,30)[c]{\parbox[c]{50mm}{#6}}}%
2636 \put(59,25){\framebox(59,80)[c]{\parbox[c]{50mm}{#7}}}%
2637 \put(0,0){\framebox(118,25)[t]{\parbox[c]{108mm}{\vspace{0.5cm} #8}}}%
2638 \end{picture}%
2639 }
2640 % \end{macrocode}
2641 % \end{macro}
2642
2643 % \begin{macro}{\bluraymoviel}
2644 % Cover layout for movie Blu-rays.
2645 % Usage: |\bluraymoviel| \marg{title} \marg{original title} \marg{release year}
2646 % \marg{director} \marg{languages} \marg{subtitles} \marg{actors} \marg{comment}
2647 % \begin{macrocode}
2648 \DeclareRobustCommand{\bluraymoviel}[8]{%
2649 \bluraymovielempty{#1}{#2}{Released: #3}{Directed by: #4}%
2650 {\underline{Spoken languages:} \\ #5}%
2651 {\underline{Subtitles:} \\ #6}{\underline{Starring:} \\ #7}{#8}%
2652 }
2653 % \end{macrocode}
2654 % \end{macro}
2655
2656 % \begin{macro}{\bluraylempty}
2657 % Empty layout for Blu-ray keepcases.
2658 % Usage: |\bluraylempty| \marg{content}
2659 % \begin{macrocode}
2660 \DeclareRobustCommand{\bluraylempty}[1]{%
2661 \setboolean{sc@layout}{true}%
2662 \setcounter{sc@layouttempa}{\value{sc@dvdkccoverwidthdraw} - 10}%
2663 \setcounter{sc@layouttempb}{\value{sc@brcoverheightdraw} - 10}%
2664 \sc@picinit%
2665 \begin{picture}(\value{sc@layouttempa}, \value{sc@layouttempb})%
2666 \put(0,0){%
2667 \framebox(\value{sc@layouttempa}, \value{sc@layouttempb})[c]{%
2668 \parbox[c]{\value{sc@layouttempa}\sc@unittype}{\sc@centering #1}}}%
2669 \end{picture}%
2670 }
2671 % \end{macrocode}
2672 % \end{macro}
2673 %
2674 % \Finale
2675 \endinput