Hi,
Terry Collins wrote:
> All I need to find is how to do the SLUG fests posters (have some
> ideas) and how to do mail merge (have no ideas).
Here is a Perl script to do mail merge. You just have to write a bit
that reads in your text file and places the info into variables then
plug those into the LaTeX text. Note that I had to \ escape all the \'s
that LaTeX would have.
Fortunately LaTeX does not have mail merge built into it. We can spin
our own solution with considerably more pweer than a canned mail merge.
After the mailmerge script is a poster example.
Best Regards
Mike
Perl Script for Mail Merging
----------------------------
#!/usr/bin/perl
# Perl Script for Mail Merging in LaTeX
# Mike Lake, 28-03-2000
# Usage: ./mailmerge > letters.tex
# latex letters.tex
# dvips letters.dvi -o letters.ps
my @name = ("Bill", "John", "Mary"); # Replace this with routine to read
data from file.
my $i;
# Print the Start of the LaTeX Document
print <<PREAMBLE;
\\documentclass[a4paper]{letter}
\\begin{document}
PREAMBLE
# Print the Guts of the Letters
for ($i=0; $i<=$#name; $i++)
{
print <<BODY;
\\begin{letter}{
Bluesky Products\\\\
6 Gerry St\\\\
Sydney\\\\
NSW 2000}
\\address{Michael Lake,\\\\
5 Imaginary Place,\\\\
BLABBERVILLE\\\\
NSW 2120}
\\signature{Michael Lake}
\\opening{Dear $name[$i],}
Please find enclosed an invoice for out services.
\\vspace{2\\baselineskip}
Regards
\\vspace{2cm}
Michael Lake
\\end{letter}
\\newpage
BODY
}
# Print the Document Ending
print <<THERE;
\\end{document}
THERE
-----------end of mail merge script -------------------------
Poster Size (or nearly so)
-------------------------
\documentclass[a4paper]{article}
\usepackage[dvips]{graphics}
\usepackage{rotating}
\begin{document}
\pagestyle{empty}
% Using the rotating environment with sideways...
\vspace*{-10in}
\begin{sideways}
\resizebox{18in}{!}{\sffamily \bfseries \parbox{2in}{Bill's Bogus \\Xmas
Party \\1988}}
\end{sideways}
% Using the rotating environment with rotate...
\newpage
\vspace*{10cm}
\begin{rotate}{20}
\resizebox{40cm}{!}{\sffamily \bfseries \parbox{2in}{Bill's Bogus \\Xmas
Party \\1988}}
\end{rotate}
\end{document}
------- end poster --------------
--------------------------------------------------------------------
Michael Lake
University of Technology, Sydney
Email: mailto:[EMAIL PROTECTED] Ph: 02 9514 1724 Fx: 02 9514 1628
URL: http://www.science.uts.edu.au/~mikel
Linux enthusiast, active caver and interested in anything technical.
--------------------------------------------------------------------
--
SLUG - Sydney Linux Users Group Mailing List - http://www.slug.org.au
To unsubscribe send email to [EMAIL PROTECTED] with
unsubscribe in the text