POSA中的模式名称的样子看上去是这样的:Reactor。在word中实现这个效果只要选中这个单词,然后按下快捷键:Ctrl+Shif+k即可。想要使用较大字号的字母大写。
在网页中使用的方法是:
In HTML documents, small caps can be specified using the CSS font-variant "small-caps":
<span style="font-variant: small-caps;">Jane Doe</span>
renders as
Jane Doe
有时候,我们希望连续的几个单词每个单词的首字母均使用较大字号,但是又懒得每个先改成大写字母然后再使用快捷键。可以使用下面这个宏:
Sub MakeSmallCaps()
If Selection.Type = wdSelectionIP Then
Selection.MoveLeft Unit:=wdWord, Count:=1
Selection.MoveRight Unit:=wdWord, Count:=1, Extend:=wdExtend
End If
Selection.Range.Case = wdTitleWord
Selection.Font.SmallCaps = True
End Sub