Example: Graph paper

Published 2012-11-18 | Author: Benjamin Abel

A little document that permits to draw a graph paper for students.

Download as: [PDF] [TEX]

Graph paper

Do you have a question regarding this example, TikZ or LaTeX in general? Just ask in the LaTeX Forum.
Oder frag auf Deutsch auf TeXwelt.de. En français: TeXnique.fr.

% Graph paper
% Author: Benjamin Abel
\documentclass{article}
\usepackage{geometry}
\geometry{hmargin=1cm,vmargin=1cm}
\usepackage{tikz}
\def\width{18}
\def\hauteur{13}

\begin{document}

\begin{tikzpicture}[x=1cm, y=1cm, semitransparent]
\draw[step=1mm, line width=0.1mm, black!30!white] (0,0) grid (\width,\hauteur);
\draw[step=5mm, line width=0.2mm, black!40!white] (0,0) grid (\width,\hauteur);
\draw[step=5cm, line width=0.5mm, black!50!white] (0,0) grid (\width,\hauteur);
\draw[step=1cm, line width=0.3mm, black!90!white] (0,0) grid (\width,\hauteur);
\end{tikzpicture}

\end{document}

Comments

  • #1 David Fokkema, March 15, 2013 at 8:07 p.m.

    Excellent! So simple, yet so useful! I've used this to replace photocopied pieces of graph paper in high school tests.

Adding comments is currently not enabled.