Merge tag 'upstream/6' into debian
By the power vested in me by the State of Caffeination, I declare this Version 6.
# gpg: Signature made Tue 20 Nov 2018 14:37:21 GMT
# gpg: using RSA key 64F429E36EA11CC2D966546F125B57475E190D18
# gpg: issuer "bap@debian.org"
# gpg: Good signature from "Barak A. Pearlmutter <barak@pearlmutter.net>" [ultimate]
# gpg: aka "Barak A. Pearlmutter <bap@debian.org>" [ultimate]
# gpg: aka "Barak A. Pearlmutter <barak@cs.nuim.ie>" [ultimate]
# gpg: aka "Barak A. Pearlmutter <barak.pearlmutter@nuim.ie>" [ultimate]
# gpg: aka "Barak A. Pearlmutter <barak.pearlmutter@gmail.com>" [ultimate]
# gpg: aka "Barak A. Pearlmutter <barak.pearlmutter@alumni.cmu.edu>" [ultimate]
# gpg: aka "[jpeg image of size 11068]" [ultimate]
Barak A. Pearlmutter
5 years ago
0 | ## Core latex/pdflatex auxiliary files: | |
1 | 0 | *.aux |
2 | *.lof | |
1 | *.dvi | |
2 | *.fdb_latexmk | |
3 | *.fls | |
3 | 4 | *.log |
4 | *.lot | |
5 | *.fls | |
6 | *.out | |
7 | *.toc | |
8 | ||
9 | ## Intermediate documents: | |
10 | *.dvi | |
11 | *-converted-to.* | |
12 | # these rules might exclude image files for figures etc. | |
13 | # *.ps | |
14 | # *.eps | |
15 | ||
16 | ||
17 | ## Bibliography auxiliary files (bibtex/biblatex/biber): | |
18 | *.bbl | |
19 | *.bcf | |
20 | *.blg | |
21 | *-blx.aux | |
22 | *-blx.bib | |
23 | *.brf | |
24 | *.run.xml | |
25 | ||
26 | ## Build tool auxiliary files: | |
27 | *.fdb_latexmk | |
28 | *.synctex.gz | |
29 | *.synctex.gz(busy) | |
30 | *.pdfsync | |
31 | ||
32 | ## Auxiliary and intermediate files from other packages: | |
33 | ||
34 | # algorithms | |
35 | *.alg | |
36 | *.loa | |
37 | ||
38 | # amsthm | |
39 | *.thm | |
40 | ||
41 | # beamer | |
42 | *.nav | |
43 | *.snm | |
44 | *.vrb | |
45 | ||
46 | #(e)ledmac/(e)ledpar | |
47 | *.end | |
48 | *.[1-9] | |
49 | *.[1-9][0-9] | |
50 | *.[1-9][0-9][0-9] | |
51 | *.[1-9]R | |
52 | *.[1-9][0-9]R | |
53 | *.[1-9][0-9][0-9]R | |
54 | *.eledsec[1-9] | |
55 | *.eledsec[1-9]R | |
56 | *.eledsec[1-9][0-9] | |
57 | *.eledsec[1-9][0-9]R | |
58 | *.eledsec[1-9][0-9][0-9] | |
59 | *.eledsec[1-9][0-9][0-9]R | |
60 | ||
61 | # glossaries | |
62 | *.acn | |
63 | *.acr | |
64 | *.glg | |
65 | *.glo | |
66 | *.gls | |
67 | ||
68 | # hyperref | |
69 | *.brf | |
70 | ||
71 | # listings | |
72 | *.lol | |
73 | ||
74 | # makeidx | |
75 | *.idx | |
76 | *.ilg | |
77 | *.ind | |
78 | *.ist | |
79 | ||
80 | # minitoc | |
81 | *.maf | |
82 | *.mtc | |
83 | *.mtc0 | |
84 | ||
85 | # minted | |
86 | *.pyg | |
87 | ||
88 | # morewrites | |
89 | *.mw | |
90 | ||
91 | # nomencl | |
92 | *.nlo | |
93 | ||
94 | # sagetex | |
95 | *.sagetex.sage | |
96 | *.sagetex.py | |
97 | *.sagetex.scmd | |
98 | ||
99 | # sympy | |
100 | *.sout | |
101 | *.sympy | |
102 | sympy-plots-for-*.tex/ | |
103 | ||
104 | # todonotes | |
105 | *.tdo | |
106 | ||
107 | # xindy | |
108 | *.xdy | |
5 | ||
6 | *.ps |
22 | 22 | \usepackage[onEveryPage]{coffee} |
23 | 23 | ``` |
24 | 24 | |
25 | For more fine grained controll, use the original commands: | |
25 | Since version 6, there is a convenient command: | |
26 | ``` | |
27 | \cofeBleed{alpha}{scale}{angle}{xoff}{yoff}{bleed}{variety} | |
28 | ``` | |
29 | to place a `variety` type splash with random parameters on the | |
30 | current page. There is now also a package option to put a bleeding | |
31 | coffee throughout the pages like | |
32 | ``` | |
33 | \usepackage[bleed]{coffee} | |
34 | ``` | |
35 | ||
36 | For more fine grained control, use the original commands: | |
26 | 37 | |
27 | 38 | To place a coffee stain on a page, put one of the following commands |
28 | in the source code of the relevant page: | |
39 | in the source code of the relevant page: | |
29 | 40 | |
30 | 41 | ``` |
31 | 42 | \cofeAm{alpha}{scale}{angle}{xoff}{yoff} |
37 | 48 | the transparency factor $\in [0,1]$. The scale factor is `scale`, |
38 | 49 | and the standard is `scale=1`. The angle is in degrees $\in |
39 | 50 | [0,360]$. The position relative to the centre of the page is given by |
40 | x and y offsets `xoff and `yoff`. | |
51 | x and y offsets `xoff` and `yoff`. | |
41 | 52 | |
42 | 53 | |
43 | 54 | |
44 | 55 | ## Genesis |
45 | 56 | |
46 | The latex-coffee package. | |
57 | The latex-coffee package. | |
47 | 58 | |
48 | 59 | by Hanno Rein, Cambridge University |
49 | 60 | |
66 | 77 | |
67 | 78 | Adding more options and compatible with pdflatex |
68 | 79 | |
69 | by Luis Randez, IUMA, University of Zaragoza | |
80 | by Luis Randez, IUMA, University of Zaragoza | |
70 | 81 | |
71 | 82 | http://pcmap.unizar.es/~pilar/ randez@unizar.es |
72 | 83 | |
91 | 102 | http://www.thp.uni-koeln.de/~ses/ |
92 | 103 | |
93 | 104 | |
105 | #### November, 2018 | |
106 | ||
107 | Added random \cofeBleed{} (requires ifthen) and bleed package option | |
108 | ||
109 | added to github | |
110 | ||
111 | by Anthony Mirand | |
112 | ||
113 | https://anthonymirand.github.io/ | |
114 | ||
115 | ||
94 | 116 | ## License |
95 | 117 | |
96 | 118 | MIT License, see LICENSE. |
24 | 24 | % by Sebastian Schmittner |
25 | 25 | % http://www.thp.uni-koeln.de/~ses/ ses@thp.uni-koeln.de |
26 | 26 | % |
27 | % November, 2018 | |
28 | % Added: random bleeding splash \cofeBleed{} (requires ifthen) | |
29 | % Added: package option to put random bleeding splash throughout pages | |
30 | % by Anthony Mirand | |
31 | % https://anthonymirand.github.io anthonypmirand@gmail.com | |
32 | % | |
27 | 33 | |
28 | 34 | |
29 | 35 | \NeedsTeXFormat{LaTeX2e} |
30 | \ProvidesPackage{coffee}[2014/12/17 Coffe Staints Version 5] | |
36 | \ProvidesPackage{coffee}[2014/12/17 Coffe Staints Version 6] | |
31 | 37 | |
32 | 38 | \RequirePackage{kvoptions} |
33 | 39 | |
39 | 45 | \SetupKeyvalOptions{family=coffee,prefix=coffee@} |
40 | 46 | |
41 | 47 | \DeclareBoolOption{onEveryPage} |
48 | \DeclareBoolOption{bleed} | |
42 | 49 | |
43 | 50 | \ProcessKeyvalOptions*\relax |
44 | 51 | |
541 | 548 | }{} |
542 | 549 | |
543 | 550 | |
551 | ||
552 | %generate bleeding cofe splash: | |
553 | \newcommand{\cofeBleed}[7]{ | |
554 | \pgfmathsetmacro{\alpha}{#1 - #7 * \value{depth}} | |
555 | \pgfmathsetmacro{\scale}{#2} | |
556 | \pgfmathsetmacro{\angle}{#3} | |
557 | \pgfmathsetlengthmacro{\xoff}{#4} | |
558 | \pgfmathsetlengthmacro{\yoff}{#5} | |
559 | \pgfmathtruncatemacro{\variety}{#6} | |
560 | ||
561 | \ifthenelse{\variety<2}{ | |
562 | \ifthenelse{\variety=0}{ | |
563 | \cofeAm{\alpha}{\scale}{\angle}{\xoff}{\yoff} | |
564 | }{ | |
565 | \cofeBm{\alpha}{\scale}{\angle}{\xoff}{\yoff} | |
566 | } | |
567 | }{ | |
568 | \ifthenelse{\variety=2}{ | |
569 | \cofeCm{\alpha}{\scale}{\angle}{\xoff}{\yoff} | |
570 | }{ | |
571 | \cofeDm{\alpha}{\scale}{\angle}{\xoff}{\yoff} | |
572 | } | |
573 | } | |
574 | ||
575 | \addtocounter{depth}{1} | |
576 | }%end bleed command | |
577 | ||
578 | ||
579 | ||
580 | \ifthenelse{\boolean{coffee@bleed}}{ | |
581 | %bleed random splash across multiple pages: | |
582 | \RequirePackage{eso-pic} | |
583 | ||
584 | \newcounter{depth}\setcounter{depth}{0} | |
585 | ||
586 | \pgfmathsetmacro{\alpha}{0.9 + 0.1 * rand} | |
587 | \pgfmathsetmacro{\scale}{0.7 + 0.5 * rand} | |
588 | \pgfmathsetmacro{\angle}{360 * rand} | |
589 | \pgfmathsetlengthmacro{\xoff}{rand * 2cm} | |
590 | \pgfmathsetlengthmacro{\yoff}{rand * 5cm} | |
591 | ||
592 | \pgfmathtruncatemacro{\variety}{4 * rand} | |
593 | \pgfmathsetmacro{\bleed}{0.1 + 0.1 * rand} | |
594 | ||
595 | \AddToShipoutPicture{\cofeBleed{\alpha}{\scale}{\angle}{\xoff}{\yoff}{\variety}{\bleed}} | |
596 | }{} | |
597 | ||
598 | ||
544 | 599 | \endinput⏎ |
0 | 0 | \documentclass{article} |
1 | \usepackage[onEveryPage]{coffee} | |
1 | \usepackage[bleed]{coffee} | |
2 | 2 | |
3 | 3 | |
4 | 4 | \usepackage{verbatim} |
53 | 53 | \usepackage[onEveryPage]{coffee} |
54 | 54 | \end{verbatim} |
55 | 55 | |
56 | \medskip | |
57 | Since version 6, you may also use | |
58 | \begin{verbatim} | |
59 | \cofeBleed{alpha}{scale}{angle}{xoff}{yoff}{bleed}{variety} | |
60 | \end{verbatim} | |
61 | to place a \texttt{variety} $\in [0,4]$ with random parameters on the current | |
62 | page. There is now also a package option to put a bleeding coffee throughout the pages like | |
63 | \begin{verbatim} | |
64 | \usepackage[bleed]{coffee} | |
65 | \end{verbatim} | |
66 | ||
56 | 67 | |
57 | 68 | \section{Copyright} |
58 | 69 | 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. |