diff --git a/coffee5/coffee.pdf b/coffee5/coffee.pdf new file mode 100644 index 0000000..1bda74b Binary files /dev/null and b/coffee5/coffee.pdf differ diff --git a/coffee5/coffee.tex b/coffee5/coffee.tex new file mode 100644 index 0000000..6c8b188 --- /dev/null +++ b/coffee5/coffee.tex @@ -0,0 +1,83 @@ +\documentclass{article} +\usepackage{tikz} +\usepackage{verbatim} +\usetikzlibrary{arrows,shapes} + +\usepackage{coffee5} + +\usepackage{eso-pic} +\AddToShipoutPicture{% +\cofeSplash{} +} +\usepackage{lipsum} + + +\begin{document} +\title{LaTeX Coffee Stains} +\author{Hanno Rein\\ +\texttt{http://hanno-rein.de}\\ +Cambridge University} +%\renewcommand{\today}{April 3, 2009} +\maketitle + + +\section{Introduction} +This package provides an essential feature to \LaTeX~that has been missing for too long. It adds a coffee stain to your documents. A lot of time can be saved by printing stains directly on the page rather than adding it manually. You can choose from four different stain types: +\begin{enumerate} + \item $270^\circ$ circle stain with two tiny splashes + \item $60^\circ$ circle stain + \item two splashes with light colours + \item and a colourful twin splash. +\end{enumerate} + +\section{Usage} +To use the package, simply place the \texttt{coffee5.sty} file in the directory with all of your +other \texttt{.tex} files \textit{or} install it properly (consult your distribution's manual). +Then include the following line in the header of your document: +\begin{verbatim} +\usepackage{coffee5} +\end{verbatim} +To place a coffee stain on a page, put one of the following commands in the source code of the relevant page: +\begin{verbatim} +\cofeAm{alpha}{scale}{angle}{xoff}{yoff} +\cofeBm{alpha}{scale}{angle}{xoff}{yoff} +\cofeCm{alpha}{scale}{angle}{xoff}{yoff} +\cofeDm{alpha}{scale}{angle}{xoff}{yoff} +\end{verbatim} +where alpha is the transparency factor $\in [0,1]$. The scale factor is {\tt scale}, and the standard is {\tt scale}=1. +The angle is in degrees $\in [0,360]$. +The position relative to the centre of the page is given by x and y +offsets \texttt{xoff} and \texttt{yoff}. + +\medskip +Since version 5, you may also use +\begin{verbatim} +\cofeSplash{} +\end{verbatim} +to place a random splash with random parameters on the current page or +e.g. +\begin{verbatim} +\usepackage{eso-pic} +\AddToShipoutPicture{% +\cofeSplash{} +} +\end{verbatim} +to put a random splash on every page. + + +\section{Copyright} +You can freely distribute this package as I do not believe in imaginary property. All stains are self-made, photographed by myself, processed with gimp and traced with Inkscape. +Donations should be made in coffee only. My address is +\begin{quote} +Hanno Rein\\ +DAMTP, CMS\\ +Wilberforce Road\\ +Cambridge CB3 0WA\\ +United Kingdom +\end{quote} +See more coffee stains on the next pages. +\newpage + +\lipsum[1-42] + +\end{document} diff --git a/coffee5/coffee5.tex b/coffee5/coffee5.tex deleted file mode 100644 index 6c8b188..0000000 --- a/coffee5/coffee5.tex +++ /dev/null @@ -1,83 +0,0 @@ -\documentclass{article} -\usepackage{tikz} -\usepackage{verbatim} -\usetikzlibrary{arrows,shapes} - -\usepackage{coffee5} - -\usepackage{eso-pic} -\AddToShipoutPicture{% -\cofeSplash{} -} -\usepackage{lipsum} - - -\begin{document} -\title{LaTeX Coffee Stains} -\author{Hanno Rein\\ -\texttt{http://hanno-rein.de}\\ -Cambridge University} -%\renewcommand{\today}{April 3, 2009} -\maketitle - - -\section{Introduction} -This package provides an essential feature to \LaTeX~that has been missing for too long. It adds a coffee stain to your documents. A lot of time can be saved by printing stains directly on the page rather than adding it manually. You can choose from four different stain types: -\begin{enumerate} - \item $270^\circ$ circle stain with two tiny splashes - \item $60^\circ$ circle stain - \item two splashes with light colours - \item and a colourful twin splash. -\end{enumerate} - -\section{Usage} -To use the package, simply place the \texttt{coffee5.sty} file in the directory with all of your -other \texttt{.tex} files \textit{or} install it properly (consult your distribution's manual). -Then include the following line in the header of your document: -\begin{verbatim} -\usepackage{coffee5} -\end{verbatim} -To place a coffee stain on a page, put one of the following commands in the source code of the relevant page: -\begin{verbatim} -\cofeAm{alpha}{scale}{angle}{xoff}{yoff} -\cofeBm{alpha}{scale}{angle}{xoff}{yoff} -\cofeCm{alpha}{scale}{angle}{xoff}{yoff} -\cofeDm{alpha}{scale}{angle}{xoff}{yoff} -\end{verbatim} -where alpha is the transparency factor $\in [0,1]$. The scale factor is {\tt scale}, and the standard is {\tt scale}=1. -The angle is in degrees $\in [0,360]$. -The position relative to the centre of the page is given by x and y -offsets \texttt{xoff} and \texttt{yoff}. - -\medskip -Since version 5, you may also use -\begin{verbatim} -\cofeSplash{} -\end{verbatim} -to place a random splash with random parameters on the current page or -e.g. -\begin{verbatim} -\usepackage{eso-pic} -\AddToShipoutPicture{% -\cofeSplash{} -} -\end{verbatim} -to put a random splash on every page. - - -\section{Copyright} -You can freely distribute this package as I do not believe in imaginary property. All stains are self-made, photographed by myself, processed with gimp and traced with Inkscape. -Donations should be made in coffee only. My address is -\begin{quote} -Hanno Rein\\ -DAMTP, CMS\\ -Wilberforce Road\\ -Cambridge CB3 0WA\\ -United Kingdom -\end{quote} -See more coffee stains on the next pages. -\newpage - -\lipsum[1-42] - -\end{document}