summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/cd
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2008-05-06 01:02:24 +0000
committerKarl Berry <karl@freefriends.org>2008-05-06 01:02:24 +0000
commit441728c3fc15c10e69422d748dc214751ef51c17 (patch)
treed29c70e0731e4e981f55f2405e2aeacd138496ee /Master/texmf-dist/doc/latex/cd
parent101395e54ec0c670b2308650550de02c7b4ce460 (diff)
cd update (5may08)
git-svn-id: svn://tug.org/texlive/trunk@7882 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/latex/cd')
-rw-r--r--Master/texmf-dist/doc/latex/cd/CD.dvibin2052 -> 0 bytes
-rw-r--r--Master/texmf-dist/doc/latex/cd/CD.tex4
-rw-r--r--Master/texmf-dist/doc/latex/cd/CDlist.tex (renamed from Master/texmf-dist/doc/latex/cd/CDList.tex)4
-rw-r--r--Master/texmf-dist/doc/latex/cd/README12
-rw-r--r--Master/texmf-dist/doc/latex/cd/cd.pdfbin91772 -> 112963 bytes
-rw-r--r--Master/texmf-dist/doc/latex/cd/parsecd.rb54
-rw-r--r--Master/texmf-dist/doc/latex/cd/slimCD.tex11
-rw-r--r--Master/texmf-dist/doc/latex/cd/slimCDlist.tex11
8 files changed, 88 insertions, 8 deletions
diff --git a/Master/texmf-dist/doc/latex/cd/CD.dvi b/Master/texmf-dist/doc/latex/cd/CD.dvi
deleted file mode 100644
index 4225d3e1184..00000000000
--- a/Master/texmf-dist/doc/latex/cd/CD.dvi
+++ /dev/null
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/cd/CD.tex b/Master/texmf-dist/doc/latex/cd/CD.tex
index 0c115e899eb..f2f502caf81 100644
--- a/Master/texmf-dist/doc/latex/cd/CD.tex
+++ b/Master/texmf-dist/doc/latex/cd/CD.tex
@@ -9,7 +9,3 @@
\makeCD
\end{document}
-%%% Local Variables:
-%%% mode: latex
-%%% TeX-master: t
-%%% End:
diff --git a/Master/texmf-dist/doc/latex/cd/CDList.tex b/Master/texmf-dist/doc/latex/cd/CDlist.tex
index e388790fc3a..357ea17319d 100644
--- a/Master/texmf-dist/doc/latex/cd/CDList.tex
+++ b/Master/texmf-dist/doc/latex/cd/CDlist.tex
@@ -9,7 +9,3 @@
\makelist
\end{document}
-%%% Local Variables:
-%%% mode: latex
-%%% TeX-master: t
-%%% End:
diff --git a/Master/texmf-dist/doc/latex/cd/README b/Master/texmf-dist/doc/latex/cd/README
index b80180fc52c..9970a2940f3 100644
--- a/Master/texmf-dist/doc/latex/cd/README
+++ b/Master/texmf-dist/doc/latex/cd/README
@@ -5,6 +5,7 @@ requirements includes eternal durability of covers (I do not want to throw
away my precious covers because of an upgrade), easy batch printing with crop
marks, full typographical control, extended foreign language support, fully
open text-based format for easy copy-and-modify operations, and so on.
+Since version 1.1, slim CD are supported.
As usual, the package is provided by means of a .dtx source that a .ins
driver will convert into a class (.cls) file. Of course, compiling the .dtx
@@ -33,3 +34,14 @@ The Artist\\
Then, by using the provided driver files you can easily generate one or more
covers. Note that the class uses heavily the rotating package, so you must
convert the resulting dvi file into PostScript®, or use directly pdflatex.
+
+If you're really lazy...
+
+...there is a Ruby script (parsecd.rb) that, provided with information from
+freedb.org, will generate automatically a data file. For instance,
+
+ wget -O- http://www.freedb.org/freedb/jazz/380a0a05 | ./parsecd.rb
+
+will generate a cover for Monk's "Brilliant Corners". You can search for your
+record on freedb.org, and then simply use the links provided under the label
+"ids".
diff --git a/Master/texmf-dist/doc/latex/cd/cd.pdf b/Master/texmf-dist/doc/latex/cd/cd.pdf
index 164b497b8ad..6d93da31fe2 100644
--- a/Master/texmf-dist/doc/latex/cd/cd.pdf
+++ b/Master/texmf-dist/doc/latex/cd/cd.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/cd/parsecd.rb b/Master/texmf-dist/doc/latex/cd/parsecd.rb
new file mode 100644
index 00000000000..6f7f02580b1
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/cd/parsecd.rb
@@ -0,0 +1,54 @@
+#!/usr/bin/ruby
+
+#
+# This script generates a data file using data from freedb.org.
+#
+# Typical usage:
+#
+# wget -O- http://www.freedb.org/freedb/jazz/380a0a05 | ./parsecd.rb
+#
+
+track = []
+
+class String
+ def tex
+ return sub(/&/, "\\\\&").sub(/%/, "\\\\%").sub(/#/, "\\\\#")
+ end
+end
+
+$stdin.each_line do |line|
+ name, content = line.split("=")
+ name.strip! if name
+ content.strip! if content
+
+ if name == "DTITLE" then
+ author, title = content.split("/")
+ author = "" if ! author
+ title = "" if ! title
+ author.strip!
+ title.strip!
+ author_cap = []
+ author.each(" ") { |word| author_cap << word.strip.capitalize.tex }
+ print "\\covertext{\n", author_cap.join(" "), "\\\\\n", "\\bfseries ", title.strip.tex, "\n}\n\n"
+
+ print "\\leftspine{", author.upcase.tex, "}\n\n"
+ print "\\centerspine{", title.upcase.tex, "}\n\n"
+
+ end
+
+ if name.strip =~ /TTITLE.*/ then
+ track << content
+ end
+end
+
+print "\\lefttracklist{\n"
+
+if track.size < 16 then track.each { |x| print "\\track ", x.tex, "\n" }
+else
+ track[0,(track.size/2)+1].each { |x| print "\\track ", x.tex, "\n" }
+ print "}\n\n\\righttracklist{\n"
+ track[(track.size/2)+1,track.size].each { |x| print "\\track ", x.tex, "\n" }
+end
+
+
+print "}\n"
diff --git a/Master/texmf-dist/doc/latex/cd/slimCD.tex b/Master/texmf-dist/doc/latex/cd/slimCD.tex
new file mode 100644
index 00000000000..689d53cbbb8
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/cd/slimCD.tex
@@ -0,0 +1,11 @@
+\documentclass[a4paper]{cd}
+\usepackage[latin1]{inputenc}
+\usepackage{avant}
+\renewcommand\rmdefault{\sfdefault}
+\onecorrection{.2}
+
+\begin{document}
+
+\makeslimCD
+
+\end{document}
diff --git a/Master/texmf-dist/doc/latex/cd/slimCDlist.tex b/Master/texmf-dist/doc/latex/cd/slimCDlist.tex
new file mode 100644
index 00000000000..77864f8c48b
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/cd/slimCDlist.tex
@@ -0,0 +1,11 @@
+\documentclass[a4paper]{cd}
+\usepackage[latin1]{inputenc}
+\usepackage{avant,amstext}
+\renewcommand\rmdefault{\sfdefault}
+\onecorrection{.2}
+
+\begin{document}
+
+\makeslimlist
+
+\end{document}