我尝试使用一个\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