Package list latex-coffee-stains / f610003
Merge remote-tracking branch 'upstream/master' into debian Barak A. Pearlmutter 3 years ago
1 changed file(s) with 37 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
11 ======
22
33 Coffee stains package for latex
4
5 ## Usage
6
7 To use the package, simply place the `coffee.sty` file in the
8 directory with all of your other `.tex` files *or*
9 install it properly (consult your distribution's manual). Then
10 include the following line in the header of your document:
11 ```
12 \usepackage{coffee}
13 ```
14
15 Since version 5, there is a convenient command:
16 ```
17 \cofeSplash{}
18 ```
19 to place a random splash with random parameters on the current
20 page. There is now also a package option to put coffee on every page like
21 ```
22 \usepackage[onEveryPage]{coffee}
23 ```
24
25 For more fine grained controll, use the original commands:
26
27 To place a coffee stain on a page, put one of the following commands
28 in the source code of the relevant page:
29
30 ```
31 \cofeAm{alpha}{scale}{angle}{xoff}{yoff}
32 \cofeBm{alpha}{scale}{angle}{xoff}{yoff}
33 \cofeCm{alpha}{scale}{angle}{xoff}{yoff}
34 \cofeDm{alpha}{scale}{angle}{xoff}{yoff}
35 ```
36 where `alpha` is
37 the transparency factor $\in [0,1]$. The scale factor is `scale`,
38 and the standard is `scale=1`. The angle is in degrees $\in
39 [0,360]$. The position relative to the centre of the page is given by
40 x and y offsets `xoff and `yoff`.
441
542
643