Dave and John's Software |
We've created a set of equation tools for Microsoft Word, versions 6.0 and 7.0. The tools are WordBasic macros that center an equation horizontally and put a caption to the right of the equation. The tools use the "(1)" numbering format, which can include subheadings, "(1.2)". The captions are also centered vertically based on the height of the equation object. An example is shown below.
Unfortunately, Microsoft has made it difficult to perform this common format found in most technical literature. Try it sometime. The macros attempt to simplify the process.
Right here. This is a zipped Word template about 6K in size. Click here to download D&J Equation Formatting Macros for Word. Windows 3.1 users will need to rename the file to a 8.3 filename. Just unzip the file and use.
Download the Word template and open a document using this template. You should see a floating toolbar, "D&J Equation Formatting Macros" with three buttons, as shown below. If you don't, right click in the toolbar area and select "D&J Equation Formatting Macros".
There are two modes of operation. The first mode takes an existing selected equation and formats the equation and adds a caption using the "Format Equation and Insert Formatted Caption" button. The second mode has two parts. First, a caption is inserted and the Equation Editor is started with the "Insert Equation and Caption" button. Secondly, when done with the Equation Editor, the caption can be formatted with the "Format Equation Caption" button. This is broken in two parts since currently WordBasic macros will not stop to the allow user to enter an equation and continue once done. This may be added in the next release of Word. With either modes of operation, the "Format Equation Caption" button can be used to reformat any selected equation that is modified and alters the vertical centering.
A three column, single row table is created. The first column is blank for centering purposes. The second column is for the equation and the last column is for the caption. This may sound familiar to those who format web pages this way (I do). A new caption label "(" provides the auto-caption numbering. The equation size and font size is determined and the vertical center of the table is determined. The appropriate amount of space above and below the caption is calculated and adjusted with the "spacing before and after paragraph" settings.
These macros were originally based from Microsoft's Word Knowledge Base under question number Q123430. From there, Dave and John revised the macros many times and things got a little out of hand, resulting in these macros. Please send us feedback on good and bad things about the macros. Thanks.
John |
Dave |
||
john@davinci.marc.gatech.edu | dpm@euler.marc.gatech.edu |