php Editor Banana introduces the method of controlling MathType to recognize words and phrases. MathType is a powerful mathematical formula editor, but sometimes it may be difficult to recognize words and phrases. Mastering these techniques can make editing more efficient, such as using backslashes to separate words or enclosing phrases in curly braces. These tips can make it easier for you to interact with MathType and improve your work efficiency.
For example, create an equation as shown in the figure:
Open the MathType formula editor window and enter Prob(A|B), which is displayed as shown in the figure
In the name of the built-in function list, MathType formed Pr as the abbreviated probability and set it in the style, while o and b were considered variables. In this tutorial we will use Prob instead of Pr as our probability abbreviation. You might think that simply changing the o's and b's to non-italic would solve the problem, but this approach is not recommended. If you simply remove the italic feature, MathType will still consider o and b to be variables. The correct way is to select Prob and choose Function from the Style menu. This will remove the italic features of the letters and will also indicate to MathType that Prob is the name of the function, which will directly affect the character spacing and the conversion effect when converting to LaTeX and MathML languages.
Create the middle part of the equation: the fraction. You can copy and paste Prob(A|B) in the numerator and denominator and modify the characters. Find the set symbol ∩ in the panel and insert it. At this time, your equation is as shown below
Use the template again to construct the right part of the equation. At this time, the insertion point will be at the numerator position, ready to enter text. (Before entering ordinary words and phrases, select the text command in the style menu) At this time, the numerator style in the fraction is as shown in the figure
Except the word [both] should be bold, A Except for B and B which should be italicized, the rest of the styling is exactly what we need.
Select the word [both] and select other commands from the style menu to directly change the font and style of the selected characters, click Bold and select OK. Select A and select the Math command from the Style menu. Do the same for B. This will italicize A and B, and also tell MathType to treat A and B as variables. Enter the denominator using the same technique you used to enter the numerator, and your equation entry is complete.
The above is the detailed content of Control how MathType recognizes words and phrases. For more information, please follow other related articles on the PHP Chinese website!