Latex: stretchable curly braces outside math

前端 未结 6 521
一个人的身影
一个人的身影 2021-02-05 11:38

I am producing some latex beamer slides (but I think it is not a beamer specific question per se).

I have the following:

\\begin{itemize}
\\item Issue1
\         


        
6条回答
  •  故里飘歌
    2021-02-05 12:05

    Here is Geoffs code with some small adaptions (just for other beamer users)

    \begin{frame}{Example}
    
    \begin{itemize}
    \item The long Issue 1
    \tikz[remember picture] \node[coordinate,yshift=0.7em] (n1) {}; \\
    spanning 2 lines
    
    
    \item Issue 2
      \tikz[remember picture] \node[coordinate, xshift=1.597cm] (n2) {};
    \item Issue 3
    
    \end{itemize}
    
    \visible<2->{
    \begin{tikzpicture}[overlay,remember picture]
      \draw[thick,decorate,decoration={brace,amplitude=5pt}]
            (n1) -- (n2) node[midway, right=4pt] {One and two are cool};
    \end{tikzpicture}
     } % end visible
    
    \end{frame}
    

    Ressult (2nd slide of that frame):

    beamer result

    The adaptions are:

    • added the visible command (because I think it is useful to blend in the brace later)
    • made the items more complex so the use of xshift became necessary (I figured out the xshift value simply by try and error so thats a drop of bitterness) Edit 2018-12-23: manual try-and-error shifting can be overcome by using this method: (n1 -| n2) -- (n2) instead of (n1) -- (n2).

提交回复
热议问题