Introduction

The Drawing Toolbar The Drawing Toolbar

The Drawing Toolbar consists in a Microsoft Word template document (files with extension « .dot ») displaying a special command bar to the user. With the various buttons offered, the user can then create simple mathematical figures and choose a proper layout on the page.

The Drawing Toolbar exports many commands that already exist in Microsoft Word but are most of the time not easily accessible to the average user. Other functions have also been implemented for mathematical purposes, such as creating a grid, triangles or graduated lines.

Important Note: I don't have access to an English version of Microsoft Word. Hence every word in this document may not be accurate, but the meaning should help you find the right feature. Don't hesitate to help me translate this document by telling me the right words used in Microsoft Word. Thanks in advance.

Getting started

Installation

In order to be able to use the Drawing Toolbar, you need to proceed to the following:

  1. You must allow the execution of macros. In menu Tools, then Macros, then Security, go to the second tab and make sure to check the box Trust Visual Basic Project (or something similar)
  2. You first need to install it to a special location so that it will be automatically loaded by Microsoft Word on its startup. Usually, this location is C:\Documents and Settings\UserName\Application Data\Microsoft\Word\Startup. To be sure, just open the template document, it should tell you where to copy it.
  3. Verify that the template is a global template. To do so, in the « Tools » menu, click on « Templates and add-ons » (or something similar, I don't have Word in English), then verify that the checkbox for the template is effectively checked.
  4. You must then restart Microsoft Word. If everything went right, you should have a new button called Drawing in the standard command bar.
Note: In case you decide to customize some features, such as changing the language, Microsoft Word will popup a window saying that the project is signed and hence the project signature will get invalidated. Just ignore this message (this message comes from the fact that the Mathematics Toolbar saves the user preference in its file directly and hence breaks the signature used when I created the document).

Built-in Microsoft Word functions

Grouping and Ungrouping

Regrouping graphical objects enables to handle them as a single entity, so that this entity can be easily positioned on the document. I remarked that only few people use the grouping functions when drawing figures, causing terrible loss of productivity when things have to get moved inside the document or between documents.

Tip: I recommend grouping the objects of a figure into a single entity once the figure is complete, this enables easy positioning on the document and a great gain in productivity.
ButtonDescription of the button
ButtonGroups selected objects into a single entity.
ButtonUngroups the entity (needed in case you want to modify the entity).

Simple objects

Tip: When drawing an object (such as a rectangle, a triangle, etc.) while leaving the Shift key down, this forces the object to have the same height and width (hence the rectangle becomes a square). This is really useful!
ButtonDescription of the button
ButtonDraws a line "hand-free". When wanting to emulate a hand-free drawing, first draw it using lines, rectangles, etc, then redraw on your existing figure with this tool.

Click here to popup an example of this functionality (you need to have Javascript active).

Drawing with the hand-free tool

The Hand-Free Tool is the most powerful drawing tool of Microsoft Word. It enables drawing lines, broken lines, really hand-free parts, closed and opened curves and many other things. The first step consists in the drawing of the control points of the curve.

In order to draw a straight line, you just need to click, then release the mouse. In order to draws a curve, you just need to click, then maintain the mouse button down.

In order to finish the curve, you just need to click twice at the same place (this will create an opened curve), or to click twice where you started drawing the curse (this will create a closed curve).

Standard pointStandard control point. Initially all control points are of this type.
Flat pointFlat control point. This control point has its half-tangent lines of same direction and same length.
Symetric pointSymetric control point. This control point has its half-tangent lines of same direction but not same length.
Angle pointAngle control point. This point has its half-tangent lines independant one from the other.
Example of closed curve

In this example we will create a curve in four steps:

The finished curve

TriangleCreate a triangle as a skeleton with the hand-free tool.
TriangleClick with the right mouse button on the figure and select "Modify control points". Click on the top left control point with the right mouse button and select "Angle control point".
TriangleAdjust the half-tangents (in blue).
TriangleClick on the bottom right control point with the right mouse button and select "Angle control point" and adjust the half-tangents.
ButtonCreates an opened or closed curve with linear, curved or hand-free borders.
ButtonCreates a rectangular triangle.
ButtonCreates an arc of an ellipse (or of a circle if the "Shift" key is down). Useful for noting angles between segments.
ButtonCreates an ellipse (or a circle if the "Shift" key is down).

Rotational or symetrical transformations

Remark: It is not possible to rotate an object containing text areas, you hence must first rotate the figure before adding text areas.
ButtonDescription of the button
ButtonRotates the object of a quarter to the left.
ButtonRotates the object of a quarter to the right.
ButtonRotates the object to as wanted. You may also change the angle by viewing the properties for the object (see the "Size" tab).
ButtonDoes a symetry with the vertical as reference.
ButtonDoes a symetry with the horizontal as reference.

Positioning in the document

These tools enable to choose the position of the figure on the document.

By default, the figure is placed over the text. Because of that, many users add newlines in the document in order for the figure to not be over the text, but this is not a nice solution. One should better use the figure positioning capabilities of Microsoft Word.

ButtonDescription of the button
TextMenu enabling figure and text positioning. By default, when objects are grouped, the positioning is of the figure is over the text.
Button(Text Menu) Forces the text to surround the figure with some margin.
Button(Text Menu) Forces the text to surround the figure without any margin.
Button(Text Menu) Forces the text to lay before and after the figure.
Button(Text Menu) Forces the figure to be under the text.
Button(Text Menu) Forces the figure to be over the text. This is the default positioning.
Button(Text Menu) Forces the text to lie left and right to the figure.
Button(Text Menu) Forces the text to lie left only to the figure.
Button(Text Menu) Force the text to lie right only to the figure.
Button(Text Menu) Forces the text to lie where there is more space.
AlignmentMenu enabling figure positioning against other figures or the page.
Button(Alignment Menu) Bottom-Aligns the objects.
Button(Alignment Menu) Top-Aligns the objects.
Button(Alignment Menu) Left-Aligns the objects.
Button(Alignment Menu) Right-Aligns the objects.
Button(Alignment Menu) Horizontally-Aligns the centers of the objects.
Button(Alignment Menu) Vertically-Aligns the centers of the objects.
Button(Alignment Menu) Rearranges the objects horizontally (horizontal spacing becomes identical between objects).
Button(Alignment Menu) Rearranges the objects vertically (vertical spacing becomes identical between objects).
Button(Alignment Menu) If this button is pressed, the buttons above act with the document layout as a reference.

Other useful stuff

ButtonDescription of the button
ButtonDuplicates (clones) the currently selected object. This can also be done by pressing the "Shift" key while dragging the object.
ButtonShows a panel enabling enforcement of objects positioning on an invisible Microsoft Word grid. Sometimes, it is quite useful to deactivate the grid when you want to draw an object at a very specific place on the document (for example when drawing an arc).
ButtonAnchors or removes the anchor of the currently selected object. Every object has an anchor that helps Microsoft Word to determine where the object lies compared to the current paragraph. When an object becomes anchored to some piece of text, the object will move with the text, but also it is still possible to move the object on the document, however, the object will remain anchored to the text.

New functions

Adding text letters to a figure

ButtonDescription of the button
ButtonInserts a borderless text area of 1 square cm with a letter in it.
ButtonInserts a letter surrounded by a 1 cm diameter circle (useful to number figures).
ButtonInserts a dot of 1 mm diameter.

Grid and graduates lines

These tools enable the creation of grids and graduated lines with many user-specified parameters.

ButtonDescription of the button
ButtonInserts a grid.

Click here to popup an example of this functionality (you need to have Javascript active).

Warning: This tool is programmed in VBA, hence the creation of the figure takes some time, so be patient.
The Grid panel The Grid panel

By pressing the Grid button, a preference panel pops up enabling to modify the following parameters:

  • X Size and Y Size are expressed in squares and enable choosing the number of horizontal and vertical squares to draw
  • X Step and Y Step represent the size of the squares in centimeters (for example you can choose a square of 0.5 cm on 1 cm (hence it becomes a rectangle)
  • Dash represent the thickness of the lines
  • Half-graduation enables to draw intermediate lines with dashed lines

The following example illustrates this functionality:

The Grid

ButtonInserts a XY Axis.

Click here to popup an example of this functionality (you need to have Javascript active).

Warning: This tool is programmed in VBA, hence the creation of the figure takes some time, so be patient.
The XY Axis panel The XY Axis panel

By pressing the XY Axis button, a preference panel pops up enabling to modify the following parameters:

  • Xmin and Xmax are expressed in units. Xmin must be negative and Xmax positive.
  • Ymin and Ymax are expressed in units. Ymin must be negative and Ymax positive
  • X Step and Y Step represent the size of the units in centimeters (for example, the X unit can be of 0.5 cm and the Y unit can be 1 cm
  • X Factor and Y Factor are the multiplicative factors of the legend, respectively for the X and Y axis(for example, if the X factor is 1 and the Y factor is 2, then each graduation for X will be of 1 increment and of 2 increments for the Y axis)
  • Dash represents the thickness of the lines
  • Half-graduation enables to draw intermediate lines with dashed lines

The following example illustrates this functionality:

The ???

ButtonInserts a graduated horizontal line (X Axis).

Click here to popup an example of this functionality (you need to have Javascript active).

Warning: This tool is programmed in VBA, hence the creation of the figure takes some time, so be patient.
The Graduated Line panel The Graduated Line panel

By pressing the Graduated Line button, a preference panel pops up enabling to modify the following parameters:

  • Xmin and Xmax are expressed in units. Xmin must be negative and Xmax positive.
  • X Step represents the size of the unit in centimeters (for example the unit can be of 0.5 cm)
  • X Factor is the multiplicative factor of the legend (for example, if the factor is 2.5, the legend for each unit will have a step of 2.5)
  • Dash represents the thickness of the lines
  • Half-graduation enables to draw intermediate lines with dashed lines

The following example illustrates this functionality:

The Graduated Line

Geometrical 2D and 3D figures

ButtonDescription of the button
ButtonInserts a triangle in real size.
ButtonInserts an arc of an ellipse (or of a circle) defined by its radiuses and its angle.

Click here to popup an example of this functionality (you need to have Javascript active).

Warning: This tool is programmed in VBA, hence the creation of the figure takes some time, so be patient.
The Arc of Ellipse panel The Arc of Ellipse panel

By pressing the Arc of Ellipse button, a preference panel pops up enabling to modify the following parameters:

  • Small Radius is expressed in centimeters ans represents the vertical radius of the ellipse hosting the arc
  • Great Radius is expressed in centimeters ans represents the horizontal radius of the ellipse hosting the arc
  • Angle represents the arc in degrees (for example if the angle is 90°, we get a quarter of an ellipse)
  • Dash represents the thickness of the line

The following example illustrates this functionality: the result is an arc of circle of 150° with a radius of 3 cm:

The arc of circle of 150°

3D ObjectsInserts predefined 3D objects.