Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

is there a class or template to make a LaTeX page look like a math-ruled notebook/pad page? Thanks.

share|improve this question

1 Answer 1

up vote 14 down vote accepted

You can do it by using TikZ and the background package (needs two runs to work correctly):

\documentclass{scrartcl}
\usepackage[margin=25mm]{geometry}
\usepackage{tikz}
\usepackage{lipsum}
\usepackage{background}

\SetBgContents%
{   \begin{tikzpicture}[remember picture, overlay]
    \draw [line width=0.3pt,color=gray,step=0.5cm] (current page.south west) grid (current page.north east);
    \end{tikzpicture}
}
\SetBgScale{1}
\SetBgAngle{0}

\begin{document}

\lipsum[1-14]

\end{document}

enter image description here

share|improve this answer
    
From the version 2.0 of background there's a new syntax for the options; your settings can be written as \backgroundsetup{ contents= {\begin{tikzpicture}[remember picture, overlay] \draw [line width=0.3pt,color=gray,step=0.5cm] (current page.south west) grid (current page.north east); \end{tikzpicture} } scale=1, angle=0} (the \SetBg... family of commands can still be used with the new version). –  Gonzalo Medina Aug 24 '12 at 0:14
2  
There's no need to explicitly load tikz; the background package internally loads it if the user hasn't loaded before. –  Gonzalo Medina Aug 24 '12 at 0:15
    
@GonzaloMedina: Thanks for the info about the loading, and I'm aware there's a new version. The MiKTeX updater does not yet have it, and I was to lazy to install it manually. Great update, it will keep me from looking up the commands every time I use it :) –  Tom Bombadil Aug 24 '12 at 0:19

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.