summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/simplecd
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2013-03-02 01:11:41 +0000
committerKarl Berry <karl@freefriends.org>2013-03-02 01:11:41 +0000
commit6b9ce3b95f36f4da56f4ed73515ce224f956e7f5 (patch)
treee5ef1aa9c452f658246c6d073dcec16189899fdb /Master/texmf-dist/tex/latex/simplecd
parent8439a06ac6f077b70de81c866b2d821a39e70720 (diff)
simplecd (28feb13)
git-svn-id: svn://tug.org/texlive/trunk@29260 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/simplecd')
-rw-r--r--Master/texmf-dist/tex/latex/simplecd/simplecd.sty37
1 files changed, 35 insertions, 2 deletions
diff --git a/Master/texmf-dist/tex/latex/simplecd/simplecd.sty b/Master/texmf-dist/tex/latex/simplecd/simplecd.sty
index eec388e9532..8fba229d8b5 100644
--- a/Master/texmf-dist/tex/latex/simplecd/simplecd.sty
+++ b/Master/texmf-dist/tex/latex/simplecd/simplecd.sty
@@ -23,7 +23,7 @@
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{simplecd}
- [2013/01/26 v1.3 simple CD, DVD covers and many more]
+ [2013/02/28 v1.4 Simple CD, DVD covers and many more]
\RequirePackage{fix-cm}
\RequirePackage{calc}
\RequirePackage{ifthen}
@@ -79,7 +79,9 @@
\newcommand{\sc@unittype}{mm}
-\setlength{\unitlength}{1\sc@unittype}
+\newcommand{\sc@picinit}{%
+\setlength{\unitlength}{1\sc@unittype}%
+}
%% Text aligning lengths
\newlength{\sc@jewelalign}
@@ -199,6 +201,7 @@
\setcounter{sc@backsheetspinerot}{180+\sc@spinerotone}
\DeclareRobustCommand{\backsheet}[2][\ ]{%
+\sc@picinit%
\begin{picture}%
(\value{sc@cdjcbackwidthdraw}, \value{sc@cdjcbackheightdraw})%
\sc@choicebox{\value{sc@cdjcspinewidthdraw}}%
@@ -220,6 +223,7 @@
}
\DeclareRobustCommand{\jewelspine}[1]{%
+\sc@picinit%
\begin{picture}%
(\value{sc@cdjccoverheightdraw}, \value{sc@cdjcspinewidthdraw})%
\framebox%
@@ -229,6 +233,7 @@
}
\DeclareRobustCommand{\singlesheet}[4]{%
+\sc@picinit%
\begin{picture}(155,120)%
\put(0,2){%
\sc@choicebox{15}{116}%
@@ -261,6 +266,7 @@
\setcounter{sc@tempe}{\value{sc@tempc} + #3 *2}%
\setcounter{sc@tempf}{2 * \value{sc@tempd} + #3}%
\setcounter{sc@tempg}{2 * \value{sc@tempd}}%
+\sc@picinit%
\begin{picture}(\value{sc@tempe}, \value{sc@tempf})%
\put(0,\value{sc@tempd}){#6}%
\put(#3,\value{sc@tempf}){\rotatebox{270}{#6}}%
@@ -282,6 +288,7 @@
\newsavebox{\sc@sleevebox}
\savebox{\sc@sleevebox}{%
+\sc@picinit%
\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}}%
@@ -291,6 +298,7 @@
\newsavebox{\sc@sleeveboxLXmm}
\savebox{\sc@sleeveboxLXmm}{%
+\sc@picinit%
\setcounter{sc@tempa}{\value{sc@cdLXjccoverheightdraw} + 2}%
\put(\value{sc@dssleeveLXmm},0)%
{\line(-1,1){\value{sc@dssleeveLXmm}}}%
@@ -301,6 +309,7 @@
\newsavebox{\sc@sleeveboxLXXXmm}
\savebox{\sc@sleeveboxLXXXmm}{%
+\sc@picinit%
\setcounter{sc@tempa}{\value{sc@cdLXXXjccoverheightdraw} + 2}%
\put(\value{sc@dssleeveLXXXmm},0)%
{\line(-1,1){\value{sc@dssleeveLXXXmm}}}%
@@ -331,6 +340,7 @@
}
\DeclareRobustCommand{\sleevela}[2][]{%
+\sc@picinit%
\begin{picture}(165,248)%
\put(13,0){\usebox{\sc@sleevebox}}%
\put(165,122){\rotatebox{180}{\usebox{\sc@sleevebox}}}%
@@ -355,6 +365,7 @@
\DeclareRobustCommand{\keepcase}[6][]{%
\setcounter{sc@tempa}{2*#5 + #6 }%
+\sc@picinit%
\begin{picture}(#4, \value{sc@tempa})%
\rotatebox{90}{%
\sc@choicebox{#5}{#4}{%
@@ -422,6 +433,7 @@
}
\DeclareRobustCommand{\sc@cell}[4]{%
+\sc@picinit%
\begin{picture}(#2,#3)%
\framebox(#2,#3)[c]{%
\parbox[c]{#2 \sc@unittype}{\sc@centering #1\sc@doalign{#4}}%
@@ -459,6 +471,7 @@
\DeclareRobustCommand{\djewel}[2]{%
\setcounter{sc@tempa}{2 * \value{sc@cdjccoverwidthdraw}}%
+\sc@picinit%
\begin{picture}(\value{sc@cdjccoverheightdraw}, \value{sc@tempa})%
\rotatebox{90}{%
\sc@choicebox{\value{sc@cdjccoverwidthdraw}}%
@@ -476,6 +489,7 @@
}
\DeclareRobustCommand{\floppyIIIV}[2]{%
+\sc@picinit%
\begin{picture}(70,69.5)%
\put(-2,66.5){\qbezier(3, 3)(2, 3)(2, 2)}%
\put(1,69.5){\line(1,0){68}}%
@@ -494,6 +508,7 @@
}
\DeclareRobustCommand{\zipdisk}[2]{%
+\sc@picinit%
\begin{picture}(98,120)%
\put(0,20){\makebox(98,100)[c]{\parbox[c]{98\sc@unittype}{\sc@centering #1}}}%
\put(0,13){\sc@choicebox{98}{7}{}%
@@ -510,6 +525,7 @@
}
\DeclareRobustCommand{\disk}[1]{%
+\sc@picinit%
\begin{picture}(120,120)%
\qbezier(120.0, 60.0)(120.0, 84.8528)(102.4264, 102.4264)%
\qbezier(102.4264, 102.4264)(84.8528, 120.0)(60.0, 120.0)%
@@ -559,6 +575,7 @@
}
\DeclareRobustCommand{\emptydisk}[1]{%
+\sc@picinit%
\begin{picture}(120,120)%
\qbezier(120.0, 60.0)(120.0, 84.8528)(102.4264, 102.4264)%
\qbezier(102.4264, 102.4264)(84.8528, 120.0)(60.0, 120.0)%
@@ -584,6 +601,7 @@
}
\DeclareRobustCommand{\cdrdisk}[1]{%
+\sc@picinit%
\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)%
@@ -609,6 +627,7 @@
}
\DeclareRobustCommand{\cddvddisk}[1]{%
+\sc@picinit%
\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)%
@@ -634,6 +653,7 @@
}
\DeclareRobustCommand{\LXXXdisk}[1]{%
+\sc@picinit%
\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)%
@@ -675,6 +695,7 @@
}
\DeclareRobustCommand{\cassettecover}[1]{%
+\sc@picinit%
\begin{picture}(88,39)%
\qbezier(22.0, 24.0)(18.8934, 24.0)(16.6967, 21.8033)%
\qbezier(16.6967, 21.8033)(14.5, 19.6066)(14.5, 16.5)%
@@ -691,6 +712,7 @@
}
\DeclareRobustCommand{\cassetteinlay}[3]{%
+\sc@picinit%
\begin{picture}(102,104)%
\put(0,38){%
\sc@choicebox{102}{66}{\parbox[c]{102\sc@unittype}{\sc@centering #1}}%
@@ -705,6 +727,7 @@
}
\DeclareRobustCommand{\vinylcdcover}[1]{%
+\sc@picinit%
\begin{picture}(65,65)%
\qbezier(65.0, 32.5)(65.0, 45.9619)(55.481, 55.481)%
\qbezier(55.481, 55.481)(45.9619, 65.0)(32.5, 65.0)%
@@ -728,6 +751,7 @@
}
\DeclareRobustCommand{\recordcover}[1]{%
+\sc@picinit%
\begin{picture}(99,99)%
\qbezier(99.0, 49.5)(99.0, 70.0036)(84.5018, 84.5018)%
\qbezier(84.5018, 84.5018)(70.0036, 99.0)(49.5, 99.0)%
@@ -754,6 +778,7 @@
\setboolean{sc@layout}{true}%
\setcounter{sc@layouttempa}{#2 - 10}%
\setcounter{sc@layouttempb}{#3 - 10}%
+\sc@picinit%
\begin{picture}(\value{sc@layouttempa}, \value{sc@layouttempb})%
\framebox(\value{sc@layouttempa}, \value{sc@layouttempb})[c]{#1}%
\end{picture}%
@@ -811,6 +836,7 @@
\setboolean{sc@layout}{true}%
\setcounter{sc@layouttempa}{\value{sc@cdjcbackinwidthdraw} - 10}%
\setcounter{sc@layouttempb}{\value{sc@cdjcbackheightdraw} - 10}%
+\sc@picinit%
\begin{picture}(\value{sc@layouttempa}, \value{sc@layouttempb})%
\csname#2\endcsname(\value{sc@layouttempa}, \value{sc@layouttempb})[c]{#1}%
\end{picture}%
@@ -876,6 +902,7 @@
\DeclareRobustCommand{\jewelstripeslempty}[3]{%
\setboolean{sc@layout}{true}%
+\sc@picinit%
\begin{picture}%
(\value{sc@cdjccoverwidthdraw},\value{sc@cdjccoverheightdraw})%
\put(0,75){\line(1,0){120}}%
@@ -929,6 +956,7 @@
\DeclareRobustCommand{\jewellineslempty}[1]{%
\setboolean{sc@layout}{true}%
+\sc@picinit%
\begin{picture}%
(\value{sc@cdjccoverwidthdraw},\value{sc@cdjccoverheightdraw})%
\put(5,110){\line(1,0){110}}%
@@ -950,6 +978,7 @@
\DeclareRobustCommand{\jeweltitledlempty}[2]{%
\setboolean{sc@layout}{true}%
+\sc@picinit%
\begin{picture}(\value{sc@cdjccoverwidthdraw}, \value{sc@cdjccoverheightdraw})
\put(5,100){%
\makebox(110,20){\parbox[c]{110mm}{\sc@centering\huge #1}}}%
@@ -961,6 +990,7 @@
\setboolean{sc@layout}{true}%
\setcounter{sc@layouttempa}{\value{sc@dvdkccoverwidthdraw} - 10}%
\setcounter{sc@layouttempb}{\value{sc@dvdkccoverheightdraw} - 10}%
+\sc@picinit%
\begin{picture}(\value{sc@layouttempa}, \value{sc@layouttempb})%
\put(0,140){%
\framebox(118,33)[c]{\parbox[c]{110mm}{\sc@centering\scalebox{3}{#1}}}}%
@@ -985,6 +1015,7 @@
\setboolean{sc@layout}{true}%
\setcounter{sc@layouttempa}{\value{sc@dvdkccoverwidthdraw} - 10}%
\setcounter{sc@layouttempb}{\value{sc@dvdkccoverheightdraw} - 10}%
+\sc@picinit%
\begin{picture}(\value{sc@layouttempa}, \value{sc@layouttempb})%
\put(0,0){%
\framebox(\value{sc@layouttempa}, \value{sc@layouttempb})[c]{%
@@ -996,6 +1027,7 @@
\setboolean{sc@layout}{true}%
\setcounter{sc@layouttempa}{\value{sc@dvdkccoverwidthdraw} - 10}%
\setcounter{sc@layouttempb}{\value{sc@brcoverheightdraw} - 10}%
+\sc@picinit%
\begin{picture}(\value{sc@layouttempa}, \value{sc@layouttempb})%
\put(0,120){%
\framebox(118,20)[c]{\parbox[c]{110mm}{\sc@centering\scalebox{3}{#1}}}}%
@@ -1020,6 +1052,7 @@
\setboolean{sc@layout}{true}%
\setcounter{sc@layouttempa}{\value{sc@dvdkccoverwidthdraw} - 10}%
\setcounter{sc@layouttempb}{\value{sc@brcoverheightdraw} - 10}%
+\sc@picinit%
\begin{picture}(\value{sc@layouttempa}, \value{sc@layouttempb})%
\put(0,0){%
\framebox(\value{sc@layouttempa}, \value{sc@layouttempb})[c]{%