summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/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/source/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/source/latex/simplecd')
-rw-r--r--Master/texmf-dist/source/latex/simplecd/simplecd.dtx41
1 files changed, 38 insertions, 3 deletions
diff --git a/Master/texmf-dist/source/latex/simplecd/simplecd.dtx b/Master/texmf-dist/source/latex/simplecd/simplecd.dtx
index dede62eeacb..2aed2675426 100644
--- a/Master/texmf-dist/source/latex/simplecd/simplecd.dtx
+++ b/Master/texmf-dist/source/latex/simplecd/simplecd.dtx
@@ -18,7 +18,7 @@
%\iffalse
%<package>\NeedsTeXFormat{LaTeX2e}
%<package>\ProvidesPackage{simplecd}
-%<package> [2013/01/26 v1.3 simple CD, DVD covers and many more]
+%<package> [2013/02/28 v1.4 Simple CD, DVD covers and many more]
%
%<*driver>
\documentclass{ltxdoc}
@@ -47,7 +47,7 @@
%</driver>
%\fi
%
-% \CheckSum{1431}
+% \CheckSum{1464}
%
% \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
@@ -69,6 +69,7 @@
% \changes{v1.1}{2012/11/04}{Rewrote drawing mechanism, added layouts, disk images, additional covers}
% \changes{v1.2}{2012/12/21}{Added new layouts and many new covers, labels}
% \changes{v1.3}{2013/01/26}{Added nohcenter option, more layouts and singlesheet}
+% \changes{v1.4}{2013/02/28}{Made unitlength setting local}
%
% \DoNotIndex{\newline,\\,\space,\begin,\end,\rule,\cline,\hspace,\vspace,\centering,\DeclareRobustCommand,\{,\},\ }
% \DoNotIndex{\newcommand,\newlength,\setlength,\parbox,\line,\putline,\resizebox,\unitlength}
@@ -413,6 +414,7 @@
% \begin{figure}[H]
% \centering
% \resizebox{0.5\textwidth}{!}{%
+% \setlength{\unitlength}{1mm}%
% \cdrdisk{\begin{picture}(116,116)\framebox(116,116){}\end{picture}}%
% }
% \caption{The rectangle that is the boundary for the content}
@@ -1170,7 +1172,9 @@
% Setting unit length for drawing
% \begin{macrocode}
-\setlength{\unitlength}{1\sc@unittype}
+\newcommand{\sc@picinit}{%
+ \setlength{\unitlength}{1\sc@unittype}%
+}
% \end{macrocode}
%% Text aligning lengths
@@ -1357,6 +1361,7 @@
% Usage: |\backsheet| \oarg{backsheet middle text} \marg{spine text}
% \begin{macrocode}
\DeclareRobustCommand{\backsheet}[2][\ ]{%
+ \sc@picinit%
\begin{picture}%
(\value{sc@cdjcbackwidthdraw}, \value{sc@cdjcbackheightdraw})%
\sc@choicebox{\value{sc@cdjcspinewidthdraw}}%
@@ -1384,6 +1389,7 @@
% Usage: |\jewelspine| \marg{text}
% \begin{macrocode}
\DeclareRobustCommand{\jewelspine}[1]{%
+ \sc@picinit%
\begin{picture}%
(\value{sc@cdjccoverheightdraw}, \value{sc@cdjcspinewidthdraw})%
\framebox%
@@ -1399,6 +1405,7 @@
% Usage: |\singlesheet| \marg{front} \marg{front side} \marg{spine} \marg{back}
% \begin{macrocode}
\DeclareRobustCommand{\singlesheet}[4]{%
+ \sc@picinit%
\begin{picture}(155,120)%
\put(0,2){%
\sc@choicebox{15}{116}%
@@ -1438,6 +1445,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}}%
@@ -1465,6 +1473,7 @@
% \begin{macrocode}
\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}}%
@@ -1480,6 +1489,7 @@
% \begin{macrocode}
\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}}}%
@@ -1496,6 +1506,7 @@
% \begin{macrocode}
\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}}}%
@@ -1552,6 +1563,7 @@
% Usage: |\sleevela| \oarg{back text} \marg{front text}
% \begin{macrocode}
\DeclareRobustCommand{\sleevela}[2][]{%
+ \sc@picinit%
\begin{picture}(165,248)%
\put(13,0){\usebox{\sc@sleevebox}}%
\put(165,122){\rotatebox{180}{\usebox{\sc@sleevebox}}}%
@@ -1584,6 +1596,7 @@
% \begin{macrocode}
\DeclareRobustCommand{\keepcase}[6][]{%
\setcounter{sc@tempa}{2*#5 + #6 }%
+ \sc@picinit%
\begin{picture}(#4, \value{sc@tempa})%
\rotatebox{90}{%
\sc@choicebox{#5}{#4}{%
@@ -1705,6 +1718,7 @@
% Usage: |\sc@cell| \marg{text} \marg{width} \marg{height} \marg{aligning space}
% \begin{macrocode}
\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}}%
@@ -1774,6 +1788,7 @@
% \begin{macrocode}
\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}}%
@@ -1797,6 +1812,7 @@
% Usage: |\floppyIIIV| \marg{front content} \marg{back content}
% \begin{macrocode}
\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}}%
@@ -1821,6 +1837,7 @@
% Usage: |\zipdisk| \marg{front content} \marg{back content}
% \begin{macrocode}
\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}{}%
@@ -1849,6 +1866,7 @@
% Usage: |\disk| \marg{content}
% \begin{macrocode}
\DeclareRobustCommand{\disk}[1]{%
+ \sc@picinit%
\begin{picture}(120,120)%
% Ellipse: u = 60.0 v = 60.0 a = 60.0 b = 60.0 phi = 0.0 Grad
\qbezier(120.0, 60.0)(120.0, 84.8528)(102.4264, 102.4264)%
@@ -1909,6 +1927,7 @@
% Usage: |\emptydisk| \marg{content}
% \begin{macrocode}
\DeclareRobustCommand{\emptydisk}[1]{%
+ \sc@picinit%
\begin{picture}(120,120)%
% Ellipse: u = 60.0 v = 60.0 a = 60.0 b = 60.0 phi = 0.0 Grad
\qbezier(120.0, 60.0)(120.0, 84.8528)(102.4264, 102.4264)%
@@ -1942,6 +1961,7 @@
% Usage: |\cdrdisk| \marg{content}
% \begin{macrocode}
\DeclareRobustCommand{\cdrdisk}[1]{%
+ \sc@picinit%
\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)%
@@ -1975,6 +1995,7 @@
% Usage: |\cddvddisk| \marg{content}
% \begin{macrocode}
\DeclareRobustCommand{\cddvddisk}[1]{%
+ \sc@picinit%
\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)%
@@ -2008,6 +2029,7 @@
% Usage: |\LXXXdisk| \marg{content}
% \begin{macrocode}
\DeclareRobustCommand{\LXXXdisk}[1]{%
+ \sc@picinit%
\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)%
@@ -2081,6 +2103,7 @@
% Usage: |\cassettecover| \marg{content}
% \begin{macrocode}
\DeclareRobustCommand{\cassettecover}[1]{%
+ \sc@picinit%
\begin{picture}(88,39)%
% Ellipse: u = 22.0 v = 16.5 a = 7.5 b = 7.5 phi = 0.0 Grad
% \qbezier(29.5, 16.5)(29.5, 19.6066)(27.3033, 21.8033)%
@@ -2113,6 +2136,7 @@
% Usage: |\cassetteinlay| \marg{content}
% \begin{macrocode}
\DeclareRobustCommand{\cassetteinlay}[3]{%
+ \sc@picinit%
\begin{picture}(102,104)%
\put(0,38){%
\sc@choicebox{102}{66}{\parbox[c]{102\sc@unittype}{\sc@centering #1}}%
@@ -2134,6 +2158,7 @@
% Usage: |\vinylcdcover| \marg{content}
% \begin{macrocode}
\DeclareRobustCommand{\vinylcdcover}[1]{%
+ \sc@picinit%
\begin{picture}(65,65)%
% Ellipse: u = 32.5 v = 32.5 a = 32.5 b = 32.5 phi = 0.0 Grad
\qbezier(65.0, 32.5)(65.0, 45.9619)(55.481, 55.481)%
@@ -2165,6 +2190,7 @@
% Usage: |\recordcover| \marg{content}
% \begin{macrocode}
\DeclareRobustCommand{\recordcover}[1]{%
+ \sc@picinit%
\begin{picture}(99,99)%
% Ellipse: u = 49.5 v = 49.5 a = 49.5 b = 49.5 phi = 0.0 Grad
\qbezier(99.0, 49.5)(99.0, 70.0036)(84.5018, 84.5018)%
@@ -2199,6 +2225,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}%
@@ -2288,6 +2315,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}%
@@ -2411,6 +2439,7 @@
% \begin{macrocode}
\DeclareRobustCommand{\jewelstripeslempty}[3]{%
\setboolean{sc@layout}{true}%
+ \sc@picinit%
\begin{picture}%
(\value{sc@cdjccoverwidthdraw},\value{sc@cdjccoverheightdraw})%
\put(0,75){\line(1,0){120}}%
@@ -2490,6 +2519,7 @@
% \begin{macrocode}
\DeclareRobustCommand{\jewellineslempty}[1]{%
\setboolean{sc@layout}{true}%
+ \sc@picinit%
\begin{picture}%
(\value{sc@cdjccoverwidthdraw},\value{sc@cdjccoverheightdraw})%
\put(5,110){\line(1,0){110}}%
@@ -2517,6 +2547,7 @@
% \begin{macrocode}
\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}}}%
@@ -2535,6 +2566,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}}}}%
@@ -2572,6 +2604,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]{%
@@ -2590,6 +2623,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}}}}%
@@ -2627,6 +2661,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]{%