![vtop 框断行,有什么办法可以继续行而不换行吗?](https://linux22.com/image/368110/vtop%20%E6%A1%86%E6%96%AD%E8%A1%8C%EF%BC%8C%E6%9C%89%E4%BB%80%E4%B9%88%E5%8A%9E%E6%B3%95%E5%8F%AF%E4%BB%A5%E7%BB%A7%E7%BB%AD%E8%A1%8C%E8%80%8C%E4%B8%8D%E6%8D%A2%E8%A1%8C%E5%90%97%EF%BC%9F.png)
我尝试使用一个\vtop
框来制作我自己的文本上标定义,但是它会过早地断线。
\input opmac
\input luafonts
\font\tenrm="DejaVu Serif/R"
\tenrm
\def\superss#1{\vtop{\vskip-13pt \noindent #1}}
A Feldman, Certified Duck Caller and Psychic, will solve all your sad duck problems.
\vskip.3cm
A Feldman, Certified Duck Caller \superss ® and Psychic,
will solve all your sad duck problems.
\bye
我认为这与水平列表被框破坏有关,\vtop
但\leavevmode
定义中的a\def\superss#1{\vtop{\vskip-13pt \noindent #1 \leavevmode}}
也没有帮助。我怀疑我在这里遗漏了一些基本的东西。
答案1
a\vbox
不会破坏水平列表,但由于您在框内开始了一个段落,它包含断行,\hsize
因此它太宽了
Overfull \hbox (186.38274pt too wide) in paragraph at lines 13--15
您想要一个而\hbox
不是一个\vbox
,以便它是内容的自然宽度。
\input opmac
\input luafonts
\font\tenrm="DejaVu Serif/R"
\tenrm
\def\superss#1{\leavevmode\raise 5pt\hbox{#1}}
A Feldman, Certified Duck Caller and Psychic, will solve all your sad duck problems.
\vskip.3cm
A Feldman, Certified Duck Caller \superss ® and Psychic,
will solve all your sad duck problems.
\bye