diff options
author | Norbert Preining <norbert@preining.info> | 2023-01-24 03:02:57 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2023-01-24 03:02:57 +0000 |
commit | b06c6695162b493aeec3b594c6beb518c15c98ba (patch) | |
tree | 0c1dc3cfc73ea789d6bdc4673d776f3ef652d6d8 /macros/latex/contrib/pagelayout/doc/example-borders-and-shadows.tex | |
parent | 4451a2090261307c963209bc65fea9fde4eceeea (diff) |
CTAN sync 202301240302
Diffstat (limited to 'macros/latex/contrib/pagelayout/doc/example-borders-and-shadows.tex')
-rw-r--r-- | macros/latex/contrib/pagelayout/doc/example-borders-and-shadows.tex | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/macros/latex/contrib/pagelayout/doc/example-borders-and-shadows.tex b/macros/latex/contrib/pagelayout/doc/example-borders-and-shadows.tex new file mode 100644 index 0000000000..33c0b14e65 --- /dev/null +++ b/macros/latex/contrib/pagelayout/doc/example-borders-and-shadows.tex @@ -0,0 +1,52 @@ +%% +%% 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[draft]{pagelayout} +\usepackage{lipsum} + +\pagewidth=15cm +\pageheight=15cm +\gutter=10mm + +\newborder{my border}{width=2mm, color=magenta, radius=5mm} +\newshadow{my shadow}{size=5, color=magenta, opacity=1} + +\begin{document} + + \template{ff-ff}{ + \graphic[ + border=my border, + border radius=10mm + ]{1x1} + + \graphic[ + border=my border, + shadow=my shadow + ]{1x1} + + \text[ + shadow=my shadow, + shadow color=black, + shadow opacity=0.2 + ]{\lipsum[1][1-5]} + + \graphic[ + shadow size=5, + shadow opacity=0.6, + shadow xshift=1mm, + shadow yshift=1mm + ]{1x1} + } + +\end{document} |