Debian Codegraph @

texmf-dist/doc/latex/pagelayout/example-template.tex

raw
1 %%
2 %% Copyright (c) 2022-2024 by Friedemann Bartels
3 %%
4 %% This file may be distributed and/or modified under the
5 %% conditions of the LaTeX Project Public License, either
6 %% version 1.3c of this license or (at your option) any later
7 %% version. The latest version of this license is in:
8 %%
9 %% http://www.latex-project.org/lppl.txt
10 %%
11 %% and version 1.3c or later is part of all distributions of
12 %% LaTeX version 2008/05/04 or later.
13 %%
14
15 \documentclass[draft]{pagelayout}
16 \usepackage{lipsum}
17
18 \pagewidth=15cm
19 \pageheight=15cm
20 \gutter=10mm
21
22 \begin{document}
23
24 \template[gutter=5mm]{so-gs}{
25 \text{
26 This is a generic template.
27 }
28 }
29
30 \newtemplate{my template}{
31 \setgrid[height=\height-20mm]{
32 {[1]{1!}{1}}
33 {[1]{1!}{1}}
34 }
35 \placeholder{0 0 1 1}
36 \placeholder{1 0 2 1}
37 \placeholder{0 1 2 2}
38 }
39
40 \template[outer margin=10mm]{my template}{
41 \text{
42 This is a custom template.
43 }
44 }
45
46 \end{document}