\begin{Craige McWhirter}
> Thus spake Angus Lees ([EMAIL PROTECTED]):
> > \begin{Nick Croft}
> > > Can anyone recommend a utility for creating CD labels? Is there a 
> > > plug-in for the Gimp?
> > 
> > the linux.conf.au cd labels were created in this great tool called
> > "latex".  if you want somewhere to start from, the latex source for
> > the label is included on the cd.
> > 
> > iirc, all you need to worry about is: 6cm outside, 2cm inside radius
> 
> Any chance you could post a sample? One new latex user in particular
> could find it useful ;)

the cd label is only short, so i've included it inline here, with some
extra explanation:

(get the pstricks docs and flick through them. "texdoc pstricks" might
work. else on debian woody, install "texdoctk" and run that instead)


\documentclass[12pt]{article}
% first line of a latex doc. says what type of document it is. i've
% just picked something simple, its mostly ignored here

% ultra-funky manipulation of text. only useful for producing ps tho
% (no pdf)
\usepackage{pstricks}

% extra pstricks pieces
\usepackage{pst-text}
\usepackage{pst-eps}

% allows \includegraphics. most likely, we'll be using dvips for output
\usepackage[dvips]{graphicx}

% allows \so  (stretched-out)
\usepackage{soul}

% set default pstricks unit to 1cm
\psset{unit=1cm}

% don't do page numbers, etc
\pagestyle{empty}

% environment for actual content
\begin{document}

% the rest is compressed, cos you can't have any blank lines. they'll
% start a new paragraph which isn't something we want in the middle of
% a picture..

% a pstricks trick, to help produce the right bounding box for eps
\TeXtoEPS
% pstricks pspicture environment. width/height/offset etc.
\begin{pspicture}(-1,-11)(11,1)
% default font attributes
\Huge\ttfamily\bfseries
% draw a little cross at the center (5,-5) (two straight lines)
\qline(4.6,-5)(5.4,-5)\qline(5,-4.6)(5,-5.4) % mark center
% the text "\so{linux.conf.au}" drawn around in an arc.
% told you pstricks was cool.
\pstextpath[c](0,0){
  \psarcn[linestyle=none](5,-5){3.5}{270}{0}}{\so{linux.conf.au}}
% put an .eps at (7.7, -7.7)
\rput(7.7,-7.7){\includegraphics[width=3cm]{beach-trimmed.eps}}
% put some text (in a table, to get layout correct)
\rput(3.5,-8.5){\mdseries\sffamily\small%
 \begin{tabular}{r}
 17--20 January, 2001 \\
 Sydney, Australia
 \end{tabular}}
% uncomment for cd border:
%\pscircle(5,-5){2}
%\pscircle(5,-5){6}
\end{pspicture}
\endTeXtoEPS

% done
\end{document}



build with "latex above_file.tex; dvips -o above_file.ps above_file.dvi"

you'll probably want to comment out / change the line that includes
beach-trimmed.eps, unless you also create an eps called that.

-- 
 - Gus

-- 
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://slug.org.au/lists/listinfo/slug

Reply via email to