LibreOffice MathGuide
LibreOffice MathGuide
5 Math Guide
The LibreOffice Equation Editor
Copyright
This document is Copyright 20112012 by its contributors as listed below. You may distribute it and/or modify it under the terms of either the GNU General Public License (http://www.gnu.org/licenses/gpl.html), version 3 or later, or the Creative Commons Attribution License (http://creativecommons.org/licenses/by/3.0/), version 3.0 or later. All trademarks within this guide belong to their legitimate owners.
Contributors
Jean Hollis Weber Hazel Russman Laurent Balland-Poirier
Feedback
Please direct any comments or suggestions about this document to: [email protected]
Acknowledgments
This guide is based on the OpenOffice.org 3.3 Math Guide. The contributors to that book are: Daniel Carrera Agnes Belzunce TJ Frazier Peter Kupfer Ian Laurenson Janet M. Swisher Jean Hollis Weber Michele Zarri Additional material has been added from the German Math Handbuch for LibreOffice 3.4 (translated to English by Hazel Russman). Contributors to that book are: Regina Henschel Christian Khl Florian Reisinger Gisbert Friege (Dmaths) Jochen Schiffers Additional material has been added from the French How-To Math for LibreOffice (translated to English by Laurent Balland-Poirier). Contributors to that book are: Bernard Siaud Frdric Parrenin
Mac equivalent
LibreOffice > Preferences Control+click (Command) Shift++F5 +T
Effect
Access setup options Opens a context menu Used with other keys Opens the Navigator Opens the Styles and Formatting window
Contents
Copyright.............................................................................................................................. 2 Note for Mac users...............................................................................................................2 What is Math?.......................................................................................................................5 Getting started......................................................................................................................5
Creating an equation as a separate document............................................................................ 5 Inserting a formula into a Writer document.................................................................................. 6
Entering a formula............................................................................................................... 7
The Elements window.................................................................................................................. 7 Right-click (context) menu........................................................................................................... 9 Markup......................................................................................................................................... 9 Greek characters....................................................................................................................... 10
Changing a formula........................................................................................................... 12
Choosing the region to change.................................................................................................. 12 Carrying out changes................................................................................................................. 12
Formula layout................................................................................................................... 12
Brackets are your friends........................................................................................................... 12 Brackets with matrices look ugly!............................................................................................... 13 Isolated and unpaired brackets.................................................................................................. 14 Recognizing functions in Math................................................................................................... 14 Equations over more than one line............................................................................................ 14 How do I add limits to my sum/integral?.....................................................................................15 How do I write a derivative?....................................................................................................... 15 Markup characters as regular characters................................................................................... 16 Text in a formula........................................................................................................................ 16 How do I align my equations at the equals sign?....................................................................... 17
Customizations.................................................................................................................. 27
Formula editor as a floating window........................................................................................... 27 Add button to toolbar................................................................................................................. 28 Add keyboard shortcut............................................................................................................... 29 Customizing the catalog............................................................................................................. 30 Customizing operators............................................................................................................... 32 Space at the end of a formula.................................................................................................... 32 Default layout with style............................................................................................................. 32 Application to chemical formulas................................................................................................ 32
Extensions.......................................................................................................................... 36
Dmaths an extension for more than just faster formula input.................................................. 36 Symbolic computation with CmathOOo and CmathOOoCAS....................................................37
Technical details................................................................................................................ 37
OASIS Open Document Format for Office applications..............................................................37 Handling of formulas in Basic.................................................................................................... 38
Index.................................................................................................................................... 54
What is Math?
Math is LibreOffices component for writing mathematical and chemical equations. It is most commonly used as an equation editor for text documents, but it can also be used with other types of documents or stand-alone. When used inside Writer, the equation is treated as an object inside the text document.
Note
The equation editor is for writing equations in symbolic form, as in equation 1. If you want to evaluate a numeric value, see the Calc Guide.
df (x ) =ln( x )+tan1 ( x 2) dx or
NH3 + H2 O NH+ + OH 4
(1)
Getting started
You can create an equation (formula) as a separate document or insert it into a document in Writer or another component of LibreOffice.
On the menu bar, choose File > New > Formula. On the standard toolbar, click the triangle to the left of the New icon and choose Formula. From the Start Center, click Formula.
An empty formula document opens (see Figure 1).
Getting started
The upper area is the preview window, where the equation will appear during and after input. The lower area is the equation editor, where the markup code for the equation is entered. The floating Elements window will also appear.
Figure 2: Equation Editor, Elements window, and location of resulting equation in Writer
Tip
When you are done entering the formula, you can close the editor by pressing the Esc key or by clicking an area outside the formula in the main document. A double-click will open the editor again, so you can edit the formula. Formulas are inserted as OLE objects. In a Writer document, the formula is anchored as a character, so it is embedded in the continuous text. As with any other OLE object, you can change the anchor and make the formula floating. In Calc, Impress, and Draw documents, formulas are embedded as floating OLE objects. If you frequently need to insert formulas, you may wish to add the Formula button to the Standard toolbar or create a keyboard shortcut. See Add button to toolbar or Add keyboard shortcut on page 28.
Entering a formula
The equation editor uses a markup language to represent formulas. For example, %beta creates the Greek character beta ( ). This markup is designed to read similar to English whenever a possible. For example, a over b produces a fraction: . b You can enter a formula in three ways:
Select a symbol from the Elements window. Right-click on the equation editor and select the symbol from the context menu. Type markup in the equation editor.
The context menu and the Elements window insert the markup corresponding to a symbol. This provides a convenient way to learn the LibreOffice Math markup.
Note
Click on the document body to exit the formula editor. Double-click on a formula to enter the formula editor again.
Figure 3: Symbols are divided into categories The Elements window is divided into two main parts.
The top shows the symbol categories. Click on these to change the list of symbols. The bottom shows the symbols available in the current category. Tip
You can hide or show the Elements window with View > Elements.
Example 1: 54
For this example we will enter a simple formula: 54 . On the Elements window: 1) Select the top-left button of the categories (top) section. 2) Click on the multiplication symbol.
Entering a formula
Figure 4: Selecting the multiplication symbol When you select the multiplication symbol on the Elements window, two things happen: The equation editor shows the markup: <?> times <?>
Figure 5: Result of selecting the multiplication symbol The <?> symbols shown in Figure 5 are placeholders that you can replace by other text, for example 5 and 4. The equation will update automatically, and the result should resemble Figure 6.
Tip
When you add a formula, reserved placeholders are indicated by squares in the formula and <?> in the command window. You can navigate through these placeholders using F4 and Shift+F4.
Tip
To keep the equation from updating automatically, click View > AutoUpdate display to deselect it. To update a formula manually, press F9 or select View > Update.
Note
Markup
You can type the markup directly into the equation editor. For example, you can type 5 times 4 to obtain 54 . If you know the markup, this can be the fastest way to enter a formula.
Tip
The formula markup resembles the way the formula reads in English.
Below is a short list of common equations and their corresponding markup. Display a=b a2 Command
a=b a^2 int f(x) dx
Display
Command
sqrt {a} a_n sum a_n
a
an
f ( x )dx
Entering a formula
an
Display ab
Command
a <= b a times b
Display
Command
infinity x cdot y
ab
xy
Greek characters
Greek characters ( , , , , etc) are common in mathematical formulas. These characters are not available in the Elements window or the right-click menu. Fortunately, the markup for Greek characters is simple: Type a % sign followed by the name of the character, in English.
To write a lowercase character, type the name of the character in lowercase. To write an uppercase character, type the name of the character in uppercase. To write in italic, type an i between % sign and the name of the character.
A complete table of Greek characters is provided on page 50. See the table below for some examples. Lowercase %alpha %beta Uppercase %ALPHA %BETA %GAMMA %PSI %PHI Italic lowercase %ialpha %ibeta
%theta
%THETA
%itheta
%iTHETA
Another way to enter Greek characters is by using the Symbols catalog window. Choose Tools > Catalog. This window is shown in Figure 8. Under Symbol set, select Greek and double-click on a Greek letter from the list. The markup name of the character is shown below the list window.
Figure 8: Symbols catalog, used for entering Greek characters and some special symbols
10
Example 2: 3.14159
For this example we will suppose that:
We want to enter the above formula (the value of pi rounded to 5 decimal places). We know the name of the Greek character (pi). But we do not know the markup associated with the symbol.
Step 1: Type % followed by the text pi. This displays the Greek character . Step 2: Open the Elements window (View > Elements). Step 3: The symbol is a relation, so we click on the Relations button. If you hover the mouse over this button you see the tooltip Relations (Figure 9). Figure 10 shows the Elements window after clicking the Relations button. The symbol we want is circled.
Figure 9: Tooltip indicates the Relations button Figure 10: After selecting Relations Step 4: Click on the a b symbol. The equation editor now shows the markup %pi<?> simeq <?>. Step 5: Delete the <?> text, press the F4 key and type 3.14159 at the end of the equation. We end up with the markup %pi simeq 3.14159. The result is shown in Figure 11.
Entering a formula
11
Changing a formula
You can change a formula at any time. To switch into edit mode, double-click on the formula.
In the equation editor, click on the location. Select an area of the markup code that you wish to change. Click on an element in the preview area; the cursor will automatically move to the
corresponding point in the equation editor.
Double-click on an element in the preview area; the corresponding section in the equation
editor will be selected. To be able to work in the upper (preview) area in the stand-alone Math window (Figure 1), the formula cursor must be activated. Use the Formula Cursor button on the Tools toolbar.
Tip
Caution
The use of experimental features can lead to program crashes and/or loss of data. Only make the above change if you can accept this risk.
Formula layout
The most difficult part of using LibreOffice Math comes when writing complicated formulas. This section provides some advice.
12
Markup 2 over x + 1
Result 2 +1 x 1 2
Result 2 x +1 1 2
1 over 2
In the first example, Math has recognized that the 2 before and the x after the over belong to the fraction, and has represented them accordingly. If you want x+1 rather than x to be the denominator, you must bracket them together so that both will be placed there. In the second example, Math has recognized the minus sign as a prefix for the 1 and has therefore placed it in the numerator of the fraction. If you wish to show that the whole thing is negative, with the minus sign in front of the fraction, you must put the fraction in brackets in order to signify to Math that the characters belong together. The braces belong solely to the layout of the markup code and are not printed. If you wish to use braces in the formula, use the commands lbrace and rbrace. Compare the following examples: Markup x over {x + 1} Result x x + 1 Markup x over lbrace x + 1 rbrace Result x {x +1}
Note
Rows are separated by two #s and entries within each row are separated by one #.
The first problem people have with matrices is that brackets do not scale with the matrix: Markup ( matrix { a # b ## c # d } ) Result (a b) c d
Math provides scalable brackets. That is, the brackets grow in size to match the size of their contents. Use the commands left( and right) to make scalable brackets. Markup left( matrix { a # b ## c # d } right) Result
( )
a b c d
13
Formula layout
Tip
Use left[ and right] to obtain square brackets. The list of all available brackets is on page 46. If you want all brackets to be scalable, go to Format > Spacing. Then in the Spacing dialog, choose the category Brackets and check the option Scale all brackets.
Tip
These scalable brackets may also be used with any element, such as fractions, square root, etc.
With non-scalable brackets, use a preceding backslash \ to indicate that the following
character should not be regarded as a bracket but as a literal character. So the half-open interval [a;b[ is represented by \[a;b\[ try comparing this with [a;b[ left [ a; b right [
Scalable brackets can also be unpaired. The same half-open interval is represented by
For scalable brackets, you can also use the command none to replace a non-existent paired bracket.
Tip
Your first reaction would be to simply press the Enter key. However, if you press the Enter key, although the markup goes to a new line, the resulting equation does not. You must type the newline command explicitly. This is illustrated in the table below.
14 LibreOffice 3.5 Math Guide
Markup x = 3 y = 1 x = 3 newline y = 1
Result
x =3 y =1
x =3 y =1
Continuing the calculation on a new line without writing a complete new equation is not directly possible, because Math expects a term on the left hand side of an equals sign. You can substitute:
Empty quotes "". This will automatically cause the line to be left-justified. Empty braces { }. The line will then be centered. Spaces characters ` or ~. The line will be centered with the spaces.
The alignment of equals signs under each other is described on page 17. As well, spacing between elements in formulas are not set by space characters in the code. You need to use special markup to add spaces: ` (grave) for a small space, ~ for a large space. Another solution would be to add space characters between quotes, to be considered as text. Space markup at the end of a formula is ignored by default (see Space at the end of a formula on page 32).
Result
ak
k =1
x
f (t )dt
0
or
0 f (t ) dt
2n
Note
Note
Formula layout
Notice that we have to use braces (squiggly brackets) to make the derivative.
15
Markup
{df} over {dx} {partial f} over {partial y} {partial^2 f} over {partial t^2}
Result df dx f y 2 f t 2
To write function names with primes, as is usual in school notation, you must first add the signs to the catalog. Using single and double quotes is typographically ugly. See Customizing the catalog on page 30.
Use double quotes to mark the character as text, for example 2"%"= 0.02. Obviously this is
not possible for the double-quote character itself.
Add the character to the catalog. See Customizing the catalog on page 30.
In some cases you can use commands:
lbrace and rbrace give you literal braces {}. mline gives you the vertical line, for example 2 mline 3 for (23)
Conversion into a character entity as in HTML or the use of an escape character is not possible in Math.
Text in a formula
To include text in a formula, enclose it in straight double-quotes:
abs x = left lbrace matrix {x # "for " x >= 0 ## -x # "for " x < 0} right none
Figure 12: Smart quotes included by copy and paste from Writer
16 LibreOffice 3.5 Math Guide
Text is shown in the font that was selected from the Text list in the Fonts dialog (compare with the section Changing the font on page 19). To use a font from the lower window of the equation editor, set the attribute Serif, Sans or Fixed before the text. By default, text is left-justified. You can change the justification with alignc or alignr (see Changing the alignment on page 21). Commands are not interpreted within text. Use quotes to break up the text if you wish to use special formatting commands.
"In " color blue bold "isosceles" "triangles, the base angles are equal"
Result x+ y x = 2 = 2 y
The empty braces around = are necessary because = is a binary operator and thus needs an expression on each side. You may replace them with space characters (` or ~). You can reduce the spacing around = if you change the inter-column spacing of the matrix: 1) With the equation editor open, choose Format > Spacing from the menu bar. 2) In the Spacing dialog (Figure 13), click the Category button and select Matrices in the drop-down menu. 3) Enter 0% for Column spacing and click OK.
Formula layout
17
Figure 14. Edit Base size (top) to make a formula bigger The result of this change is illustrated in Figure 15.
Note
The size of a subset of characters in a formula may be modified using the size command. For example: b size 5{a} : b a . In the Elements window, the icon on the Attributes tab gives the size command. The value just after size may be absolute (numeric value) or relative to the context (base size by default); for example, +6, -3, /2, or *2.
18
Figure 16: Fonts dialog The Custom fonts section determines which font will be used when the attribute font serif, font sans or font fixed is specified. To change a font, first click on Modify and choose the type of entry you wish to change. The Fonts dialog opens, showing all the fonts available on your system.
Figure 17: Fonts dialog If you enter an initial character in the upper text box, the list will jump to that place. By entering a few additional characters, you can specify the exact font that you want. If you do not know its name, use the scrollbar to scroll through them. Click on any name and the box below will show a preview.
19
Variables should be written in italics, so make sure that the Italic box is checked. For all other elements, use the basic (Roman) form. The style can be easily altered in the formula itself by using the commands italic or bold to set these characteristics and nitalic or nbold to unset them. When you have chosen a new font for a formula, the old font remains in the list alongside the new one and can be selected again. This applies only to the current session; the old font is not stored permanently. You can choose whatever fonts you like, but if you are exchanging documents with someone else, you should choose fonts that are present on your colleagues computer.
Note
Changes in spacing apply only to the current formula. To change spacing generally, click on the Default button and then OK.
Spacing changes are possible for the categories shown in the following table. Category
Spacing
Possible adjustment
Line spacing
Root spacing
Superscript Fractions
Subscript
Numerator
Denominator
20
Fraction bars
Line thickness
Lower limit
Spacing
Column spacing
Minimum spacing
Spacing
Left
Right
Top
Bottom
21
Here again you can use the Default button to make the change apply to all formulas and not just the current one. The following example shows the effect in different situations: Alignment
left
Examples x 9 x x 29 x x 9 x
2 2
( 100) 7 ( )
100 7
c 2=a 2+b 22 a b cos c 2a2b2 cos = 2 a b c 2=a 2+b 22 a b cos c 2a2b2 cos = 2 a b c 2=a 2+b 22 a b cos c 2a2b2 cos = 2 a b
centered (Default)
right
( 100) 7
It is not possible to align formulas on a particular character. Default settings of alignment do not apply to text elements; they are always aligned left. In the following examples, the default alignment is right but the first example begins the second line with text (albeit empty text) and is therefore aligned left. Markup Code {1+2+3+4} over 5 + 2 over {60+70+80+90} newline ""=2+1 over 150 {1+2+3+4} over 5 + 2 over {60+70+80+90} newline {}=2+1 over 150 Result 1+2+3+4 2 + 5 60 +70+80 +90 1 =2+ 150 1+2+3+4 2 + 5 60 +70+80 +90 1 =2+ 150
Independent of the default alignment, it is possible to align formulas explicitly using the commands alignl, alignc and alignr. This attribute also works for text elements.
22
E=mc 2
Now you can double-click on the formula to edit it. You can reference an equation (as shown in Equation (2)) with these steps: 1) Choose Insert > Cross-reference from the menu bar. 2) On the Cross-references tab (Figure 20), under Type, select Text. 3) Under Selection, select the equation number. 4) Under Insert reference to, select Reference. 5) Click Insert.
(2)
If you later add more equations to the paper before the referenced equation, all the equations will automatically renumber and the cross-references will update.
Tip
23
The AutoText inserted as a result of the above procedure consists of a 1x2 table. The left cell contains the formula and the right one the number. The number is an automatic counter named Text. You can edit the AutoText if, for example, you prefer square rather than round brackets, or if you want formula and number to be separated by tabs rather than formatted as a table. Read the section on Using AutoText in Chapter 3 (Working with Text) in the Writer Guide.
Position
Normally a formula is anchored As character in a Writer document. But as with any other OLE object, you can change the anchoring mode to position the formula where you want it. For more information, see Chapter 11 (Graphics, the Gallery, and Fontwork) of the Getting Started guide. By default, formula objects anchored As character are automatically aligned vertically to the baseline of the surrounding text. To align the formula manually, go to Tools > Options > LibreOffice Writer > Formatting Aids and uncheck the option Math baseline alignment. This setting is stored with the document and applies to all formulas within it. New documents use the current setting from this dialog.
Margins
An inserted Math object has margins to left and right of it, separating it from surrounding text. If you do not want this, it is best to alter the frame style for formulas, as this will apply simultaneously to all existing formulas and those still to be inserted in the document. Proceed as follows: 1) Press F11. The Styles and Formatting dialog opens. 2) Click on the Frame Styles tab. 3) Find the Formula frame style and right-click on it. 4) Choose Modify from the context menu. The Frame Style dialog opens. 5) Switch to the Wrap tab of the dialog. Change the values for Left and Right in the Spacing section to 0.00. 6) Click OK to close the dialog. This changes the spacing for all formulas that have not had their spacing adjusted manually. You can find more information on using styles in Default layout with style on page 32 and in Chapter 3 (Using Styles and Templates) of the Getting Started guide.
Text mode
Larger formulas should always be in a paragraph of their own, separated from the text. When you use formula elements in running text, they can often be higher than the letter height. However, if it is necessary to place a formula within running text, switch into the equation editor and go to Format > Text mode. Math will try to shrink the formula to fit the letter height. The numerators and denominators of fractions are shrunk, and the limits of integrals and sums are placed beside the integral/sum sign.
Example:
A formula in a separate paragraph:
i2
i =2
24
Note
You cannot insert the document by dragging and dropping with the mouse, nor by using Insert > File.
Formulas cannot be stored in the gallery because they are not in graphical format. You can however store a formula as AutoText. Write the formula in a separate paragraph, select it and go to Edit > AutoText. For further information see Using AutoText in Chapter 3 (Working with Text) in the Writer Guide.
Write the formula markup in Writer. Select the markup. Insert the formula using a toolbar button, a menu item, or a keyboard shortcut (see Add
keyboard shortcut on page 29). This method avoids the need to open and close the Math window and thus saves time.
25
Text attributes
All text attributes, such as font and alignment, refer not to the formula text but to the text element present in all graphical objects. For a selected object, this can be accessed via the F2 key. For further information, read the section Working with text in Draw in Chapter 10 (Advanced Draw Techniques) of the Draw Guide.
Position
A formula can be positioned anywhere you like. Use the mouse, the arrow keys, or the Position and Size dialog available from Format > Position and Size.
Size
In documents a formula is not represented directly but replaced by a graphic. The size of this graphic is initially protected. To change the size, open the Position and Size dialog and, on the first page, in the Protect section, uncheck the Size checkbox. This activates the Size section directly above. Enter your modifications. When the dialog is closed, the size will immediately be protected again. Changing the size does not affect the formula itself but only its graphical representation. In particular the basic font size of the formula (see Changing the font size on page 18) does not change. To revert to the size determined by the formula content, use the Original Size option in the context menu. This allows sizing errors that are sometimes caused by inserting a formula from a different module to be corrected.
Lines are not wrapped automatically; you must use the newline command. You can use Format > Fonts to match the text to its surroundings. See Changing the font on page 19.
26
Now, the quadratic complement is introduced = x 26x +32327 and then elements are gathered = x 26x +32 327 =( x3 ) 16 Formulas in Writer OLE objects
To be able to use all the facilities possible in text documents, create the formula and its text in Writer. Choose a page size that roughly matches your eventual objective. Do not write more than one page because page selection causes problems later. Save the document. In Impress (or Draw or Calc), use Insert > Object > OLE Object and then choose the option Create from file. The formula is embedded as an OLE object in a document that is itself an OLE object. As a result, the formula cannot be modified in Impress. For that reason, you should always activate the option Link to file. Then if you need to make a change, open the text document and edit text and formula there. In Impress, use Edit > Links and then the Update button to display the stored version of the text document. Do not try to modify the formula in Impress; it causes the representation to become faulty.
2
Formulas in charts
A chart is itself an OLE object. Therefore you cannot call up the equation editor within it. There is no freestanding module of LibreOffice that creates charts, so you cannot use anything similar to the above method using Writer either. However you can create a formula outside the charts editor, copy it to the clipboard, activate the chart for editing, and paste in the formula from the clipboard. This automatically converts the formula into a metafile graphic. If you wish to make further modifications, you must discard it and repeat the procedure.
Customizations
Here are a few ways to customize your use of Math.
Customizations
27
Figure 21: Turning the formula editor into a floating window Figure 22 shows the result. You can dock the floating window again by using the same steps. Hold down the Control key and double-click the window frame.
View > Toolbars > Customize or right-click at the beginning of a toolbar > Customize
toolbar. Choose the Toolbars tab and the toolbar you wish to modify.
Select the position where you want to insert the button. Click Add. In the Add Commands dialog (Figure 23), select the Insert category, then the Formula
commandthe one corresponding to icon of a spreadsheet formula). (command corresponds to an equivalent
Click Add. Then you can continue to add buttons or click Close. On the Customize dialog, use the arrow buttons (not visible in ) to move buttons up or
down the list before clicking OK to save the changes.
Tools > Customize, Keyboard tab. Select the level of the shortcut: LibreOffice to benefit from it in all modules (if the shortcut is
not used in this module) or only in the current module.
Select the Insert category, then the Formula commandthe one not corresponding to F2
(F2 corresponds to the equivalent of a spreadsheet formula).
Select the shortcut to apply, then click Modify. Proceed the same way for other shortcuts with the same level, then click OK to save.
If your shortcut activates a formula bar (as for Calc), that means you chose the wrong Formula function.
Customizations
29
30
Figure 26: Edit Symbols dialog: characters selected Now the Symbol set view area shows the new symbol. It can be selected just like the other symbols, either from here, or by writing them directly into the equation editor in the form %prime.
Caution
Numerous free fonts contain a great number of mathematical symbols. The STIX1 font is worthy of special mention here. It was developed specially for writing mathematical/technical texts. The DejaVu2 and Lucida3 fonts also have a wide range of symbols.
Note
Many symbols occur in more than one font. If you want to exchange documents with others, take care to use a font that is installed on their machine.
In the basic LibreOffice installation, only those user-defined symbols that actually occur in the document are stored with it. Sometimes it is useful to embed all the user-defined symbols, for example when the document is going to be further edited by another person. Go to Tools > Options > LibreOffice Math and on the Settings page, uncheck the option Embed only used symbols (smaller file size).This setting is only available when you are working on a Math document.
1 Font files for STIX are available from http://www.stixfonts.org 2 Font files for DejaVu Sans are available from http://www.dejavu-fonts.org 3 Lucida Sans belongs to the JRE package, which is probably already on your computer. Customizations 31
Customizing operators
A name, to be recognized as a function (that is, to be written with regular font, not italic), must be preceded by the markup code func. An operator, to be enlarged and to accept limits as integral or sum, must be preceded by the markup code oper. It is possible to use a letter, a name, or a personal symbol (see Customizing the catalog on page 30). F Ai is written oper F from {i in I} A_i.
i I
You can modify the behavior of an operator or change one of your personal symbols in an operator, using the markup codes boper, to create a binary operator, and uoper, to create a unary operator.
Figure 28 : Modify Formula To apply this style in all your new Writer documents, you must Frame Style include the Formula style in your default template. To do so, create a new Writer document and modify the Formula frame style as you wish. Save the document using File > Templates > Save. To define this template as your default template, select File > Templates > Organize and double-click on My Templates. Right-click on the template you just created and choose Set As Default Template. If you wish to return to the default template given at installation, use the command Reset Default Template. New text documents will be based on this template.
32
Construction
Molecules Isotopes Ions
Example H2 SO4
238 92
Entry H_2 SO_4 (please note the space!) U lsub 92 lsup 238 SO_4^{2-{}} or SO_4^{2"-"}
SO2 4
Notes: lsub or lsup are abreviations for left subscript and left superscript. Empty braces after 2are necessary to avoid errors as there is no right member after the minus sign. For reversible reactions, there is no satisfactory double arrow in Math. If you have a font with a correct symbol, you may use the method described in Customizing the catalog on page 30. For instance, DejaVu fonts have these double arrows . Otherwise, you may find a special character in a document and copy it, for instance in this formula: C+O CO "". You will find other double arrows here: http://dev.w3.org/html5/html-author/charref from character x021C4.
( )
1 nz
0 f (t )dt
x =3 y =1 This formula combines various possibilities that Math offers, which makes it useful for testing. If you are working in a separate Math document, go to File > Save as to open the Save as dialog. Choose MathML from the list of available file formats, to save your formula as MathML.
For an embedded formula, choose Save copy as from the context menu.
33
Result
This formula was subsequently tested in several browsers.
Firefox 14.0.1
Opera 12.00
Internet Explorer 9
Safari 5.1 only opens the file manager to save the data.
Loading
If [L] is checked, LibreOffice converts Microsoft formulas into native format when a document is loaded. This is possible if the formulas were created with MathType4 (up to version 3.1) or with the Microsoft Equation Editor. The latter is a reduced, older version of MathType licensed by Microsoft and included in the Microsoft Office package. Formulas created by newer versions of MathType or by the new Microsoft formula editor OMML5 Equation Editor (Microsoft Office Suite 2010 and to some extent 2007) cannot be converted. If a document created in Microsoft Office 2010 and containing an OMML formula is saved into a .doc file format, Microsoft Office converts the formula into a graphic. Only this graphic is then accessible to LibreOffice.
4 http://www.dessci.com/en/ 5 Office Math Markup Language 34 LibreOffice 3.5 Math Guide
If you load a .docx document that contains OMML formulas, these fail in conversion whether [L] is checked or not. Inside Microsoft Office, formulas created with MathType or Microsoft Equation Editor are treated as OLE objects. If [L] is not checked, LibreOffice maintains this. Double-clicking on the object launches MathType and new formulas can be inserted using Insert > Object > OLE Object. This setup is to be recommended if you have MathType installed and wish to use it to create and edit formulas.
Saving
If [S] is checked, LibreOffice converts the formula into a form that can be read and modified by Microsoft Equation Editor and MathType. When [S] is not checked, the formula is treated as an OLE object on conversion into a .doc format, and remains linked to LibreOffice. A double-click on the object in Word will therefore attempt to launch LibreOffice. If you save in the .docx format, formulas are not converted, whether [S] is checked or not.
XHTML
The XHTML file format is available only as an export format. For this reason you will find the option under File > Export rather than File > Save as. If this option is missing in your setup, you can install the necessary filter (run LibreOffice Setup, select Modify, and then select Optional Components > XSLT Sample Filters). The replacement graphic for the formula is embedded in the file, but the original Math markup code, included as an annotation element in MathML, is absent in this case (compare with the section on Export as MathML on page 33). Whether the document is correctly displayed depends on the browser. Firefox shows the document correctly including the formulas. Opera and Internet Explorer have some problems with the embedded graphic. The older filter HTML Document (OpenOffice.org Writer)(.html) does not save formulas at all but uses only a poorly resolved graphic in .gif file format.
Flat XML
This format can be both read and saved by LibreOffice. If the option is not present under File > Save or File > Save as, you can install the necessary filter. In this format, the whole content of the document, including the template, is saved within an XML document. In other words, it is not a compressed folder, as is usually the case for saved OpenDocument files. Any formulas are included as MathML elements, similar to the results of exporting as MathML. However individual formulas are not saved, only the whole document including the formulas. This format is suitable for direct entry into an external version control system.
Export and import 35
Extensions
If you use Math frequently, you may wish to install one of the following extensions, which ease formula editing. The programs do not compete, but help one each other when it is possible. However, Dmaths and CmathOOo cannot be simultaneously installed. They are both complementary; you may install them on separate login to test them before choosing.
Single-click creation of Math formulas from text input (orange symbols) Creation of Math formulas using an input dialog (violet symbols) Tagging text (blue symbols) Changing the properties of existing formulas (green symbols) Drawing graphics, grids, statistical diagrams and geometrical figures (cyan symbols) Drawing and modification of geometric objects (gray Gdmath toolbar, also available in LibreOffice Draw)
Technical details
OASIS Open Document Format for Office applications
The ODF specification does not lay down a completely new standard for Math formulas but takes over the Standard Mathematical Markup Language (MathML) developed by the World Wide Web Consortium (W3C) for representing formulas on websites (compare http://www.w3.org/TR/2003/REC-MathML2-20031021). Of the two types provided, Presentation markup and Content markup, ODF uses the former. It therefore describes the representation of a formula rather than its mathematical meaning. The MathML markup language differs from the one used in the equation editor. So, for example, in the formula int from {i=1} to 3 {f(t) {nitalic d}t}, the parts from... to are not translated but converted into MathML similarly to int_{i=1}^3. The original formula in the equation editor is a StarMath7 5.0 encoding. To prevent it from being lost, it is stored as an annotation element. Other applications do not need either to evaluate nor to save this element, nor do they themselves create it. In LibreOffice a formula is always associated with a replacement graphic. In the container formats - .odf, .odt and so on these graphics are stored in a separate folder and are internally linked to their document. However if you use the file format Open Document (Flat XML) or export to XHTML, these graphics must be embedded. For this purpose they are encoded in BASE64.
6 http://www-fourier.ujf-grenoble.fr/~parisse/giac.html 7 LibreOffice is based on the StarOffice suite, developed by StarDivision. Technical details 37
This collection is numbered continuously from 0. You can find a given object by:
nEndIndex = oEmbeddedObjects.Count-1 for nIndex=0 to nEndIndex oMathObject = oEmbeddedObjects.getByIndex(nIndex)
To determine if this object is actually a formula, test whether it supports a service that is supported by formulas:
oModel = oMathObject.Model if oModel.supportsService("com.sun.star.formula.FormulaProperties") then
Alternatively test if the CLSID, which every OLE object possesses, is that belonging to a Math object:
if oMathObject.CLSID = "078B7ABA-54FC-457F-8551-6147e776a997" then
Using the model, you can then alter the properties of the formula, for example the basic font size:
oModel.BaseFontHeight = 12
To make this change visible, the formula must be redrawn. The ExtendedControlOverEmbeddedObject property provides some methods that specifically apply to OLE objects:
oXCOEO = oMathObject.ExtendedControlOverEmbeddedObject oXCOEO.update()
As an illustration, here is a macro modifying all formatting of all formulas already written in a document:
Sub ChangeFormatFormule oCurrentController = ThisComponent.getCurrentController() oTextDocument = oCurrentController.Model oEmbeddedObjects = oTextDocument.EmbeddedObjects nEndIndex = oEmbeddedObjects.Count-1 for nIndex=0 to nEndIndex oMathObject = oEmbeddedObjects.getByIndex(nIndex) oModel = oMathObject.Model if (not isNull(oModel)) then if(not isEmpty(oModel)) then if oModel.supportsService("com.sun.star.formula.FormulaProperties") then ' or if oMathObject.CLSID = ' "078B7ABA-54FC-457F-8551-6147e776a997" then oModel.BaseFontHeight = 11 policeCommune= "Liberation Serif" ' Variables oModel.FontNameVariables= policeCommune
38
oModel.FontVariablesIsItalic=true oModel.FontVariablesIsBold=false ' Functions oModel.FontNameFunctions = policeCommune oModel.FontFunctionsIsItalic=false oModel.FontFunctionsIsBold=false ' Numbers oModel.FontNameNumbers= policeCommune oModel.FontNumbersIsItalic=false oModel.FontNumbersIsBold=false ' Text oModel.FontNameText= policeCommune oModel.FontTextIsItalic=false oModel.FontTextIsBold=false ' Update oXCOEO = oMathObject.ExtendedControlOverEmbeddedObject oXCOEO.update() endif ' if formula endif ' if not empty endif ' if not null next nIndex ThisComponent.reformat() ' Met jour tous les lments du document End Sub
Check help page8 on FormulaProperties to know all other properties you can modify.
Command +1 1 +1 or plusminus 1 +1 or minusplus 1 a + b a b a cdot b a times b a * b a over b a div b a / b a circ b a wideslash b a widebslash b neg a a and b or a & b a or b or a | b a bslash b a oplus b a ominus b a otimes b a odot b a odivide b uoper monOp b a boper monOp b
Display +1
1 1 or 1 1 or 1
a+ b
ab
ab
ab
ab a b ab
a /b
a b
a b b a a ab or ab ab or ab
a b
ab
ab
ab
Tensorial product
ab
ab
monOp b a monOp b
40
Relations
Operation
Is equal Is not equal Less than Less than or equal to Very small Greater than Greater than or equal to Very big Approximately Similar to Similar to or equal Congruent Proportional Parallel Orthogonal to Divides Does not divide Toward Arrow left Double arrow left and right Arrow right Precedes Succeeds Precedes or equal to Succeeds or equal to Precedes or equal to Succeeds or equal to Does not precede Does not succeed Definition Image from Origin from
Command
a = b a <> b or a neq b a < b or a lt b a <= b a leslant b a ll b or a << b a > b or a gt b a >= b a geslant b a gg b or a >> b a approx b a sim b a simeq b a equiv b a prop b a parallel b a ortho b a divides b a ndivides b a toward b a dlarrow b a dlrarrow b a drarrow b a prec b a succ b a preccurlyeq b a succcurlyeq b a precsim b a succsim b a nprec b a nsucc b a def b a transl b a transr b
Display a=b
ab
ab
ab
ab
ab
ab
a b ab
ab
ab
ab
ab
ab
ab
ab
ab
ab ab
ab
ab
ab
ab
41
Set operations
Operation
Is in Is not in Owns Intersection Union Difference Quotient Subset Subset or equal to Superset Superset or equal to Not subset Not subset or equal Not superset Not superset or equal Empty set Aleph Set of natural numbers Set of integers Set of rational numbers Set of real numbers Set of complex numbers
Command a in B a notin B A owns b or A ni b A intersection B A union B A setminus B A slash B A subset B A subseteq B A supset B A supseteq B A nsubset B A nsubseteq B A nsupset B A nsupseteq B emptyset aleph setN setZ setQ setR setC
Display
aB
aB Ab or Ab
AB
AB
A B
A/ B
AB
AB
AB
AB
AB
AB
AB
AB
42
Functions
Operation
Absolute value Factorial Square root nth root Power Exponential Natural logarithm Exponential function Logarithm Sine Cosine Tangent Cotangent Hyperbolic sine Hyperbolic cosine Hyperbolic tangent Hyperbolic otangent Arcsine Arccosine Arctangent Arccotangent Area hyperbolic sine Area hyperbolic cosine Area hyperbolic tangent Area hyperbolic cotangent
Command abs{a} fact{a} sqrt{a} nroot{n}{a} a^{b} func e^{a} ln(a) exp(a) log(a) sin(a) cos(a) tan(a) cot(a) sinh(a) cosh(a) tanh(a) coth(a) arcsin(a) arccos(a) arctan(a) arccot(a) arsinh(a) arcosh(a) artanh(a) arcoth(a)
Display
a
a!
a
n a
ab
ea ln(a) exp(a)
log(a)
sin(a)
cos(a)
tan (a)
cot(a)
sinh(a)
cosh(a)
tanh(a)
coth(a)
arcsin(a)
arccos(a)
arctan(a)
arccot(a)
arsinh(a)
arcosh(a)
artanh(a)
arcoth(a)
43
Operators
All operators can be used with the limit functions (from and to). Operation
Limit Lower limit Upper limit Sum Product Coproduc Integral Double integral Triple integral Contour integral Double curved integral Triple curved integral Lower bound shown with summation symbol Upper bound shown with product symbol Upper and lower bounds shown with integral Customized operator
Command lim{a} liminf{a} limsup{a} sum{a} prod{a} coprod{a} int{a} iint{a} iiint{a} lint a llint a lllint a sum from {3} b prod to {3} r int from {r_0} to {r_t} a oper Op from 0 to 1 a
Display lim a
lim inf a
lim sup a
a a a a a a a a a
b
3
r a
r0 rt
Op a
0
44
Attributes
Operation
Acute accent Grave accent Reverse circumflex Breve Circle Dot Double dot Triple dot Line above Vector arrow Tilde Circumflex Wide vector arrow Wide tilde Wide circumflex Line over Line under Line through Transparent (useful to get a placeholder of a given size) Bold font Not bold font Italic font9 Not italic font Font size Font size Font size Following item in sans serif font 10 Following item in serif font
Command acute a grave a check a breve a circle a dot a ddot a dddot a bar a vec a tilde a hat a widevec abc widetilde abc widehat abc overline abc underline abc overstrike abc phantom a bold a nbold a ital "a" or italic "a" nitalic a size 16 qv size +12 qv size *1.5 qv font sans qv font serif qv
Display
a
a
a
a a a
a
a
a
a
a
a
abc
abc abc
abc
abc
acb
a
a a or a
qv
qv
qv
qv
qv
9 Unquoted text that is not a command is considered to be a variable. Variables are, by default, italicized. 10 There are three custom fonts: sans serif (without kicks), serifs (with kicks), and fixed (non-proportional). To change the actual fonts used for custom fonts and the fonts used for variables (unquoted text), numbers and functions, use Format > Fonts (see page 19). Math commands - Reference 45
Operation
Following item in fixed font Make color of following text cyan 11 Make color of following text yellow Make color of following text white Make color of following text green Make color of following text blue Make color of following text red Make color of following text black Make color of following text magenta Make color green returns to default color black Brace items to change color of more than one item
Command font fixed qv color cyan qv color yellow qv color white qv color green qv color blue qv color red qv color black qv color magenta qv color green X qv color green {X qv}
Display qv
qv
qv
qv
qv
qv
qv
qv
qv
X qv X qv
Brackets
Operation
Group brackets (used for program control) Round Brackets Square Brackets Double Square Brackets Braces Angle Brackets Operator Brackets Upper half square brackets Lower half square brackets Single line Double line Scalable round brackets (add the word left before a left bracket and right before a right bracket) Square brackets scalable (as above)
Command {a} (a) [b] ldbracket c rdbracket lbrace w rbrace langle d rangle langle a mline b rangle lceil a rceil lfloor a rfloor lline a rline ldline a rdline left ( stack{a # b # z} right ) left [ a over b right ]
Display
a
(a)
[b ]
c {w }
d
a b a
a
a
a
()
a b z
[]
a b
11 For all coloring, the color will apply only to the text immediately following the command until the next space is encountered. In order to have the color apply to more characters, place the text you want in color in curly brackets. 46 LibreOffice 3.5 Math Guide
Operation
Double square brackets scalable Brace scalable Angle bracket scalable Operator brackets scalable Upper half square brackets scalable Lower half square brackets scalable Line scalable Double line scalable Unpaired brackets (add left before left bracket and right before right bracket) Isolated bracket Over brace scalable Under brace scalable
Command left ldbracket a over b right rdbracket left lbrace a over b right rbrace left langle a over b right rangle left langle a over b mline c right rangle left lceil a over b right rceil left lfloor a over b right rfloor left lline a over b right rline left ldline a over b right rdline left langle a over b right rfloor left lbrace stack {a=2#b=3} right none {the brace is above} overbrace a {the brace is below} underbrace {f}
Display
{}
a b a b a b a c b a b a b a b a b a b
{ a=2 b=3
the brace is above thebrace is below
f a
47
Formats
Operation
Right superscript Right subscript Left superscript Left subscript Center superscript Center subscript New line Small gap (grave) Large gap (tilde) No gap Normal Vertical stack of 2
Command a^{b} a_{b} a lsup{b} a lsub{b} a csup{b} a csub{b} asldkfjo newline sadkfj stuff `stuff stuff~stuff nospace { x + y } x+y binom{a}{b} stack{a # b # z} matrix{ a # b ## c # d } stack{Hello world # alignl(a)} stack{ Hello world # alignc(a)} stack{ Hello world # alignr(a)} matrix{ a # "=" # alignl{b} ## {} # "=" # alignl{c+1} } stack{ alignl{a} = b # alignl{phantom{a} = c+1} }
Display ab
ab
b
a
b
asldkfjo sadkfj
stuff stuff
stuff stuff x+ y x+ y a b a b z a b c d Hello world (a) Hello world (a) Hello world (a) a =b = c +1
Matrix
Align character to left (text is aligned center by default) Align character to center Align character to right
a =b = c +1
48
Others
Operation
Infinity Partial Nabla There exists There does not exist For all H bar Lambda bar Real part Imaginary part Weierstrass p Reversed epsilon Left arrow Right arrow Up arrow Down arrow Dots at bottom Dots at middle Dots vertical Dots diagonal upward Dots diagonal downward
Command infinity or infty partial nabla exists notexists forall hbar lambdabar re im wp
backepsilon
Display or
leftarrow rightarrow uparrow downarrow dotslow dotsaxis dotsvert dotsup or dotsdiag dotsdown
or
49
Characters Greek
In localized versions of Writer, the markup names of Greek and special characters are localized. If this document is not localized to the same language, then the names below may not work for input. You may still use the Symbol catalog (Figure 8) to select the desired character by its glyph. This will also display the character's localized markup name. Once entered, the characters will display properly in any language. Contrary to commands, special characters are case sensitive.
Caution
Italic characters can be obtained by just adding an i after per cent character. For instance %iPI instead of %PI . %ALPHA %ZETA %LAMBDA %PI %PHI %alpha %varepsilon %iota %xi %varrho %phi %BETA
%GAMMA %THETA
%NU
%DELTA
%EPSILON
%epsilon %vartheta %nu %KAPPA %OMICRON %UPSILON
%ETA
%IOTA %XI %TAU %OMEGA %delta %theta %mu %varpi %tau %psi
%MU
%RHO
%CHI
%SIGMA
%beta
%zeta %kappa %omicron %sigma %varphi
%rho %upsilon
%varsigma
%chi
%omega
Characters Special
Some special characters correspond to same symbol as operator but there is no syntax verification (presence of left or right elements). %perthousand %noelement %and %identical
50
alignl : left alignment alignm : (centered vertical alignment) 12 alignr : right alignment alignt : (top vertical alignment) 12 and : logical operator and approx : sign approximately, two ~ one over each arccos : function arc cosine arccot : function arc cotangent arcosh : area hyperbolic cosine arcoth : area hyperbolic cotangent arcsin : function arc sine arctan : function arc tangent arsinh : function area hyperbolic sinus artanh : function area hyperbolic tangent backepsilon : upside down epsilon. bar : add bar to next character. binom : put 2 elements one over each black : black color for 'color' blue : blue color for 'color' bold : bold font boper : next character is treated as a binary operator (unchanged size) breve : half circle turned up bslash : operator \, as difference cdot : operator '.' for multiplication check : upside down circumflex accent circ : 'round' operator for composition of functions circle : add a circle over next character color : set color: black, blue, cyan, green, magenta, red, white, yellow coprod : coproduct (upside down ) or direct sum cos : function cosine cosh : hyperbolic cosine cot : cotangent coth : hyperbolic cotangent csub : centered subscript csup : centered superscript cyan : cyan color for 'color' dddot : add three points over: triple derivative in physics ddot : add two points over: double derivative in physics def : equal sign with DEF overwritten div : divide sign ':' with '-' in the middle divides : operator | (Sheffer bar), same as logical sign or dlarrow : left double arrow dlrarrow : left and right double arrow (equivalent)
12 These obsolete shortcuts are for alignbottom, align-mid and align-top (vertical alignments). Math recognizes them, but nothing is changed. Math commands - Reference
51
dot : add a point over: derivative in physics dotsaxis : align ... horizontally in the middle dotsdiag : align three points with a +45 slop dotsdown : align three points with a -45 slop dotslow : align ... on the bottom dotsup : align three points with a +45 slop dotsvert : align vertically 3 points downarrow : down arrow drarrow : right double arrow (imply) emptyset : empty set equiv : equivalent (equal sign with three strikes) exists : there exist (reversed E) exp : exponential function fact : factorial function (add '!' after) fixed : font attribute font : select a font forall : whatever (upside down A) from : goes with 'to' for limits of integrals, sums, etc. func : transforms a variable in function ge : greater or equal, horizontal = sign geslant : greater or equal, oblique = sign gg : much greater then '>>' grave : add a grave accent green : green color for 'color' gt : operator plus grand que hat : add a circumflex accent hbar : strik h (h), reduced Plancks constant (divided by ) iiint : triple integral, three times integral sign iint : double integral, twice integral sign im : function imaginary part in : is element of infinity : infinity symbol infty : infinity symbol int : simple integral intersection : intersection operator ital : italicized font italic : italicized font lambdabar : strike lambda langle : < to open '<...>' (angular bracket operator: langle ... mline ... rangle) lbrace : visible left brace '{' lceil : left square bracket without bottom ldbracket : double left square bracket ldline : left double line (norm) '||' le : less or equal, horizontal = sign left : next character is treated as an opening bracket leftarrow : left arrow leslant : less or equal, oblique = sign lfloor : left square bracket without top lim : limit operator
liminf : inferior limit operator limsup : superior limit operator lint : line integral (with a circle) ll : much lower than operator lline : left bar to open absolute value '|' llint : double line integral (with a circle) lllint : triple line integral (with a circle) ln : function natural logarithm log : function decimal logarithm lsub : left subscript lsup : left superscript lt : operator less than '<' magenta : magenta color for 'color' matrix : defines a matrix minusplus : '+' sign, plus under '-' mline : vertical line '|' (angular bracket operator: langle ... mline ... rangle) nabla : nabla operator, upside down . nbold : not bold font. ndivides : does not divide operator, / vertically stroked neg : operator no neq : operator different newline : new line ni : inverted sign is element of nitalic : not italic font none : combined with 'left' or 'right' to indicate invisible left or right bracket notin : is not element of operator nroot : nth root nsubset : is not strictly include in operator nsubseteq : is not include or equal in operator nsupset : reversed is not strictly include in operator nsupseteq : reversed is not include or equal in operator odivide : operator / in a circle odot : operator '.' in a circle ominus : operator '' in a circle oper : transforms next variable in a large operator with limits (like ) oplus : direct sum operator, + in a circle or : logical operator or, upside down ^ ortho : orthogonal operator, perpendicular symbol otimes : tensor product operator, x in a circle over : division operator, to write division with horizontal fraction bar overbrace : put next element over previous one with an horizontal brace overline : add an horizontal bar over next element overstrike : strike-through characters owns : reversed is element of parallel : parallel operator '||' partial : round d for partial derivative phantom : invisible element, to let empty space
52
plusminus : operator '+-' with '+' over prod : product operator, prop : proportional operator rangle : '>' to close '<...>' (angular bracket operator: langle ... mline ... rangle) rbrace : visible right brace rceil : right square bracket without bottom rdbracket : double right square bracket rdline : right double line (norm) '||' re : real part function red : red color for 'color' rfloor : right square bracket without top right : next character is treated as a closing bracket rightarrow : right arrow rline : right bar to close absolute value '|' rsub : subscript rsup : superscript sans : font option serif : font option setC : set of complex numbers setminus : operator \, subtraction of sets setN : set of natural numbers setQ : set of rational numbers setR : set of real numbers setZ : set of integers sim : operator equivalent, write one ~ simeq : operator similarly equal, write a double ~ sin : function sine sinh : function hyperbolic sine size : change font size slash : operator slash '/' sqrt : operator square root stack : define a stack of elements separated with '#'
sub : subscript subset : strictly include operator subseteq : include or equal operator sum : sum operator, sup : superscript supset : reversed strictly include operator supseteq : reversed include or equal operator tan : tangent function tanh : hyperbolic tangent function tilde : add a tilde '~' over next character times : multiplication operator, 'X' to : goes with 'from' for limits of integrals, sums, etc. toward : arrow to the right transl : 2 small joined circles, the one of the left is filled (sign of correspondence Image from) transr : 2 small joined circles, the one of the right is filled (sign of correspondence Origin of) underbrace : put next element under previous one with an horizontal brace underline : add an horizontal bar under next element union : union operator, U uoper : next character is treated as a unary operator (unchanged size) uparrow : up arrow vec : add a small arrow over next character white : white color for 'color' widebslash : operator with a big '\' widehat : add an hat over next element wideslash : division operator with a big '/' widetilde : add a tilde on next element widevec : add an arrow over next element wp : Weierstrass p function yellow : yellow color for 'color'
53
54
Index
B
brackets (Math) 12 brackets commands (Math) 46
F
formats commands (Math) 48 formula editor See: equation editor 27 formula layout 12 function commands (Math) 43
C
characters special (Math) 50 characters Greek (Math) 50 chemical formulas 32
L
limits to sum/integral 15
D
derivative markup (Math) 15
M
mathematical and chemical equations 5 mathematical markup 9 mathematical symbols 7 matrix markup (Math) 13 miscellaneous commands (Math) 49
E
equation numbering 23 equation editor 5 brackets 12 derivative markup 15 Elements window 7 equations over more than one line 14 floating window 27 font size 18 formula layout 12 limits to sum/integral 15 markup 9 matrix markup 13 right-click menu 9
N
numbering equations 23
R
relational operator commands (Math) 41 reserved words 51
U
unary / binary operator commands (Math) 40
Index
55
56