Debian Codegraph @

texmf-dist/doc/latex/gridpapers/README.md

raw
1 # The *gridpapers* package
2 Make your own quadrille, graph, hex, etc. paper! Uses the [PGF/TikZ](https://en.wikipedia.org/wiki/PGF/TikZ) package for LaTeX, which should be part of any modern TeX installation. All colors and spacing are customizable.
3
4 There are .tex files in the examples/
5 directory to help get you started with customization.
6 Each tex file has an almost-empty body, with a `\usepackage` statement
7 that you can customize. For example,
8 examples/engineer-pad.tex looks like this:
9 ```latex
10 \documentclass{article}
11 \usepackage[pattern=majmin, colorset=engineer]{gridpapers}
12 \begin{document}
13 \thispagestyle{empty}
14 ~
15 \end{document}
16 ```
17 (The `~` in the body forces a non-empty body, or else latex wouldn't
18 generate a PDF).
19
20 Note: This package is distinct from a different package with a similar
21 name, [graphpaper (on CTAN)](https://www.ctan.org/pkg/graphpaper).
22
23 Installation
24 ------------
25 If `gridpapers` is already provided in your TeX distribution, skip
26 this section. You should be able to install `gridpapers` [from the
27 CTAN](https://www.ctan.org/pkg/gridpapers) via your distribution's
28 utility (e.g. the TeX Live Utility). Alternatively, you can get the
29 package from the [source repository on
30 GitHub](https://github.com/mcnees/LaTeX-Graph-Paper). If you do not
31 want to do a "full" installation, just copy gridpapers.sty into the
32 same directory as your LaTeX source.
33
34 Usage
35 -----
36
37 All the configuration happens via the `\usepackage` command. The
38 current valid options are:
39
40 * `pattern=<name>`:
41 Valid pattern names are:
42 `std,stdeight,majmin,dot,hex,tri,iso,lightcone,ruled,doubleruled`. Default
43 is `std`. Patterns come with default page geometry (size and margins;
44 see `geometry`), and default 'fullness' (whether they fill the page or
45 not; see options `fullpage` and `textarea`).
46 * `colorset=<name>`:
47 Valid color preset names are:
48 `std,precocious,brickred,engineer,plumpad`. Default is `std`. A
49 preset determines the `majorcolor`, `minorcolor`, and `bgcolor` all at
50 once. But, you can start from a preset and then override some colors.
51 * `majorcolor=<color>`: Override the preset "major" color. This can
52 be a named color, or using the syntax from xcolor to mix colors
53 together.
54 * `minorcolor=<color>`: Override the preset "minor" color. As above.
55 * `bgcolor=<color>`: Override the preset background color. As above.
56 * `patternsize=<length>`: Override the preset pattern size. The
57 meaning of this length argument is different for each pattern; see
58 PDF documentation for full details..
59 * `dotsize=<length>`: Controls the size of the dots themselves for
60 `pattern=dot`. Default: `.7pt`
61 * `fullpage`: Make the pattern fill the whole page.
62 * `textarea`: Make the pattern fill only the text area of the
63 document. At most one of the `fullpage` or `textarea` can be
64 specified. If one is specified, it will override the default
65 'fullness' setting of the pattern.
66 * `geometry={<geometry spec>}`: Page geometry specification, using the
67 syntax of the geometry package. If the geometry package was loaded
68 before gridpapers, this option will be ignored. This specification
69 will override the pattern's default page geometry.
70
71 For example, let's say you want to use the `tri` pattern, which by
72 default fills the page. But you want it to fill just the textarea of
73 an A4 page with 2cm margins, and you want the triangles to be .75cm long.
74 Finally, you like the colors of the `engineer` set, but want a white
75 background. Then you would write:
76 ```latex
77 \usepackage[pattern=tri,
78 patternsize=0.75cm,
79 textarea,
80 colorset=engineer,
81 bgcolor=white,
82 geometry={a4paper, margin=2cm}]{gridpapers}
83 ```
84
85 Gallery
86 -------
87
88 Some example styles:
89
90 ![Standard](https://raw.githubusercontent.com/mcnees/LaTeX-Graph-Paper/screenshots/std.jpg "Standard")
91
92 ![Quad](https://raw.githubusercontent.com/mcnees/LaTeX-Graph-Paper/screenshots/quad.jpg "Quadrille")
93
94 ![Hex](https://raw.githubusercontent.com/mcnees/LaTeX-Graph-Paper/screenshots/hex.jpg "Hex")
95
96 ![Dots](https://raw.githubusercontent.com/mcnees/LaTeX-Graph-Paper/screenshots/dot.jpg "Dots")
97
98 ![Light cone](https://raw.githubusercontent.com/mcnees/LaTeX-Graph-Paper/screenshots/lightcone.jpg "Light cone")
99
100 ![Precocious Engineer](https://raw.githubusercontent.com/mcnees/LaTeX-Graph-Paper/screenshots/rosie.png "Precocious Engineer color scheme")
101
102 ![Hex Engineer](https://raw.githubusercontent.com/mcnees/LaTeX-Graph-Paper/screenshots/hexengineer.png "Hex grid with Engineering Pad color scheme")
103
104 Credits
105 -------
106
107 This package was created by [Robert McNees](http://jacobi.luc.edu/)
108 with additional contributions from [Leo
109 C. Stein](http://duetosymmetry.com/), and is maintained by both. This
110 material is subject to the [LaTeX Project Public License
111 1.3c](https://www.ctan.org/license/lppl1.3), (c) 2017-2021. The
112 hexagon pattern code is [due to Philippe
113 Goutet](https://tex.stackexchange.com/questions/6019/drawing-hexagons/6128#6128).