diff options
Diffstat (limited to 'macros/latex/contrib/pagelayout/doc/example-text.tex')
-rw-r--r-- | macros/latex/contrib/pagelayout/doc/example-text.tex | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/macros/latex/contrib/pagelayout/doc/example-text.tex b/macros/latex/contrib/pagelayout/doc/example-text.tex new file mode 100644 index 0000000000..82376d1abc --- /dev/null +++ b/macros/latex/contrib/pagelayout/doc/example-text.tex @@ -0,0 +1,53 @@ +%% +%% Copyright (c) 2022-2023 by Friedemann Bartels +%% +%% This file may be distributed and/or modified under the +%% conditions of the LaTeX Project Public License, either +%% version 1.3c of this license or (at your option) any later +%% version. The latest version of this license is in: +%% +%% http://www.latex-project.org/lppl.txt +%% +%% and version 1.3c or later is part of all distributions of +%% LaTeX version 2008/05/04 or later. +%% + +\documentclass{pagelayout} +\usepackage{lipsum} + +\pagewidth=15cm +\pageheight=15cm +\gutter=10mm + +\setgrid{ + {{1}{1}} +} + +\begin{document} + + \page{ + \text[breakable, name=lorem]{ + \lipsum[2-3] + \par + \lipsum[4] + } + \usetext[lorem] + } + + \page{ + \usetext[lorem] + \tcbset{ + boxrule=1mm, + boxsep=1mm,left=2mm,right=2mm,top=2mm,bottom=2mm, + colback=yellow, + colframe=red!75!black, + opacityframe=1, + opacityback=1, + arc=1mm + } + \text{ + Text boxes use the package tcolorbox, so you can style these with the tcolorbox macro \texttt{tcbset} + } + } + +\end{document} |