Debian Codegraph @

texmf-dist/doc/latex/pagelayout/quickstart.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,grid,graphpaper,preflight,optimize={density=600}]{pagelayout}
16 \usepackage{microtype}
17 \usepackage{fontspec}
18
19 \setmainfont{Menlo}
20
21 \pagewidth=5.5cm
22 \pageheight=4cm
23 \margin=5mm
24 \gutter=5mm
25 \bleed=2mm
26 \setpagecolor{white}
27
28 \begin{document}
29 \fontsize{4pt}{4.8pt}\selectfont
30
31 % page
32 \page{
33 \setgrid{
34 {{}{}}
35 }
36 \text[breakable]{
37 Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
38 Ut purus elit, vestibulum ut, placerat ac, adipiscing vitae, felis.
39 Curabitur dictum gravida mauris.
40 Nam arcu libero, nonummy eget, consectetuer id, vulputate a, magna.
41 Donec vehicula augue eu neque.
42 Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas.
43 Mauris ut leo. Cras viverra metus rhoncus sem.
44 Nulla et lectus vestibulum urna fringilla ultrices.
45 Phasellus eu tellus sit amet tortor gravida placerat.
46 }
47 \usetext
48 }
49
50 % template
51 \newtemplate{my template}{
52 \setgrid{
53 {[2]{3!}{2!}}
54 }
55 \placeholder{0 0 1 1}
56 \placeholder{0 1 1 2}
57 }
58 \template{my template}{}
59
60 % graphic
61 \nogrid
62 \newborder{my border}{width = 1mm, color = white, radius = 5mm}
63 \newshadow{my shadow}{size = 7}
64 \template{my template}{
65 \graphic[
66 scale=1.05,
67 hpos=0,
68 vpos=0.3,
69 shadow=my shadow,
70 border=my border,
71 border radius=0mm
72 ]{kopi}
73 }
74
75 \end{document}