summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/mailmerge
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2009-09-26 23:27:35 +0000
committerKarl Berry <karl@freefriends.org>2009-09-26 23:27:35 +0000
commit3ba97cfb6b13172c9087ba57a49fe8266002cbfb (patch)
treeaa582d751d1304d4458131a71e91f54cd704cf4c /Master/texmf-dist/doc/latex/mailmerge
parentddfd914103ff31aa6cac69f4fb135ac4e35ca54a (diff)
new latex package mailmerge v1 (25sep09)
git-svn-id: svn://tug.org/texlive/trunk@15475 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/latex/mailmerge')
-rw-r--r--Master/texmf-dist/doc/latex/mailmerge/README82
-rw-r--r--Master/texmf-dist/doc/latex/mailmerge/mailmerge.pdfbin0 -> 103251 bytes
2 files changed, 82 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/mailmerge/README b/Master/texmf-dist/doc/latex/mailmerge/README
new file mode 100644
index 00000000000..2811e87b080
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/mailmerge/README
@@ -0,0 +1,82 @@
+
+MAILMERGE: repeat amount of text merging fields
+
+author: Miguel Vinicius Santini Frasson
+
+2009--09--23 version 1.0
+
+The LaTeX package mailmerge provides an interface to produce text from
+a template where fields are replaced by actual data, like in a
+database. It is useful to produce several letters from a template,
+certificates or other such documents. It allows to access the entry
+number, number of entries and so on.
+
+Generation of sty file and documentation from DTX and INS files
+===============================================================
+
+-> generating mailmerge.sty
+latex mailmerge.ins
+
+-> generating documentation in pdf form
+pdflatex mailmerge.dtx
+pdflatex mailmerge.dtx
+makeindex -s gind.ist -o mailmerge.ind mailmerge.idx
+pdflatex mailmerge.dtx
+pdflatex mailmerge.dtx
+
+Suggestion of instalation
+=========================
+
+1) Put inside your TEXINPUTS variable points to or
+
+2) Inside TEXMF tree > tex > latex
+ create a directory named mailmerge and put mailmerge.sty there.
+
+ Inside TEXMF tree > doc > latex
+ create a directory named mailmerge and put mailmerge.pdf there.
+
+Example of usage
+================
+
+\documentclass{article}
+\usepackage{ifthen,mailmerge}
+
+\begin{document}
+
+% \ifequal{A}{B}{what if A=B}{what if A<>B}
+\newcommand{\ifequal}[2]{\ifthenelse{\equal{#1}{#2}}}
+
+\mailfields{name,friends,drives}
+
+\mailrepeat{\section*{\field{name}'s profile}
+ \field{name} has
+ \ifequal{\field{friends}}{}
+ {no friends}
+ {\field{friends} as friends}.
+ \ifequal{\field{drives}}{yes}{Drives.}{Doesn't drive.}
+ \par (entry \entrynumber\ of \numberofentries)
+ % \newpage optional
+}
+
+\mailentry{John,{Bart and Robert},yes}
+\mailentry{Sara,{Jean, Phillip and Maria},no}
+\mailentry{Edward,,yes}
+
+\end{document}
+
+
+Licence
+=======
+
+Copyright (C) 2009 Miguel V. S. Frasson (mvsfrasson@gmail.com)
+
+Licence: LPPL
+
+This package may be distributed under the terms of the LaTeX
+Project Public License, as described in lppl.txt in the base
+LaTeX distribution, either version 1.2 or (at your option)
+any later version.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
diff --git a/Master/texmf-dist/doc/latex/mailmerge/mailmerge.pdf b/Master/texmf-dist/doc/latex/mailmerge/mailmerge.pdf
new file mode 100644
index 00000000000..694c9f40c2c
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/mailmerge/mailmerge.pdf
Binary files differ