
답변1
물론 tikz 마법은 필요하지 않습니다. 이것은 일반 TeX에서도 가능합니다
Some text\leaders\hrule height 3.4pt depth -3pt\hskip 2cm some other text
또한보십시오줄의 나머지 부분을 채우는 수직 중앙의 수평선?
예를 들어 다음과 같이 자신만의 명령을 정의할 수 있습니다.
\def\centerrule{%
\dimen0=-.4ex
\advance\dimen0 by 0.4pt
\leaders\hrule height.4ex depth\dimen0\hskip
}
그럼 당신은 쓸 수 있습니다
Some text\centerrule 2cm some other text %the line is 2cm long
Some text\centerrule 0cm plus 1fill some other text %the line stretches to
%fill the whole line