updated package description
Sebastian Schmittner
9 years ago
Binary diff not shown
0 | \documentclass{article} | |
1 | \usepackage{tikz} | |
2 | \usepackage{verbatim} | |
3 | \usetikzlibrary{arrows,shapes} | |
4 | ||
5 | \usepackage{coffee5} | |
6 | ||
7 | \usepackage{eso-pic} | |
8 | \AddToShipoutPicture{% | |
9 | \cofeSplash{} | |
10 | } | |
11 | \usepackage{lipsum} | |
12 | ||
13 | ||
14 | \begin{document} | |
15 | \title{LaTeX Coffee Stains} | |
16 | \author{Hanno Rein\\ | |
17 | \texttt{http://hanno-rein.de}\\ | |
18 | Cambridge University} | |
19 | %\renewcommand{\today}{April 3, 2009} | |
20 | \maketitle | |
21 | ||
22 | ||
23 | \section{Introduction} | |
24 | 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: | |
25 | \begin{enumerate} | |
26 | \item $270^\circ$ circle stain with two tiny splashes | |
27 | \item $60^\circ$ circle stain | |
28 | \item two splashes with light colours | |
29 | \item and a colourful twin splash. | |
30 | \end{enumerate} | |
31 | ||
32 | \section{Usage} | |
33 | To use the package, simply place the \texttt{coffee5.sty} file in the directory with all of your | |
34 | other \texttt{.tex} files \textit{or} install it properly (consult your distribution's manual). | |
35 | Then include the following line in the header of your document: | |
36 | \begin{verbatim} | |
37 | \usepackage{coffee5} | |
38 | \end{verbatim} | |
39 | To place a coffee stain on a page, put one of the following commands in the source code of the relevant page: | |
40 | \begin{verbatim} | |
41 | \cofeAm{alpha}{scale}{angle}{xoff}{yoff} | |
42 | \cofeBm{alpha}{scale}{angle}{xoff}{yoff} | |
43 | \cofeCm{alpha}{scale}{angle}{xoff}{yoff} | |
44 | \cofeDm{alpha}{scale}{angle}{xoff}{yoff} | |
45 | \end{verbatim} | |
46 | where alpha is the transparency factor $\in [0,1]$. The scale factor is {\tt scale}, and the standard is {\tt scale}=1. | |
47 | The angle is in degrees $\in [0,360]$. | |
48 | The position relative to the centre of the page is given by x and y | |
49 | offsets \texttt{xoff} and \texttt{yoff}. | |
50 | ||
51 | \medskip | |
52 | Since version 5, you may also use | |
53 | \begin{verbatim} | |
54 | \cofeSplash{} | |
55 | \end{verbatim} | |
56 | to place a random splash with random parameters on the current page or | |
57 | e.g. | |
58 | \begin{verbatim} | |
59 | \usepackage{eso-pic} | |
60 | \AddToShipoutPicture{% | |
61 | \cofeSplash{} | |
62 | } | |
63 | \end{verbatim} | |
64 | to put a random splash on every page. | |
65 | ||
66 | ||
67 | \section{Copyright} | |
68 | 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. | |
69 | Donations should be made in coffee only. My address is | |
70 | \begin{quote} | |
71 | Hanno Rein\\ | |
72 | DAMTP, CMS\\ | |
73 | Wilberforce Road\\ | |
74 | Cambridge CB3 0WA\\ | |
75 | United Kingdom | |
76 | \end{quote} | |
77 | See more coffee stains on the next pages. | |
78 | \newpage | |
79 | ||
80 | \lipsum[1-42] | |
81 | ||
82 | \end{document} |
0 | \documentclass{article} | |
1 | \usepackage{tikz} | |
2 | \usepackage{verbatim} | |
3 | \usetikzlibrary{arrows,shapes} | |
4 | ||
5 | \usepackage{coffee5} | |
6 | ||
7 | \usepackage{eso-pic} | |
8 | \AddToShipoutPicture{% | |
9 | \cofeSplash{} | |
10 | } | |
11 | \usepackage{lipsum} | |
12 | ||
13 | ||
14 | \begin{document} | |
15 | \title{LaTeX Coffee Stains} | |
16 | \author{Hanno Rein\\ | |
17 | \texttt{http://hanno-rein.de}\\ | |
18 | Cambridge University} | |
19 | %\renewcommand{\today}{April 3, 2009} | |
20 | \maketitle | |
21 | ||
22 | ||
23 | \section{Introduction} | |
24 | 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: | |
25 | \begin{enumerate} | |
26 | \item $270^\circ$ circle stain with two tiny splashes | |
27 | \item $60^\circ$ circle stain | |
28 | \item two splashes with light colours | |
29 | \item and a colourful twin splash. | |
30 | \end{enumerate} | |
31 | ||
32 | \section{Usage} | |
33 | To use the package, simply place the \texttt{coffee5.sty} file in the directory with all of your | |
34 | other \texttt{.tex} files \textit{or} install it properly (consult your distribution's manual). | |
35 | Then include the following line in the header of your document: | |
36 | \begin{verbatim} | |
37 | \usepackage{coffee5} | |
38 | \end{verbatim} | |
39 | To place a coffee stain on a page, put one of the following commands in the source code of the relevant page: | |
40 | \begin{verbatim} | |
41 | \cofeAm{alpha}{scale}{angle}{xoff}{yoff} | |
42 | \cofeBm{alpha}{scale}{angle}{xoff}{yoff} | |
43 | \cofeCm{alpha}{scale}{angle}{xoff}{yoff} | |
44 | \cofeDm{alpha}{scale}{angle}{xoff}{yoff} | |
45 | \end{verbatim} | |
46 | where alpha is the transparency factor $\in [0,1]$. The scale factor is {\tt scale}, and the standard is {\tt scale}=1. | |
47 | The angle is in degrees $\in [0,360]$. | |
48 | The position relative to the centre of the page is given by x and y | |
49 | offsets \texttt{xoff} and \texttt{yoff}. | |
50 | ||
51 | \medskip | |
52 | Since version 5, you may also use | |
53 | \begin{verbatim} | |
54 | \cofeSplash{} | |
55 | \end{verbatim} | |
56 | to place a random splash with random parameters on the current page or | |
57 | e.g. | |
58 | \begin{verbatim} | |
59 | \usepackage{eso-pic} | |
60 | \AddToShipoutPicture{% | |
61 | \cofeSplash{} | |
62 | } | |
63 | \end{verbatim} | |
64 | to put a random splash on every page. | |
65 | ||
66 | ||
67 | \section{Copyright} | |
68 | 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. | |
69 | Donations should be made in coffee only. My address is | |
70 | \begin{quote} | |
71 | Hanno Rein\\ | |
72 | DAMTP, CMS\\ | |
73 | Wilberforce Road\\ | |
74 | Cambridge CB3 0WA\\ | |
75 | United Kingdom | |
76 | \end{quote} | |
77 | See more coffee stains on the next pages. | |
78 | \newpage | |
79 | ||
80 | \lipsum[1-42] | |
81 | ||
82 | \end{document} |