How can I put a small box of text inside another larger text box (which is a figure)? (Perhaps similar to adding a boxed legend manually.)
I'm looking for something like this:
_________
|aaa bbb|
|ccc ---|
|ddd |ee|
---------
I have tried "\begin{subfigure}...\end{subfigure}" but I don't know how to position it (really, I have no clue, aside from placement specifiers). Starter code below; ideally the "a b" box should overlap the bottom right corner of the "lots of text" box.
\begin{figure}[t]
\begin{center}
\scalebox{0.8}{
\begin{boxedminipage}[t]{5in}
\begin{tabbing}
lots of text lots of text \\
lots of text lots of text \\
lots of text lots of text \\
lots of text lots of text \\
lots of text lots of text \\
lots of text \\
lots of text \\
lots of text \\
lots of text \\
\end{tabbing}
\end{boxedminipage}}
\end{center}
\vspace{-0.2in}
\begin{boxedminipage}[b]{0.5in}
\begin{subfigure}
a \\
b \\
\end{subfigure}
\end{boxedminipage}
\caption{a caption}
\vspace{-0.2in}
\end{figure}

tabularstructure would work here, but it depends on how you want things to look like inside the two boxes. For example, isaaa bbb ccc dddregular paragraph text that should flow/wrap aroundeee? It doesn't seem that way from your example, since you manually break the lines within thetabbingenvironment. Does it include only text (and nothing fancy like figures)? – Werner Jan 02 '13 at 22:09centerinsidefigure. See Should I use center or centering for figures and tables? for an explanation. You also need a%direct after\scalebox{0.8}{to avoid a space here. These are actually a frequently made mistakes. Not sure abouttabbingas well, which doesn't make much sense to me without any tabbing instructions. – Martin Scharrer Jan 03 '13 at 08:26