summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/xput/doc/example-text.tex
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2022-12-20 03:01:10 +0000
committerNorbert Preining <norbert@preining.info>2022-12-20 03:01:10 +0000
commitb1e1420cbf53db6acb48b1a88e8b16904f238db2 (patch)
tree1c27c3466baeb4cc563a2097d412a1d13c344f51 /macros/latex/contrib/xput/doc/example-text.tex
parent8e3f2f40eaf97ca4b3f8023f4c58bdcd98f63e63 (diff)
CTAN sync 202212200301
Diffstat (limited to 'macros/latex/contrib/xput/doc/example-text.tex')
-rw-r--r--macros/latex/contrib/xput/doc/example-text.tex53
1 files changed, 53 insertions, 0 deletions
diff --git a/macros/latex/contrib/xput/doc/example-text.tex b/macros/latex/contrib/xput/doc/example-text.tex
new file mode 100644
index 0000000000..421532418e
--- /dev/null
+++ b/macros/latex/contrib/xput/doc/example-text.tex
@@ -0,0 +1,53 @@
+%%
+%% Copyright (C) 2022 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{xput}
+\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}