With the mdframed
package one can draw nice lines on the left or right of the text. For example:
\documentclass[a4paper,twoside,11pt]{article}
\usepackage[framemethod=TikZ]{mdframed}
\mdfdefinestyle{MDFStyGrayBar}{%
linecolor=gray,
backgroundcolor=white,
%
outerlinewidth=5pt,
%
topline=false,
bottomline=false,
rightline=false,
leftline=true,
%
innertopmargin=4pt, %\baselineskip
innerbottommargin=8pt,
innerrightmargin=3pt,
innerleftmargin=3pt,
%
skipabove=\topskip,
skipbelow=\topskip
}
\begin{document}
\noindent Some normal text.
\begin{mdframed}[style=MDFStyGrayBar]
Some text with a vertical bar on the left.
\end{mdframed}
\end{document}
looks like this:
But what if I want the line to be on the inner side in a double-sided ("twoside") document? That is, on the left for a right-page and on the right for a left-page? This should also work, when the frame extends over several pages. Is that possible with the mdframed package?
Thanks for your help!
geometry
.)mdframed
. But cross-linking answers in comments seems to me to increase the utility of TeX.SX in general because future readers may decide the linked-to answers were actually the one(s) they were looking for. (It's not like I was voting to close or anything....)