Navigate to Verbatim Settings -> Admin -> Templates Folder
, right click Debate.dotm
, and choose Open
(NOT “New”).
Microsoft Word should open. In the ribbon, navigate to Developer -> Visual Basic
; a new window should pop up.
In the sidebar: Verbatim(Debate) -> Modules -> Formatting
and double click on Formatting
The first lines of the main window should say:
Option Explicit
Sub UnderlineMode(control As IRibbonControl, pressed As Boolean)
Scroll to the very bottom of this window. On a new line, copy paste the following:
Sub FormatAcronym()
Dim i As Integer
For i = 1 To Selection.Words.Count
Dim word As String
word = Selection.Words(i)
If word <> "-" Then
Selection.Words(i).Characters(1).Style = "Emphasis"
End If
Next
End Sub
Ctrl-S and exit the VBA editor.
Back in main Word window, go to File -> Options -> Customize Ribbon -> Keyboard Shortcuts: Customize
. In the drop down list make sure Debate.dotm
is selected (not Normal.dotm
); in the left scrolling list scroll all the way down and choose Macros
, and in the right scrolling list choose FormatAcronym
. Assign it to a keyboard shortcut of your choosing (I used Alt+F10).
Enjoy never having to manually emphasize "Air Sea Battle" ever again
21 August 2023: Handle hyphens better (e.g. "no-first-use" → "no-first-use" instead of "no-first-use").