I'm looking for a way to inset an entire paragraph and add a vertical line to the left of it with some vertical text in the middle (text need not be a variable, there's only going to be 3 or 4 different words in total):

enter image description here

I have no idea where to start looking. Should I use a table and a Tikz image in the first column? Some sort of mini-page? Is there a package that already does this? I'm using the framed package with the leftbar environment at the moment, but it doesn't allow me to insert some text into the middle of the bar.

The paragraphs will differ in height, but they'll never span multiple pages so 'in the middle' is a pretty easily defined property.

ps. This is pretty close, but not quite.

  • 1
    Please always provide a minimal working example i.e. a complete, minimal document which sets the problem up and gives people something to work from. You can use the packages lipsum, kantlipsum or blindtext for 'dummy' text.
    – cfr
    Commented Feb 21, 2016 at 3:02

2 Answers 2


With help of TikZ:

enter image description here



paragraph/.style = {inner sep=0pt,
                    text width=\textwidth-\baselineskip}
\node (p1) [paragraph] {#2};
\path ([xshift=-0.75\baselineskip] p1.south west) coordinate (p2)
            -- node (p3) [sloped,font=\sffamily] {#1} (p2 |- p1.north);
\draw[very thick] (p2) -- (p3.west) (p3.east) -- (p2 |- p1.north);




Without the help of TikZ:

enter image description here


\noindent\hfill{\color{gray!50}\vrule width 2pt}\hspace{-2ex}%
\rotatebox[origin=c]{90}{\color{cyan}\sffamily\bfseries #1}}\hfill%

\labelpar{Some text}{\lipsum[2]}

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .