summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/typogrid/testtypogrid.tex
blob: 532dbb142a018d03dce14208c44ba834d91b98db (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
49
50
51
52
53
\documentclass[draft,a4paper]{article}
%\usepackage[columns=4,headings=false,margin=false]{typogrid}
\usepackage[columns=4,colorgrid]{typogrid}
\usepackage[dvips]{geometry}
\flushbottom
\long\def\text{This is a sample text without any meaning. It contains
  some arbitrary text. But I don't know more. I really have no idea
  what I could now write. This is the next try to build a new
  sentence. Somehow, I have to fill the page with arbitrary text.\par}

\pagestyle{headings}

\begin{document}
\text
\text
\text
\text
\text
\section{Test}
\text

\noindent\rule{\gridwidth}{2pt}

\text
\text
\marginpar[This is left margin text.]{This is right margin text.}
\text
\text
\text
\text
\text
\text
\typogridsetup{columns=6,margin=false}%
\text

\noindent\rule{\gridwidth}{2pt}

\text
\text
\text
\text
\text
\text
\text
\begin{figure}
  \centering
  \thicklines
  \framebox[2\gridwidth][c]{Hello}%
  \caption{A figure fitting into the grid}%
  \label{fig:grid}%
\end{figure}

\end{document}