I read this question it's useful but isn't exactly what I need.
My problem consists in create an array, table or something like that with two columns. In the left one I need to put LaTeX code with \verb or verbatim, but in the right instead of the result, I need to and braces for explain each part of the another column.
My MNWE:
\documentclass[twoside,symmetric]{tufte-handout}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[spanish,mexico]{babel}
\usepackage{array{
\begin{document}
\begin{tabular}{lc}
\verb+
\documentclass[options]{class}
+ & \\
\verb+
\usepackage[options]{package}
+ & \left. \right\} preamble \\
$\vdots$ & \\
\verb+
\begin{document}
+ & \\
$\vdots% & \left. \right\} body \\
\verb+
\end{document}
+ & \\
\end{tabular}
\end{document}
I hope you understand what I'm trying to do. Is simple a kind of diagram about the basic LaTeX structure, but I don't know how to build it.


\verb? Or isn'tlistingsallowed? – Jun 14 '15 at 09:12listingsfor the LaTeXcode and\tikzmarkto mark the appropriate points in the LaTeX code, and then usetikz` to do the drawing of the braces and the annotations. This way you can separate the code from the annotation and have more flexibility and readability of the original code. – Peter Grill Jun 14 '15 at 09:44listingsalso, but\verbis a simpler option. In fact my problem isn't with the code but with the other column, where I need, in this case, add an indication with braces. – Aradnix Jun 14 '15 at 16:12listingsin a easy way. I think Zarko's answer is quite good. – Jun 14 '15 at 16:18