summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/fullminipage/fullminipage_test.tex
blob: 2f83b7b5800a53b021982e6c87c8eb2731328ccb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
\documentclass[a4paper,10pt,BCOR=10mm,twoside]{scrartcl}

\parskip=10mm

\usepackage{fullminipage}
\usepackage{xcolor}

\newdimen\mydimenkern \mydimenkern=0pt
\newdimen\mydimensize \mydimensize=1pt
\newcount\mycount \mycount=0

\begin{document}

\begin{fullminipage}
  \loop\ifnum\mycount<5500
    x
    \advance\mycount by1
  \repeat
\end{fullminipage}

\begin{fullminipage}[top=1cm,left=1cm,right=1cm,bottom=1cm]
  upper left\hfill upper right
  \vfill
  \centering
  center\\
  (all margins: 1cm)
  \vfill
  lower left\hfill lower right
\end{fullminipage}

\begin{fullminipage}[top=1cm,left=1cm,right=1cm,bottom=1cm]
  \rule{\hsize}{\vsize}
\end{fullminipage}

\begin{fullminipage}[bgcolor]
  \color{white}%
  \loop\ifnum\mycount<14
    \par\nointerlineskip\leavevmode
    \kern\mydimenkern\rule{\mydimensize}{\mydimensize}%
    \advance\mydimenkern by\mydimensize
    \mydimensize=1.5\mydimensize
    \advance\mycount by1
  \repeat
  \vfill
  \rule{3pt}{3pt}\hfill\rule{0.96\hsize}{3pt}\hfill\rule{3pt}{3pt}
\end{fullminipage}

\end{document}