1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 | coffee ====== Coffee stains package for latex ## Usage To use the package, simply place the `coffee.sty` file in the directory with all of your other `.tex` files *or* install it properly (consult your distribution's manual). Then include the following line in the header of your document: ``` \usepackage{coffee} ``` Since version 5, there is a convenient command: ``` \cofeSplash{} ``` to place a random splash with random parameters on the current page. There is now also a package option to put coffee on every page like ``` \usepackage[onEveryPage]{coffee} ``` Since version 6, there is a convenient command: ``` \cofeBleed{alpha}{scale}{angle}{xoff}{yoff}{bleed}{variety} ``` to place a `variety` type splash with random parameters on the current page. There is now also a package option to put a bleeding coffee throughout the pages like ``` \usepackage[bleed]{coffee} ``` For more fine grained control, use the original commands: To place a coffee stain on a page, put one of the following commands in the source code of the relevant page: ``` \cofeAm{alpha}{scale}{angle}{xoff}{yoff} \cofeBm{alpha}{scale}{angle}{xoff}{yoff} \cofeCm{alpha}{scale}{angle}{xoff}{yoff} \cofeDm{alpha}{scale}{angle}{xoff}{yoff} ``` where `alpha` is the transparency factor $\in [0,1]$. The scale factor is `scale`, and the standard is `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 `xoff` and `yoff`. ## Genesis The latex-coffee package. by Hanno Rein, Cambridge University http://hanno-rein.de hanno@hanno-rein.de #### November, 2010 Updated to TikZ (for compatibility with pdflatex) by Evan Sultanik, Johns Hopkins University APL http://www.sultanik.com/ evan@sultanik.com Inspired by several arXiv papers (see eg. 0812.3367v2) #### March, 2011 Adding more options and compatible with pdflatex by Luis Randez, IUMA, University of Zaragoza http://pcmap.unizar.es/~pilar/ randez@unizar.es #### May, 2012 Added placement parameters by Adrian Robson http://nepsweb.co.uk/homeapr/ #### December, 2014 Added random \cofeSplash{} (requires ifthen) and onEveryPage package option added to github by Sebastian Schmittner http://www.thp.uni-koeln.de/~ses/ #### November, 2018 Added random \cofeBleed{} (requires ifthen) and bleed package option added to github by Anthony Mirand https://anthonymirand.github.io/ ## License MIT License, see LICENSE. |
Commit History @upstream/6
0
»»
- prep for merge Barak A. Pearlmutter 6 years ago
- remove PDF file (derived) Barak A. Pearlmutter 6 years ago
- typo Barak A. Pearlmutter (commit: Barak A. Pearlmutter) 6 years ago
- Update README.md Sebastian Schmittner 9 years ago
- Update README.md Sebastian Schmittner 9 years ago
- Merge branch 'master' of https://github.com/Echsecutor/coffee Sebastian Schmittner 9 years ago
- prettier ifs Sebastian Schmittner 9 years ago
- Update README.md Sebastian Schmittner 9 years ago
- Update README.md Sebastian Schmittner 9 years ago
- versioned pakage does not require changing the package file names every time Sebastian Schmittner 9 years ago
- updated package description Sebastian Schmittner 9 years ago
- package versioned, added onEveryPage option Sebastian Schmittner 9 years ago
- manual adapted to include new splash command Sebastian Schmittner 9 years ago
- Merge branch 'master' of https://github.com/Echsecutor/coffee Sebastian Schmittner 9 years ago
- Update README.md Sebastian Schmittner 9 years ago
- Update README.md Sebastian Schmittner 9 years ago
- Added Version 5 which features random splashes Sebastian Schmittner 9 years ago
- initial version branched from http://hanno-rein.de/archives/349 Sebastian Schmittner 9 years ago
- Initial commit Sebastian Schmittner 9 years ago
- Imported Upstream version 4 Barak A. Pearlmutter 10 years ago
- Imported Upstream version 3 Barak A. Pearlmutter 10 years ago
- wget -O coffee.sty http://hanno-rein.de/downloads/coffee2.sty Barak A. Pearlmutter 10 years ago
- Imported Upstream version 1 Barak A. Pearlmutter 10 years ago
0
»»