diff options
Diffstat (limited to 'Master/texmf-dist')
-rw-r--r-- | Master/texmf-dist/doc/latex/simplecd/README | 59 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/simplecd/examples.pdf | bin | 0 -> 128944 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/latex/simplecd/examples.tex | 40 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/simplecd/simplecd.pdf | bin | 246699 -> 527911 bytes | |||
-rw-r--r-- | Master/texmf-dist/source/latex/simplecd/simplecd.dtx | 1690 | ||||
-rw-r--r-- | Master/texmf-dist/source/latex/simplecd/simplecd.ins | 4 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/simplecd/simplecd.sty | 900 |
7 files changed, 2074 insertions, 619 deletions
diff --git a/Master/texmf-dist/doc/latex/simplecd/README b/Master/texmf-dist/doc/latex/simplecd/README index bd1392f968b..2df31144b12 100644 --- a/Master/texmf-dist/doc/latex/simplecd/README +++ b/Master/texmf-dist/doc/latex/simplecd/README @@ -1,4 +1,4 @@ -Copyright (C) 2010 by Daniel Majoros +Copyright (C) 2010-2012 by Daniel Majoros This file may be distributed and/or modified under the conditions of the LaTeX Project Public License, either @@ -13,25 +13,52 @@ LaTeX version 1999/12/01 or later. The simplecd package -The simplecd package provides printable cut-outs for various CD,DVD and other disc holders. +The simplecd package provides printable cut-outs for various CD, DVD and other disc holders. The name of the package comes form it's implementation and ease of use. -The simplecd package was created for producing cut-outs for creating covers, inlets for +The simplecd package was created for producing cut-outs for creating covers, inlays(inlets) for optical disc packaging such as jewel cases, keepcases. The covers were aimed for containing only -simple text with different font sizes, but since it is only a \parbox in a tabular enviroment's cell, it can -contain anything that a \parbox can contain. +simple text with different font sizes, but since everything is placed inside a \parbox environment, it can +contain a wide range of things. There are also macros which can resize ready-to-print images to the appropriate size. -The supported covers are --jewel case front, back and individual spine --two-page jewel case front --slim DVD keepcase --normal DVD keepcase --Blu-Ray keepcase --costum-sized keepcase --disk sleeve --one sided DVD keepcase inlay --one sided Blu-Ray keepcase inlay --costum-sized inlay +The layout macros provide ready-to-use formatting for the covers. +Cover, keepcase, sleeve macros support: + - jewel case front, back and individual spine + - 60 and 80 millimeter jewel case covers + - two-page jewel case front + - slim DVD keepcase + - normal DVD keepcase + - Blu-Ray keepcase + - custom-sized keepcase + - disk sleeve + - sleeve for 60 and 80 millimeter disks + - sleeve for lever arch files + - one sided DVD keepcase inlay + - one sided Blu-Ray keepcase inlay + - custom-sized inlay + - CD-R, CD, DVD disk images + - 60 and 80 millimeter disk images + +Layout macros: + - empty layouts for all macros listed below + - driver layout for standard, 60 and 80 millimeter covers + - movie layout for DVD and Blu-ray keepcases + - music layout for jewel cases + + +Version history: + +1.1 + - Rewrote the drawing mechanism, covers will never be resized based on content + - Added support for 60 and 80 millimeter disks + - Added sleeve for lever arch files + - Added disk images + - Added layouts: ready-to-use designs for cover content + - Added troubleshooting and font size section into the documentation + - Added examples tex and pdf files + +1.0 + - Initial release diff --git a/Master/texmf-dist/doc/latex/simplecd/examples.pdf b/Master/texmf-dist/doc/latex/simplecd/examples.pdf Binary files differnew file mode 100644 index 00000000000..f6a77a9eeb6 --- /dev/null +++ b/Master/texmf-dist/doc/latex/simplecd/examples.pdf diff --git a/Master/texmf-dist/doc/latex/simplecd/examples.tex b/Master/texmf-dist/doc/latex/simplecd/examples.tex new file mode 100644 index 00000000000..f88089e682c --- /dev/null +++ b/Master/texmf-dist/doc/latex/simplecd/examples.tex @@ -0,0 +1,40 @@ + +\documentclass[a4paper,10pt,oneside]{article} +\pagestyle{empty} + +%Sets margins in centimetres +\usepackage[left=1cm, top=1cm, right=2cm, bottom=1cm]{geometry} + +\usepackage{simplecd} + +\begin{document} + +\djewel{{\Large Double jewel front frontpage}}{second page} +\newpage +\dvd[backtext]{{\Huge DVD keepcase}}{spine} +\newpage +\bluray{{\Huge Blu-Ray keepcase}}{Spine} +\newpage +\slimdvd[backtext]{{\Huge Slim DVD keepcase}}{spine} +\newpage +\dvdinlay{{\Huge DVD keepcase inlay}} +\newpage +\sleeve{{\Huge Disk Sleeve}} +\newpage +\covers[{\Large Backsheet text}]{{{\Huge Jewel case cover} \\ \vspace{0.5cm} {\large TestSubtitle}}}{TestSpineText} + +\vspace{0.5cm} +\jewelspine{Jewel case spine} +\newpage +\sleevela[Back text]{\jeweldriverl{Lever arch(1)}{sleeve with layout (2)}{2012.20.12 (3)}{123456789 (4)}% + {12-ABC (5)}{Driver \\ Manual (6)}{Driver not compatible with ZYX operating system (7)}} +\newpage +\cddvddisk{{\Huge CD} \\ \vspace{3cm} Left \hspace{7cm} Right \\ \vspace{3cm} TextText} + +\vspace{2cm} + +\LXXXdisk{{\large 80 millmieter disk } \\ \vspace{4cm} Text} +\newpage +\sleeveLXXX[Back text]{\large 80 millimeter sleeve} + +\end{document}
\ No newline at end of file diff --git a/Master/texmf-dist/doc/latex/simplecd/simplecd.pdf b/Master/texmf-dist/doc/latex/simplecd/simplecd.pdf Binary files differindex 444a889611e..4ab6b0b644a 100644 --- a/Master/texmf-dist/doc/latex/simplecd/simplecd.pdf +++ b/Master/texmf-dist/doc/latex/simplecd/simplecd.pdf diff --git a/Master/texmf-dist/source/latex/simplecd/simplecd.dtx b/Master/texmf-dist/source/latex/simplecd/simplecd.dtx index 4b6b3245eae..59adc3b1175 100644 --- a/Master/texmf-dist/source/latex/simplecd/simplecd.dtx +++ b/Master/texmf-dist/source/latex/simplecd/simplecd.dtx @@ -1,7 +1,7 @@ % \iffalse meta-comment % -% Copyright (C) 2010 by Daniel Majoros +% Copyright (C) 2010-2012 by Daniel Majoros % % This file may be distributed and/or modified under the % conditions of the LaTeX Project Public License, either @@ -18,25 +18,37 @@ %\iffalse %<package>\NeedsTeXFormat{LaTeX2e} %<package>\ProvidesPackage{simplecd} -%<package> [2010/07/01 v1.0 simple cd, dvd covers] +%<package> [2012/11/04 v1.1 simple cd, dvd covers and many more] % %<*driver> \documentclass{ltxdoc} \usepackage{simplecd} -\usepackage{fix-cm} -\usepackage{rotating} +\usepackage{graphicx} +\usepackage{float} +\usepackage{listings} + +%Provides clickable links in content tables, references +\usepackage[hyperindex=false,% + pdftitle={simplecd},% + pdfauthor={Daniel Majoros},% + pdfsubject={CD, DVD case covers},% + pdfkeywords={cd,dvd,bluray,cover,sheet,keepcase,layout}]{hyperref} \EnableCrossrefs \CodelineIndex \RecordChanges \begin{document} - \DocInput{./simplecd.dtx} + \lstset{language=[LaTeX]Tex} + \lstset{numbers=left, numberstyle=\tiny, stepnumber=1, numbersep=5pt} + \lstset{gobble=1,float,frame=tb} + \lstset{tabsize=2} + \DocInput{./simplecd.dtx} \end{document} %</driver> %\fi % -% \CheckSum{451} +% \CheckSum{1016} % % \CharacterTable % {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 @@ -55,11 +67,21 @@ % Right brace \} Tilde \~} % % \changes{v1.0}{2010/07/01}{Initial version} +% \changes{v1.1}{2012/11/04}{Rewrote drawing mechanism, added layouts, disk images, additional covers} % -% \DoNotIndex{\newline, \\, \space, \begin, \end, \rule, \cline, \hspace, \vspace, \centering, \DeclareRobustCommand} -% \DoNotIndex{\newcommand, \newlength, \setlength, \parbox, \line, \putline, \resizebox, \unitlength} -% \DoNotIndex{\put, \RequirePackage, \vrule, \DeclareOption, \fontsize, \ProcessOptions, \relax} -% \DoNotIndex{\renewcommand, \selectfont, \multicolumn, \! , !\! , !\ } +% \DoNotIndex{\newline,\\,\space,\begin,\end,\rule,\cline,\hspace,\vspace,\centering,\DeclareRobustCommand,\{,\},\ } +% \DoNotIndex{\newcommand,\newlength,\setlength,\parbox,\line,\putline,\resizebox,\unitlength} +% \DoNotIndex{\put,\RequirePackage,\vrule,\DeclareOption,\fontsize,\ProcessOptions,\relax} +% \DoNotIndex{\renewcommand,\selectfont,\multicolumn,\framebox,\usebox,\put,\line,\value,\rotatebox,\setcounter,\newcounter,\!,!\!,!\,! ,\! ,!\! ,!\ , } +% \DoNotIndex{\Large,\Huge,\huge,\footnotesize,\underline,\savebox,\equal,\boolean,\newboolean,\setboolean,\baselineskip,\ifthenelse} +% \DoNotIndex{\scalebox,\makebox,\OR,\AND,\newsavebox,\qbezier,\circle,\space} +% \begingroup +% \makeatletter +% \lccode`9=32\relax +% \lowercase{%^^A +% \edef\x{\noexpand\DoNotIndex{\@backslashchar9}}%^^A +% }%^^A +% \expandafter\endgroup\x % % \GetFileInfo{simplecd.sty} % @@ -75,59 +97,75 @@ % The name of the package comes form it's implementation and ease of use. % \end{abstract} % +% \tableofcontents +% % \section{Introduction} % The \textsf{simplecd} package was created for producing cut-outs for creating covers, inlays(inlets) for % optical disc packaging such as jewel cases, keepcases. The covers were aimed for containing only -% simple text with different font sizes, but since it is only a |\parbox| in a tabular enviroment's cell, it can -% contain anything that a |\parbox| can contain. +% simple text with different font sizes, but since everything is placed inside a |\parbox| environment, it can +% contain a wide range of things. % % There are also macros which can resize ready-to-print images to the appropriate size. % +% The layout macros provide ready-to-use formatting for the covers. +% +% \section{Usage} +% +% To use the package, put this in the document preamble: |\usepackage{simplecd}|. +% This section gives a detailed information on macros, lists their parameters also. +% % It is worth to decrease the document's margins, so the covers can fit onto -% an A4 sized paper. For this, use the \textsf{geometry} package, like so: \\ +% an A4 sized paper. For this, use the \textsf{geometry} package, for example like this: \\ % |\usepackage[left=1cm, top=1cm, right=1cm, bottom=1cm]{geometry}| % -% Since \textsf{simplecd} package uses the \textsf{rotating} package for rotation, one important -% note from the \textsf{rotating} package's documentation must be mentioned here. -% \begin{quotation} -% Note that the package uses rotation facilities from the graphicx package. When -% generating DVI output, users should note that rotation is typically not visible in -% a DVI viewer: conversion to, and viewing, PostScript or PDF is necessary. -% \end{quotation} +% All examples in this document were resized, for full size output, see the \texttt{examples.pdf} file. % -% \section{Usage} +% \vspace{0.3cm} +% +% \begin{lstlisting} +% LaTeX example source codes in this document are placed in +% listings like this. They are usually followed by output +% produced with the code samples. +% \end{lstlisting} % -% This section gives a detailed information on macros. Lists their parameters also. The universal macros are -% also detailed, which are behind the simple ones, and can be parmeterised with additional information -% to meet other requirements. +% \vspace{0.3cm} % -% Do not put too many text inside a cover, or an unwanted resize can happen. Some of the examples in this -% documentation were rotated, and all of them were shrunk. +% \subsection{Cut-outs} +% +% \subsubsection{Jewel cases} % % \DescribeMacro{\covers} % The first and foremost macro is for the standard jewel case and it's backsheet with two spines. % The parameters of the |\covers| macro are as follows: % |\covers| \oarg{backsheet text} \marg{cover title} \marg{spine text}. The first two can be % whole paragraphs with different font sized texts. For a new line, you can use |\\|, -% and for a skip, use |\vspace{length to skip}| in the text after a new line. Besides the first text part, -% the other texts after a |\vspace| can be resized with the \textsf{fix-cm} package's |\fontsize| command. +% and for a skip, use |\vspace{length to skip}| in the text after a new line. % The spine text will be printed on both spines. The spine % text should be short enough to fit into the desired space. % -% Example: \\ -% |\covers|\\ -% \indent |[{\Large Backsheet text}]| \\ -% \indent |{{\Huge Jewelcase Title} \\ \vspace{1cm} Subtitle}| \\ -% \indent |{Spine Text}| \\ +% Example: +% \begin{lstlisting} +% \covers +% [{\Large Backsheet text}] +% {{\Huge Jewelcase Title} \\ \vspace{1cm} Subtitle} +% {Spine Text} +% \end{lstlisting} % -% \resizebox{0.95\textwidth}{!}{\covers[{\Large Backsheet text}]{{\Huge Jewelcase Title} \\ \vspace{1cm} Subtitle}{Spine Text}} +% \begin{figure}[H] +% \centering +% \resizebox{0.95\textwidth}{!}{\covers[{\Large Backsheet text}]{{\Huge Jewelcase Title} \\ \vspace{1cm} Subtitle}{Spine Text}} +% \caption{Jewel case covers} +% \end{figure} % % \vspace*{0.5cm} % -% \DescribeMacro{\frontcover} +% \DescribeMacro{\frontcover} % The |\frontcover|, which is called in the previously mentioned macro, produces the front cover for % the jewel case. It's mandatory argument is the cover text: |\frontcover| \marg{cover text}. % +% \DescribeMacro{\LXfrontcover} \DescribeMacro{\LXXXfrontcover} The |\LXfrontcover| and |\LXXXfrontcover| macros work just the same as +% |\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). +% % \DescribeMacro{\backsheet} % The |\backsheet| macro is also called from the |\covers| macro. It produces the backsheet with two % identical spines. The usage is |\backsheet| \oarg{backsheet middle text} \marg{spine text}. @@ -139,51 +177,102 @@ % The |\djewel| macro creates a double page jewel case cover. Text can be put on one side, then it should be folded % in half. The usage is: |\djewel| \marg{first page text} \marg{second page text}. % -% Example: \\ -% |\djewel| \\ -% \indent |{\fontsize{70}{36}\selectfont Big Title}| \\ -% \indent |{Second page}| \\ +% \begin{lstlisting} +% \djewel +% {\fontsize{70}{36}\selectfont Big Title} +% {Second page} +% \end{lstlisting} % -% \begin{sideways}\resizebox{0.48\textwidth}{!}{\djewel{\fontsize{70}{36}\selectfont Big Title}{Second page}}\end{sideways} +% \begin{figure}[H] +% \centering +% \rotatebox{270}{\resizebox{0.48\textwidth}{!}{\djewel{\fontsize{70}{36}\selectfont Big Title}{Second page}}} +% \caption{Double page jewel book} +% \end{figure} % % \vspace*{0.5cm} % -% This is also an example of using costum sized fonts with the \textsf{fix-cm} package. +% This is also an example of using fix sized fonts with the \textsf{fix-cm} package. +% +% \subsubsection{Keepcases} % % \DescribeMacro{\slimdvd} \DescribeMacro{\dvd} % The |\slimdvd| and |\dvd| macros creates a slim and a simple DVD keepcase. Text can be put on both -% sides plus the spine area. \DescribeMacro{\bluray} The |\bluray| macro creates a keepcase for Blu-Ray disks. +% sides plus on the spine area. \DescribeMacro{\bluray} The |\bluray| macro creates a keepcase for Blu-Ray disks. % Their usage is: |\dvd| \oarg{backside text} \marg{cover text} \marg{spine text}. % -% Example: \DescribeMacro{\slimdvd} \\ -% |\slimdvd| \\ -% \indent |[{\Large Backsheet text}]| \\ -% \indent |{{\Huge \underline{SlimDVD Title}} \\ \vspace{1cm} Subtitle}| \\ -% \indent |{Spine Text}| \\ +% \begin{lstlisting} +% \slimdvd +% [{\Large Backsheet text}] +% {{\Huge \underline{SlimDVD Title}}% +% \\ \vspace{1cm} Subtitle} +% {Spine Text} +% \end{lstlisting} % -% \begin{turn}{270}\resizebox{0.65\textwidth}{!}{\slimdvd[{\Large Backsheet text}]% -% {{\Huge \underline{SlimDVD Title}} \\ \vspace{1cm} Subtitle}{Spine Text}} \end{turn} +% \begin{figure}[H] +% \centering +% \rotatebox{270}{\resizebox{0.65\textwidth}{!}{\slimdvd[{\Large Backsheet text}]% +% {{\Huge \underline{SlimDVD Title}} \\ \vspace{1cm} Subtitle}{Spine Text}} } +% \caption{Slim DVD keepcase cover} +% \end{figure} % % \vspace*{0.5cm} % -% \DescribeMacro{\keepcase} -% The above mentioned macros are really similar, thus the introduction of the |\keepcase| macro. With this, one can create -% a costum sized keepcase in the format of cover, spine and a backside. It's usage is: -% |\keepcase| \oarg{backtext} \marg{cover text} \marg{spinetext} \marg{cover height} \marg{cover width} \marg{spine width}. -% The cover width refers to one side's width without the spine. +% \subsubsection{Sleeves} % % \DescribeMacro{\sleeve} % The |\sleeve| macro creates a disk-sleeve which requires some glue after cutting it out. The upper part % can be used to close the sleeve. Text can be put on -% it's cover. The usage is: |\sleeve| \marg{cover text}. +% it's cover and back. The usage is: |\sleeve| \oarg{back text} \marg{cover text}. +% +% \begin{lstlisting} +% \sleeve[Back text]{{\Huge Sleeve text}} +% \end{lstlisting} +% +% \begin{figure}[H] +% \centering +% \resizebox{0.7\textwidth}{!}{\sleeve[Back text]{{\Huge Sleeve text}}} +% \caption{Paper sleeve} +% \end{figure} % -% Example: \\ -% |\sleeve| |{{\Huge Sleeve text}}| \\ +% \DescribeMacro{\sleeveLX} \DescribeMacro{\sleeveLXXX} The |\sleeveLX| and |\sleeveLXXX| macros produce sleeves for +% the 60 and the 80 millimeter sized disks, respectively. Their use is the same as |\sleeve|. % -% \resizebox{0.5\textwidth}{!}{\sleeve{{\Huge Sleeve text}}} +% \begin{lstlisting} +% \sleeveLX[Back text]{\large Front text} +% \sleeveLXXX[Back text]{\large Front text} +% \end{lstlisting} % +% \begin{figure}[H] +% \begin{minipage}[b]{0.45\textwidth} +% \centering +% \resizebox{0.8\textwidth}{!}{\sleeveLX[Back text]{\large Front text}} +% \caption{60 millimeter disk sleeve} +% \end{minipage} +% \hspace{0.5cm} +% \begin{minipage}[b]{0.45\textwidth} +% \centering +% \resizebox{0.8\textwidth}{!}{\sleeveLXXX[Back text]{\large Front text}} +% \caption{80 millimeter disk sleeve} +% \end{minipage} +% \end{figure} +% +% \DescribeMacro{\sleevela} The |\sleevela| macro creates a sleeve that can be used in lever arch files. +% The small circles must be cut out, they are for the levers. The distance between the circle centers is 8 centimeter. +% +% \begin{lstlisting} +% \sleevela[Back text]{\scalebox{4}{Front text}} +% \end{lstlisting} +% +% \begin{figure}[H] +% \centering +% \resizebox{0.8\textwidth}{!}{\sleevela[Back text]{\scalebox{4}{Front text}}} +% \caption{Sleeve for lever arch files} +% \end{figure} +% % \vspace*{0.5cm} % +% \subsubsection{Image as cover} +% % \DescribeMacro{\coverimg} \DescribeMacro{\backsheetimg} \DescribeMacro{\dvdimg} \DescribeMacro{\slimdvdimg} % \DescribeMacro{\blurayimg} % The macros width the \emph{img} ending are expecting an image, and resizing this image to the appropriate cover @@ -193,130 +282,420 @@ % correct ratio. % % An example without the result: -% |\dvdimg{includegraphics{coverpic}}| \\ +% \begin{lstlisting} +% \dvdimg{includegraphics{coverpic}} +% \end{lstlisting} % % \vspace*{0.5cm} % +% \subsubsection{Inlays} +% % \DescribeMacro{\dvdinlay} \DescribeMacro{\blurayinlay} % The |\dvdinlay| and |\blurayinlay| macros create a one sided inlay for the appropriate keepcases. -% Their usage is |\dvdinlay| \marg{text}. \DescribeMacro{\inlay} With the universal |\inlay| macro, one can create -% a costum sized inlay. It's usage is: |\inlay| \marg{text} \marg{inlay width} \marg{inlay height}. +% Their usage is |\dvdinlay| \marg{text}. +% +% \begin{lstlisting} +% \dvdinlay +% {{\Large DVD Inlay} +% +% \vspace{5cm} TextTextText +% +% \vspace{1cm} {\fontsize{20}{36}\selectfont TextText}} +% \end{lstlisting} +% +% \begin{figure}[H] +% \centering +% \resizebox{0.5\textwidth}{!}{% +% \dvdinlay{{\Large DVD Inlay +% +% \vspace{5cm} TextTextText +% +% \vspace{1cm} {\fontsize{20}{36}\selectfont TextText}}}} +% \caption{DVD keepcase inlay} +% \end{figure} +% +% \vspace*{0.5cm} +% +% \subsubsection{Disk covers} +% +% 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. +% For printing directly on the disks themselves, use a printing software especially designed for this task. +% +% Content can be placed anywhere in the rectangle which is always defined by the largest circle in the picture. +% \begin{figure}[H] +% \centering +% \resizebox{0.5\textwidth}{!}{% +% \cdrdisk{\begin{picture}(116,116)\framebox(116,116){}\end{picture}}% +% } +% \caption{The rectangle that is the boundary for the content} +% \end{figure} +% +% \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. +% Usage: |\cddvddisk| \marg{content} +% +% \begin{lstlisting} +% \cdrdisk{ +% {\Huge Title} \\ \vspace{3cm} +% Left \hspace{7cm} Right \\ \vspace{3cm} +% TextText} +% \end{lstlisting} +% +% \begin{figure}[H] +% \centering +% \resizebox{0.5\textwidth}{!}{% +% \cdrdisk{% +% {\Huge Title} \\ \vspace{3cm}% +% Left \hspace{7cm} Right \\ \vspace{3cm}% +% TextText}% +% } +% \caption{CD-R image with positioned texts} +% \end{figure} +% +% \DescribeMacro{\cddvddisk} The |\cddvddisk| macro is slightly bigger than the |\cdrdisk|, and has a smaller inner circle. This smaller inner cicrle +% is nearly as small as the center hole in the disks. +% +% \begin{lstlisting} +% \cddvddisk{ +% {\Huge Title} \\ \vspace{3cm} +% Left \hspace{7cm} Right \\ \vspace{3cm} +% TextText} +% \end{lstlisting} +% +% \begin{figure}[H] +% \centering +% \resizebox{0.5\textwidth}{!}{% +% \cddvddisk{ +% {\Huge Title} \\ \vspace{3cm} +% Left \hspace{7cm} Right \\ \vspace{3cm} +% TextText} +% } +% \caption{CD, DVD image with positioned texts} +% \end{figure} +% +% \DescribeMacro{\LXXXdisk} The |\LXXXdisk| macro is the disk image of a 80 millimeter disk. +% +% \begin{lstlisting} +% \LXXXdisk{Title \\ \vsapce{4cm} Text} +% \end{lstlisting} +% +% \begin{figure}[H] +% \centering +% \resizebox{0.4\textwidth}{!}{% +% \LXXXdisk{{\large Title } \\ \vspace{4cm} Text} +% } +% \caption{80 millimeter disk image with positioned texts} +% \end{figure} +% +% \subsection{Layouts} +% +% The layouts are pre-set cover layouts for ease of use. The texts are always +% in English and represent a personal preference. All layouts have a macro suffixed with the \texttt{empty} word that +% only contains the frames with no text, so one can insert any content. +% +% A layout can be used on various cover types. The first word in the layout's name decides the type. +% \begin{description} +% \item[jewel] type layouts are compatible with: |\covers| |\frontcover| |\sleeve| |\sleevela| |\djewel| +% \item[LX] type layouts are compatible with: |\LXfrontcover| |\sleeveLX| +% \item[LXXX] type layouts are compatible with: |\LXXXfrontcover| |\sleeveLXXX| +% \item[dvd] type layouts are compatible with: |\dvd| |\slimdvd| +% \item[bluray] type layouts are compatible with: |\bluray| +% \end{description} +% Note that this compatibility is not checked in the macros. +% +% Any parameter in a layout can be empty. It means that no content will be put in the appropriate cell. +% +% 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 +% third parameter of the macro. +% +% All layouts have a meaningful name, like driver, movie or music. These names indicate a sugessted usage and they are easier to remeber than layoutA, layoutB etc. +% +% \subsubsection{Jewel case layouts} +% +% \DescribeMacro{\jeweldriverl} \DescribeMacro{\jeweldriverlempty} The |\jeweldriverl| can be used to create cover for driver disks that are supplied with +% PC hardware elements. +% Usage: |\jeweldriverl| \marg{title} \marg{subtitle} \marg{date} \marg{serial} \marg{disk version} \marg{right middle cell} \marg{bottom cell} +% +% \begin{lstlisting} +% \frontcover +% {\jeweldriverl +% {Motherboard(1)} +% {Model XYZ (2)} +% {2012.20.12 (3)} +% {123456789 (4)} +% {12-ABC (5)} +% {Driver \\ Manual (6)} +% {Driver not compatible with ZYX operating system (7)}} +% \end{lstlisting} +% +% \begin{figure}[H] +% \centering +% \scalebox{0.6}{\frontcover{\jeweldriverl{Motherboard(1)}{Model XYZ (2)}{2012.20.12 (3)}{123456789 (4)}% +% {12-ABC (5)}{Driver \\ Manual (6)}{Driver not compatible with ZYX operating system (7)}}} +% \caption{Driver CD layout on a jewel case fronrcover} +% \end{figure} +% +% \vspace*{0.5cm} +% +% \DescribeMacro{\jewellempty} The |\jewellempty| macro provides the same border as in the other layouts, just with one cell with centered content. +% Usage: |\jewellempty| \marg{content} \\ +% +% \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. +% Usage: |\jewelmusiclempty| \marg{title} \marg{performer} \marg{year} \marg{style} \\ +% +% \begin{lstlisting} +% \sleeve +% [\jewellempty +% {\begin{enumerate} +% \item Track One +% \item Track Two +% \end{enumerate}}] +% {\jewelmusiclempty +% {Album X (1)} +% {XYZ band(2)} +% {2222 (3)} +% {Styles (4)}} +% \end{lstlisting} +% +% \begin{figure}[H] +% \centering +% \resizebox{0.5\textwidth}{!}{\sleeve[\jewellempty{\begin{enumerate} \item Track One \item Track Two \end{enumerate}}]% +% {\jewelmusiclempty{Album X (1)}{XYZ band(2)}{2222 (3)}{Styles (4)}}} +% \caption{Music layout on front, empty layout on back} +% \end{figure} +% +% \DescribeMacro{\jewelbacklempty} The |\jewelbacklempty| macro is the pair of the |\jewellempty| macro. This is for the backsheet of a jewel case. +% Usage: |\jewelbacklempty| \marg{content} \\ +% +% \begin{lstlisting} +% \backsheet +% [\jewelbacklempty +% {Backsheet content}] +% {Spine text} +% \end{lstlisting} +% +% \begin{figure}[H] +% \centering +% \resizebox{0.5\textwidth}{!}{\backsheet[\jewelbacklempty{Backsheet content}]{Spine text}} +% \caption{Empty jewel backsheet layout} +% \end{figure} +% +% \DescribeMacro{\LXlempty} \DescribeMacro{\LXXXlempty} \DescribeMacro{\LXemptydriverl} \DescribeMacro{\LXXXemptydriverl} % +% \DescribeMacro{\LXdriverl} \DescribeMacro{\LXXXdriverl} The empty, empty driver and driver layouts for the 60 +% and 80 millimeter disk covers: |\LXlempty|, |\LXXXlempty|, |\LXemptydriverl|, |\LXXXemptydriverl|, |\LXdriverl| and |\LXXXdriverl| macros. +% +% \begin{lstlisting} +% \LXfrontcover{\LXlempty{\scalebox{3}{Title}}} +% \LXXXfrontcover +% {\LXXXdriverl +% {Motherboard(1)} +% {Model XYZ (2)} +% {2012.20.12 (3)} +% {123456789 (4)} +% {12-ABC (5)} +% {Driver \\ Manual (6)} +% {Driver not compatible with ZYX operating system (7)}} +% \end{lstlisting} +% +% \begin{figure}[H] +% \begin{minipage}[b]{0.45\textwidth} +% \centering +% \resizebox{0.7\textwidth}{!}{\LXfrontcover{\LXlempty{\scalebox{3}{Title}}}} +% \caption{The \texttt{\textbackslash LXlempty} layout } +% \end{minipage} +% \hspace{0.5cm} +% \begin{minipage}[b]{0.45\textwidth} +% \centering +% \resizebox{0.75\textwidth}{!}{\LXXXfrontcover{\LXXXdriverl{Motherboard(1)}{Model XYZ (2)}{2012.20.12 (3)}{123456789 (4)}% +% {12-ABC (5)}{Driver \\ Manual (6)}{Driver not compatible with ZYX operating system (7)}}} +% \caption{The \texttt{\textbackslash LXXXdriverl} layout} +% \end{minipage} +% \end{figure} +% +% \subsubsection{Keepcase layouts} +% +% \DescribeMacro{\dvdlempty} The |\dvdlempty| macro provides the mandatory empty layout for the standard keepcases. It's usage is |\dvdlempty| \marg{content}. +% +% \DescribeMacro{\dvdmovielempty} \DescribeMacro{\dvdmoviel} The |\dvdmoviel| macro is for a movie disk cover. +% Usage: |\dvdmoviel| \marg{title} \marg{original title} \marg{release year} \marg{director} \marg{languages} \marg{subtitles} \marg{actors} \marg{comment} \\ +% +% \begin{lstlisting} +% \dvd +% [\dvdlempty{\Large Back text}] +% {\dvdmoviel +% {Movie title (1)} +% {Original title (2)} +% {Release year (3)} +% {Director (4)} +% {Language1 \\ Language2 (5)} +% {Subtitle1 \\ Subtitle2 (6)} +% {Actor1 \\ Actor2 \\ Actor3 \\ Actor4 (7)} +% {Comment, rating, etc. (8)}} +% {spinetext} +% \end{lstlisting} +% +% \begin{figure}[H] +% \centering +% \scalebox{0.45}{\rotatebox{270}{\dvd[\dvdlempty{\Large Back text}]{\dvdmoviel{Movie title (1)}% +% {Original title (2)}{2012 (3)}{Director (4)}{Language1 \\ Language2 (5)}% +% {Subtitle1 \\ Subtitle2 (6)}{Actor1 \\ Actor2 \\ Actor3 \\ Actor4 (7)}{Comment, rating, etc. (8)}}{spinetext}} } +% \caption{Front movie and empty back layouts for DVD keepcase} +% \end{figure} +% +% \DescribeMacro{\bluraylempty} The |\bluraylempty| macro provides the mandatory empty layout for the Blu-ray keepcases. It's usage is |\bluraylempty| \marg{content}. +% +% \DescribeMacro{\bluraymovielempty} \DescribeMacro{\bluraymoviel} The |\bluraymoviel| macro is for a Blu-ray movie disk cover. +% Usage: |\bluraymoviel| \marg{title} \marg{original title} \marg{release year} \marg{director} \marg{languages} \marg{subtitles} \marg{actors} \marg{comment} \\ +% +% \begin{lstlisting} +% \bluray +% [\bluraylempty{\Large Back text}] +% {\bluraymoviel +% {Movie title (1)} +% {Original title (2)} +% {Release year (3)} +% {Director (4)} +% {Language1 \\ Language2 (5)} +% {Subtitle1 \\ Subtitle2 (6)} +% {Actor1 \\ Actor2 \\ Actor3 \\ Actor4 (7)} +% {Comment, rating, etc. (8)}} +% {spinetext} +% \end{lstlisting} +% +% \begin{figure}[H] +% \centering +% \scalebox{0.45}{\rotatebox{270}{\bluray[\bluraylempty{\Large Back text}]{\bluraymoviel{Movie title (1)}% +% {Original title (2)}{2012 (3)}{Director (4)}{Language1 \\ Language2 (5)}% +% {Subtitle1 \\ Subtitle2 (6)}{Actor1 \\ Actor2 \\ Actor3 \\ Actor4 (7)}{Comment, rating, etc. (8)}}{spinetext}} } +% \caption{Front movie and empty back layouts for Blu-ray keepcase} +% \end{figure} +% +% \subsection{General macros} +% +% These macros are used behind the macros described above. They are made public, with one note: +% keep in mind that these can change during package development, so +% do not be suprised when after a package update, they work differently. +% +% Those parameters that require a length, expect a single, positive integer, for example a counter value. +% +% \DescribeMacro{\keepcase} With |\keepcase|, one can create +% a custom sized keepcase in the format of cover, spine and a backside. It's usage is: +% |\keepcase| \oarg{backtext} \marg{cover text} \marg{spinetext} \marg{cover height} \marg{cover width} \marg{spine width}. +% The cover width refers to one side's width without the spine. +% +% \DescribeMacro{\inlay} With the general |\inlay| macro, one can create +% a custom sized inlay. It's usage is: |\inlay| \marg{text} \marg{inlay width} \marg{inlay height}. +% +% \vspace*{0.5cm} +% +% \subsection{Package Options} % -% Example: \\ -% |\dvdinlay| \\ -% \indent |{{\Large DVD Inlay}| \\ -% \ \\ -% \indent |\vspace{5cm} TextTextText| \\ -% \ \\ -% \indent |\vspace{1cm} {\fontsize{20}{36}\selectfont TextText}}| \\ +% Use package options at the package loading as usual, for example: \\ |\usepackage[nofold,noalign]{simplecd}|. % -% \resizebox{0.5\textwidth}{!}% -% {\dvdinlay{{\Large DVD Inlay} +% All cover macros are containing some text alignment lengths. Without them, the texts would be +% centered vertically in the frames. The |noalign| option zeroes these alignment lengths, so one can align the +% texts individually. This option does not affect layout placement. % -% \vspace{5cm} TextTextText +% As default, all covers contain folding lines with the same line type as where the pieces must be cut out. +% With the |nofold| option, the folding lines won't be drawn. % -% \vspace{1cm} {\fontsize{20}{36}\selectfont TextText}}} +% The |spiner| option rotates all spine texts with $180^\circ$. % % \vspace*{0.5cm} % -% \section{Package Options} -% -% All of the above presented macros are containing some text alignment lengths. Without them, the texts would be -% centered vertically in the cells. The |noalign| option zeroes these alignment lengths, so one can align the -% texts individually with the |\vspace| commands inside the text. -% -% As default, all covers contain folding lines. With the |nofold| option these can be removed. The only exception is -% the |\sleeve| macro where the areas to be glued are keeping their folding lines. -% -% The |spiner| option rotates all spine texts with $180^\circ$. The \textsf{rotating} package (which is used for -% rotating) is somewhat incompatible with -% utf8 encoding and/or T1 font type when it comes to upside-down text. So do not use the packages mentioned below -% with this option: -% \begin{quotation} -% \noindent -% |\usepackage{t1enc}| \\ -% |\usepackage{ucs}| \\ -% |\usepackage[utf8x]{inputenc}| \\ -% |\usepackage[T1]{fontenc}| \\ -% \end{quotation} +% \section{Font size} +% +% For covers, often a large font is desired. Here is a list of the standard \LaTeX\ sizing macros: +% \begin{itemize} +% \item {\tiny |\tiny|} +% \item {\scriptsize |\scriptsize|} +% \item {\footnotesize |\footnotesize|} +% \item {\small |\small|} +% \item {\normalsize |\normalsize|} +% \item {\large |\large|} +% \item {\Large |\Large|} +% \item {\LARGE |\LARGE|} +% \item {\huge |\huge|} +% \item {\Huge |\Huge|} +% \end{itemize} +% Their use is the same: |{\huge text to be resized}|. +% +% If the largest is still not enough, use the |\scalebox| \marg{ratio} \marg{text} macro: +% \begin{itemize} +% \item \scalebox{4}{ratio is 4} +% \item \scalebox{5}{ratio is 5} +% \item \scalebox{7}{ratio is 7} +% \end{itemize} +% The |\scalebox| macro can be used on many other things, not just text. +% +% All of the above presented methods increase or decrease the font size relative to the document's default font size. +% To create fixed size fonts, use the \textsf{fix-cm} package's |\fontsize| macro. +% +% \section{Troubleshooting} +% +% \begin{description} +% \item[Problem: the text won't fit into a frame.] Suggestions: try to break it into multiple lines, for example with the |\\| macro. +% Decrease the font size. Use scaling to shrink the content with the |\scalebox{ratio}{object}| macro. +% \item[Problem: printed pieces do not fit.] Suggestions: make sure the pieces are appropriate for the selected container. Make sure +% the software used for viewing and printing result file (the PDF/DVI/PS viewer) does not resize the page before printing. +% \item[Problem: the cover won't fit onto one page.] Suggestions: use a large enough paper size. Decrease te margin of the paper with +% the \texttt{geometry} package. An A4 paper with 1cm margins should be able to contain all cover types. +% \end{description} % % \StopEventually{\PrintChanges\PrintIndex} % % \section{Implementation} % -% Used for rotating text. -% \begin{macrocode} -\RequirePackage{rotating} -% \end{macrocode} -% % Used for setting fix font size for spine texts. % \begin{macrocode} \RequirePackage{fix-cm} % \end{macrocode} % -% Used for the m tabular column +% Used for calculating lengths % \begin{macrocode} -\RequirePackage{array} +\RequirePackage{calc} % \end{macrocode} % -% Used for calculating lengths +% Used for the nofold option % \begin{macrocode} -\RequirePackage{calc} +\RequirePackage{ifthen} +% \end{macrocode} + +% Used for drawing, resizing, rotating +% \begin{macrocode} +\RequirePackage{graphicx} % \end{macrocode} -% The |noalign| option sets all text aligning lengths to zero. +%% The |noalign| option sets all text aligning lengths to zero. % \begin{macrocode} \DeclareOption{noalign}{ - \setlength{\sc@jfcalign}{0cm} - \setlength{\sc@jbsalign}{0cm} - \setlength{\sc@slalign}{0cm} - \setlength{\sc@kcfalign}{0cm} - \setlength{\sc@kcbalign}{0cm} + \setlength{\sc@jewelalign}{0cm} + \setlength{\sc@keepcasealign}{0cm} \setlength{\sc@inalign}{0cm} - \setlength{\sc@djewsalign}{0cm} + \setboolean{sc@align}{false} } % \end{macrocode} % -% The |nofold| option removes the folding lines on the cut-outs. +%% The |nofold| option removes the folding lines on the cut-outs. % \begin{macrocode} \DeclareOption{nofold}{ - \renewcommand{\sc@hfoldline}[1]{} - \setlength{\sc@vfoldline}{0pt} + \setboolean{sc@fold}{false} } % \end{macrocode} -% \begin{macro}{\sc@hfoldline} -% Creates a horizontal folding line. \\ -% Usage: |\sc@hfoldline| \marg{columns} -% \begin{macrocode} -\newcommand{\sc@hfoldline}[1]{ - \cline{#1} -} -% \end{macrocode} -% \end{macro} - -% \begin{macro}{\sc@vfoldline} -% Size of the default vertical folding line. -% \begin{macrocode} -\newlength{\sc@vfoldline} -\setlength{\sc@vfoldline}{0.4pt} -% \end{macrocode} -% \end{macro} -% Redefines rotation degrees to rotate spine text with $180^\circ$. +%% Redefines rotation degrees to rotate spine text with $180^\circ$. % \begin{macrocode} \DeclareOption{spiner}{ - \renewcommand{\sc@spinerotone}{180} + \renewcommand{\sc@spinerotone}{270} \renewcommand{\sc@spinerottwo}{90} - \renewcommand{\sc@spinerotthree}{270} } % \end{macrocode} % \begin{macro}{\sc@spinerotone} -% No rotation by default. \\ +% Default rotation degree. \\ % Usage: |\sc@spinerotone| % \begin{macrocode} -\newcommand{\sc@spinerotone}{0} +\newcommand{\sc@spinerotone}{90} % \end{macrocode} % \end{macro} @@ -328,116 +707,155 @@ % \end{macrocode} % \end{macro} -% \begin{macro}{\sc@spinerotthree} -% Default rotation degree. \\ -% Usage: |\sc@spinerotthree| +%% Boolean for indicating whether or not the folding lines need to be drawn. True value means to draw. +% \begin{macrocode} +\newboolean{sc@fold} +\setboolean{sc@fold}{true} +% \end{macrocode} + +%% Boolean for indicating whether or not the default aligning is needed. % \begin{macrocode} -\newcommand{\sc@spinerotthree}{90} +\newboolean{sc@align} +\setboolean{sc@align}{true} +% \end{macrocode} + +% \begin{macro}{\sc@truestr} +% Stores the string that is used to indicate to always draw a border in |\sc@choicebox|. \\ +% Usage: |\sc@truestr| +% \begin{macrocode} +\newcommand{\sc@truestr}{t} % \end{macrocode} % \end{macro} -% Dimension names are created as follows: prefixed with |sc@|, then some letters for -% identifying the case, then place, then width or height. -% -%% CD jewelcase dimensions +% \begin{macro}{\sc@falsestr} +% Stores the string that is used to indicate to not draw a border in |\sc@choicebox| if nofold option is set. \\ +% Usage: |\sc@falsestr| % \begin{macrocode} -\newlength{\sc@cdjccoverheight} -\setlength{\sc@cdjccoverheight}{120mm} -\newlength{\sc@cdjccoverwidth} -\setlength{\sc@cdjccoverwidth}{120mm} -\newlength{\sc@cdjcbackheight} -\setlength{\sc@cdjcbackheight}{117.5mm} -\newlength{\sc@cdjcbackwidth} -\setlength{\sc@cdjcbackwidth}{138mm} -\newlength{\sc@cdjcspinewidth} -\setlength{\sc@cdjcspinewidth}{6mm} +\newcommand{\sc@falsestr}{f} % \end{macrocode} +% \end{macro} -%% Jewelcase spine fixed text font size +% \begin{macro}{\sc@unittype} +% Unit type for all lengths. \\ +% Usage: |\sc@unittype| % \begin{macrocode} -\newcommand{\sc@cdjfontsize}{15} +\newcommand{\sc@unittype}{mm} % \end{macrocode} +% \end{macro} -%% Disk sleeve dimensions +% Setting unit length for drawing % \begin{macrocode} -\newlength{\sc@dsdim} -\setlength{\sc@dsdim}{125mm} +\setlength{\unitlength}{1\sc@unittype} % \end{macrocode} -%% Slim DVD keepcase dimensions +%% Text aligning lengths +% These lengths ensure that the text is not in the vertical center of a cell, +% instead, they are little above of the center. +% \begin{macrocode} +\newlength{\sc@jewelalign} +\setlength{\sc@jewelalign}{15 \sc@unittype} +\newlength{\sc@keepcasealign} +\setlength{\sc@keepcasealign}{40 \sc@unittype} +\newlength{\sc@inalign} +\setlength{\sc@inalign}{30 \sc@unittype} +% \end{macrocode} + +% Dimension names are created as follows: prefixed with |sc@|, then some letters for +% identifying the case, then place, then width or height and the draw word. + +%% CD jewel case dimensions % \begin{macrocode} -\newlength{\sc@sdvdcoverwidth} -\setlength{\sc@sdvdcoverwidth}{128.5mm} -\newlength{\sc@sdvdspinewidth} -\setlength{\sc@sdvdspinewidth}{7mm} +\newcounter{sc@cdjccoverwidthdraw} +\setcounter{sc@cdjccoverwidthdraw}{120} +\newcounter{sc@cdjccoverheightdraw} +\setcounter{sc@cdjccoverheightdraw}{120} +\newcounter{sc@cdjcspinewidthdraw} +\setcounter{sc@cdjcspinewidthdraw}{6} +\newcounter{sc@cdjcbackheightdraw} +\setcounter{sc@cdjcbackheightdraw}{117} +\newcounter{sc@cdjcbackwidthdraw} +\setcounter{sc@cdjcbackwidthdraw}{151} +\newcounter{sc@cdjcbackinwidthdraw} +\setcounter{sc@cdjcbackinwidthdraw}{% + \value{sc@cdjcbackwidthdraw} - 2*\value{sc@cdjcspinewidthdraw}} % \end{macrocode} +%% Mini disk dimensions +% \begin{macrocode} +\newcounter{sc@cdLXXXjccoverwidthdraw} +\setcounter{sc@cdLXXXjccoverwidthdraw}{80} +\newcounter{sc@cdLXXXjccoverheightdraw} +\setcounter{sc@cdLXXXjccoverheightdraw}{80} +\newcounter{sc@cdLXjccoverwidthdraw} +\setcounter{sc@cdLXjccoverwidthdraw}{60} +\newcounter{sc@cdLXjccoverheightdraw} +\setcounter{sc@cdLXjccoverheightdraw}{60} +% \end{macrocode} + +%% Jewelcase spine fixed text font size +% \begin{macro}{\sc@cdjfontsize} +% Usage: |\sc@cdjfontsize| +% \begin{macrocode} +\newcommand{\sc@cdjfontsize}{15} +% \end{macrocode} +% \end{macro} + %% DVD keepcase dimensions % \begin{macrocode} -\newlength{\sc@dvdkcheight} -\setlength{\sc@dvdkcheight}{183mm} -\newlength{\sc@dvdkccoverwidth} -\setlength{\sc@dvdkccoverwidth}{129.5mm} -\newlength{\sc@dvdkcspinewidth} -\setlength{\sc@dvdkcspinewidth}{14mm} -\newlength{\sc@dvdkcinletwidth} -\setlength{\sc@dvdkcinletwidth}{115mm} -\newlength{\sc@dvdkcinletheight} -\setlength{\sc@dvdkcinletheight}{175mm} +\newcounter{sc@dvdkccoverwidthdraw} +\setcounter{sc@dvdkccoverwidthdraw}{128} +\newcounter{sc@dvdkccoverheightdraw} +\setcounter{sc@dvdkccoverheightdraw}{183} +\newcounter{sc@dvdkcspinewidthdraw} +\setcounter{sc@dvdkcspinewidthdraw}{14} +\newcounter{sc@dvdkcinletwidthdraw} +\setcounter{sc@dvdkcinletwidthdraw}{115} +\newcounter{sc@dvdkcinletheightdraw} +\setcounter{sc@dvdkcinletheightdraw}{175} % \end{macrocode} -%% Blu-Ray case dimensions +% Slim DVD keepcase dimensions % \begin{macrocode} -\newlength{\sc@brcoverwidth} -\setlength{\sc@brcoverwidth}{128mm} -\newlength{\sc@brcoverheight} -\setlength{\sc@brcoverheight}{149mm} -\newlength{\sc@brspinewidth} -\setlength{\sc@brspinewidth}{14mm} -\newlength{\sc@brinletwidth} -\setlength{\sc@brinletwidth}{115mm} -\newlength{\sc@brinletheight} -\setlength{\sc@brinletheight}{140mm} +\newcounter{sc@sdvdkcspinewidthdraw} +\setcounter{sc@sdvdkcspinewidthdraw}{7} % \end{macrocode} -%% Width and correction of the invisible |\rule|'s column +%% Blu-ray keepcase dimensions % \begin{macrocode} -\newlength{\sc@ircwidth} -\setlength{\sc@ircwidth}{0.1mm} -\newlength{\sc@ircorr} -\setlength{\sc@ircorr}{1mm} +\newcounter{sc@brcoverheightdraw} +\setcounter{sc@brcoverheightdraw}{149} +\newcounter{sc@brinletwidthdraw} +\setcounter{sc@brinletwidthdraw}{115} +\newcounter{sc@brinletheightdraw} +\setcounter{sc@brinletheightdraw}{140} % \end{macrocode} -% Naming conventions in the aligning lengths: first letters are for the case, then f for front, b for back, -% and the align word. -% -%%Text aligning lengths -% These lengths ensure that the text is not in the vertical center of a cell, -% instead, they are little above of the center. +%% Dimensions for drawing the sleeves % \begin{macrocode} -\newlength{\sc@jfcalign} -\setlength{\sc@jfcalign}{1.5cm} -\newlength{\sc@jbsalign} -\setlength{\sc@jbsalign}{3cm} -\newlength{\sc@slalign} -\setlength{\sc@slalign}{1.5cm} -\newlength{\sc@kcfalign} -\setlength{\sc@kcfalign}{4cm} -\newlength{\sc@kcbalign} -\setlength{\sc@kcbalign}{3cm} -\newlength{\sc@inalign} -\setlength{\sc@inalign}{3cm} -\newlength{\sc@djewsalign} -\setlength{\sc@djewsalign}{3cm} +\newcounter{sc@dssleeve} +\setcounter{sc@dssleeve}{15} +\newcounter{sc@dssleeveLXXXmm} +\setcounter{sc@dssleeveLXXXmm}{10} +\newcounter{sc@dssleeveLXmm} +\setcounter{sc@dssleeveLXmm}{8} % \end{macrocode} % \begin{macrocode} \ProcessOptions\relax % \end{macrocode} -% The covers are created as simple tabular cells, and in the rightmost cell is an invisible |\rule| that -% ensures the height of the cell regardless of the text inserted into the other cells. The width of the -% cells are provided by the m column type of the \texttt{array} package. +%% Temporary counters for the implementation. +% \begin{macrocode} +\newcounter{sc@tempa} +\newcounter{sc@tempb} +\newcounter{sc@tempc} +\newcounter{sc@tempd} +\newcounter{sc@tempe} +\newcounter{sc@tempf} +\newcounter{sc@tempg} +% \end{macrocode} + +% The covers are drawed inside the \texttt{picture} environment. The text is always placed inside a |\parbox| . % % The space produced with the |\vspace| macros are for aligning purposes. Without them, the texts would be % vertically centered in the cell. @@ -446,11 +864,11 @@ % Creates a jewel case cover with a front and a backsheet. \\ % Usage: |\covers| \oarg{backsheet text} \marg{cover title} \marg{spine text} % \begin{macrocode} -\DeclareRobustCommand{\covers}[3][\ ]{ +\DeclareRobustCommand{\covers}[3][\ ]{% \frontcover{#2} - \vspace*{0.5cm} - \backsheet[#1]{#3} + \vspace*{0.5cm}% + \backsheet[#1]{#3}% } % \end{macrocode} % \end{macro} @@ -459,38 +877,76 @@ % Creates front cover for a jewel case. \\ % Usage: |\frontcover| \marg{cover title} % \begin{macrocode} -\DeclareRobustCommand{\frontcover}[1]{ - \sc@cell{#1}{\sc@cdjccoverwidth}{\sc@cdjccoverheight}% - {\vspace{\sc@jfcalign}} +\DeclareRobustCommand{\frontcover}[1]{% + \sc@cell{#1}{\value{sc@cdjccoverwidthdraw}}% + {\value{sc@cdjccoverheightdraw}}% + {\vspace{\sc@jewelalign}}% +} +% \end{macrocode} +% \end{macro} + +% \begin{macro}{\LXfrontcover} +% Creates front cover for a 60 millimeter jewel case. \\ +% Usage: |\LXfrontcover| \marg{cover title} +% \begin{macrocode} +\DeclareRobustCommand{\LXfrontcover}[1]{% + \sc@cell{#1}{\value{sc@cdLXjccoverwidthdraw}}% + {\value{sc@cdLXjccoverheightdraw}}% + {\vspace{\sc@jewelalign}}% } % \end{macrocode} % \end{macro} +% \begin{macro}{\LXXXfrontcover} +% Creates front cover for a 80 millimeter jewel case. \\ +% Usage: |\LXXXfrontcover| \marg{cover title} +% \begin{macrocode} +\DeclareRobustCommand{\LXXXfrontcover}[1]{% + \sc@cell{#1}{\value{sc@cdLXXXjccoverwidthdraw}}% + {\value{sc@cdLXXXjccoverheightdraw}}% + {\vspace{\sc@jewelalign}}% +} +% \end{macrocode} +% \end{macro} + +% Rotating for one of the spine texts +% \begin{macrocode} +\newcounter{sc@backsheetspinerot} +\setcounter{sc@backsheetspinerot}{180+\sc@spinerotone} +% \end{macrocode} + % \begin{macro}{\backsheet} % Creates backsheet for a jewel case with 2 spines. \\ % Usage: |\backsheet| \oarg{backsheet middle text} \marg{spine text} % \begin{macrocode} -\DeclareRobustCommand{\backsheet}[2][\ ]{ - \begin{tabular}% - {|@{\hspace{0.4mm}}m{\sc@cdjcspinewidth-0.4mm}@{}% - !{\vrule width \sc@vfoldline}% - @{}m{\sc@cdjcbackwidth}@{}% - !{\vrule width \sc@vfoldline}@{}% - m{\sc@cdjcspinewidth-0.4mm}@{\hspace{0.4mm}}% - |m{\sc@ircwidth}} - \cline{1-3} - \centering% - \begin{turn}{\sc@spinerotthree}% - {\fontsize{\sc@cdjfontsize}{36}\selectfont #2 }% - \end{turn} % - & \parbox[c]{\sc@cdjcbackwidth}{\centering #1 \\ - \vspace{\sc@jbsalign}}% - & \centering % - \begin{turn}{\sc@spinerottwo}% - {\fontsize{\sc@cdjfontsize}{36}\selectfont #2}% - \end{turn} & \rule{0pt}{\sc@cdjcbackheight-\sc@ircorr} \\ - \cline{1-3} - \end{tabular} +\DeclareRobustCommand{\backsheet}[2][\ ]{% + \begin{picture}% + (\value{sc@cdjcbackwidthdraw}, \value{sc@cdjcbackheightdraw})% + \sc@choicebox{\value{sc@cdjcspinewidthdraw}}% + {\value{sc@cdjcbackheightdraw}}% + {\rotatebox{\sc@spinerotone}% + {\fontsize{\sc@cdjfontsize}{36}\selectfont #2}}% + {\sc@truestr}% + {\sc@truestr}% + {\sc@truestr}% + {\sc@falsestr}% + \sc@choicebox{\value{sc@cdjcbackinwidthdraw}}% + {\value{sc@cdjcbackheightdraw}}% + {\parbox[c]{\value{sc@cdjcbackinwidthdraw} \sc@unittype}{% + \centering #1\ \\ \vspace{\sc@jewelalign}}}% + {\sc@truestr}% + {\sc@truestr}% + {\sc@falsestr}% + {\sc@falsestr}% + \sc@choicebox{\value{sc@cdjcspinewidthdraw}}% + {\value{sc@cdjcbackheightdraw}}% + {\rotatebox{\value{sc@backsheetspinerot}}{% + \fontsize{\sc@cdjfontsize}{36}\selectfont #2}}% + {\sc@truestr}% + {\sc@truestr}% + {\sc@falsestr}% + {\sc@truestr}% + \end{picture}% } % \end{macrocode} % \end{macro} @@ -499,75 +955,189 @@ % Creates a single spine for a jewel case. \\ % Usage: |\jewelspine| \marg{text} % \begin{macrocode} -\DeclareRobustCommand{\jewelspine}[1]{ - \begin{tabular}{|@{}m{\sc@cdjcbackheight}@{}|m{\sc@ircwidth}} - \cline{1-1} % - \centering % - {\fontsize{\sc@cdjfontsize}{36}\selectfont #1}& % - \rule{0pt}{\sc@cdjcspinewidth-0.1cm} \\ - \cline{1-1} - \end{tabular} +\DeclareRobustCommand{\jewelspine}[1]{% + \begin{picture}% + (\value{sc@cdjccoverheightdraw}, \value{sc@cdjcspinewidthdraw})% + \framebox% + (\value{sc@cdjccoverheightdraw}, \value{sc@cdjcspinewidthdraw})% + {\fontsize{\sc@cdjfontsize}{36}\selectfont #1}% + \end{picture}% +} +% \end{macrocode} +% \end{macro} + +% \begin{macro}{\sc@sleeve} +% Creates a custom-sized sleeve for cutting out and glueing together. \\ +% Usage: |\sc@sleeve| \oarg{other side middle text} \marg{middle text} \marg{sleeve length} +% \marg{cover height} \marg{cover width} \marg{sleeve drawing} +% \begin{macrocode} +\DeclareRobustCommand{\sc@sleeve}[6][]{% + \setcounter{sc@tempc}{#5 + 2}% + \setcounter{sc@tempd}{#4 + 2}% + \setcounter{sc@tempe}{\value{sc@tempc} + #3 *2}% + \setcounter{sc@tempf}{2 * \value{sc@tempd} + #3}% + \setcounter{sc@tempg}{2 * \value{sc@tempd}}% + \begin{picture}(\value{sc@tempe}, \value{sc@tempf})% + \put(0,\value{sc@tempd}){#6}% + \put(#3,\value{sc@tempf}){\rotatebox{270}{#6}}% + \put(\value{sc@tempe},\value{sc@tempg}){\rotatebox{180}{#6}}% + \put(#3,\value{sc@tempd}){% + \sc@choicebox{\value{sc@tempc}}{\value{sc@tempd}}{% + \parbox[c]{\value{sc@tempc} \sc@unittype}{% + \centering #2\ \\ \vspace{\sc@jewelalign}}% + }{\sc@falsestr}{\sc@falsestr}{\sc@falsestr}{\sc@falsestr}% + }% + \put(#3,0){% + \sc@choicebox{\value{sc@tempc}}{\value{sc@tempd}}{% + \rotatebox{180}{\parbox[c]{\value{sc@tempc} \sc@unittype}{% + \centering #1\ \\ \vspace{\sc@jewelalign}}}% + }{\sc@truestr}{\sc@falsestr}{\sc@truestr}{\sc@truestr}% + }% + \end{picture}% +} +% \end{macrocode} +% \end{macro} + +% \begin{macro}{\sc@sleevebox} +% Draws a fold part of the sleeve \\ +% Usage: |\usebox{\sc@sleevebox}| +% \begin{macrocode} +\newsavebox{\sc@sleevebox} +\savebox{\sc@sleevebox}{% + \setcounter{sc@tempa}{\value{sc@cdjccoverheightdraw} + 2}% + \put(\value{sc@dssleeve},0){\line(-1,1){\value{sc@dssleeve}}}% + \put(0,\value{sc@dssleeve}){\line(0,1){92}}% + \put(\value{sc@dssleeve},\value{sc@tempa}){% + \line(-1,-1){\value{sc@dssleeve}}}% +} +% \end{macrocode} +% \end{macro} + +% \begin{macro}{\sc@sleeveboxLXmm} +% Draws a fold part of the 60 mm sleeve \\ +% Usage: |\usebox{\sc@sleeveboxLXmm}| +% \begin{macrocode} +\newsavebox{\sc@sleeveboxLXmm} +\savebox{\sc@sleeveboxLXmm}{% + \setcounter{sc@tempa}{\value{sc@cdLXjccoverheightdraw} + 2}% + \put(\value{sc@dssleeveLXmm},0)% + {\line(-1,1){\value{sc@dssleeveLXmm}}}% + \put(0,\value{sc@dssleeveLXmm}){\line(0,1){46}}% + \put(\value{sc@dssleeveLXmm},\value{sc@tempa}){% + \line(-1,-1){\value{sc@dssleeveLXmm}}}% +} +% \end{macrocode} +% \end{macro} + +% \begin{macro}{\sc@sleeveboxLXXXmm} +% Draws a fold part of the 80 mm sleeve \\ +% Usage: |\usebox{\sc@sleeveboxLXXXmm}| +% \begin{macrocode} +\newsavebox{\sc@sleeveboxLXXXmm} +\savebox{\sc@sleeveboxLXXXmm}{% + \setcounter{sc@tempa}{\value{sc@cdLXXXjccoverheightdraw} + 2}% + \put(\value{sc@dssleeveLXXXmm},0)% + {\line(-1,1){\value{sc@dssleeveLXXXmm}}}% + \put(0,\value{sc@dssleeveLXXXmm}){\line(0,1){62}}% + \put(\value{sc@dssleeveLXXXmm},\value{sc@tempa}){% + \line(-1,-1){\value{sc@dssleeveLXXXmm}}}% } % \end{macrocode} % \end{macro} % \begin{macro}{\sleeve} % Creates a disk sleeve for cutting out and glueing together. \\ -% Usage: |\sleeve| \marg{middle text} -% \begin{macrocode} -\DeclareRobustCommand{\sleeve}[1]{ - \begin{tabular}{m{10mm}|@{}m{\sc@dsdim}@{}|m{10mm}m{\sc@ircwidth}} - \multicolumn{3}{c}{ \setlength{\unitlength}{0.5cm} - \begin{picture}(0,0)% - \put(-12.5,-0.25){\line(1,1){4}} - \put(-8.5,3.75){\line(1,0){17}} - \put(12.5,-0.25){\line(-1,1){4}} - \end{picture} \rule{0pt}{3cm}} \\ - \cline{2-2} - \centering \setlength{\unitlength}{0.5cm} - \begin{picture}(0,0)% - \put(1.45,-12.38){\line(-1,1){1.5}}% - \put(-0.06,-10.9){\line(0,1){22.08}} % - \put(-0.06,11.18){\line(1,1){1.5}}% - \end{picture} & \parbox[c]{\sc@dsdim}% - {\centering #1 \\ \vspace{\sc@slalign}} &% - \setlength{\unitlength}{0.5cm} % - \begin{picture}(0,0)% - \put(-0.45,-12.38){\line(1,1){1.5}}% - \put(1.04,-10.9){\line(0,1){22.08}} % - \put(1.04,11.18){\line(-1,1){1.5}}% - \end{picture} & \rule{0pt}{\sc@dsdim-\sc@ircorr}\\ - \sc@hfoldline{2-2} - & & & \rule{0pt}{\sc@dsdim-0.1cm} \\ - \cline{2-2} - \end{tabular} +% Usage: |\sleeve| \oarg{other side middle text} \marg{middle text} +% \begin{macrocode} +\DeclareRobustCommand{\sleeve}[2][]{% + \sc@sleeve[#1]{#2}{\value{sc@dssleeve}}% + {\value{sc@cdjccoverheightdraw}}% + {\value{sc@cdjccoverwidthdraw}}% + {\usebox{\sc@sleevebox}}% } % \end{macrocode} % \end{macro} +% \begin{macro}{\sleeveLXXX} +% Creates a 80 millimeter disk sleeve for cutting out and glueing together. \\ +% Usage: |\sleeveLXXX| \oarg{other side middle text} \marg{middle text} +% \begin{macrocode} +\DeclareRobustCommand{\sleeveLXXX}[2][]{% + \sc@sleeve[#1]{#2}{\value{sc@dssleeveLXXXmm}}% + {\value{sc@cdLXXXjccoverheightdraw}}% + {\value{sc@cdLXXXjccoverwidthdraw}}% + {\usebox{\sc@sleeveboxLXXXmm}}% +} +% \end{macrocode} +% \end{macro} + +% \begin{macro}{\sleeveLX} +% Creates a 60 millimeter disk sleeve for cutting out and glueing together. \\ +% Usage: |\sleeveLX| \oarg{other side middle text} \marg{middle text} +% \begin{macrocode} +\DeclareRobustCommand{\sleeveLX}[2][]{% + \sc@sleeve[#1]{#2}{\value{sc@dssleeveLXmm}}% + {\value{sc@cdLXjccoverheightdraw}}% + {\value{sc@cdLXjccoverwidthdraw}}% + {\usebox{\sc@sleeveboxLXmm}}% +} +% \end{macrocode} +% \end{macro} + + + +% \begin{macro}{\sleevela} +% Creates a disk sleeve for lever arch files. \\ +% Usage: |\sleevela| \oarg{back text} \marg{front text} +% \begin{macrocode} +\DeclareRobustCommand{\sleevela}[2][]{% + \begin{picture}(165,248)% + \put(13,0){\usebox{\sc@sleevebox}}% + \put(165,122){\rotatebox{180}{\usebox{\sc@sleevebox}}}% + \put(28,0){% + \sc@choicebox{122}{122}{% + \rotatebox{180}{% + \parbox[c]{122\sc@unittype}{\centering #1\ \\ \vspace{\sc@jewelalign}}% + }}{\sc@truestr}{\sc@falsestr}{\sc@falsestr}{\sc@falsestr}% + }% + \put(28,122){% + \sc@choicebox{122}{122}{% + \parbox[c]{122\sc@unittype}{\centering #2\ \\ \vspace{\sc@jewelalign}}% + }{\sc@falsestr}{\sc@truestr}{\sc@falsestr}{\sc@truestr}% + }% + \put(0,122){% + \sc@choicebox{28}{122}{}% + {\sc@truestr}{\sc@truestr}{\sc@truestr}{\sc@falsestr}}% + \put(14,142.5){\circle{6}}% + \put(14,222.5){\circle{6}}% + \end{picture}% +} +% \end{macrocode} +% \end{macro} + + % \begin{macro}{\keepcase} % Universal macro for creating keepcases in various sizes. % Usage: |\keepcase| \oarg{backtext} \marg{cover text} \marg{spinetext} \marg{cover height} \marg{cover width} \marg{spine width} % \begin{macrocode} -\DeclareRobustCommand{\keepcase}[6][]{ - \begin{tabular}{|@{}m{#4}@{}|m{\sc@ircwidth}} - \cline{1-1} - \centering - \begin{sideways} \parbox[c]{#5}{\centering #2 % - \\ \vspace{\sc@kcfalign}} % - \end{sideways} & \rule{0pt}{#5-\sc@ircorr} \\ - \sc@hfoldline{1-1} \centering % - \begin{turn}{\sc@spinerotone}% - #3 % - \end{turn}% - & \rule{0pt}{#6-\sc@ircorr} \\ - \sc@hfoldline{1-1}% - \centering % - \begin{sideways} \parbox[c]{#5}{\centering #1\ \\ % - \vspace{\sc@kcbalign}} \end{sideways} & % - \rule{0pt} {#5-\sc@ircorr}\\ - \cline{1-1} - \end{tabular} +\DeclareRobustCommand{\keepcase}[6][]{% + \setcounter{sc@tempa}{2*#5 + #6 }% + \begin{picture}(#4, \value{sc@tempa})% + \rotatebox{90}{% + \sc@choicebox{#5}{#4}{% + \parbox[c]{#5 \sc@unittype}{% + \centering #1\ \\ \vspace{\sc@keepcasealign}}% + }{\sc@truestr}{\sc@truestr}{\sc@truestr}{\sc@falsestr}% + \sc@choicebox{#6}{#4}{% + \rotatebox{\sc@spinerottwo}{\parbox[c]{#4 \sc@unittype}{% + \centering #3}}% + }{\sc@truestr}{\sc@truestr}{\sc@falsestr}{\sc@falsestr}% + \sc@choicebox{#5}{#4}{% + \parbox[c]{#5 \sc@unittype}{% + \centering #2\ \\ \vspace{\sc@keepcasealign}}% + }{\sc@truestr}{\sc@truestr}{\sc@falsestr}{\sc@truestr}% + }% + \end{picture}% } % \end{macrocode} % \end{macro} @@ -576,9 +1146,10 @@ % Creates a slim dvd keepcase cover. \\ % Usage: |\slimdvd| \oarg{back text} \marg{cover text} \marg{spine text} % \begin{macrocode} -\DeclareRobustCommand{\slimdvd}[3][]{ - \keepcase[#1]{#2}{#3}{\sc@dvdkcheight}{\sc@sdvdcoverwidth}% - {\sc@sdvdspinewidth} +\DeclareRobustCommand{\slimdvd}[3][]{% + \keepcase[#1]{#2}{#3}{\value{sc@dvdkccoverheightdraw}}% + {\value{sc@dvdkccoverwidthdraw}}% + {\value{sc@sdvdkcspinewidthdraw}}% } % \end{macrocode} % \end{macro} @@ -587,9 +1158,10 @@ % Creates a dvd keepcase. \\ % Usage: |\dvd| \oarg{back text} \marg{cover text} \marg{spine text} % \begin{macrocode} -\DeclareRobustCommand{\dvd}[3][]{ - \keepcase[#1]{#2}{#3}{\sc@dvdkcheight}{\sc@dvdkccoverwidth-1.5mm}% - {\sc@dvdkcspinewidth} +\DeclareRobustCommand{\dvd}[3][]{% + \keepcase[#1]{#2}{#3}{\value{sc@dvdkccoverheightdraw}}% + {\value{sc@dvdkccoverwidthdraw}}% + {\value{sc@dvdkcspinewidthdraw}}% } % \end{macrocode} % \end{macro} @@ -598,9 +1170,10 @@ % Creates a Blu-Ray keepcase.\\ % Usage: |\bluray| \oarg{backtext} \marg{cover text} \marg{spine text} % \begin{macrocode} -\DeclareRobustCommand{\bluray}[3][]{ - \keepcase[#1]{#2}{#3}{\sc@brcoverheight}{\sc@brcoverwidth}% - {\sc@brspinewidth} +\DeclareRobustCommand{\bluray}[3][]{% + \keepcase[#1]{#2}{#3}{\value{sc@brcoverheightdraw}}% + {\value{sc@dvdkccoverwidthdraw}}% + {\value{sc@dvdkcspinewidthdraw}}% } % \end{macrocode} % \end{macro} @@ -609,8 +1182,9 @@ % Resizes the image for a jewel case cover. \\ % Usage: |\coverimg| \parg{picture} % \begin{macrocode} -\DeclareRobustCommand{\coverimg}[1]{ - \resizebox{\sc@cdjccoverwidth}{\sc@cdjccoverheight}{#1} +\DeclareRobustCommand{\coverimg}[1]{% + \resizebox{\value{sc@cdjccoverwidthdraw} \sc@unittype}{% + \value{sc@cdjccoverheightdraw} \sc@unittype}{#1}% } % \end{macrocode} % \end{macro} @@ -619,9 +1193,11 @@ % Resizes the image for a jewel case backsheet with spines. \\ % Usage: |\backsheetimg| \parg{picture} % \begin{macrocode} -\DeclareRobustCommand{\backsheetimg}[1]{ - \resizebox{\sc@cdjcbackwidth+\sc@cdjcspinewidth*2}% - {\sc@cdjcbackheight}{#1} +\DeclareRobustCommand{\backsheetimg}[1]{% + \resizebox{% + \value{sc@cdjcbackwidthdraw}+\value{sc@cdjcspinewidthdraw}*2% + \sc@unittype}% + {\value{sc@cdjcbackheightdraw} \sc@unittype}{#1}% } % \end{macrocode} % \end{macro} @@ -630,9 +1206,10 @@ % Resizes an image for the slim dvd keepcase. \\ % Usage: |\slimdvdimg| \parg{picture} % \begin{macrocode} -\DeclareRobustCommand{\slimdvdimg}[1]{ - \resizebox{\sc@dvdkcheight}% - {\sc@sdvdcoverwidth*2+\sc@sdvdspinewidth}{#1} +\DeclareRobustCommand{\slimdvdimg}[1]{% + \resizebox{\value{sc@dvdkcheightdraw} \sc@unittype}% + {\value{sc@sdvdkccoverwidthdraw}*2+\value{sc@sdvdkcspinewidthdraw}% + \sc@unittype}{#1}% } % \end{macrocode} % \end{macro} @@ -641,9 +1218,10 @@ % Resizes an image for a dvd keepcase. \\ % Usage: |\dvdimg| \parg{picture} % \begin{macrocode} -\DeclareRobustCommand{\dvdimg}[1]{ - \resizebox{\sc@dvdkcheight}% - {\sc@dvdkccoverwidth*2+\sc@dvdkcspinewidth}{#1} +\DeclareRobustCommand{\dvdimg}[1]{% + \resizebox{\value{sc@dvdkcheightdraw} \sc@unittype}% + {\value{sc@dvdkccoverwidthdraw}*2+\value{sc@dvdkcspinewidthdraw}% + \sc@unittype}{#1}% } % \end{macrocode} % \end{macro} @@ -652,9 +1230,10 @@ % Resizes an image for the Blu-Ray keepcase. \\ % Usage: |\blurayimg| \parg{picture} % \begin{macrocode} -\DeclareRobustCommand{\blurayimg}[1]{ - \resizebox{\sc@brcoverheight}% - {\sc@brcoverwidth*2+\sc@brspinewidth}{#1} +\DeclareRobustCommand{\blurayimg}[1]{% + \resizebox{\value{sc@brcoverheightdraw} \sc@unittype}% + {\value{sc@dvdkccoverwidthdraw}*2+\value{sc@dvdkcspinewidthdraw}% + \sc@unittype}{#1}% } % \end{macrocode} % \end{macro} @@ -663,23 +1242,43 @@ % Creates a single cell for a cover, inlay. \\ % Usage: |\sc@cell| \marg{text} \marg{width} \marg{height} \marg{aligning space} % \begin{macrocode} -\DeclareRobustCommand{\sc@cell}[4]{ - \begin{tabular}{|@{}m{#2}@{}|m{\sc@ircwidth}} - \cline{1-1}% - \centering % - \parbox[c]{#2}{\centering #1 \\ #4} & \rule{0pt}{{#3}-\sc@ircorr}\\ - \cline{1-1} - \end{tabular} +\DeclareRobustCommand{\sc@cell}[4]{% + \begin{picture}(#2,#3)% + \framebox(#2,#3)[c]{% + \parbox[c]{#2 \sc@unittype}{\centering #1\ \\ #4}% + }% + \end{picture}% +} +% \end{macrocode} +% \end{macro} + +% \begin{macro}{\sc@choicebox} +% Creates a box with configurable borders. If a parameter in 4-7 range is not |\sc@truestr|, then +% the appropriate border is not drawn. +% Usage: |\sc@choicebox| \marg{width} \marg{height} \marg{text} \marg{bottom border} \marg{top border} \marg{left border} \marg{right border} +% \begin{macrocode} +\newcommand{\sc@choicebox}[7]{% + \makebox(#1,#2)[c]{% + \parbox[c]{#1 \sc@unittype}{\centering #3}% + }% + \ifthenelse{\boolean{sc@fold} \OR \equal{#4}{\sc@truestr}}% + {\put(-#1,0){\line(1,0){#1}}}{}% + \ifthenelse{\boolean{sc@fold} \OR \equal{#5}{\sc@truestr}}% + {\put(-#1,#2){\line(1,0){#1}}}{}% + \ifthenelse{\boolean{sc@fold} \OR \equal{#6}{\sc@truestr}}% + {\put(-#1,0){\line(0,1){#2}}}{}% + \ifthenelse{\boolean{sc@fold} \OR \equal{#7}{\sc@truestr}}% + {\put(0,0){\line(0,1){#2}}}{}% } % \end{macrocode} % \end{macro} % \begin{macro}{\inlay} -% Creates a costum sized inlay. +% Creates a custom sized inlay. % Usage: |\inlay| \marg{text} \marg{width} \marg{height} % \begin{macrocode} -\DeclareRobustCommand{\inlay}[3]{ - \sc@cell{#1}{#2}{#3}{\vspace{\sc@inalign}} +\DeclareRobustCommand{\inlay}[3]{% + \sc@cell{#1}{#2}{#3}{\vspace{\sc@inalign}}% } % \end{macrocode} % \end{macro} @@ -688,8 +1287,9 @@ % Creates an inlay card for a dvd/slimdvd keepcase. \\ % Usage: |\dvdinlay| \marg{text} % \begin{macrocode} -\DeclareRobustCommand{\dvdinlay}[1]{ - \inlay{#1}{\sc@dvdkcinletwidth}{\sc@dvdkcinletheight} +\DeclareRobustCommand{\dvdinlay}[1]{% + \inlay{#1}{\value{sc@dvdkcinletwidthdraw}}% + {\value{sc@dvdkcinletheightdraw}}% } % \end{macrocode} % \end{macro} @@ -698,8 +1298,9 @@ % Creates an inlay for a Blu-Ray keepcase. % Usage: |\blurayinlay| \marg{text} % \begin{macrocode} -\DeclareRobustCommand{\blurayinlay}[1]{ - \inlay{#1}{\sc@brinletwidth}{\sc@brinletheight} +\DeclareRobustCommand{\blurayinlay}[1]{% + \inlay{#1}{\value{sc@brinletwidthdraw}}% + {\value{sc@brinletheightdraw}}% } % \end{macrocode} % \end{macro} @@ -708,22 +1309,421 @@ % Creates a two-page jewel case cover. \\ % Usage: |\djewel| \marg{first page text} \marg{second page text} % \begin{macrocode} -\DeclareRobustCommand{\djewel}[2]{ - \begin{tabular}{|@{}m{\sc@cdjccoverheight}@{}|m{\sc@ircwidth}} - \cline{1-1} % - \centering% - \begin{turn}{270}% - \parbox[c]{\sc@cdjccoverwidth-\sc@ircorr}% - {\centering #2 \\ \vspace{\sc@djewsalign}}% - \end{turn}& \rule{0pt}{\sc@cdjccoverwidth-\sc@ircorr} \\ - \sc@hfoldline{1-1} % - \centering% - \begin{turn}{270}% - \parbox[c]{\sc@cdjccoverwidth-\sc@ircorr}% - {\centering #1 \\ \vspace{\sc@jfcalign}}% - \end{turn} & \rule{0pt}{\sc@cdjccoverwidth-\sc@ircorr} \\ - \cline{1-1} - \end{tabular} +\DeclareRobustCommand{\djewel}[2]{% + \setcounter{sc@tempa}{2 * \value{sc@cdjccoverwidthdraw}}% + \begin{picture}(\value{sc@cdjccoverheightdraw}, \value{sc@tempa})% + \rotatebox{90}{% + \sc@choicebox{\value{sc@cdjccoverwidthdraw}}% + {\value{sc@cdjccoverheightdraw}}{% + \parbox[c]{\value{sc@cdjccoverwidthdraw} \sc@unittype}{% + \centering #2\ \\ \vspace{\sc@jewelalign}}% + }{\sc@truestr}{\sc@truestr}{\sc@truestr}{\sc@falsestr}% + \sc@choicebox{\value{sc@cdjccoverwidthdraw}}% + {\value{sc@cdjccoverheightdraw}}{% + \parbox[c]{\value{sc@cdjccoverwidthdraw} \sc@unittype}{% + \centering #1\ \\ \vspace{\sc@jewelalign}}% + }{\sc@truestr}{\sc@truestr}{\sc@falsestr}{\sc@truestr}% + }% + \end{picture}% +} +% \end{macrocode} +% \end{macro} + +% \begin{macro}{\cdrdisk} +% Creates a CD-R image. \\ +% Usage: |\cdrdisk| \marg{content} +% \begin{macrocode} +\DeclareRobustCommand{\cdrdisk}[1]{% + \begin{picture}(116, 116)% + % Ellipse: u = 58.0 v = 58.0 a = 58.0 b = 58.0 phi = 0.0 Grad + \qbezier(116.0, 58.0)(116.0, 82.0244)(99.0122, 99.0122)% + \qbezier(99.0122, 99.0122)(82.0244, 116.0)(58.0, 116.0)% + \qbezier(58.0, 116.0)(33.9756, 116.0)(16.9878, 99.0122)% + \qbezier(16.9878, 99.0122)(0.0, 82.0244)(0.0, 58.0)% + \qbezier(0.0, 58.0)(0.0, 33.9756)(16.9878, 16.9878)% + \qbezier(16.9878, 16.9878)(33.9756, 0.0)(58.0, 0.0)% + \qbezier(58.0, 0.0)(82.0244, 0.0)(99.0122, 16.9878)% + \qbezier(99.0122, 16.9878)(116.0, 33.9756)(116.0, 58.0)% + % Ellipse: u = 58.0 v = 58.0 a = 19.0 b = 19.0 phi = 0.0 Grad + \qbezier(77.0, 58.0)(77.0, 65.8701)(71.435, 71.435)% + \qbezier(71.435, 71.435)(65.8701, 77.0)(58.0, 77.0)% + \qbezier(58.0, 77.0)(50.1299, 77.0)(44.565, 71.435)% + \qbezier(44.565, 71.435)(39.0, 65.8701)(39.0, 58.0)% + \qbezier(39.0, 58.0)(39.0, 50.1299)(44.565, 44.565)% + \qbezier(44.565, 44.565)(50.1299, 39.0)(58.0, 39.0)% + \qbezier(58.0, 39.0)(65.8701, 39.0)(71.435, 44.565)% + \qbezier(71.435, 44.565)(77.0, 50.1299)(77.0, 58.0)% + \put(0,0){% + \makebox(116,116)[c]{% + \parbox[c]{116\sc@unittype}{\centering #1}% + }}% + \end{picture}% +} +% \end{macrocode} +% \end{macro} + +% \begin{macro}{\cddvddisk} +% Creates a CD, DVD image. \\ +% Usage: |\cddvddisk| \marg{content} +% \begin{macrocode} +\DeclareRobustCommand{\cddvddisk}[1]{% + \begin{picture}(117, 117)% + % Ellipse: u = 58.5 v = 58.5 a = 58.5 b = 58.5 phi = 0.0 Grad + \qbezier(117.0, 58.5)(117.0, 82.7315)(99.8657, 99.8657) + \qbezier(99.8657, 99.8657)(82.7315, 117.0)(58.5, 117.0) + \qbezier(58.5, 117.0)(34.2685, 117.0)(17.1343, 99.8657) + \qbezier(17.1343, 99.8657)(0.0, 82.7315)(0.0, 58.5) + \qbezier(0.0, 58.5)(0.0, 34.2685)(17.1343, 17.1343) + \qbezier(17.1343, 17.1343)(34.2685, 0.0)(58.5, 0.0) + \qbezier(58.5, 0.0)(82.7315, 0.0)(99.8657, 17.1343) + \qbezier(99.8657, 17.1343)(117.0, 34.2685)(117.0, 58.5) + % Ellipse: u = 58.5 v = 58.5 a = 11.25 b = 11.25 phi = 0.0 Grad + \qbezier(69.75, 58.5)(69.75, 63.1599)(66.455, 66.455) + \qbezier(66.455, 66.455)(63.1599, 69.75)(58.5, 69.75) + \qbezier(58.5, 69.75)(53.8401, 69.75)(50.545, 66.455) + \qbezier(50.545, 66.455)(47.25, 63.1599)(47.25, 58.5) + \qbezier(47.25, 58.5)(47.25, 53.8401)(50.545, 50.545) + \qbezier(50.545, 50.545)(53.8401, 47.25)(58.5, 47.25) + \qbezier(58.5, 47.25)(63.1599, 47.25)(66.455, 50.545) + \qbezier(66.455, 50.545)(69.75, 53.8401)(69.75, 58.5) + \put(0,0){% + \makebox(117,117)[c]{% + \parbox[c]{117\sc@unittype}{\centering #1}% + }}% + \end{picture}% +} +% \end{macrocode} +% \end{macro} + +% \begin{macro}{\LXXXdisk} +% Creates a 80 millimeter disk image. \\ +% Usage: |\LXXXdisk| \marg{content} +% \begin{macrocode} +\DeclareRobustCommand{\LXXXdisk}[1]{% + \begin{picture}(76, 76)% + % Ellipse: u = 38.0 v = 38.0 a = 38.0 b = 38.0 phi = 0.0 Grad + \qbezier(76.0, 38.0)(76.0, 53.7401)(64.8701, 64.8701) + \qbezier(64.8701, 64.8701)(53.7401, 76.0)(38.0, 76.0) + \qbezier(38.0, 76.0)(22.2599, 76.0)(11.1299, 64.8701) + \qbezier(11.1299, 64.8701)(0.0, 53.7401)(0.0, 38.0) + \qbezier(0.0, 38.0)(0.0, 22.2599)(11.1299, 11.1299) + \qbezier(11.1299, 11.1299)(22.2599, 0.0)(38.0, 0.0) + \qbezier(38.0, 0.0)(53.7401, 0.0)(64.8701, 11.1299) + \qbezier(64.8701, 11.1299)(76.0, 22.2599)(76.0, 38.0) + % Ellipse: u = 38.0 v = 38.0 a = 9.0 b = 9.0 phi = 0.0 Grad + \qbezier(47.0, 38.0)(47.0, 41.7279)(44.364, 44.364) + \qbezier(44.364, 44.364)(41.7279, 47.0)(38.0, 47.0) + \qbezier(38.0, 47.0)(34.2721, 47.0)(31.636, 44.364) + \qbezier(31.636, 44.364)(29.0, 41.7279)(29.0, 38.0) + \qbezier(29.0, 38.0)(29.0, 34.2721)(31.636, 31.636) + \qbezier(31.636, 31.636)(34.2721, 29.0)(38.0, 29.0) + \qbezier(38.0, 29.0)(41.7279, 29.0)(44.364, 31.636) + \qbezier(44.364, 31.636)(47.0, 34.2721)(47.0, 38.0) + \put(0,0){% + \makebox(76,76)[c]{% + \parbox[c]{76\sc@unittype}{\centering #1}% + }}% + \end{picture}% +} +% \end{macrocode} +% \end{macro} + +% \begin{macro}{\sc@jewelemptyl} +% Empty jewel layout \\ +% Usage: |\sc@jewelemptyl| \marg{content} \marg{cover width} \marg{cover height} +% \begin{macrocode} +\DeclareRobustCommand{\sc@jewelemptyl}[3]{% + \ifthenelse{\boolean{sc@align}}{\vspace{\sc@jewelalign}}{}% + \setcounter{sc@tempa}{#2 - 10}% + \setcounter{sc@tempb}{#3 - 10}% + \begin{picture}(\value{sc@tempa}, \value{sc@tempb})% + #1% + \end{picture}% +} +% \end{macrocode} +% \end{macro} + +% \begin{macro}{\jewellempty} +% Empty layout border \\ +% Usage: |\jewellempty| \marg{content} +% \begin{macrocode} +\DeclareRobustCommand{\jewellempty}[1]{% + \setcounter{sc@tempa}{\value{sc@cdjccoverwidthdraw} - 10}% + \setcounter{sc@tempb}{\value{sc@cdjccoverheightdraw} - 10}% + \sc@jewelemptyl{\framebox(\value{sc@tempa},\value{sc@tempb})[c]{% + \parbox[c]{\value{sc@tempa} \sc@unittype}{\centering #1}}}% + {\value{sc@cdjccoverwidthdraw}}% + {\value{sc@cdjccoverheightdraw}}% +} +% \end{macrocode} +% \end{macro} + +% \begin{macro}{\jeweldriverlempty} +% Empty cover layout for a hardware driver disk \\ +% Usage: |\jeweldriverlempty| \marg{title} \marg{subtitle} \marg{date} \marg{serial} \marg{disk version} \marg{right middle cell} \marg{bottom cell} +% \begin{macrocode} +\DeclareRobustCommand{\jeweldriverlempty}[7]{% + \sc@jewelemptyl{% + \put(0,80){% + \framebox(110,30){\parbox[c]{110mm}{\centering\scalebox{4.5}{#1}}}}% + \put(0,60){\framebox(110,20){\parbox[c]{110mm}{\centering\huge #2}}}% + \put(0,50){\framebox(55,10){\parbox[c]{55mm}{\centering #3}}}% + \put(0,40){\framebox(55,10){\parbox[c]{55mm}{\centering #4}}}% + \put(0,30){\framebox(55,10){\parbox[c]{55mm}{\centering #5}}}% + \put(55,30){\framebox(55,30)[t]{% + \parbox[c]{4cm}{% + \vspace{0.5cm}% + \setlength{\baselineskip}{1.5\baselineskip} #6% + }% + }}% + \put(0,0){\framebox(110,30)[t]{% + \parbox[c]{10.5cm}{\vspace{0.5cm} #7}% + }}}% + {\value{sc@cdjccoverwidthdraw}}% + {\value{sc@cdjccoverheightdraw}}% +} +% \end{macrocode} +% \end{macro} + +% \begin{macro}{\jeweldriverl} +% Cover layout for a hardware driver disk \\ +% Usage: |\jeweldriverl| \marg{title} \marg{subtitle} \marg{date} \marg{serial} \marg{disk version} \marg{right middle cell} \marg{bottom cell} +% \begin{macrocode} +\DeclareRobustCommand{\jeweldriverl}[7]{% + \jeweldriverlempty{#1}{#2}{Acquisition date: #3}{Serial: #4}% + {Disk version/ID: #5}{#6}{#7}% +} +% \end{macrocode} +% \end{macro} + +% \begin{macro}{\jewelmusiclempty} +% Cover layout for music disks \\ +% Usage: |\jewelmusiclempty| \marg{title} \marg{performer} \marg{year} \marg{style} +% \begin{macrocode} +\DeclareRobustCommand{\jewelmusiclempty}[4]{% + \sc@jewelemptyl{\framebox(\value{sc@tempa},\value{sc@tempb})[c]{% + \put(0,60){% + \makebox(110,40)[c]{\parbox[c]{110mm}{\centering\scalebox{4}{#1}}}}% + \put(0,60){\makebox(110,10)[c]{\parbox[c]{110mm}{\centering\Large #2}}}% + \put(0,15){\makebox(110,20)[c]{\parbox[c]{110mm}{\centering\Large #4}}}% + \put(0,10){\makebox(110,10)[c]{\parbox[c]{110mm}{\centering\Large #3}}}% + }}% + {\value{sc@cdjccoverwidthdraw}}% + {\value{sc@cdjccoverheightdraw}}% +} +% \end{macrocode} +% \end{macro} + +% \begin{macro}{\sc@jewelbackemptyl} +% Empty jewel backsheet layout \\ +% Usage: |\sc@jewelbackemptyl| \marg{content} +% \begin{macrocode} +\DeclareRobustCommand{\sc@jewelbackemptyl}[1]{% + \ifthenelse{\boolean{sc@align}}{\vspace{\sc@jewelalign}}{}% + \setcounter{sc@tempa}{\value{sc@cdjcbackinwidthdraw} - 10}% + \setcounter{sc@tempb}{\value{sc@cdjcbackheightdraw} - 10}% + \begin{picture}(\value{sc@tempa}, \value{sc@tempb})% + #1% + \end{picture}% +} +% \end{macrocode} +% \end{macro} + +% \begin{macro}{\jewelbacklempty} +% Empty layout border \\ +% Usage: |\jewelbacklempty| \marg{content} +% \begin{macrocode} +\DeclareRobustCommand{\jewelbacklempty}[1]{% + \setcounter{sc@tempa}{\value{sc@cdjcbackinwidthdraw} - 10}% + \setcounter{sc@tempb}{\value{sc@cdjcbackheightdraw} - 10}% + \sc@jewelbackemptyl{\framebox(\value{sc@tempa},\value{sc@tempb})[c]{% + \parbox[c]{\value{sc@tempa} \sc@unittype}{\centering #1}}}% +} +% \end{macrocode} +% \end{macro} + +% \begin{macro}{\LXlempty} +% Empty layout border for 60 millimeter disk covers \\ +% Usage: |\LXlempty| \marg{content} +% \begin{macrocode} +\DeclareRobustCommand{\LXlempty}[1]{% + \ifthenelse{\boolean{sc@align}}{\vspace{\sc@jewelalign}}{}% + \setcounter{sc@tempa}{\value{sc@cdLXjccoverwidthdraw} - 10}% + \setcounter{sc@tempb}{\value{sc@cdLXjccoverheightdraw} - 10}% + \resizebox{50\sc@unittype}{!}{% + \sc@jewelemptyl{\framebox(\value{sc@tempa},\value{sc@tempb})[c]{% + \parbox[c]{\value{sc@tempa} \sc@unittype}{\centering #1}}}% + {\value{sc@cdLXjccoverwidthdraw}}% + {\value{sc@cdLXjccoverheightdraw}}}% +} +% \end{macrocode} +% \end{macro} + +% \begin{macro}{\LXXXlempty} +% Empty layout border for 80 millimeter disk covers \\ +% Usage: |\LXXXlempty| \marg{content} +% \begin{macrocode} +\DeclareRobustCommand{\LXXXlempty}[1]{% + \ifthenelse{\boolean{sc@align}}{\vspace{\sc@jewelalign}}{}% + \setcounter{sc@tempa}{\value{sc@cdLXXXjccoverwidthdraw} - 10}% + \setcounter{sc@tempb}{\value{sc@cdLXXXjccoverheightdraw} - 10}% + \resizebox{\value{sc@tempa}\sc@unittype}{!}{% + \sc@jewelemptyl{\framebox(\value{sc@tempa},\value{sc@tempb})[c]{% + \parbox[c]{\value{sc@tempa} \sc@unittype}{\centering #1}}}% + {\value{sc@cdLXXXjccoverwidthdraw}}% + {\value{sc@cdLXXXjccoverheightdraw}}}% +} +% \end{macrocode} +% \end{macro} + +% \begin{macro}{\LXdriverlempty} +% Driver layout border for 60 millimeter disk covers \\ +% Usage: |\LXdriverlempty| \marg{title} \marg{subtitle} \marg{date} \marg{serial} \marg{disk version} \marg{right middle cell} \marg{bottom cell} +% \begin{macrocode} +\DeclareRobustCommand{\LXdriverlempty}[7]{% + \ifthenelse{\boolean{sc@align}}{\vspace{\sc@jewelalign}}{}% + \setcounter{sc@tempc}{\value{sc@cdLXjccoverheightdraw} - 10}% + \resizebox{\value{sc@tempc}\sc@unittype}{!}{% + \jeweldriverlempty{#1}{#2}{#3}{#4}{#5}{#6}{#7}}% +} +% \end{macrocode} +% \end{macro} + +% \begin{macro}{\LXXXdriverlempty} +% Driver layout border for 80 millimeter disk covers \\ +% Usage: |\LXXXdriverlempty| \marg{title} \marg{subtitle} \marg{date} \marg{serial} \marg{disk version} \marg{right middle cell} \marg{bottom cell} +% \begin{macrocode} +\DeclareRobustCommand{\LXXXdriverlempty}[7]{% + \ifthenelse{\boolean{sc@align}}{\vspace{\sc@jewelalign}}{}% + \setcounter{sc@tempc}{\value{sc@cdLXXXjccoverheightdraw} - 10}% + \resizebox{\value{sc@tempc}\sc@unittype}{!}{% + \jeweldriverlempty{#1}{#2}{#3}{#4}{#5}{#6}{#7}}% +} +% \end{macrocode} +% \end{macro} + +% \begin{macro}{\LXdriverl} +% Driver layout border for 60 millimeter disk covers \\ +% Usage: |\LXdriverl| \marg{title} \marg{subtitle} \marg{date} \marg{serial} \marg{disk version} \marg{right middle cell} \marg{bottom cell} +% \begin{macrocode} +\DeclareRobustCommand{\LXdriverl}[7]{% + \LXdriverlempty{#1}{#2}{Acquisition date: #3}{Serial: #4}% + {Disk version/ID: #5}{#6}{#7}% +} +% \end{macrocode} +% \end{macro} + +% \begin{macro}{\LXXXdriverl} +% Driver layout border for 80 millimeter disk covers \\ +% Usage: |\LXXXdriverl| \marg{title} \marg{subtitle} \marg{date} \marg{serial} \marg{disk version} \marg{right middle cell} \marg{bottom cell} +% \begin{macrocode} +\DeclareRobustCommand{\LXXXdriverl}[7]{% + \LXXXdriverlempty{#1}{#2}{Acquisition date: #3}{Serial: #4}% + {Disk version/ID: #5}{#6}{#7}% +} +% \end{macrocode} +% \end{macro} + +% \begin{macro}{\dvdmovielempty} +% Cover layout for movie DVDs. +% Usage: |\dvdmovielempty| \marg{title} \marg{original title} \marg{release year} \marg{director} \marg{languages} \marg{subtitles} \marg{actors} \marg{comment} +% \begin{macrocode} +\DeclareRobustCommand{\dvdmovielempty}[8]{% + \ifthenelse{\boolean{sc@align}}{\vspace{\sc@keepcasealign}}{}% + \setcounter{sc@tempa}{\value{sc@dvdkccoverwidthdraw} - 10}% + \setcounter{sc@tempb}{\value{sc@dvdkccoverheightdraw} - 10}% + \begin{picture}(\value{sc@tempa}, \value{sc@tempb})% + \put(0,140){% + \framebox(118,33)[c]{\parbox[c]{110mm}{\centering\scalebox{3}{#1}}}}% + \put(0,120){\framebox(118,20)[c]{\parbox[c]{110mm}{\centering\huge #2}}}% + \put(0,110){\framebox(59,10)[c]{\parbox[c]{50mm}{\centering #3}}}% + \put(0,100){\framebox(59,10)[c]{\parbox[c]{50mm}{#4}}}% + \put(0,70){\framebox(59,30)[c]{\parbox[c]{50mm}{#5}}}% + \put(0,40){\framebox(59,30)[c]{\parbox[c]{50mm}{#6}}}% + \put(59,40){\framebox(59,80)[c]{\parbox[c]{50mm}{#7}}}% + \put(0,0){\framebox(118,40)[t]{\parbox[c]{108mm}{\vspace{0.5cm} #8}}}% + \end{picture}% +} +% \end{macrocode} +% \end{macro} + +% \begin{macro}{\dvdmoviel} +% Cover layout for movie DVDs. +% Usage: |\dvdmoviel| \marg{title} \marg{original title} \marg{release year} \marg{director} \marg{languages} \marg{subtitles} \marg{actors} \marg{comment} +% \begin{macrocode} +\DeclareRobustCommand{\dvdmoviel}[8]{% + \dvdmovielempty{#1}{#2}{Released: #3}{Directed by: #4}% + {\underline{Spoken languages:} \\ #5}% + {\underline{Subtitles:} \\ #6}{\underline{Starring:} \\ #7}{#8}% +} +% \end{macrocode} +% \end{macro} + +% \begin{macro}{\dvdlempty} +% Empty layout for DVD keepcases. +% Usage: |\dvdlempty| \marg{content} +% \begin{macrocode} +\DeclareRobustCommand{\dvdlempty}[1]{% + \ifthenelse{\boolean{sc@align}}{\vspace{\sc@keepcasealign}}{}% + \setcounter{sc@tempa}{\value{sc@dvdkccoverwidthdraw} - 10}% + \setcounter{sc@tempb}{\value{sc@dvdkccoverheightdraw} - 10}% + \begin{picture}(\value{sc@tempa}, \value{sc@tempb})% + \put(0,0){% + \framebox(\value{sc@tempa}, \value{sc@tempb})[c]{% + \parbox[c]{\value{sc@tempa}\sc@unittype}{\centering #1}}}% + \end{picture}% +} +% \end{macrocode} +% \end{macro} + +% \begin{macro}{\bluraymovielempty} +% Cover layout for movie Blu-rays. +% Usage: |\bluraymovielempty| \marg{title} \marg{original title} \marg{release year} \marg{director} \marg{languages} \marg{subtitles} \marg{actors} \marg{comment} +% \begin{macrocode} +\DeclareRobustCommand{\bluraymovielempty}[8]{% + \ifthenelse{\boolean{sc@align}}{\vspace{\sc@keepcasealign}}{}% + \setcounter{sc@tempa}{\value{sc@dvdkccoverwidthdraw} - 10}% + \setcounter{sc@tempb}{\value{sc@brcoverheightdraw} - 10}% + \begin{picture}(\value{sc@tempa}, \value{sc@tempb})% + \put(0,120){% + \framebox(118,20)[c]{\parbox[c]{110mm}{\centering\scalebox{3}{#1}}}}% + \put(0,105){\framebox(118,15)[c]{\parbox[c]{110mm}{\centering\huge #2}}}% + \put(0,95){\framebox(59,10)[c]{\parbox[c]{50mm}{\centering #3}}}% + \put(0,85){\framebox(59,10)[c]{\parbox[c]{50mm}{#4}}}% + \put(0,55){\framebox(59,30)[c]{\parbox[c]{50mm}{#5}}}% + \put(0,25){\framebox(59,30)[c]{\parbox[c]{50mm}{#6}}}% + \put(59,25){\framebox(59,80)[c]{\parbox[c]{50mm}{#7}}}% + \put(0,0){\framebox(118,25)[t]{\parbox[c]{108mm}{\vspace{0.5cm} #8}}}% + \end{picture}% +} +% \end{macrocode} +% \end{macro} + +% \begin{macro}{\bluraymoviel} +% Cover layout for movie Blu-rays. +% Usage: |\bluraymoviel| \marg{title} \marg{original title} \marg{release year} \marg{director} \marg{languages} \marg{subtitles} \marg{actors} \marg{comment} +% \begin{macrocode} +\DeclareRobustCommand{\bluraymoviel}[8]{% + \bluraymovielempty{#1}{#2}{Released: #3}{Directed by: #4}% + {\underline{Spoken languages:} \\ #5}% + {\underline{Subtitles:} \\ #6}{\underline{Starring:} \\ #7}{#8}% +} +% \end{macrocode} +% \end{macro} + +% \begin{macro}{\bluraylempty} +% Empty layout for Blu-ray keepcases. +% Usage: |\bluraylempty| \marg{content} +% \begin{macrocode} +\DeclareRobustCommand{\bluraylempty}[1]{% + \ifthenelse{\boolean{sc@align}}{\vspace{\sc@keepcasealign}}{}% + \setcounter{sc@tempa}{\value{sc@dvdkccoverwidthdraw} - 10}% + \setcounter{sc@tempb}{\value{sc@brcoverheightdraw} - 10}% + \begin{picture}(\value{sc@tempa}, \value{sc@tempb})% + \put(0,0){% + \framebox(\value{sc@tempa}, \value{sc@tempb})[c]{% + \parbox[c]{\value{sc@tempa}\sc@unittype}{\centering #1}}}% + \end{picture}% } % \end{macrocode} % \end{macro} diff --git a/Master/texmf-dist/source/latex/simplecd/simplecd.ins b/Master/texmf-dist/source/latex/simplecd/simplecd.ins index 930379a291e..5a96d14ec6f 100644 --- a/Master/texmf-dist/source/latex/simplecd/simplecd.ins +++ b/Master/texmf-dist/source/latex/simplecd/simplecd.ins @@ -1,5 +1,5 @@ %% -%% Copyright (C) 2010 by Daniel Majoros +%% Copyright (C) 2010-2012 by Daniel Majoros %% %% This file may be distributed and/or modified under the %% conditions of the LaTeX Project Public License, either @@ -19,7 +19,7 @@ This is a generated file. -Copyright (C) 2010 by Daniel Majoros +Copyright (C) 2010-2012 by Daniel Majoros This file may be distributed and/or modified under the conditions of the LaTeX Project Public License, either diff --git a/Master/texmf-dist/tex/latex/simplecd/simplecd.sty b/Master/texmf-dist/tex/latex/simplecd/simplecd.sty index 45fb9b9ec8a..3b4163299f9 100644 --- a/Master/texmf-dist/tex/latex/simplecd/simplecd.sty +++ b/Master/texmf-dist/tex/latex/simplecd/simplecd.sty @@ -8,7 +8,7 @@ %% %% This is a generated file. %% -%% Copyright (C) 2010 by Daniel Majoros +%% Copyright (C) 2010-2012 by Daniel Majoros %% %% This file may be distributed and/or modified under the %% conditions of the LaTeX Project Public License, either @@ -23,290 +23,678 @@ \NeedsTeXFormat{LaTeX2e} \ProvidesPackage{simplecd} - [2010/07/01 v1.0 simple cd, dvd covers] + [2012/11/04 v1.1 simple cd, dvd covers and many more] -\RequirePackage{rotating} \RequirePackage{fix-cm} -\RequirePackage{array} \RequirePackage{calc} +\RequirePackage{ifthen} +\RequirePackage{graphicx} + +%% The |noalign| option sets all text aligning lengths to zero. \DeclareOption{noalign}{ - \setlength{\sc@jfcalign}{0cm} - \setlength{\sc@jbsalign}{0cm} - \setlength{\sc@slalign}{0cm} - \setlength{\sc@kcfalign}{0cm} - \setlength{\sc@kcbalign}{0cm} + \setlength{\sc@jewelalign}{0cm} + \setlength{\sc@keepcasealign}{0cm} \setlength{\sc@inalign}{0cm} - \setlength{\sc@djewsalign}{0cm} +\setboolean{sc@align}{false} } +%% The |nofold| option removes the folding lines on the cut-outs. \DeclareOption{nofold}{ - \renewcommand{\sc@hfoldline}[1]{} - \setlength{\sc@vfoldline}{0pt} -} - -\newcommand{\sc@hfoldline}[1]{ - \cline{#1} +\setboolean{sc@fold}{false} } -\newlength{\sc@vfoldline} -\setlength{\sc@vfoldline}{0.4pt} - +%% Redefines rotation degrees to rotate spine text with $180^\circ$. \DeclareOption{spiner}{ - \renewcommand{\sc@spinerotone}{180} + \renewcommand{\sc@spinerotone}{270} \renewcommand{\sc@spinerottwo}{90} - \renewcommand{\sc@spinerotthree}{270} } -\newcommand{\sc@spinerotone}{0} +\newcommand{\sc@spinerotone}{90} \newcommand{\sc@spinerottwo}{270} -\newcommand{\sc@spinerotthree}{90} +%% Boolean for indicating whether or not the folding lines need to be drawn. True value means to draw. +\newboolean{sc@fold} +\setboolean{sc@fold}{true} -%% CD jewelcase dimensions -\newlength{\sc@cdjccoverheight} -\setlength{\sc@cdjccoverheight}{120mm} -\newlength{\sc@cdjccoverwidth} -\setlength{\sc@cdjccoverwidth}{120mm} -\newlength{\sc@cdjcbackheight} -\setlength{\sc@cdjcbackheight}{117.5mm} -\newlength{\sc@cdjcbackwidth} -\setlength{\sc@cdjcbackwidth}{138mm} -\newlength{\sc@cdjcspinewidth} -\setlength{\sc@cdjcspinewidth}{6mm} +%% Boolean for indicating whether or not the default aligning is needed. +\newboolean{sc@align} +\setboolean{sc@align}{true} -%% Jewelcase spine fixed text font size -\newcommand{\sc@cdjfontsize}{15} +\newcommand{\sc@truestr}{t} -%% Disk sleeve dimensions -\newlength{\sc@dsdim} -\setlength{\sc@dsdim}{125mm} +\newcommand{\sc@falsestr}{f} -%% Slim DVD keepcase dimensions -\newlength{\sc@sdvdcoverwidth} -\setlength{\sc@sdvdcoverwidth}{128.5mm} -\newlength{\sc@sdvdspinewidth} -\setlength{\sc@sdvdspinewidth}{7mm} +\newcommand{\sc@unittype}{mm} -%% DVD keepcase dimensions -\newlength{\sc@dvdkcheight} -\setlength{\sc@dvdkcheight}{183mm} -\newlength{\sc@dvdkccoverwidth} -\setlength{\sc@dvdkccoverwidth}{129.5mm} -\newlength{\sc@dvdkcspinewidth} -\setlength{\sc@dvdkcspinewidth}{14mm} -\newlength{\sc@dvdkcinletwidth} -\setlength{\sc@dvdkcinletwidth}{115mm} -\newlength{\sc@dvdkcinletheight} -\setlength{\sc@dvdkcinletheight}{175mm} - -%% Blu-Ray case dimensions -\newlength{\sc@brcoverwidth} -\setlength{\sc@brcoverwidth}{128mm} -\newlength{\sc@brcoverheight} -\setlength{\sc@brcoverheight}{149mm} -\newlength{\sc@brspinewidth} -\setlength{\sc@brspinewidth}{14mm} -\newlength{\sc@brinletwidth} -\setlength{\sc@brinletwidth}{115mm} -\newlength{\sc@brinletheight} -\setlength{\sc@brinletheight}{140mm} - -%% Width and correction of the invisible |\rule|'s column -\newlength{\sc@ircwidth} -\setlength{\sc@ircwidth}{0.1mm} -\newlength{\sc@ircorr} -\setlength{\sc@ircorr}{1mm} - -%%Text aligning lengths -\newlength{\sc@jfcalign} -\setlength{\sc@jfcalign}{1.5cm} -\newlength{\sc@jbsalign} -\setlength{\sc@jbsalign}{3cm} -\newlength{\sc@slalign} -\setlength{\sc@slalign}{1.5cm} -\newlength{\sc@kcfalign} -\setlength{\sc@kcfalign}{4cm} -\newlength{\sc@kcbalign} -\setlength{\sc@kcbalign}{3cm} +\setlength{\unitlength}{1\sc@unittype} + +%% Text aligning lengths +\newlength{\sc@jewelalign} +\setlength{\sc@jewelalign}{15 \sc@unittype} +\newlength{\sc@keepcasealign} +\setlength{\sc@keepcasealign}{40 \sc@unittype} \newlength{\sc@inalign} -\setlength{\sc@inalign}{3cm} -\newlength{\sc@djewsalign} -\setlength{\sc@djewsalign}{3cm} +\setlength{\sc@inalign}{30 \sc@unittype} + + +%% CD jewel case dimensions +\newcounter{sc@cdjccoverwidthdraw} +\setcounter{sc@cdjccoverwidthdraw}{120} +\newcounter{sc@cdjccoverheightdraw} +\setcounter{sc@cdjccoverheightdraw}{120} +\newcounter{sc@cdjcspinewidthdraw} +\setcounter{sc@cdjcspinewidthdraw}{6} +\newcounter{sc@cdjcbackheightdraw} +\setcounter{sc@cdjcbackheightdraw}{117} +\newcounter{sc@cdjcbackwidthdraw} +\setcounter{sc@cdjcbackwidthdraw}{151} +\newcounter{sc@cdjcbackinwidthdraw} +\setcounter{sc@cdjcbackinwidthdraw}{% +\value{sc@cdjcbackwidthdraw} - 2*\value{sc@cdjcspinewidthdraw}} + +%% Mini disk dimensions +\newcounter{sc@cdLXXXjccoverwidthdraw} +\setcounter{sc@cdLXXXjccoverwidthdraw}{80} +\newcounter{sc@cdLXXXjccoverheightdraw} +\setcounter{sc@cdLXXXjccoverheightdraw}{80} +\newcounter{sc@cdLXjccoverwidthdraw} +\setcounter{sc@cdLXjccoverwidthdraw}{60} +\newcounter{sc@cdLXjccoverheightdraw} +\setcounter{sc@cdLXjccoverheightdraw}{60} + +%% Jewelcase spine fixed text font size +\newcommand{\sc@cdjfontsize}{15} + +%% DVD keepcase dimensions +\newcounter{sc@dvdkccoverwidthdraw} +\setcounter{sc@dvdkccoverwidthdraw}{128} +\newcounter{sc@dvdkccoverheightdraw} +\setcounter{sc@dvdkccoverheightdraw}{183} +\newcounter{sc@dvdkcspinewidthdraw} +\setcounter{sc@dvdkcspinewidthdraw}{14} +\newcounter{sc@dvdkcinletwidthdraw} +\setcounter{sc@dvdkcinletwidthdraw}{115} +\newcounter{sc@dvdkcinletheightdraw} +\setcounter{sc@dvdkcinletheightdraw}{175} + +\newcounter{sc@sdvdkcspinewidthdraw} +\setcounter{sc@sdvdkcspinewidthdraw}{7} + +%% Blu-ray keepcase dimensions +\newcounter{sc@brcoverheightdraw} +\setcounter{sc@brcoverheightdraw}{149} +\newcounter{sc@brinletwidthdraw} +\setcounter{sc@brinletwidthdraw}{115} +\newcounter{sc@brinletheightdraw} +\setcounter{sc@brinletheightdraw}{140} + +%% Dimensions for drawing the sleeves +\newcounter{sc@dssleeve} +\setcounter{sc@dssleeve}{15} +\newcounter{sc@dssleeveLXXXmm} +\setcounter{sc@dssleeveLXXXmm}{10} +\newcounter{sc@dssleeveLXmm} +\setcounter{sc@dssleeveLXmm}{8} \ProcessOptions\relax +%% Temporary counters for the implementation. +\newcounter{sc@tempa} +\newcounter{sc@tempb} +\newcounter{sc@tempc} +\newcounter{sc@tempd} +\newcounter{sc@tempe} +\newcounter{sc@tempf} +\newcounter{sc@tempg} + -\DeclareRobustCommand{\covers}[3][\ ]{ +\DeclareRobustCommand{\covers}[3][\ ]{% \frontcover{#2} - \vspace*{0.5cm} - \backsheet[#1]{#3} -} - -\DeclareRobustCommand{\frontcover}[1]{ - \sc@cell{#1}{\sc@cdjccoverwidth}{\sc@cdjccoverheight}% - {\vspace{\sc@jfcalign}} -} - -\DeclareRobustCommand{\backsheet}[2][\ ]{ - \begin{tabular}% - {|@{\hspace{0.4mm}}m{\sc@cdjcspinewidth-0.4mm}@{}% - !{\vrule width \sc@vfoldline}% - @{}m{\sc@cdjcbackwidth}@{}% - !{\vrule width \sc@vfoldline}@{}% - m{\sc@cdjcspinewidth-0.4mm}@{\hspace{0.4mm}}% - |m{\sc@ircwidth}} - \cline{1-3} - \centering% - \begin{turn}{\sc@spinerotthree}% - {\fontsize{\sc@cdjfontsize}{36}\selectfont #2 }% - \end{turn} % - & \parbox[c]{\sc@cdjcbackwidth}{\centering #1 \\ - \vspace{\sc@jbsalign}}% - & \centering % - \begin{turn}{\sc@spinerottwo}% - {\fontsize{\sc@cdjfontsize}{36}\selectfont #2}% - \end{turn} & \rule{0pt}{\sc@cdjcbackheight-\sc@ircorr} \\ - \cline{1-3} - \end{tabular} -} - -\DeclareRobustCommand{\jewelspine}[1]{ - \begin{tabular}{|@{}m{\sc@cdjcbackheight}@{}|m{\sc@ircwidth}} - \cline{1-1} % - \centering % - {\fontsize{\sc@cdjfontsize}{36}\selectfont #1}& % - \rule{0pt}{\sc@cdjcspinewidth-0.1cm} \\ - \cline{1-1} - \end{tabular} -} - -\DeclareRobustCommand{\sleeve}[1]{ - \begin{tabular}{m{10mm}|@{}m{\sc@dsdim}@{}|m{10mm}m{\sc@ircwidth}} - \multicolumn{3}{c}{ \setlength{\unitlength}{0.5cm} - \begin{picture}(0,0)% - \put(-12.5,-0.25){\line(1,1){4}} - \put(-8.5,3.75){\line(1,0){17}} - \put(12.5,-0.25){\line(-1,1){4}} - \end{picture} \rule{0pt}{3cm}} \\ - \cline{2-2} - \centering \setlength{\unitlength}{0.5cm} - \begin{picture}(0,0)% - \put(1.45,-12.38){\line(-1,1){1.5}}% - \put(-0.06,-10.9){\line(0,1){22.08}} % - \put(-0.06,11.18){\line(1,1){1.5}}% - \end{picture} & \parbox[c]{\sc@dsdim}% - {\centering #1 \\ \vspace{\sc@slalign}} &% - \setlength{\unitlength}{0.5cm} % - \begin{picture}(0,0)% - \put(-0.45,-12.38){\line(1,1){1.5}}% - \put(1.04,-10.9){\line(0,1){22.08}} % - \put(1.04,11.18){\line(-1,1){1.5}}% - \end{picture} & \rule{0pt}{\sc@dsdim-\sc@ircorr}\\ - \sc@hfoldline{2-2} - & & & \rule{0pt}{\sc@dsdim-0.1cm} \\ - \cline{2-2} - \end{tabular} -} - -\DeclareRobustCommand{\keepcase}[6][]{ - \begin{tabular}{|@{}m{#4}@{}|m{\sc@ircwidth}} - \cline{1-1} - \centering - \begin{sideways} \parbox[c]{#5}{\centering #2 % - \\ \vspace{\sc@kcfalign}} % - \end{sideways} & \rule{0pt}{#5-\sc@ircorr} \\ - \sc@hfoldline{1-1} \centering % - \begin{turn}{\sc@spinerotone}% - #3 % - \end{turn}% - & \rule{0pt}{#6-\sc@ircorr} \\ - \sc@hfoldline{1-1}% - \centering % - \begin{sideways} \parbox[c]{#5}{\centering #1\ \\ % - \vspace{\sc@kcbalign}} \end{sideways} & % - \rule{0pt} {#5-\sc@ircorr}\\ - \cline{1-1} - \end{tabular} -} - -\DeclareRobustCommand{\slimdvd}[3][]{ - \keepcase[#1]{#2}{#3}{\sc@dvdkcheight}{\sc@sdvdcoverwidth}% - {\sc@sdvdspinewidth} -} - -\DeclareRobustCommand{\dvd}[3][]{ - \keepcase[#1]{#2}{#3}{\sc@dvdkcheight}{\sc@dvdkccoverwidth-1.5mm}% - {\sc@dvdkcspinewidth} -} - -\DeclareRobustCommand{\bluray}[3][]{ - \keepcase[#1]{#2}{#3}{\sc@brcoverheight}{\sc@brcoverwidth}% - {\sc@brspinewidth} -} - -\DeclareRobustCommand{\coverimg}[1]{ - \resizebox{\sc@cdjccoverwidth}{\sc@cdjccoverheight}{#1} -} - -\DeclareRobustCommand{\backsheetimg}[1]{ - \resizebox{\sc@cdjcbackwidth+\sc@cdjcspinewidth*2}% - {\sc@cdjcbackheight}{#1} -} - -\DeclareRobustCommand{\slimdvdimg}[1]{ - \resizebox{\sc@dvdkcheight}% - {\sc@sdvdcoverwidth*2+\sc@sdvdspinewidth}{#1} -} - -\DeclareRobustCommand{\dvdimg}[1]{ - \resizebox{\sc@dvdkcheight}% - {\sc@dvdkccoverwidth*2+\sc@dvdkcspinewidth}{#1} -} - -\DeclareRobustCommand{\blurayimg}[1]{ - \resizebox{\sc@brcoverheight}% - {\sc@brcoverwidth*2+\sc@brspinewidth}{#1} -} - -\DeclareRobustCommand{\sc@cell}[4]{ - \begin{tabular}{|@{}m{#2}@{}|m{\sc@ircwidth}} - \cline{1-1}% - \centering % - \parbox[c]{#2}{\centering #1 \\ #4} & \rule{0pt}{{#3}-\sc@ircorr}\\ - \cline{1-1} - \end{tabular} -} - -\DeclareRobustCommand{\inlay}[3]{ - \sc@cell{#1}{#2}{#3}{\vspace{\sc@inalign}} -} - -\DeclareRobustCommand{\dvdinlay}[1]{ - \inlay{#1}{\sc@dvdkcinletwidth}{\sc@dvdkcinletheight} -} - -\DeclareRobustCommand{\blurayinlay}[1]{ - \inlay{#1}{\sc@brinletwidth}{\sc@brinletheight} -} - -\DeclareRobustCommand{\djewel}[2]{ - \begin{tabular}{|@{}m{\sc@cdjccoverheight}@{}|m{\sc@ircwidth}} - \cline{1-1} % - \centering% - \begin{turn}{270}% - \parbox[c]{\sc@cdjccoverwidth-\sc@ircorr}% - {\centering #2 \\ \vspace{\sc@djewsalign}}% - \end{turn}& \rule{0pt}{\sc@cdjccoverwidth-\sc@ircorr} \\ - \sc@hfoldline{1-1} % - \centering% - \begin{turn}{270}% - \parbox[c]{\sc@cdjccoverwidth-\sc@ircorr}% - {\centering #1 \\ \vspace{\sc@jfcalign}}% - \end{turn} & \rule{0pt}{\sc@cdjccoverwidth-\sc@ircorr} \\ - \cline{1-1} - \end{tabular} + \vspace*{0.5cm}% + \backsheet[#1]{#3}% +} + +\DeclareRobustCommand{\frontcover}[1]{% + \sc@cell{#1}{\value{sc@cdjccoverwidthdraw}}% +{\value{sc@cdjccoverheightdraw}}% +{\vspace{\sc@jewelalign}}% +} + +\DeclareRobustCommand{\LXfrontcover}[1]{% + \sc@cell{#1}{\value{sc@cdLXjccoverwidthdraw}}% +{\value{sc@cdLXjccoverheightdraw}}% +{\vspace{\sc@jewelalign}}% +} + +\DeclareRobustCommand{\LXXXfrontcover}[1]{% + \sc@cell{#1}{\value{sc@cdLXXXjccoverwidthdraw}}% +{\value{sc@cdLXXXjccoverheightdraw}}% +{\vspace{\sc@jewelalign}}% +} + +\newcounter{sc@backsheetspinerot} +\setcounter{sc@backsheetspinerot}{180+\sc@spinerotone} + +\DeclareRobustCommand{\backsheet}[2][\ ]{% +\begin{picture}% +(\value{sc@cdjcbackwidthdraw}, \value{sc@cdjcbackheightdraw})% +\sc@choicebox{\value{sc@cdjcspinewidthdraw}}% +{\value{sc@cdjcbackheightdraw}}% +{\rotatebox{\sc@spinerotone}% +{\fontsize{\sc@cdjfontsize}{36}\selectfont #2}}% +{\sc@truestr}% +{\sc@truestr}% +{\sc@truestr}% +{\sc@falsestr}% +\sc@choicebox{\value{sc@cdjcbackinwidthdraw}}% +{\value{sc@cdjcbackheightdraw}}% +{\parbox[c]{\value{sc@cdjcbackinwidthdraw} \sc@unittype}{% +\centering #1\ \\ \vspace{\sc@jewelalign}}}% +{\sc@truestr}% +{\sc@truestr}% +{\sc@falsestr}% +{\sc@falsestr}% +\sc@choicebox{\value{sc@cdjcspinewidthdraw}}% +{\value{sc@cdjcbackheightdraw}}% +{\rotatebox{\value{sc@backsheetspinerot}}{% +\fontsize{\sc@cdjfontsize}{36}\selectfont #2}}% +{\sc@truestr}% +{\sc@truestr}% +{\sc@falsestr}% +{\sc@truestr}% +\end{picture}% +} + +\DeclareRobustCommand{\jewelspine}[1]{% +\begin{picture}% +(\value{sc@cdjccoverheightdraw}, \value{sc@cdjcspinewidthdraw})% +\framebox% +(\value{sc@cdjccoverheightdraw}, \value{sc@cdjcspinewidthdraw})% +{\fontsize{\sc@cdjfontsize}{36}\selectfont #1}% +\end{picture}% +} + +\DeclareRobustCommand{\sc@sleeve}[6][]{% +\setcounter{sc@tempc}{#5 + 2}% +\setcounter{sc@tempd}{#4 + 2}% +\setcounter{sc@tempe}{\value{sc@tempc} + #3 *2}% +\setcounter{sc@tempf}{2 * \value{sc@tempd} + #3}% +\setcounter{sc@tempg}{2 * \value{sc@tempd}}% +\begin{picture}(\value{sc@tempe}, \value{sc@tempf})% +\put(0,\value{sc@tempd}){#6}% +\put(#3,\value{sc@tempf}){\rotatebox{270}{#6}}% +\put(\value{sc@tempe},\value{sc@tempg}){\rotatebox{180}{#6}}% +\put(#3,\value{sc@tempd}){% +\sc@choicebox{\value{sc@tempc}}{\value{sc@tempd}}{% +\parbox[c]{\value{sc@tempc} \sc@unittype}{% +\centering #2\ \\ \vspace{\sc@jewelalign}}% +}{\sc@falsestr}{\sc@falsestr}{\sc@falsestr}{\sc@falsestr}% +}% +\put(#3,0){% +\sc@choicebox{\value{sc@tempc}}{\value{sc@tempd}}{% +\rotatebox{180}{\parbox[c]{\value{sc@tempc} \sc@unittype}{% +\centering #1\ \\ \vspace{\sc@jewelalign}}}% +}{\sc@truestr}{\sc@falsestr}{\sc@truestr}{\sc@truestr}% +}% +\end{picture}% +} + +\newsavebox{\sc@sleevebox} +\savebox{\sc@sleevebox}{% +\setcounter{sc@tempa}{\value{sc@cdjccoverheightdraw} + 2}% +\put(\value{sc@dssleeve},0){\line(-1,1){\value{sc@dssleeve}}}% +\put(0,\value{sc@dssleeve}){\line(0,1){92}}% +\put(\value{sc@dssleeve},\value{sc@tempa}){% +\line(-1,-1){\value{sc@dssleeve}}}% +} + +\newsavebox{\sc@sleeveboxLXmm} +\savebox{\sc@sleeveboxLXmm}{% +\setcounter{sc@tempa}{\value{sc@cdLXjccoverheightdraw} + 2}% +\put(\value{sc@dssleeveLXmm},0)% +{\line(-1,1){\value{sc@dssleeveLXmm}}}% +\put(0,\value{sc@dssleeveLXmm}){\line(0,1){46}}% +\put(\value{sc@dssleeveLXmm},\value{sc@tempa}){% +\line(-1,-1){\value{sc@dssleeveLXmm}}}% +} + +\newsavebox{\sc@sleeveboxLXXXmm} +\savebox{\sc@sleeveboxLXXXmm}{% +\setcounter{sc@tempa}{\value{sc@cdLXXXjccoverheightdraw} + 2}% +\put(\value{sc@dssleeveLXXXmm},0)% +{\line(-1,1){\value{sc@dssleeveLXXXmm}}}% +\put(0,\value{sc@dssleeveLXXXmm}){\line(0,1){62}}% +\put(\value{sc@dssleeveLXXXmm},\value{sc@tempa}){% +\line(-1,-1){\value{sc@dssleeveLXXXmm}}}% +} + +\DeclareRobustCommand{\sleeve}[2][]{% +\sc@sleeve[#1]{#2}{\value{sc@dssleeve}}% +{\value{sc@cdjccoverheightdraw}}% +{\value{sc@cdjccoverwidthdraw}}% +{\usebox{\sc@sleevebox}}% +} + +\DeclareRobustCommand{\sleeveLXXX}[2][]{% +\sc@sleeve[#1]{#2}{\value{sc@dssleeveLXXXmm}}% +{\value{sc@cdLXXXjccoverheightdraw}}% +{\value{sc@cdLXXXjccoverwidthdraw}}% +{\usebox{\sc@sleeveboxLXXXmm}}% +} + +\DeclareRobustCommand{\sleeveLX}[2][]{% +\sc@sleeve[#1]{#2}{\value{sc@dssleeveLXmm}}% +{\value{sc@cdLXjccoverheightdraw}}% +{\value{sc@cdLXjccoverwidthdraw}}% +{\usebox{\sc@sleeveboxLXmm}}% +} + +\DeclareRobustCommand{\sleevela}[2][]{% +\begin{picture}(165,248)% +\put(13,0){\usebox{\sc@sleevebox}}% +\put(165,122){\rotatebox{180}{\usebox{\sc@sleevebox}}}% +\put(28,0){% +\sc@choicebox{122}{122}{% +\rotatebox{180}{% +\parbox[c]{122\sc@unittype}{\centering #1\ \\ \vspace{\sc@jewelalign}}% +}}{\sc@truestr}{\sc@falsestr}{\sc@falsestr}{\sc@falsestr}% +}% +\put(28,122){% +\sc@choicebox{122}{122}{% +\parbox[c]{122\sc@unittype}{\centering #2\ \\ \vspace{\sc@jewelalign}}% +}{\sc@falsestr}{\sc@truestr}{\sc@falsestr}{\sc@truestr}% +}% +\put(0,122){% +\sc@choicebox{28}{122}{}% +{\sc@truestr}{\sc@truestr}{\sc@truestr}{\sc@falsestr}}% +\put(14,142.5){\circle{6}}% +\put(14,222.5){\circle{6}}% +\end{picture}% +} + +\DeclareRobustCommand{\keepcase}[6][]{% +\setcounter{sc@tempa}{2*#5 + #6 }% +\begin{picture}(#4, \value{sc@tempa})% +\rotatebox{90}{% +\sc@choicebox{#5}{#4}{% +\parbox[c]{#5 \sc@unittype}{% +\centering #1\ \\ \vspace{\sc@keepcasealign}}% +}{\sc@truestr}{\sc@truestr}{\sc@truestr}{\sc@falsestr}% +\sc@choicebox{#6}{#4}{% +\rotatebox{\sc@spinerottwo}{\parbox[c]{#4 \sc@unittype}{% +\centering #3}}% +}{\sc@truestr}{\sc@truestr}{\sc@falsestr}{\sc@falsestr}% +\sc@choicebox{#5}{#4}{% +\parbox[c]{#5 \sc@unittype}{% +\centering #2\ \\ \vspace{\sc@keepcasealign}}% +}{\sc@truestr}{\sc@truestr}{\sc@falsestr}{\sc@truestr}% +}% +\end{picture}% +} + +\DeclareRobustCommand{\slimdvd}[3][]{% + \keepcase[#1]{#2}{#3}{\value{sc@dvdkccoverheightdraw}}% +{\value{sc@dvdkccoverwidthdraw}}% + {\value{sc@sdvdkcspinewidthdraw}}% +} + +\DeclareRobustCommand{\dvd}[3][]{% + \keepcase[#1]{#2}{#3}{\value{sc@dvdkccoverheightdraw}}% +{\value{sc@dvdkccoverwidthdraw}}% + {\value{sc@dvdkcspinewidthdraw}}% +} + +\DeclareRobustCommand{\bluray}[3][]{% + \keepcase[#1]{#2}{#3}{\value{sc@brcoverheightdraw}}% +{\value{sc@dvdkccoverwidthdraw}}% + {\value{sc@dvdkcspinewidthdraw}}% +} + +\DeclareRobustCommand{\coverimg}[1]{% + \resizebox{\value{sc@cdjccoverwidthdraw} \sc@unittype}{% +\value{sc@cdjccoverheightdraw} \sc@unittype}{#1}% +} + +\DeclareRobustCommand{\backsheetimg}[1]{% + \resizebox{% +\value{sc@cdjcbackwidthdraw}+\value{sc@cdjcspinewidthdraw}*2% +\sc@unittype}% +{\value{sc@cdjcbackheightdraw} \sc@unittype}{#1}% +} + +\DeclareRobustCommand{\slimdvdimg}[1]{% +\resizebox{\value{sc@dvdkcheightdraw} \sc@unittype}% +{\value{sc@sdvdkccoverwidthdraw}*2+\value{sc@sdvdkcspinewidthdraw}% +\sc@unittype}{#1}% +} + +\DeclareRobustCommand{\dvdimg}[1]{% +\resizebox{\value{sc@dvdkcheightdraw} \sc@unittype}% +{\value{sc@dvdkccoverwidthdraw}*2+\value{sc@dvdkcspinewidthdraw}% +\sc@unittype}{#1}% +} + +\DeclareRobustCommand{\blurayimg}[1]{% +\resizebox{\value{sc@brcoverheightdraw} \sc@unittype}% +{\value{sc@dvdkccoverwidthdraw}*2+\value{sc@dvdkcspinewidthdraw}% +\sc@unittype}{#1}% +} + +\DeclareRobustCommand{\sc@cell}[4]{% +\begin{picture}(#2,#3)% +\framebox(#2,#3)[c]{% +\parbox[c]{#2 \sc@unittype}{\centering #1\ \\ #4}% +}% +\end{picture}% +} + +\newcommand{\sc@choicebox}[7]{% +\makebox(#1,#2)[c]{% +\parbox[c]{#1 \sc@unittype}{\centering #3}% +}% +\ifthenelse{\boolean{sc@fold} \OR \equal{#4}{\sc@truestr}}% +{\put(-#1,0){\line(1,0){#1}}}{}% +\ifthenelse{\boolean{sc@fold} \OR \equal{#5}{\sc@truestr}}% +{\put(-#1,#2){\line(1,0){#1}}}{}% +\ifthenelse{\boolean{sc@fold} \OR \equal{#6}{\sc@truestr}}% +{\put(-#1,0){\line(0,1){#2}}}{}% +\ifthenelse{\boolean{sc@fold} \OR \equal{#7}{\sc@truestr}}% +{\put(0,0){\line(0,1){#2}}}{}% +} + +\DeclareRobustCommand{\inlay}[3]{% +\sc@cell{#1}{#2}{#3}{\vspace{\sc@inalign}}% +} + +\DeclareRobustCommand{\dvdinlay}[1]{% +\inlay{#1}{\value{sc@dvdkcinletwidthdraw}}% +{\value{sc@dvdkcinletheightdraw}}% +} + +\DeclareRobustCommand{\blurayinlay}[1]{% +\inlay{#1}{\value{sc@brinletwidthdraw}}% +{\value{sc@brinletheightdraw}}% +} + +\DeclareRobustCommand{\djewel}[2]{% +\setcounter{sc@tempa}{2 * \value{sc@cdjccoverwidthdraw}}% +\begin{picture}(\value{sc@cdjccoverheightdraw}, \value{sc@tempa})% +\rotatebox{90}{% +\sc@choicebox{\value{sc@cdjccoverwidthdraw}}% +{\value{sc@cdjccoverheightdraw}}{% +\parbox[c]{\value{sc@cdjccoverwidthdraw} \sc@unittype}{% +\centering #2\ \\ \vspace{\sc@jewelalign}}% +}{\sc@truestr}{\sc@truestr}{\sc@truestr}{\sc@falsestr}% +\sc@choicebox{\value{sc@cdjccoverwidthdraw}}% +{\value{sc@cdjccoverheightdraw}}{% +\parbox[c]{\value{sc@cdjccoverwidthdraw} \sc@unittype}{% +\centering #1\ \\ \vspace{\sc@jewelalign}}% +}{\sc@truestr}{\sc@truestr}{\sc@falsestr}{\sc@truestr}% +}% +\end{picture}% +} + +\DeclareRobustCommand{\cdrdisk}[1]{% +\begin{picture}(116, 116)% +\qbezier(116.0, 58.0)(116.0, 82.0244)(99.0122, 99.0122)% +\qbezier(99.0122, 99.0122)(82.0244, 116.0)(58.0, 116.0)% +\qbezier(58.0, 116.0)(33.9756, 116.0)(16.9878, 99.0122)% +\qbezier(16.9878, 99.0122)(0.0, 82.0244)(0.0, 58.0)% +\qbezier(0.0, 58.0)(0.0, 33.9756)(16.9878, 16.9878)% +\qbezier(16.9878, 16.9878)(33.9756, 0.0)(58.0, 0.0)% +\qbezier(58.0, 0.0)(82.0244, 0.0)(99.0122, 16.9878)% +\qbezier(99.0122, 16.9878)(116.0, 33.9756)(116.0, 58.0)% +\qbezier(77.0, 58.0)(77.0, 65.8701)(71.435, 71.435)% +\qbezier(71.435, 71.435)(65.8701, 77.0)(58.0, 77.0)% +\qbezier(58.0, 77.0)(50.1299, 77.0)(44.565, 71.435)% +\qbezier(44.565, 71.435)(39.0, 65.8701)(39.0, 58.0)% +\qbezier(39.0, 58.0)(39.0, 50.1299)(44.565, 44.565)% +\qbezier(44.565, 44.565)(50.1299, 39.0)(58.0, 39.0)% +\qbezier(58.0, 39.0)(65.8701, 39.0)(71.435, 44.565)% +\qbezier(71.435, 44.565)(77.0, 50.1299)(77.0, 58.0)% +\put(0,0){% +\makebox(116,116)[c]{% +\parbox[c]{116\sc@unittype}{\centering #1}% +}}% +\end{picture}% +} + +\DeclareRobustCommand{\cddvddisk}[1]{% +\begin{picture}(117, 117)% +\qbezier(117.0, 58.5)(117.0, 82.7315)(99.8657, 99.8657) +\qbezier(99.8657, 99.8657)(82.7315, 117.0)(58.5, 117.0) +\qbezier(58.5, 117.0)(34.2685, 117.0)(17.1343, 99.8657) +\qbezier(17.1343, 99.8657)(0.0, 82.7315)(0.0, 58.5) +\qbezier(0.0, 58.5)(0.0, 34.2685)(17.1343, 17.1343) +\qbezier(17.1343, 17.1343)(34.2685, 0.0)(58.5, 0.0) +\qbezier(58.5, 0.0)(82.7315, 0.0)(99.8657, 17.1343) +\qbezier(99.8657, 17.1343)(117.0, 34.2685)(117.0, 58.5) +\qbezier(69.75, 58.5)(69.75, 63.1599)(66.455, 66.455) +\qbezier(66.455, 66.455)(63.1599, 69.75)(58.5, 69.75) +\qbezier(58.5, 69.75)(53.8401, 69.75)(50.545, 66.455) +\qbezier(50.545, 66.455)(47.25, 63.1599)(47.25, 58.5) +\qbezier(47.25, 58.5)(47.25, 53.8401)(50.545, 50.545) +\qbezier(50.545, 50.545)(53.8401, 47.25)(58.5, 47.25) +\qbezier(58.5, 47.25)(63.1599, 47.25)(66.455, 50.545) +\qbezier(66.455, 50.545)(69.75, 53.8401)(69.75, 58.5) +\put(0,0){% +\makebox(117,117)[c]{% +\parbox[c]{117\sc@unittype}{\centering #1}% +}}% +\end{picture}% +} + +\DeclareRobustCommand{\LXXXdisk}[1]{% +\begin{picture}(76, 76)% +\qbezier(76.0, 38.0)(76.0, 53.7401)(64.8701, 64.8701) +\qbezier(64.8701, 64.8701)(53.7401, 76.0)(38.0, 76.0) +\qbezier(38.0, 76.0)(22.2599, 76.0)(11.1299, 64.8701) +\qbezier(11.1299, 64.8701)(0.0, 53.7401)(0.0, 38.0) +\qbezier(0.0, 38.0)(0.0, 22.2599)(11.1299, 11.1299) +\qbezier(11.1299, 11.1299)(22.2599, 0.0)(38.0, 0.0) +\qbezier(38.0, 0.0)(53.7401, 0.0)(64.8701, 11.1299) +\qbezier(64.8701, 11.1299)(76.0, 22.2599)(76.0, 38.0) +\qbezier(47.0, 38.0)(47.0, 41.7279)(44.364, 44.364) +\qbezier(44.364, 44.364)(41.7279, 47.0)(38.0, 47.0) +\qbezier(38.0, 47.0)(34.2721, 47.0)(31.636, 44.364) +\qbezier(31.636, 44.364)(29.0, 41.7279)(29.0, 38.0) +\qbezier(29.0, 38.0)(29.0, 34.2721)(31.636, 31.636) +\qbezier(31.636, 31.636)(34.2721, 29.0)(38.0, 29.0) +\qbezier(38.0, 29.0)(41.7279, 29.0)(44.364, 31.636) +\qbezier(44.364, 31.636)(47.0, 34.2721)(47.0, 38.0) +\put(0,0){% +\makebox(76,76)[c]{% +\parbox[c]{76\sc@unittype}{\centering #1}% +}}% +\end{picture}% +} + +\DeclareRobustCommand{\sc@jewelemptyl}[3]{% +\ifthenelse{\boolean{sc@align}}{\vspace{\sc@jewelalign}}{}% +\setcounter{sc@tempa}{#2 - 10}% +\setcounter{sc@tempb}{#3 - 10}% +\begin{picture}(\value{sc@tempa}, \value{sc@tempb})% +#1% +\end{picture}% +} + +\DeclareRobustCommand{\jewellempty}[1]{% +\setcounter{sc@tempa}{\value{sc@cdjccoverwidthdraw} - 10}% +\setcounter{sc@tempb}{\value{sc@cdjccoverheightdraw} - 10}% +\sc@jewelemptyl{\framebox(\value{sc@tempa},\value{sc@tempb})[c]{% +\parbox[c]{\value{sc@tempa} \sc@unittype}{\centering #1}}}% +{\value{sc@cdjccoverwidthdraw}}% +{\value{sc@cdjccoverheightdraw}}% +} + +\DeclareRobustCommand{\jeweldriverlempty}[7]{% +\sc@jewelemptyl{% +\put(0,80){% +\framebox(110,30){\parbox[c]{110mm}{\centering\scalebox{4.5}{#1}}}}% +\put(0,60){\framebox(110,20){\parbox[c]{110mm}{\centering\huge #2}}}% +\put(0,50){\framebox(55,10){\parbox[c]{55mm}{\centering #3}}}% +\put(0,40){\framebox(55,10){\parbox[c]{55mm}{\centering #4}}}% +\put(0,30){\framebox(55,10){\parbox[c]{55mm}{\centering #5}}}% +\put(55,30){\framebox(55,30)[t]{% +\parbox[c]{4cm}{% +\vspace{0.5cm}% +\setlength{\baselineskip}{1.5\baselineskip} #6% +}% +}}% +\put(0,0){\framebox(110,30)[t]{% +\parbox[c]{10.5cm}{\vspace{0.5cm} #7}% +}}}% +{\value{sc@cdjccoverwidthdraw}}% +{\value{sc@cdjccoverheightdraw}}% +} + +\DeclareRobustCommand{\jeweldriverl}[7]{% +\jeweldriverlempty{#1}{#2}{Acquisition date: #3}{Serial: #4}% +{Disk version/ID: #5}{#6}{#7}% +} + +\DeclareRobustCommand{\jewelmusiclempty}[4]{% +\sc@jewelemptyl{\framebox(\value{sc@tempa},\value{sc@tempb})[c]{% +\put(0,60){% +\makebox(110,40)[c]{\parbox[c]{110mm}{\centering\scalebox{4}{#1}}}}% +\put(0,60){\makebox(110,10)[c]{\parbox[c]{110mm}{\centering\Large #2}}}% +\put(0,15){\makebox(110,20)[c]{\parbox[c]{110mm}{\centering\Large #4}}}% +\put(0,10){\makebox(110,10)[c]{\parbox[c]{110mm}{\centering\Large #3}}}% +}}% +{\value{sc@cdjccoverwidthdraw}}% +{\value{sc@cdjccoverheightdraw}}% +} + +\DeclareRobustCommand{\sc@jewelbackemptyl}[1]{% +\ifthenelse{\boolean{sc@align}}{\vspace{\sc@jewelalign}}{}% +\setcounter{sc@tempa}{\value{sc@cdjcbackinwidthdraw} - 10}% +\setcounter{sc@tempb}{\value{sc@cdjcbackheightdraw} - 10}% +\begin{picture}(\value{sc@tempa}, \value{sc@tempb})% +#1% +\end{picture}% +} + +\DeclareRobustCommand{\jewelbacklempty}[1]{% +\setcounter{sc@tempa}{\value{sc@cdjcbackinwidthdraw} - 10}% +\setcounter{sc@tempb}{\value{sc@cdjcbackheightdraw} - 10}% +\sc@jewelbackemptyl{\framebox(\value{sc@tempa},\value{sc@tempb})[c]{% +\parbox[c]{\value{sc@tempa} \sc@unittype}{\centering #1}}}% +} + +\DeclareRobustCommand{\LXlempty}[1]{% +\ifthenelse{\boolean{sc@align}}{\vspace{\sc@jewelalign}}{}% +\setcounter{sc@tempa}{\value{sc@cdLXjccoverwidthdraw} - 10}% +\setcounter{sc@tempb}{\value{sc@cdLXjccoverheightdraw} - 10}% +\resizebox{50\sc@unittype}{!}{% +\sc@jewelemptyl{\framebox(\value{sc@tempa},\value{sc@tempb})[c]{% +\parbox[c]{\value{sc@tempa} \sc@unittype}{\centering #1}}}% +{\value{sc@cdLXjccoverwidthdraw}}% +{\value{sc@cdLXjccoverheightdraw}}}% +} + +\DeclareRobustCommand{\LXXXlempty}[1]{% +\ifthenelse{\boolean{sc@align}}{\vspace{\sc@jewelalign}}{}% +\setcounter{sc@tempa}{\value{sc@cdLXXXjccoverwidthdraw} - 10}% +\setcounter{sc@tempb}{\value{sc@cdLXXXjccoverheightdraw} - 10}% +\resizebox{\value{sc@tempa}\sc@unittype}{!}{% +\sc@jewelemptyl{\framebox(\value{sc@tempa},\value{sc@tempb})[c]{% +\parbox[c]{\value{sc@tempa} \sc@unittype}{\centering #1}}}% +{\value{sc@cdLXXXjccoverwidthdraw}}% +{\value{sc@cdLXXXjccoverheightdraw}}}% +} + +\DeclareRobustCommand{\LXdriverlempty}[7]{% +\ifthenelse{\boolean{sc@align}}{\vspace{\sc@jewelalign}}{}% +\setcounter{sc@tempc}{\value{sc@cdLXjccoverheightdraw} - 10}% +\resizebox{\value{sc@tempc}\sc@unittype}{!}{% +\jeweldriverlempty{#1}{#2}{#3}{#4}{#5}{#6}{#7}}% +} + +\DeclareRobustCommand{\LXXXdriverlempty}[7]{% +\ifthenelse{\boolean{sc@align}}{\vspace{\sc@jewelalign}}{}% +\setcounter{sc@tempc}{\value{sc@cdLXXXjccoverheightdraw} - 10}% +\resizebox{\value{sc@tempc}\sc@unittype}{!}{% +\jeweldriverlempty{#1}{#2}{#3}{#4}{#5}{#6}{#7}}% +} + +\DeclareRobustCommand{\LXdriverl}[7]{% +\LXdriverlempty{#1}{#2}{Acquisition date: #3}{Serial: #4}% +{Disk version/ID: #5}{#6}{#7}% +} + +\DeclareRobustCommand{\LXXXdriverl}[7]{% +\LXXXdriverlempty{#1}{#2}{Acquisition date: #3}{Serial: #4}% +{Disk version/ID: #5}{#6}{#7}% +} + +\DeclareRobustCommand{\dvdmovielempty}[8]{% +\ifthenelse{\boolean{sc@align}}{\vspace{\sc@keepcasealign}}{}% +\setcounter{sc@tempa}{\value{sc@dvdkccoverwidthdraw} - 10}% +\setcounter{sc@tempb}{\value{sc@dvdkccoverheightdraw} - 10}% +\begin{picture}(\value{sc@tempa}, \value{sc@tempb})% +\put(0,140){% +\framebox(118,33)[c]{\parbox[c]{110mm}{\centering\scalebox{3}{#1}}}}% +\put(0,120){\framebox(118,20)[c]{\parbox[c]{110mm}{\centering\huge #2}}}% +\put(0,110){\framebox(59,10)[c]{\parbox[c]{50mm}{\centering #3}}}% +\put(0,100){\framebox(59,10)[c]{\parbox[c]{50mm}{#4}}}% +\put(0,70){\framebox(59,30)[c]{\parbox[c]{50mm}{#5}}}% +\put(0,40){\framebox(59,30)[c]{\parbox[c]{50mm}{#6}}}% +\put(59,40){\framebox(59,80)[c]{\parbox[c]{50mm}{#7}}}% +\put(0,0){\framebox(118,40)[t]{\parbox[c]{108mm}{\vspace{0.5cm} #8}}}% +\end{picture}% +} + +\DeclareRobustCommand{\dvdmoviel}[8]{% +\dvdmovielempty{#1}{#2}{Released: #3}{Directed by: #4}% +{\underline{Spoken languages:} \\ #5}% +{\underline{Subtitles:} \\ #6}{\underline{Starring:} \\ #7}{#8}% +} + +\DeclareRobustCommand{\dvdlempty}[1]{% +\ifthenelse{\boolean{sc@align}}{\vspace{\sc@keepcasealign}}{}% +\setcounter{sc@tempa}{\value{sc@dvdkccoverwidthdraw} - 10}% +\setcounter{sc@tempb}{\value{sc@dvdkccoverheightdraw} - 10}% +\begin{picture}(\value{sc@tempa}, \value{sc@tempb})% +\put(0,0){% +\framebox(\value{sc@tempa}, \value{sc@tempb})[c]{% +\parbox[c]{\value{sc@tempa}\sc@unittype}{\centering #1}}}% +\end{picture}% +} + +\DeclareRobustCommand{\bluraymovielempty}[8]{% +\ifthenelse{\boolean{sc@align}}{\vspace{\sc@keepcasealign}}{}% +\setcounter{sc@tempa}{\value{sc@dvdkccoverwidthdraw} - 10}% +\setcounter{sc@tempb}{\value{sc@brcoverheightdraw} - 10}% +\begin{picture}(\value{sc@tempa}, \value{sc@tempb})% +\put(0,120){% +\framebox(118,20)[c]{\parbox[c]{110mm}{\centering\scalebox{3}{#1}}}}% +\put(0,105){\framebox(118,15)[c]{\parbox[c]{110mm}{\centering\huge #2}}}% +\put(0,95){\framebox(59,10)[c]{\parbox[c]{50mm}{\centering #3}}}% +\put(0,85){\framebox(59,10)[c]{\parbox[c]{50mm}{#4}}}% +\put(0,55){\framebox(59,30)[c]{\parbox[c]{50mm}{#5}}}% +\put(0,25){\framebox(59,30)[c]{\parbox[c]{50mm}{#6}}}% +\put(59,25){\framebox(59,80)[c]{\parbox[c]{50mm}{#7}}}% +\put(0,0){\framebox(118,25)[t]{\parbox[c]{108mm}{\vspace{0.5cm} #8}}}% +\end{picture}% +} + +\DeclareRobustCommand{\bluraymoviel}[8]{% +\bluraymovielempty{#1}{#2}{Released: #3}{Directed by: #4}% +{\underline{Spoken languages:} \\ #5}% +{\underline{Subtitles:} \\ #6}{\underline{Starring:} \\ #7}{#8}% +} + +\DeclareRobustCommand{\bluraylempty}[1]{% +\ifthenelse{\boolean{sc@align}}{\vspace{\sc@keepcasealign}}{}% +\setcounter{sc@tempa}{\value{sc@dvdkccoverwidthdraw} - 10}% +\setcounter{sc@tempb}{\value{sc@brcoverheightdraw} - 10}% +\begin{picture}(\value{sc@tempa}, \value{sc@tempb})% +\put(0,0){% +\framebox(\value{sc@tempa}, \value{sc@tempb})[c]{% +\parbox[c]{\value{sc@tempa}\sc@unittype}{\centering #1}}}% +\end{picture}% } \endinput %% |