mcnees / LaTeX-Graph-Paper

Make your own quadrille, graph, hex, etc paper! Uses the pgf/TikZ package for LaTeX, which should be part of any modern TeX installation.
Other
457 stars 46 forks source link

Build examples Latest Zip of PDFs

Graph papers in LaTeX: the gridpapers package

Make your own quadrille, graph, hex, etc. paper! Uses the PGF/TikZ package for LaTeX, which should be part of any modern TeX installation. All colors and spacing are customizable.

Once you clone or download the repo, simply run latex twice on the file "graph paper.tex" to produce a pdf. From the command line, type:

pdflatex "graph paper.tex"

There are more example .tex files in the examples directory to help get you started with customization. Each tex file has an almost-empty body, with a \usepackage statement that you can customize. For example, engineer-pad.tex looks like this:

\documentclass{article}
\usepackage[pattern=majmin, colorset=engineer]{gridpapers}
\begin{document}
\thispagestyle{empty}
~
\end{document}

(The ~ in the body forces a non-empty body, or else latex wouldn't generate a PDF).

Note: This package is distinct from a different package with a similar name, graphpaper (on CTAN).

Usage

All the configuration happens via the \usepackage command. The current valid options are:

For example, let's say you want to use the tri pattern, which by default fills the page. But you want it to fill just the textarea of an A4 page with 2cm margins, and you want the triangles to be .75cm long. Finally, you like the colors of the engineer set, but want a white background. Then you would write:

\usepackage[pattern=tri,
  patternsize=0.75cm,
  textarea,
  colorset=engineer,
  bgcolor=white,
  geometry={a4paper, margin=2cm}]{gridpapers}

Gallery

Some example styles:

Standard

Quad

Hex

Dots

Light cone

Precocious Engineer

Hex Engineer

Credits

This package was created by Robert McNees with additional contributions from Leo C. Stein, and is maintained by both. This material is subject to the LaTeX Project Public License 1.3c, (c) 2017-2021. The hexagon pattern code is due to Philippe Goutet.