ID 번호 설명 줄

ID 번호 설명 줄

ID 번호의 각 부분을 다음과 같이 설명하고 싶습니다. 설명 줄

이 문제를 어떻게 해결할까요? tikz를 사용하여 뭔가를 설정할 수 있나요? 다양한 길이와 복잡성의 ID를 설명할 수 있기를 원합니다. 바람직하게는 일부 스크립트와 같은 기능입니다. 저는 latex나 tikz를 처음 접하는 것은 아니지만 제 사용법은 항상 매우 간단했습니다.

감사합니다!

편집: 이 오래된 문제를 다시 검토한 후 마침내 매우 만족스러운 해결책을 찾았습니다. 그래서 혹시 누군가가 이 문제를 우연히 발견할 경우를 대비해 비슷한 질문으로 아래에 게시하겠습니다.

\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}

이는 다음을 생성합니다. 여기에 이미지 설명을 입력하세요

관련 정보