Math styles MathCad Help

Just as you apply predefined styles and styles you create to modify the appearance of text regions in your worksheet, as described in Chapter 5, “Text,” you apply math styles to assign particular fonts, font sizes, font styles and effects, and colors to the elements of your math regions. Mathcad has two predefined math styles that govern the default appearance of all the math in your worksheet, but you can define and apply additional styles to enhance the appearance of your equations. Mathcad’s predefined math styles are:
• Variables, which governs the default appearance of all variables and plots.
• Constants, which governs the default appearance of all numbers you type in math regions as well as all numbers that appear in results. Whenever you type a variable name, Mathcad:
• Assigns to it a math style named “Variables.”
• Looks up the font, font size, and font style and effects associated with that particular math style.
• Displays the variable name using the characteristics associated with the style named “Variables.” Similarly, when you type a number or when a result is calculated, Mathcad: • Assigns to it a math style named “Constants.”
• Looks up the font, font size, and font style and effects associated with that particular math style.
• Displays the number using the characteristics associated with the style named “Constants.”

Editing math styles

To change Mathcad’s default style for all variables and plots: • Click on a variable name in your worksheet.
• Choose Equation from the Format menu to see the dialog box shown below. The style name “Variables” is selected.To change the font associated with that variable’s math style, click on “Modify.” You’ll see a dialog box for changing fonts.
• Click the “OK” button. Mathcad changes the font of all variables in the worksheet. If you change the Variables style, you may also want to change the style used for numbers so that the two look good together. To do so:
• Click on a number.
• Choose Equation from the Format menu to see the Equation Format dialog box. The style name “Constants” is now selected.
• Follow the procedure given above for modifying the Variables style. You can also use the Format Bar to change the font, font size, or font style associated with a math style. To use the Font Bar to modify some of the settings for the Variables math style, for example, click on a variable, then click on the appropriate Format Bar button to make variables bold, italic, or underlined or to specify the font or point size in the drop-down lists.The font, font size, and font style you choose for the Variables and Constants styles (as well as any math styles you define) affect not only the appearance of equations, but the appearance of the entire worksheet. Mathcad’s line-and-character grid does not respond to changes in the font sizes used in text and math. Therefore, changing font characteristics, particularly font sizes, may cause regions to overlap. You can separate these regions by choosing Separate Regions from the Format menu. You may wish to have your equations display in a different color than your default text regions to avoid mixing the two up. To change the default color of all equations in your worksheet,
• Choose Equation from the Format menu.
• Select a color in the “Default Equation Color” drop-down list.
• Click “OK.”

Applying math styles

As described in the previous section, variables in your Mathcad worksheet by default are assigned the “Variables” style, and numbers are assigned the “Constants” style. Answers displayed on the right of an equal sign are always assigned the “Constants” style. These two style names cannot be changed. You may, however, create and apply additional math styles, named as you choose, in your worksheets and templates. To see what math style is currently assigned to a name or number, double-click on the name or number to select it, or simply click in the name or number, and look at the style window on the Format Bar. Alternatively, you can double-click on the name or number and choose Equation from the Format menu. You’ll see the dialog box shown in the previous section. The math style associated with whatever you clicked on will appear in the drop-down list as shown in Figure 6-3. If you click on the button to the right of “Variables” in either the Format Bar or the Equation Format dialog box, you’ll see a drop-down list of available math styles. If you now choose “User 1” and click “OK,” a new math style is applied to the variable selected in Figure 6-3 and its appearance changes accordingly. Figure 6-4 shows the result. In this way you can apply any of a variety of math styles to:
• individual variable names in an expression, or
• individual numbers in a math expression (but not in computed results, which always “display in the “Constants” style).

Posted on November 21, 2015 in Equation and Result Formatting

Share the Story

Back to Top
Share This