Another possible solution, is to use Tikz, but this also has its drawbacks. Note that you have to compile twice to get the brace in the correct place:
Code: Select all
\documentclass[a4paper]{article}
\usepackage{tikz}
\usetikzlibrary{decorations.pathreplacing,calc}
\tikzstyle{every picture}+=[remember picture]
\begin{document}
\begin{enumerate}
\item \tikz \node[coordinate] (a) {};
This is a line of text.
\item More text.
\item And yet much more text.
\tikz \node[coordinate] (b) {};
\end{enumerate}
\begin{tikzpicture}[overlay,decoration={brace,amplitude=5}]
\draw [thick,decorate] ($(a-|b)+(0,1.5ex)$) --node[right=1ex,red]{apscal} ($(b)+(0,-.3ex)$);
\end{tikzpicture}
\end{document}
One problem with this is the horizontal position of the brace. If the last line isn't the longest of them, you have to add horiosontal space between the text of the last item and
otherwise the brace will be placed above the text of the longer line.
Also, the way I've made the brace fully enclose the text is not the most elegant I think. I'd welcome suggestions for better solutions.
revberaldo wrote:Is there any way to put braces under words and more text under the brace I would have just created?
In mathmode there is an underbrace-command, that combined with a subscript will do this.
Code: Select all
\documentclass[a4paper]{article}
\usepackage{amsmath} % Provides the \text-command
\begin{document}
$ \underbrace{\text{Text above brace}}_{\text{Text below brace}} $
\end{document}