Codebase list latex-coffee-stains / 73615c9
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
4 changed file(s) with 100 addition(s) and 114 deletion(s). Raw diff Collapse all Expand all
0 ## Core latex/pdflatex auxiliary files:
10 *.aux
2 *.lof
1 *.dvi
2 *.fdb_latexmk
3 *.fls
34 *.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 # *.pdf
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 *.pdf
6 *.ps
2222 \usepackage[onEveryPage]{coffee}
2323 ```
2424
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:
2637
2738 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:
2940
3041 ```
3142 \cofeAm{alpha}{scale}{angle}{xoff}{yoff}
3748 the transparency factor $\in [0,1]$. The scale factor is `scale`,
3849 and the standard is `scale=1`. The angle is in degrees $\in
3950 [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`.
4152
4253
4354
4455 ## Genesis
4556
46 The latex-coffee package.
57 The latex-coffee package.
4758
4859 by Hanno Rein, Cambridge University
4960
6677
6778 Adding more options and compatible with pdflatex
6879
69 by Luis Randez, IUMA, University of Zaragoza
80 by Luis Randez, IUMA, University of Zaragoza
7081
7182 http://pcmap.unizar.es/~pilar/ randez@unizar.es
7283
91102 http://www.thp.uni-koeln.de/~ses/
92103
93104
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
94116 ## License
95117
96118 MIT License, see LICENSE.
2424 % by Sebastian Schmittner
2525 % http://www.thp.uni-koeln.de/~ses/ ses@thp.uni-koeln.de
2626 %
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 %
2733
2834
2935 \NeedsTeXFormat{LaTeX2e}
30 \ProvidesPackage{coffee}[2014/12/17 Coffe Staints Version 5]
36 \ProvidesPackage{coffee}[2014/12/17 Coffe Staints Version 6]
3137
3238 \RequirePackage{kvoptions}
3339
3945 \SetupKeyvalOptions{family=coffee,prefix=coffee@}
4046
4147 \DeclareBoolOption{onEveryPage}
48 \DeclareBoolOption{bleed}
4249
4350 \ProcessKeyvalOptions*\relax
4451
541548 }{}
542549
543550
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
544599 \endinput
00 \documentclass{article}
1 \usepackage[onEveryPage]{coffee}
1 \usepackage[bleed]{coffee}
22
33
44 \usepackage{verbatim}
5353 \usepackage[onEveryPage]{coffee}
5454 \end{verbatim}
5555
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
5667
5768 \section{Copyright}
5869 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.