Debian Codegraph @

texmf-dist/doc/latex/pagelayout/example-text.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{pagelayout}
16 \usepackage{lipsum}
17
18 \pagewidth=15cm
19 \pageheight=15cm
20 \gutter=10mm
21
22 \setgrid{
23 {{1}{1}}
24 }
25
26 \begin{document}
27
28 \page{
29 \text[breakable, name=lorem]{
30 \lipsum[2-3]
31 \par
32 \lipsum[4]
33 }
34 \usetext[lorem]
35 }
36
37 \page{
38 \usetext[lorem]
39 \tcbset{
40 boxrule=1mm,
41 boxsep=1mm,left=2mm,right=2mm,top=2mm,bottom=2mm,
42 colback=yellow,
43 colframe=red!75!black,
44 opacityframe=1,
45 opacityback=1,
46 arc=1mm
47 }
48 \text{
49 Text boxes use the package tcolorbox, so you can style these with the tcolorbox macro \texttt{tcbset}
50 }
51 }
52
53 \end{document}