[OS X TeX] Background images
Tim Brophy
timbrophy at mac.com
Thu Feb 16 09:54:01 EST 2017
I received the following on Stack Exchange and it does what I want with a little tweaking. Thanks for the suggestions.
Tim
\documentclass{report}
\usepackage{everypage}
\usepackage{tikzpagenodes}
\usetikzlibrary{calc}
\usepackage{lipsum}% MWE only
\AddEverypageHook{\tikz[remember picture,overlay]{%
\ifodd\value{page}\draw ($(current page text area.north west)+(-0.5\marginparsep,0pt)$)
--
($(current page text area.south west)+(-0.5\marginparsep,0pt)$)
;
\else\draw ($(current page text area.north east)+(0.5\marginparsep,0pt)$)
--
($(current page text area.south east)+(0.5\marginparsep,0pt)$)
;
\fi}}
\begin{document}
\lipsum [1-16]
\end{document}
> On 16 Feb 2017, at 14:36, b.a.lee at rocketmail.com wrote:
>
> Sorry, I mean \vrule.
>
> Sent from Yahoo Mail on Android
>
> On Thu, 16 Feb 2017 at 0:16, Alain Schremmer
> <schremmer.alain at gmail.com> wrote:
> Just a thought: have you looked at tcolorbox? (e.g. Border Line Option Keys)
> --schremmer
>
>
> On , at 2017 Feb 15,10:45 AM, Tim Brophy wrote:
>
> > 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?
> >
> > Thanks in advance,
> >
> > Tim Brophy
> > ----------- Please Consult the Following Before Posting -----------
> > TeX FAQ: http://www.tex.ac.uk/faq
> > List Reminders and Etiquette: https://www.esm.psu.edu/~gray/tex/
> > List Archives: http://dir.gmane.org/gmane.comp.tex.macosx
> > https://email.esm.psu.edu/pipermail/macosx-tex/
> > TeX on Mac OS X Website: http://mactex-wiki.tug.org/
> > List Info: https://email.esm.psu.edu/mailman/listinfo/macosx-tex
>
>
>
> ----------- Please Consult the Following Before Posting -----------
> TeX FAQ: http://www.tex.ac.uk/faq
> List Reminders and Etiquette: https://www.esm.psu.edu/~gray/tex/
> List Archives: http://dir.gmane.org/gmane.comp.tex.macosx
> https://email.esm.psu.edu/pipermail/macosx-tex/
> TeX on Mac OS X Website: http://mactex-wiki.tug.org/
> List Info: https://email.esm.psu.edu/mailman/listinfo/macosx-tex
> ----------- Please Consult the Following Before Posting -----------
> TeX FAQ: http://www.tex.ac.uk/faq
> List Reminders and Etiquette: https://www.esm.psu.edu/~gray/tex/
> List Archives: http://dir.gmane.org/gmane.comp.tex.macosx
> https://email.esm.psu.edu/pipermail/macosx-tex/
> TeX on Mac OS X Website: http://mactex-wiki.tug.org/
> List Info: https://email.esm.psu.edu/mailman/listinfo/macosx-tex
More information about the MacOSX-TeX
mailing list