How can I insert a vertical line through a whole page to separate the text and the margin notes?
|
|
The following code adds the rule only on pages with marginpars. If they appear on both sides (using a mix of Customization possibilities are the rule itself (color, widths, etc) via
Explanation:
We patch As a result we get on the first page:
while page 3 shows rules on both sides:
A variationAs an alternative one could produce lines matching just the size of the marginals. Most of the previous code ideas could be reused only this time we do everything inside of
In that case we would get output like this:
|
|||||
|
|
Here is a solution adding a bar to all pages (unless specified otherwise). The bar is typeset as a background picture, with the package About lengths, you will see a good example of spaghetti code, showing that I don't know half the lengths latex defines. The code works, but is definitely not minimal.
In case you want some page to be bar-less, simply insert The result in
The result in
(Sorry for the poor quality of the screenshots, I'll try to make better ones later) |
||||
|
|








