
Quiero describir cada parte de un número de identificación, así:
¿Cómo haría esto? ¿Puedo configurar algo usando tikz? Quiero poder describir identificaciones de diferente longitud y complejidad. Preferiblemente alguna característica similar a un script. No soy nuevo en el látex o el tikz, pero mi uso siempre ha sido bastante sencillo.
¡Gracias!
Editar: Después de revisar este antiguo problema mío, finalmente encontré una solución con la que estoy bastante satisfecho. Entonces, en caso de que alguien se tope con esto, con una pregunta similar la publicaré a continuación:
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{positioning, arrows}
\begin{document}
\def\myhbar{1mm}
\def\myvbar{.3mm}
\def\myyshift{0mm}
\def\myxshift{0mm}
\pgfmathsetmacro{\myinnersep}{0.5}
\begin{tikzpicture}[auto,node distance=.5mm,font=\tiny\ttfamily, minimum height={height("Ag")+\myinnersep*1mm},inner sep=\myinnersep*1mm]
\node [] (a1) at(2,0) {-rw-r--r--};
\foreach [count=\x from 2] \txt in {\phantom{0}6,michael,admins,4096,Apr 25 13:53,some\_file.txt}{
\pgfmathparse{\x-1}
\node [right = of a\pgfmathresult] (a\x) {\txt};
}
\node [below = -1mm of a1] (b1) {drwxr-xr-x};
\draw [] ([yshift=\myhbar+\myyshift,xshift=\myvbar]b1.south west) -- ([yshift=\myyshift,xshift=\myvbar]b1.south west) -- ([yshift=\myyshift,xshift=-\myvbar]b1.south east) -- ([yshift=\myhbar+\myyshift,xshift=-\myvbar]b1.south east);
\foreach [count=\x from 2] \txt in {22,collins,editor,4096,Apr 25 13:53,some\_folder}{
\pgfmathparse{\x-1}
\node [right = of b\pgfmathresult] (b\x) {\txt};
\draw [] ([yshift=\myhbar+\myyshift,xshift=\myvbar]b\x.south west) -- ([yshift=\myyshift,xshift=\myvbar]b\x.south west) -- ([yshift=\myyshift,xshift=-\myvbar]b\x.south east) -- ([yshift=\myhbar+\myyshift,xshift=-\myvbar]b\x.south east);
}
\foreach [count=\y from 1] \desc in {file permissions, number of links, user, group, size, date and time, name}{
\node [anchor=west](c\y) at (0,-\y*2mm-5mm){\desc};
\draw [<-,arrows={-[}] (c\y.east) -| ([yshift=\myyshift]b\y.south);
}
\end{tikzpicture}
\end{document}