较粗的波浪下划线

较粗的波浪下划线

\uwave我发现ulem包裹,其定义在ulem.sty

% Now define various special underlines.  All the definitions go like
% \def \command {\bgroup \markoverwith{something} \ULon}

% For drawing a wavey underline instead of a straight one the command
% is \uwave (under-wave) which uses the wiggle from 6-pt lasy font:

\def\uwave{\bgroup \markoverwith{\lower3.5\p@\hbox{\sixly \char58}}\ULon}
\font\sixly=lasy6 % does not re-load if already loaded, so no memory problem.

我想保持下划线波浪,但是更厚,有人知道怎么做吗?

答案1

有粗体字体变体lasylasyb10。需要进行一些缩放以适合字体字符的宽度lasy6(例如,由于设计尺寸不同)。

该示例是纯 TeX 语法,因此我保留它。

% plain TeX    
\input ulem.sty\relax
\catcode`\@=11 %

\font\uwavefontold=lasy6
\font\uwavefont=lasyb10 scaled 652

\def\uwaveold{%
  \bgroup
    \markoverwith{%
      \lower3.5\p@\hbox{\uwavefontold\char58}%
    }%
  \ULon
}
\def\uwave{%
  \bgroup
    \markoverwith{%
      \lower3.5\p@\hbox{\uwavefont\char58}%
    }%
  \ULon
}

\uwaveold{Hello World}

\uwave{Hello World}

\bye

比较结果:

带有 lasy6 和 lasyb10 的 uwave

相关内容