<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">I was curious and tried to run your code but got an error:<div><br></div><blockquote class="webkit-indent-blockquote" style="margin: 0 0 0 40px; border: none; padding: 0px;"><div>Runaway argument?</div><div>{\tikz [remember picture,overlay]{</div><div>./MarginRules.tex:10: Paragraph ended before \AddEverypageHook was complete.</div><div><to be read again> </div><div>                   \par </div><div>l.10 </div><div>     </div><div>? </div><div>Process aborted</div></blockquote><div><br></div><div>Now I am even more curious! </div><div><br></div><div>Regards</div><div>--schremmer</div><div><br></div><div><br></div><div><br><div><div>On , at 2017 Feb 16,9:54 AM, Tim Brophy wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>I received the following on Stack Exchange and it does what I want with a little tweaking. Thanks for the suggestions.<br><br>Tim<br><br>\documentclass{report}<br>\usepackage{everypage}<br>\usepackage{tikzpagenodes}<br>\usetikzlibrary{calc}<br>\usepackage{lipsum}% MWE only<br><br><br><br>\AddEverypageHook{\tikz[remember picture,overlay]{%<br><br><br>\ifodd\value{page}\draw ($(current page text area.north west)+(-0.5\marginparsep,0pt)$)<br><br>    -- <br>($(current page text area.south west)+(-0.5\marginparsep,0pt)$)<br>;<br><br>\else\draw ($(current page text area.north east)+(0.5\marginparsep,0pt)$)<br><br>    -- <br>($(current page text area.south east)+(0.5\marginparsep,0pt)$)<br>;<br><br>\fi}}<br><br><br><br>\begin{document}<br>\lipsum [1-16]<br>\end{document}<br><blockquote type="cite">On 16 Feb 2017, at 14:36, <a href="mailto:b.a.lee@rocketmail.com">b.a.lee@rocketmail.com</a> wrote:<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Sorry, I mean \vrule. <br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Sent from Yahoo Mail on Android<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">On Thu, 16 Feb 2017 at 0:16, Alain Schremmer<br></blockquote><blockquote type="cite"><<a href="mailto:schremmer.alain@gmail.com">schremmer.alain@gmail.com</a>> wrote:<br></blockquote><blockquote type="cite">Just a thought: have you looked at tcolorbox? (e.g. Border Line Option Keys)<br></blockquote><blockquote type="cite">--schremmer<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">On , at 2017 Feb 15,10:45 AM, Tim Brophy wrote:<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><blockquote type="cite">I want to have a vertical line to the left of every odd numbered page and to the right of every even numbered page. Is it possible to do this?<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">Thanks in advance,<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">Tim Brophy<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">----------- Please Consult the Following Before Posting -----------<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">TeX FAQ: <a href="http://www.tex.ac.uk/faq">http://www.tex.ac.uk/faq</a><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">List Reminders and Etiquette: <a href="https://www.esm.psu.edu/~gray/tex/">https://www.esm.psu.edu/~gray/tex/</a><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">List Archives: <a href="http://dir.gmane.org/gmane.comp.tex.macosx">http://dir.gmane.org/gmane.comp.tex.macosx</a><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">               <a href="https://email.esm.psu.edu/pipermail/macosx-tex/">https://email.esm.psu.edu/pipermail/macosx-tex/</a><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">TeX on Mac OS X Website: <a href="http://mactex-wiki.tug.org/">http://mactex-wiki.tug.org/</a><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">List Info: <a href="https://email.esm.psu.edu/mailman/listinfo/macosx-tex">https://email.esm.psu.edu/mailman/listinfo/macosx-tex</a><br></blockquote></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">----------- Please Consult the Following Before Posting -----------<br></blockquote><blockquote type="cite">TeX FAQ: <a href="http://www.tex.ac.uk/faq">http://www.tex.ac.uk/faq</a><br></blockquote><blockquote type="cite">List Reminders and Etiquette: <a href="https://www.esm.psu.edu/~gray/tex/">https://www.esm.psu.edu/~gray/tex/</a><br></blockquote><blockquote type="cite">List Archives: <a href="http://dir.gmane.org/gmane.comp.tex.macosx">http://dir.gmane.org/gmane.comp.tex.macosx</a><br></blockquote><blockquote type="cite">                <a href="https://email.esm.psu.edu/pipermail/macosx-tex/">https://email.esm.psu.edu/pipermail/macosx-tex/</a><br></blockquote><blockquote type="cite">TeX on Mac OS X Website: <a href="http://mactex-wiki.tug.org/">http://mactex-wiki.tug.org/</a><br></blockquote><blockquote type="cite">List Info: <a href="https://email.esm.psu.edu/mailman/listinfo/macosx-tex">https://email.esm.psu.edu/mailman/listinfo/macosx-tex</a><br></blockquote><blockquote type="cite">----------- Please Consult the Following Before Posting -----------<br></blockquote><blockquote type="cite">TeX FAQ: <a href="http://www.tex.ac.uk/faq">http://www.tex.ac.uk/faq</a><br></blockquote><blockquote type="cite">List Reminders and Etiquette: <a href="https://www.esm.psu.edu/~gray/tex/">https://www.esm.psu.edu/~gray/tex/</a><br></blockquote><blockquote type="cite">List Archives: <a href="http://dir.gmane.org/gmane.comp.tex.macosx">http://dir.gmane.org/gmane.comp.tex.macosx</a><br></blockquote><blockquote type="cite">               <a href="https://email.esm.psu.edu/pipermail/macosx-tex/">https://email.esm.psu.edu/pipermail/macosx-tex/</a><br></blockquote><blockquote type="cite">TeX on Mac OS X Website: <a href="http://mactex-wiki.tug.org/">http://mactex-wiki.tug.org/</a><br></blockquote><blockquote type="cite">List Info: <a href="https://email.esm.psu.edu/mailman/listinfo/macosx-tex">https://email.esm.psu.edu/mailman/listinfo/macosx-tex</a><br></blockquote><br><br>----------- Please Consult the Following Before Posting -----------<br>TeX FAQ: <a href="http://www.tex.ac.uk/faq">http://www.tex.ac.uk/faq</a><br>List Reminders and Etiquette: <a href="https://www.esm.psu.edu/~gray/tex/">https://www.esm.psu.edu/~gray/tex/</a><br>List Archives: <a href="http://dir.gmane.org/gmane.comp.tex.macosx">http://dir.gmane.org/gmane.comp.tex.macosx</a><br>                <a href="https://email.esm.psu.edu/pipermail/macosx-tex/">https://email.esm.psu.edu/pipermail/macosx-tex/</a><br>TeX on Mac OS X Website: <a href="http://mactex-wiki.tug.org/">http://mactex-wiki.tug.org/</a><br>List Info: <a href="https://email.esm.psu.edu/mailman/listinfo/macosx-tex">https://email.esm.psu.edu/mailman/listinfo/macosx-tex</a><br></div></blockquote></div><br></div></body></html>