summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/papercdcase
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2006-08-12 16:12:55 +0000
committerKarl Berry <karl@freefriends.org>2006-08-12 16:12:55 +0000
commitcbcc07d7f45d448a51a7bd37225bdc276318f101 (patch)
treea3efaff7663ca2fc576ecfec30567d7c1245e297 /Master/texmf-dist/doc/latex/papercdcase
parent9d307955b11293bfafcc42264e1aa499f7fedfb9 (diff)
new latex package papercdcase
git-svn-id: svn://tug.org/texlive/trunk@1937 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/latex/papercdcase')
-rw-r--r--Master/texmf-dist/doc/latex/papercdcase/example.tex22
-rw-r--r--Master/texmf-dist/doc/latex/papercdcase/interactive.tex117
-rw-r--r--Master/texmf-dist/doc/latex/papercdcase/papercdcase.pdfbin0 -> 150313 bytes
3 files changed, 139 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/papercdcase/example.tex b/Master/texmf-dist/doc/latex/papercdcase/example.tex
new file mode 100644
index 00000000000..e09b4c3de7c
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/papercdcase/example.tex
@@ -0,0 +1,22 @@
+\documentclass{article}
+
+\usepackage[utf8]{inputenc}
+\usepackage[T1]{fontenc}
+\usepackage{papercdcase}
+\usepackage[a4paper, margin=0pt]{geometry}
+\usepackage{mdwlist}
+
+\pagestyle{empty}
+\setlength{\parindent}{0pt}
+
+\begin{document}
+
+\setcdlatchmatter{\textsf{\textbf{\LARGE Slackware Linux 10.2}\\
+CD 1/2}}
+\setcdspinematter{\textsf{\Large Slackware 10.2 CD1/2}}
+\setcdbackmatter{\textsf{\textbf{\LARGE Slackware Linux 10.2}\\
+CD 1/2}}
+
+\centering\papercdcase*
+
+\end{document}
diff --git a/Master/texmf-dist/doc/latex/papercdcase/interactive.tex b/Master/texmf-dist/doc/latex/papercdcase/interactive.tex
new file mode 100644
index 00000000000..11c93418aff
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/papercdcase/interactive.tex
@@ -0,0 +1,117 @@
+\documentclass{article}
+
+\usepackage[utf8]{inputenc}
+\usepackage[T1]{fontenc}
+\usepackage{papercdcase}
+\usepackage[margin=0pt]{geometry}
+\usepackage{mdwlist}
+
+\pagestyle{empty}
+\setlength{\parindent}{0pt}
+
+\def\maxilatchtext#1{\setcdlatchmatter{\textsf{\textbf{\Large #1}}}}
+\def\maxispinetext#1{\setcdspinematter{\textsf{\textbf{\large #1}}}}
+\def\maxibacktext#1#2{\setcdbackmatter{\textsf{\textbf{\Large #1}\small #2}}}
+
+\def\latchtext#1{\setcdlatchmatter{\textsf{\textbf{\LARGE #1}}}}
+\def\spinetext#1{\setcdspinematter{\textsf{\textbf{\Large #1}}}}
+\def\backtext#1#2{\setcdbackmatter{\textsf{\textbf{\LARGE #1}#2}}}
+
+\def\empty{}
+\def\yes{yes}
+
+\toksdef\ta=0%
+\toksdef\tb=2%
+\long\def\rightappenditem#1\to#2{\ta={#1}\tb=\expandafter{#2}\edef#2{\the\tb\the\ta}}
+\long\def\erightappenditem#1\to#2{\tb=\expandafter{#2}\xdef#2{\the\tb\noexpand{#1}}}
+
+\def\msg{****************************************************************************}
+
+\begin{document}
+
+\typeout{}
+\typeout{\msg}
+\typeout{* Please enter "yes" if you'd like to create a case for a maxi (80mm) CD,}
+\typeout{* just hit enter if not!}
+\typein[\cdmaxi]{\msg}
+
+\typeout{}
+\typeout{\msg}
+\typeout{* Please enter the artist, if any!}
+\typein[\cdartist]{\msg}
+
+\typeout{}
+\typeout{\msg}
+\typeout{* Please enter the CD title, if any!}
+\typein[\cdtitle]{\msg}
+
+\newif\iftrackgiven
+\def\tracks{}
+\typeout{}
+\typeout{\msg}
+\typeout{* Please enter the tracks (to finish, just enter a blank line)!}
+\loop
+\def\nexttrack{}
+\typein[\nexttrack]{\msg}
+\ifx\nexttrack\empty%
+\trackgivenfalse%
+\else%
+\rightappenditem\item\to\tracks%
+\erightappenditem\nexttrack\to\tracks%
+\trackgiventrue%
+\fi%
+\iftrackgiven%
+\def\msg{}%
+\repeat
+
+\ifx\cdmaxi\yes%
+\ifx\cdtitle\empty%
+\maxilatchtext{\cdartist}%
+\maxispinetexi{\cdartist}%
+\ifx\tracks\empty%
+\maxibacktext{\cdartist}{}%
+\else%
+\maxibacktext{\cdartist}{\begin{enumerate*}\tracks\end{enumerate*}}%
+\fi\else\ifx\cdartist\empty%
+\maxilatchtext{\cdtitle}%
+\maxispinetext{\cdtitle}%
+\ifx\tracks\empty%
+\maxibacktext{\cdtitle}{}%
+\else%
+\maxibacktexi{\cdtitle}{\begin{enumerate*}\tracks\end{enumerate*}}%
+\fi\else%
+\maxilatchtext{\cdartist\\[0.25\baselineskip]\cdtitle}%
+\maxispinetext{\cdartist/\cdtitle}%
+\ifx\tracks\empty%
+\maxibacktext{\cdartist\\[0.25\baselineskip]\cdtitle}{}%
+\else%
+\maxibacktext{\cdartist\\[0.25\baselineskip]\cdtitle}{\begin{enumerate*}\tracks\end{enumerate*}}%
+\fi\fi\fi
+\centering\papercdcase[80]
+\else
+\ifx\cdtitle\empty%
+\latchtext{\cdartist}%
+\spinetexi{\cdartist}%
+\ifx\tracks\empty%
+\backtext{\cdartist}{}%
+\else%
+\backtext{\cdartist}{\begin{enumerate*}\tracks\end{enumerate*}}%
+\fi\else\ifx\cdartist\empty%
+\latchtext{\cdtitle}%
+\spinetext{\cdtitle}%
+\ifx\tracks\empty%
+\backtext{\cdtitle}{}%
+\else%
+\backtexi{\cdtitle}{\begin{enumerate*}\tracks\end{enumerate*}}%
+\fi\else%
+\latchtext{\cdartist\\[0.4\baselineskip]\cdtitle}%
+\spinetext{\cdartist/\cdtitle}%
+\ifx\tracks\empty%
+\backtext{\cdartist\\[0.4\baselineskip]\cdtitle}{}%
+\else%
+\backtext{\cdartist\\[0.4\baselineskip]\cdtitle}{\begin{enumerate*}\tracks\end{enumerate*}}%
+\fi\fi\fi
+\centering\papercdcase
+\fi
+
+\end{document}
diff --git a/Master/texmf-dist/doc/latex/papercdcase/papercdcase.pdf b/Master/texmf-dist/doc/latex/papercdcase/papercdcase.pdf
new file mode 100644
index 00000000000..5ee90021cf6
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/papercdcase/papercdcase.pdf
Binary files differ