summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/typogrid/testtypogrid.tex
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
committerNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
commite0c6872cf40896c7be36b11dcc744620f10adf1d (patch)
tree60335e10d2f4354b0674ec22d7b53f0f8abee672 /macros/latex/contrib/typogrid/testtypogrid.tex
Initial commit
Diffstat (limited to 'macros/latex/contrib/typogrid/testtypogrid.tex')
-rw-r--r--macros/latex/contrib/typogrid/testtypogrid.tex53
1 files changed, 53 insertions, 0 deletions
diff --git a/macros/latex/contrib/typogrid/testtypogrid.tex b/macros/latex/contrib/typogrid/testtypogrid.tex
new file mode 100644
index 0000000000..532dbb142a
--- /dev/null
+++ b/macros/latex/contrib/typogrid/testtypogrid.tex
@@ -0,0 +1,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}