I use the following mdframed definition:
\newmdenv[
rightline=false, leftline=true,
topline=false, bottomline=false,
innerbottommargin=11pt, innertopmargin=\topskip,
splittopskip=\topskip,
skipbelow=\baselineskip, skipabove=\baselineskip,
innerleftmargin=11pt, innerrightmargin=0,
linewidth=2,font={\sffamily}
]{MarkedC}
to set text in an appendix:
\chapter{This is the Appendix}
\begin{MarkedC}
Lots of text ...
\end{MarkedC}
This works as expected: the text is set in sffamily (to distinguish it from the rest of the document) with a solid line on the left.
Ideally though, I would prefer the MarkedC text to be set in italics, rather than in a different font. How can I achieve this?
\sffamilyby\itshape? – cgnieder Dec 11 '12 at 19:08\emphdidn't work (obviously) and I didn't know about\itshape. – SabreWolfy Dec 11 '12 at 19:09\itshapeis the font switch equivalent to\textit{}, like\emto\emph{}or\bfseriesto\textbf{}. – cgnieder Dec 11 '12 at 19:17