\vbox 끝에 etc.가 추가되는 이유는 무엇이며, 이는 무엇을 의미합니까?

\vbox 끝에 etc.가 추가되는 이유는 무엇이며, 이는 무엇을 의미합니까?

짧은 샘플 코드

% pdfTeX
\newbox\thbx
\setbox\thbx\hbox{abc}
\newbox\tvbx
\setbox\tvbx\vbox{\unhbox\thbx}
\showbox\tvbx
\bye

출력할 것이다

\thbx=\box16
\tvbx=\box17
> \box17=
\vbox(6.94444+0.0)x469.75499
.\hbox(6.94444+0.0)x469.75499, glue set 434.47717fil
..\hbox(0.0+0.0)x20.0
..\tenrm a
..\tenrm b
..\kern0.27779
..\tenrm c
..etc.

출력의 마지막 줄( etc.)은 무엇을 의미하며, 왜 TeX에 의해 거기에 배치됩니까?

답변1

기본적으로 \showboxbreadth=5, 즉 TeX가 목록의 처음 5개 요소를 보여준 후에 etc.더 많은 요소가 있음을 나타내기 위해 작성합니다.

의 출력에 영향을 미치는 또 다른 매개변수가 있는데 \showbox, 이는 TeX가 아래로 내려가는 중첩 수준인 \showboxdepth(default )입니다. 3깊이가 초과되면 로 표시됩니다 [].

TeXbook에서 발췌한 내용도 참조하세요.

\danger When \TeX\ displays a box as part of diagnostic output, the amount
of data is controlled by two parameters called ^|\showboxbreadth| and
^|\showboxdepth|. The first of these, which plain \TeX\ sets equal to~5,
tells the maximum number of items shown per level; the second, which plain
\TeX\ sets to~3, tells the deepest level. For example, a small box
whose full contents are ^^{internal box format} ^^{symbolic box format}
\begintt
\hbox(4.30554+1.94444)x21.0, glue set 0.5
.\hbox(4.30554+1.94444)x5.0
..\tenrm g
.\glue 5.0 plus 2.0
.\tenrm || (ligature ---)
\endtt
will be abbreviated as follows when |\showboxbreadth=1| and |\showboxdepth=1|:
^^{ligature} ^^{em-dash}
\begintt
\hbox(4.30554+1.94444)x21.0, glue set 0.5
.\hbox(4.30554+1.94444)x5.0 []
.etc.
\endtt
And if you set |\showboxdepth=0|, you get only the top level:
\begintt
\hbox(4.30554+1.94444)x21.0, glue set 0.5 []
\endtt
(Notice how `^|[]|' and `^|etc.|'~indicate that the data has been
truncated.)

관련 정보