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.

This could be a too obvious question.

I'm trying to lay things out on a page and I'm having to recompile a lot. I'd like to layout a grid using \TPHorizmodule and \TPVertmodule (from the textpos package) as the reference which will help me lay out my document. I've seen some 'grid' suggestions but I'm struggling to understand them.

Any help gratefully received.

share|improve this question
    
Perhaps this question can be of interest, too. –  Thorsten Donig Dec 1 '12 at 17:51
add comment

1 Answer

up vote 6 down vote accepted

Here's one possibility using TikZ:

\documentclass{article}
\usepackage{textpos}
\usepackage{tikz}
\usepackage{lipsum}% just to generate text for the example

\newcommand\Mygrid{%
\tikz[
  remember picture,
  overlay,
  yscale=-1,
  xstep=\TPHorizModule,ystep=\TPVertModule,
  yshift=13pt,xshift=4pt]
  \draw (current page.north west) grid (current page.south east);}

\begin{document}
\Mygrid
\lipsum[1-5]
\end{document}

enter image description here

share|improve this answer
add comment

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.