summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/vruler/vruler-example.tex
diff options
context:
space:
mode:
Diffstat (limited to 'macros/latex/contrib/vruler/vruler-example.tex')
-rw-r--r--macros/latex/contrib/vruler/vruler-example.tex34
1 files changed, 34 insertions, 0 deletions
diff --git a/macros/latex/contrib/vruler/vruler-example.tex b/macros/latex/contrib/vruler/vruler-example.tex
new file mode 100644
index 0000000000..75569d1566
--- /dev/null
+++ b/macros/latex/contrib/vruler/vruler-example.tex
@@ -0,0 +1,34 @@
+% Application example, for the use of vruler.sty
+
+\documentclass[twoside]{article}
+\usepackage{vruler}
+ \setlength{\textwidth}{2.5in}
+ \setlength{\oddsidemargin}{3cm}
+ \setlength{\evensidemargin}{6cm}
+ \overfullrule=0pt \parindent=0pt
+\begin{document}
+\advance\textwidth 3cm %2cm is better for plain TeX
+\setvruler [][][][][][\textwidth]
+ This is a simple example, in which we have
+ placed vertical rulers on the left for
+ odd numbered pages and on the right for
+ even numbered pages. \newpage
+
+ This is the second page and is thus an even
+ numbered page. Please see that the vertical
+ ruler is now on the right, and is approximately
+ of the same distance from the text margin as
+ the vertical ruler on the first page from
+ the left margin there. \newpage
+\unsetvruler
+ The following pages, in fact only this page, will
+ not be appended with the vertical rulers.\newpage
+\setvruler[][\rulercount]
+ This page will be added with the vertical ruler again.
+ Here the numbering marking of the vertical ruler picks
+ up where it was left. Nevertheless, we may start with
+ any new number. \newpage
+
+ This is another page. Please see that both this and
+ the previous pages have vruler on the left side.
+\end{document}