Debian Codegraph @

texmf-dist/doc/latex/flowfram/flowfram-manual-examples/flowfram-manual-example005.tex

raw
1 % This file is embedded in flowfram-manual.pdf
2 % Example 5 Rules
3 % Label: "ex:rules"
4 % arara: pdflatex
5 \documentclass[12pt]{article}
6 \pagestyle{empty}
7 \usepackage[a4paper,margin=2cm]{geometry}
8 \usepackage{flowfram}
9 \usepackage{lipsum}% dummy text
10 \usepackage{tikz}
11 \usetikzlibrary{decorations.pathmorphing}
12
13 \twocolumnStop{1in}
14
15 \renewcommand{\ffvrule}[3]{%
16 \hfill
17 \tikz{%
18 \draw[decorate,decoration=zigzag,line width=#2,yshift=-#1]
19 (0,0) -- (0pt,#3);
20 }%
21 \hfill \mbox{}%
22 }
23
24 \insertvrule{flow}{1}{flow}{2}
25
26 \renewcommand{\ffhrule}[3]{%
27 \tikz{%
28 \draw[decorate,decoration=zigzag,line width=#3,xshift=-#1]
29 (0,0) -- (#2,0pt);
30 }%
31 }
32
33 \inserthrule{static}{1}{flow}{1}
34 \begin{document}
35 \setstaticcontents{1}{Top Frame} \lipsum[1-5]
36 \end{document}