Skip to content

Instantly share code, notes, and snippets.

@ktychan
Created November 10, 2018 19:25
Show Gist options
  • Save ktychan/80b2df1b5e4140edb64671710d28b7fb to your computer and use it in GitHub Desktop.
Save ktychan/80b2df1b5e4140edb64671710d28b7fb to your computer and use it in GitHub Desktop.
PDF templates
% blank dotted paper
\documentclass[a0,landscape]{a0poster}
\usepackage{background}
\usetikzlibrary{decorations.markings,calc}
\def\Step{0.5} %% separation between dots
\def\Size{0.5pt} %% radius of the dot
\def\Toty{40} %% adjust
\def\Totx{100} %% adjust
\newsavebox{\mybox}
\sbox{\mybox}{%
\begin{tikzpicture}[remember picture]
\foreach \y in {1,2,...,\Toty}{
\foreach \x in {1,2,...,\Totx}
\draw[fill=black,opacity=0.3,shift={(\Step*\x in,\Step*\y in)}] (0,) circle[radius=\Size];
}%
\end{tikzpicture}
}%
\backgroundsetup{
scale=1,
angle=0,
position={current page.center},
contents={%
\begin{tikzpicture}[remember picture,overlay]
\node at (current page.center) {\usebox\mybox};
\end{tikzpicture}%
}%
}%
\begin{document}
\mbox{}
\clearpage
\mbox{}
\end{document}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment