| 1 |
% Application example, for the use of vruler.sty |
| 2 |
|
| 3 |
\documentclass[twoside]{article} |
| 4 |
\usepackage{vruler} |
| 5 |
\setlength{\textwidth}{2.5in} |
| 6 |
\setlength{\oddsidemargin}{3cm} |
| 7 |
\setlength{\evensidemargin}{6cm} |
| 8 |
\overfullrule=0pt \parindent=0pt |
| 9 |
\begin{document} |
| 10 |
\advance\textwidth 3cm %2cm is better for plain TeX |
| 11 |
\setvruler [][][][][][\textwidth] |
| 12 |
This is a simple example, in which we have |
| 13 |
placed vertical rulers on the left for |
| 14 |
odd numbered pages and on the right for |
| 15 |
even numbered pages. \newpage |
| 16 |
|
| 17 |
This is the second page and is thus an even |
| 18 |
numbered page. Please see that the vertical |
| 19 |
ruler is now on the right, and is approximately |
| 20 |
of the same distance from the text margin as |
| 21 |
the vertical ruler on the first page from |
| 22 |
the left margin there. \newpage |
| 23 |
\unsetvruler |
| 24 |
The following pages, in fact only this page, will |
| 25 |
not be appended with the vertical rulers.\newpage |
| 26 |
\setvruler[][\rulercount] |
| 27 |
This page will be added with the vertical ruler again. |
| 28 |
Here the numbering marking of the vertical ruler picks |
| 29 |
up where it was left. Nevertheless, we may start with |
| 30 |
any new number. \newpage |
| 31 |
|
| 32 |
This is another page. Please see that both this and |
| 33 |
the previous pages have vruler on the left side. |
| 34 |
\end{document} |