Posts

Showing posts with the label Braces

Adding A Large Brace Next To A Body Of Text

Image
Answer : As this is one of the initial, and therefore most visible, incarnations of \tikzmark , I thought it a good idea to update it to an answer using the \tikzmark library. \documentclass{article} %\url{https://tex.stackexchange.com/a/1570/86} \usepackage{tikz} \usetikzlibrary{decorations.pathreplacing,calc,tikzmark} \begin{document} \hfill\tikzmark{right} \begin{itemize} \item First line \item Second line \tikzmark{2nd} \item Third line, which is quite long and seemingly tedious in the extreme \item Fourth line, which isn't as long as the third \tikzmark{4th} \item Fifth line \end{itemize} \begin{tikzpicture}[overlay, remember picture] \node[anchor=base] (a) at (pic cs:2nd) {\vphantom{h}}; % push the mark to the top of the line (ie including ascenders) \node[anchor=base] (b) at (pic cs:4th) {\vphantom{g}}; % push the mark to the bottom of the line (ie including descenders) \draw [decoration={brace,amplitude=0.5em},decorate,ultra thick,gray] (a.north -| {pic cs:right})...