EN
LibreOffice logo
Official user manual

LibreOffice Math 4.4

90 pages·2.2 MB·Software·PDF·ENDEFRITNLJA
LibreOffice Math 4.4
Table of Contents 127 sections Copyright · Contributors · Feedback · Acknowledgments · … ShowHide
Copyrightp.2Contributorsp.2Feedbackp.2Acknowledgmentsp.2Publication date and software versionp.2Prefacep.7Who is this book for?p.9Where to get more helpp.9Help systemp.9Free online supportp.9Paid support and trainingp.10What you see may be differentp.10Illustrationsp.10Iconsp.10What are all these things called?p.11Using LibreOffice on a Macp.12Who wrote this book?p.12Frequently asked questionsp.12What is new in LibreOffice 4.4?p.13Chapter 1 Creating & Editing Formulasp.15Introductionp.17Getting startedp.17Formulas as separate documents or filesp.17Formulas in LibreOffice documentsp.18Creating formulasp.19Elements dialogp.19Elements Dockp.20Context menup.20Markup languagep.21Greek charactersp.21Using markup languagep.21Symbols dialogp.22Formula examplesp.22Example 1p.22Example 2p.23Editing formulasp.23Formula layoutp.24Using bracesp.24Brackets (parentheses) and matricesp.25Unpaired bracketsp.25Non-scalable bracketsp.25Scalable bracketsp.26Recognizing functionsp.26Formulas over multiple linesp.26Adding limits to sum/integral commandsp.27Writing derivativesp.27Markup language characters as normal charactersp.28Text in formulasp.28Aligning formulas using equals signp.29Changing formula appearancep.29Formula font sizep.29Current formula font sizep.29Default formula font sizep.30Font size optionsp.30Formula fontsp.31Current formula fontsp.31Default formula fontsp.31Formula font optionsp.31Adjusting formula spacingp.32Current formula spacingp.33Default formula spacingp.33Spacing optionsp.33Adjusting formula alignmentp.34Current formula alignmentp.35Default formula alignmentp.35Changing formula colorp.35Character colorp.35Background colorp.36Formula libraryp.36Using Mathp.36Using Writer, Calc, Draw, or Impressp.36Using your formula libraryp.37Chapter 2 Formulas in Writerp.39Introductionp.41Automatic formula numberingp.41Numberingp.41Cross referencingp.42Anchoring formulasp.42Vertical alignmentp.43Object spacingp.43Text modep.44Background and bordersp.44Backgroundsp.45Bordersp.46Quick insertion of formulasp.46Chapter 3 Formulas in Calc, Draw & Impressp.47Introductionp.49Anchoring formulasp.49Calcp.49Draw and Impressp.49Formula object propertiesp.49Formulas in chartsp.50Chapter 4 Customizationp.51Introductionp.53Chemical formulasp.53Floating dialogsp.53Adding keyboard shortcutsp.54Example keyboard shortcutp.54Keyboard customize optionsp.55Catalog customizationp.56Adding symbolsp.56Editing symbolsp.57Modifying symbol namesp.57Moving symbolsp.58Deleting symbolsp.58Options for editing symbolsp.58Formula spacingp.59Extensionsp.59Chapter 5 Exporting & Importingp.61Math ML formatp.63Microsoft file formatsp.63[L]: Load and convert the objectp.63[S]: Convert and save the objectp.63Appendix A Commands Referencep.65Introductionp.67Unary/binary operator commandsp.67Relation commandsp.68Set operation commandsp.70Functionsp.71Operatorsp.73Attributesp.77Bracketsp.79Formatsp.83Othersp.85Greek charactersp.86Special charactersp.87Reserved wordsp.88
Page 1 of the LibreOffice Math 4.4 user manual
Page 1 · click to enlarge
Page 1
LibreOffice Math 4.4 diagram (page 1)
Fig. 1
Page 2 of the LibreOffice Math 4.4 user manual — Publication date and software version
Page 2 · click to enlarge
Page 2

Copyright

This document is Copyright © 2012–2015 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/4.0/), version 4.0 or later.

All trademarks within this guide belong to their legitimate owners.

Contributors

Peter Schofield Hazel Russman Laurent Balland-Poirier Jean Hollis Weber

Feedback

Please direct any comments or suggestions about this document to the Documentation Team’s mailing list: documentation@global.libreoffice.org

Acknowledgments

This guide is adapted and updated from 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 Kühl 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 Frédéric Parrenin

Publication date and software version

Published 22 March 2015. Based on LibreOffice 4.4.

Documentation for LibreOffice is available at http://www.libreoffice.org/get-help/documentation

Page 3 of the LibreOffice Math 4.4 user manual — Table of contents
Page 3 · click to enlarge
Page 3

Table of contents

Copyrightp.2Contributorsp.2Feedbackp.2Acknowledgmentsp.2Publication date and software versionp.2Prefacep.7Who is this book for?p.9Where to get more helpp.9Help systemp.9Free online supportp.9Paid support and trainingp.10What you see may be differentp.10Illustrationsp.10Iconsp.10What are all these things called?p.11Using LibreOffice on a Macp.12Who wrote this book?p.12Frequently asked questionsp.12What is new in LibreOffice 4.4?p.13Chapter 1 Creating & Editing Formulasp.15Introductionp.17Getting startedp.17Formulas as separate documents or filesp.17Formulas in LibreOffice documentsp.18Creating formulasp.19Elements dialogp.19Elements Dockp.20Context menup.20Markup languagep.21Greek charactersp.21Using markup languagep.21Symbols dialogp.22Formula examplesp.22Example 1p.22Example 2p.23Editing formulasp.23Formula layoutp.24Using bracesp.24Brackets (parentheses) and matricesp.25Unpaired bracketsp.25Non-scalable bracketsp.25Scalable bracketsp.26Recognizing functionsp.26Formulas over multiple linesp.26Adding limits to sum/integral commandsp.27Writing derivativesp.27Markup language characters as normal charactersp.28Text in formulasp.28Aligning formulas using equals signp.29Changing formula appearancep.29Formula font sizep.29Current formula font sizep.29Default formula font sizep.30Font size optionsp.30Formula fontsp.31Current formula fontsp.31Default formula fontsp.31Formula font optionsp.31Adjusting formula spacingp.32Current formula spacingp.33Default formula spacingp.33Spacing optionsp.33Adjusting formula alignmentp.34Current formula alignmentp.35Default formula alignmentp.35Changing formula colorp.35Character colorp.35Background colorp.36Formula libraryp.36Using Mathp.36Using Writer, Calc, Draw, or Impressp.36Using your formula libraryp.37Chapter 2 Formulas in Writerp.39Introductionp.41Automatic formula numberingp.41Numberingp.41Cross referencingp.42Anchoring formulasp.42Vertical alignmentp.43Object spacingp.43Text modep.44Background and bordersp.44Backgroundsp.45Bordersp.46Quick insertion of formulasp.46Chapter 3 Formulas in Calc, Draw & Impressp.47Introductionp.49Anchoring formulasp.49Calcp.49Draw and Impressp.49Formula object propertiesp.49Formulas in chartsp.50Chapter 4 Customizationp.51Introductionp.53Chemical formulasp.53Floating dialogsp.53Adding keyboard shortcutsp.54Example keyboard shortcutp.54Keyboard customize optionsp.55Catalog customizationp.56Adding symbolsp.56Editing symbolsp.57Modifying symbol namesp.57Moving symbolsp.58Deleting symbolsp.58Options for editing symbolsp.58Formula spacingp.59Extensionsp.59Chapter 5 Exporting & Importingp.61Math ML formatp.63Microsoft file formatsp.63[L]: Load and convert the objectp.63[S]: Convert and save the objectp.63Appendix A Commands Referencep.65Introductionp.67Unary/binary operator commandsp.67Relation commandsp.68Set operation commandsp.70Functionsp.71Operatorsp.73Attributesp.77Bracketsp.79Formatsp.83Othersp.85Greek charactersp.86Special charactersp.87Reserved wordsp.88
Page 4 of the LibreOffice Math 4.4 user manual — Table of contents
Page 4 · click to enlarge
Page 4

Table of contents

Copyrightp.2Contributorsp.2Feedbackp.2Acknowledgmentsp.2Publication date and software versionp.2Prefacep.7Who is this book for?p.9Where to get more helpp.9Help systemp.9Free online supportp.9Paid support and trainingp.10What you see may be differentp.10Illustrationsp.10Iconsp.10What are all these things called?p.11Using LibreOffice on a Macp.12Who wrote this book?p.12Frequently asked questionsp.12What is new in LibreOffice 4.4?p.13Chapter 1 Creating & Editing Formulasp.15Introductionp.17Getting startedp.17Formulas as separate documents or filesp.17Formulas in LibreOffice documentsp.18Creating formulasp.19Elements dialogp.19Elements Dockp.20Context menup.20Markup languagep.21Greek charactersp.21Using markup languagep.21Symbols dialogp.22Formula examplesp.22Example 1p.22Example 2p.23Editing formulasp.23Formula layoutp.24Using bracesp.24Brackets (parentheses) and matricesp.25Unpaired bracketsp.25Non-scalable bracketsp.25Scalable bracketsp.26Recognizing functionsp.26Formulas over multiple linesp.26Adding limits to sum/integral commandsp.27Writing derivativesp.27Markup language characters as normal charactersp.28Text in formulasp.28Aligning formulas using equals signp.29Changing formula appearancep.29Formula font sizep.29Current formula font sizep.29Default formula font sizep.30Font size optionsp.30Formula fontsp.31Current formula fontsp.31Default formula fontsp.31Formula font optionsp.31Adjusting formula spacingp.32Current formula spacingp.33Default formula spacingp.33Spacing optionsp.33Adjusting formula alignmentp.34Current formula alignmentp.35Default formula alignmentp.35Changing formula colorp.35Character colorp.35Background colorp.36Formula libraryp.36Using Mathp.36Using Writer, Calc, Draw, or Impressp.36Using your formula libraryp.37Chapter 2 Formulas in Writerp.39Introductionp.41Automatic formula numberingp.41Numberingp.41Cross referencingp.42Anchoring formulasp.42Vertical alignmentp.43Object spacingp.43Text modep.44Background and bordersp.44Backgroundsp.45Bordersp.46Quick insertion of formulasp.46Chapter 3 Formulas in Calc, Draw & Impressp.47Introductionp.49Anchoring formulasp.49Calcp.49Draw and Impressp.49Formula object propertiesp.49Formulas in chartsp.50Chapter 4 Customizationp.51Introductionp.53Chemical formulasp.53Floating dialogsp.53Adding keyboard shortcutsp.54Example keyboard shortcutp.54Keyboard customize optionsp.55Catalog customizationp.56Adding symbolsp.56Editing symbolsp.57Modifying symbol namesp.57Moving symbolsp.58Deleting symbolsp.58Options for editing symbolsp.58Formula spacingp.59Extensionsp.59Chapter 5 Exporting & Importingp.61Math ML formatp.63Microsoft file formatsp.63[L]: Load and convert the objectp.63[S]: Convert and save the objectp.63Appendix A Commands Referencep.65Introductionp.67Unary/binary operator commandsp.67Relation commandsp.68Set operation commandsp.70Functionsp.71Operatorsp.73Attributesp.77Bracketsp.79Formatsp.83Othersp.85Greek charactersp.86Special charactersp.87Reserved wordsp.88
Page 5 of the LibreOffice Math 4.4 user manual — Table of contents
Page 5 · click to enlarge
Page 5

Table of contents

Copyrightp.2Contributorsp.2Feedbackp.2Acknowledgmentsp.2Publication date and software versionp.2Prefacep.7Who is this book for?p.9Where to get more helpp.9Help systemp.9Free online supportp.9Paid support and trainingp.10What you see may be differentp.10Illustrationsp.10Iconsp.10What are all these things called?p.11Using LibreOffice on a Macp.12Who wrote this book?p.12Frequently asked questionsp.12What is new in LibreOffice 4.4?p.13Chapter 1 Creating & Editing Formulasp.15Introductionp.17Getting startedp.17Formulas as separate documents or filesp.17Formulas in LibreOffice documentsp.18Creating formulasp.19Elements dialogp.19Elements Dockp.20Context menup.20Markup languagep.21Greek charactersp.21Using markup languagep.21Symbols dialogp.22Formula examplesp.22Example 1p.22Example 2p.23Editing formulasp.23Formula layoutp.24Using bracesp.24Brackets (parentheses) and matricesp.25Unpaired bracketsp.25Non-scalable bracketsp.25Scalable bracketsp.26Recognizing functionsp.26Formulas over multiple linesp.26Adding limits to sum/integral commandsp.27Writing derivativesp.27Markup language characters as normal charactersp.28Text in formulasp.28Aligning formulas using equals signp.29Changing formula appearancep.29Formula font sizep.29Current formula font sizep.29Default formula font sizep.30Font size optionsp.30Formula fontsp.31Current formula fontsp.31Default formula fontsp.31Formula font optionsp.31Adjusting formula spacingp.32Current formula spacingp.33Default formula spacingp.33Spacing optionsp.33Adjusting formula alignmentp.34Current formula alignmentp.35Default formula alignmentp.35Changing formula colorp.35Character colorp.35Background colorp.36Formula libraryp.36Using Mathp.36Using Writer, Calc, Draw, or Impressp.36Using your formula libraryp.37Chapter 2 Formulas in Writerp.39Introductionp.41Automatic formula numberingp.41Numberingp.41Cross referencingp.42Anchoring formulasp.42Vertical alignmentp.43Object spacingp.43Text modep.44Background and bordersp.44Backgroundsp.45Bordersp.46Quick insertion of formulasp.46Chapter 3 Formulas in Calc, Draw & Impressp.47Introductionp.49Anchoring formulasp.49Calcp.49Draw and Impressp.49Formula object propertiesp.49Formulas in chartsp.50Chapter 4 Customizationp.51Introductionp.53Chemical formulasp.53Floating dialogsp.53Adding keyboard shortcutsp.54Example keyboard shortcutp.54Keyboard customize optionsp.55Catalog customizationp.56Adding symbolsp.56Editing symbolsp.57Modifying symbol namesp.57Moving symbolsp.58Deleting symbolsp.58Options for editing symbolsp.58Formula spacingp.59Extensionsp.59Chapter 5 Exporting & Importingp.61Math ML formatp.63Microsoft file formatsp.63[L]: Load and convert the objectp.63[S]: Convert and save the objectp.63Appendix A Commands Referencep.65Introductionp.67Unary/binary operator commandsp.67Relation commandsp.68Set operation commandsp.70Functionsp.71Operatorsp.73Attributesp.77Bracketsp.79Formatsp.83Othersp.85Greek charactersp.86Special charactersp.87Reserved wordsp.88
Page 6 of the LibreOffice Math 4.4 user manual — Copyright
Page 6 · click to enlarge
Page 6
Page 6 of the LibreOffice Math 4.4 user manual — Copyright
Page 7 of the LibreOffice Math 4.4 user manual — Math Guide
Page 7 · click to enlarge
Page 7
LibreOffice Math 4.4 — Preface diagram (page 7)
Fig. 2 · Preface

Math Guide

Preface

Page 8 of the LibreOffice Math 4.4 user manual — Preface
Page 8 · click to enlarge
Page 8
Page 8 of the LibreOffice Math 4.4 user manual — Preface
Page 9 of the LibreOffice Math 4.4 user manual — Free online support
Page 9 · click to enlarge
Page 9

Who is this book for?

LibreOffice Math is a formula (equation) editor that is an integral part of LibreOffice. Anyone who wants to learn how to insert formulas and equations using Math will find this guide valuable.

If you have never used LibreOffice Math before, or you want an introduction to all of the LibreOffice components, you might like to read the LibreOffice Getting Started Guide first.

Where to get more help

This guide, other LibreOffice user guides, the built-in Help system, and user support systems assume that you are familiar with your computer and basic functions such as starting a program, opening and saving files.

Help system

LibreOffice comes with an extensive Help system. This is your first line of support for using LibreOffice.

To display the full Help system, press F1 or go to Help > LibreOffice Help on the main menu bar. In addition, you can choose whether to activate Tips, Extended tips, and the Help Agent by going to Tools > Options > LibreOffice > General on the main menu bar.

If Tips are enabled, hover the mouse pointer over any of the icons and a small balloon (tooltip) will pop up giving a brief explanation of the function for that icon. For a more detailed explanation, select Help > What's This? on the main menu bar and hover the pointer over the icon.

Free online support

The LibreOffice community not only develops software, but provides free, volunteer-based support. See Table 1 and this web page: http://www.libreoffice.org/get-help/

Table 1Free support for LibreOffice users
Ask LibreOfficeQuestions and answers from the LibreOffice community http://ask.libreoffice.org/en/questions/ DocumentationUser guides, how-tos, and other documentation. http://www.libreoffice.org/get-help/documentation/ https://wiki.documentfoundation.org/Documentation/Publications Mailing listsFree community support is provided by a network of experienced users http://www.libreoffice.org/get-help/mailing-lists/ FAQsAnswers to frequently asked questions http://wiki.documentfoundation.org/Faq International supportThe LibreOffice website in your language. http://global.libreoffice.org/international-sites/ International mailing lists http://wiki.documentfoundation.org/Local Mailing Lists _ _ Accessibility optionsInformation about available accessibility options. http://www.libreoffice.org/get-help/accessibility/

You can get comprehensive online support from the community through mailing lists and the Ask LibreOffice website, http://ask.libreoffice.org/en/questions/ Other websites run by users also offer free tips and tutorials. This forum provides community support for LibreOffice: http://en.libreofficeforum.org/ This site provides support for LibreOffice, among other programs: http://forum.openoffice.org/en/forum/

Preface | 9

Page 10 of the LibreOffice Math 4.4 user manual — Icons
Page 10 · click to enlarge
Page 10

Paid support and training

Alternatively, you can pay for support services. Service contracts can be purchased from a vendor or consulting firm specializing in LibreOffice.

What you see may be different

LibreOffice runs on Windows, Linux, and Mac OS X operating systems, each of which has several versions and can be customized by users (fonts, colors, themes, window managers).

Illustrations

The illustrations in this guide were taken from a variety of computers and operating systems. Therefore, some illustrations will not look exactly like what you see on your computer display.

Also, some of the dialogs may be different because of the settings selected in LibreOffice. You can either use dialogs from your computer system or dialogs provided by LibreOffice. To change to using LibreOffice dialogs if settings have been altered:

1. Access the general options for LibreOffice as follows:

– On Linux and Windows operating systems, go to Tools > Options > LibreOffice > General on the main menu bar to open the dialog for general options.

– On a Mac operating system, go to LibreOffice > Preferences > General on the main menu bar to open the dialog for general options.

2. Select Use LibreOffice dialogs in Open/Save dialogs to display and use the LibreOffice dialogs for opening and saving files.
3. For Linux operating systems only, select Use LibreOffice dialogs in Print Dialogs to display and use the LibreOffice dialogs for printing your documents.
4. Click OK to save your settings and close the dialog. Note If you are using a Linux operating system as a virtual machine on a computer running a Windows or Mac operating system, then the LibreOffice option of using Print Dialogs is not available.

Icons

The icons used to illustrate some of the many tools available in LibreOffice may differ from the ones used in this guide. The icons in this guide have been taken from a LibreOffice installation that has been set to display the Galaxy set of icons. If you wish, you can change your LibreOffice software package to display Galaxy icons as follows:

1. Access the view options for LibreOffice as follows:

– On Linux and Windows operating systems, go to Tools > Options > LibreOffice > View on the main menu bar to open the dialog for view options.

– On a Mac operating system, go to LibreOffice > Preferences > View on the main menu bar to open the dialog for view options.

2. In User interface , select Galaxy from the options available in the Icon size and style dropdown list.
3. Click OK to save your settings and close the dialog.
Page 11 of the LibreOffice Math 4.4 user manual — What are all these things called?
Page 11 · click to enlarge
Page 11

What are all these things called?

The terms used in LibreOffice for most parts of the user interface (the parts of the program you see and use, in contrast to the behind-the-scenes code that actually makes it work) are the same as for most other programs.

A dialog is a special type of window. Its purpose is to inform you of something, or request input from you, or both. It provides controls for you to use to specify how to carry out an action. The technical names for common controls are shown in Figure 1. In most cases we do not use the technical terms in this book, but it is useful to know them because the Help and other sources of information often use them.

LibreOffice Math 4.4 — What are all these things called? diagram (page 11)
Fig. 3 · What are all these things called?
Figure 1Dialog (from Calc) showing common controls
1. Tabbed page (not strictly speaking a control).
2. Radio buttons (only one can be selected at a time).
3. Checkbox (more than one can be selected at a time).
4. Spin box (click the up and down arrows to change the number shown in the text box next to it, or type in the text box).
5. Thumbnail or preview.
6. Drop-down list from which to select an item.
7. Push buttons.

Preface | 11

Page 12 of the LibreOffice Math 4.4 user manual — Frequently asked questions
Page 12 · click to enlarge
Page 12

In most cases, you can interact only with the dialog (not the document itself) as long as the dialog remains open. When you close the dialog after use (usually, clicking OK or another button saves your changes and closes the dialog), then you can again work with your document.

Some dialogs can be left open as you work, so you can switch back and forth between the dialog and your document. An example of this type is the Find & Replace dialog.

Using LibreOffice on a Mac

Some keystrokes and menu items are different on a Mac from those used in Windows and Linux. The table below gives some common substitutions for the instructions in this chapter. For a more detailed list, see the application Help.

Windows or LinuxMac equivalentEffect Tools > Options menu selectionLibreOffice > PreferencesAccess setup options Right-clickControl+click or right-click depending on computer setupOpens a context menu Ctrl (Control)⌘ (Command)Used with other keys F5Shift+⌘+F5Open the Navigator F11⌘+TOpen the Styles and Formatting window

Who wrote this book?

This book was written by volunteers from the LibreOffice community, as listed on the Copyright page. Profits from sales of the printed edition will be used to benefit the community.

Frequently asked questions

How is LibreOffice licensed?

LibreOffice is distributed under the Open Source Initiative (OSI) approved Mozilla Public License (MPL). The MPL license is available from http://www.mozilla.org/MPL/2.0/

May I distribute LibreOffice to anyone?

Yes.

How many computers may I install it on?

As many as you like.

May I sell it?

Yes.

May I use LibreOffice in my business?

Yes.

Is LibreOffice available in my language?

LibreOffice has been translated (localized) into over 40 languages, so your language probably is supported. Additionally, there are over 70 spelling, hyphenation, and thesaurus dictionaries available for languages, and dialects that do not have a localized program interface. The dictionaries are available from the LibreOffice website at: www.libreoffice.org

How can you make it for free?

LibreOffice is developed and maintained by volunteers and has the backing of several organizations.

Page 13 of the LibreOffice Math 4.4 user manual — What is new in LibreOffice 4.4?
Page 13 · click to enlarge
Page 13

How can I contribute to LibreOffice?

You can help with the development and user support of LibreOffice in many ways, and you do not need to be a programmer. To start, check out this webpage: http://www.documentfoundation.org/contribution/

May I distribute the PDF of this book, or print and sell copies?

Yes, as long as you meet the requirements of one of the licenses in the copyright statement at the beginning of this book. You do not have to request special permission. In addition, we request that you share with the project some of the profits you make from sales of books, in consideration of all the work we have put into producing them.

What is new in LibreOffice 4.4?

The LibreOffice 4.4 Release Notes (changes from version 4.3) are here: https://wiki.documentfoundation.org/ReleaseNotes/4.4

You may also want to read the LibreOffice 4.3 Release Notes (changes from version 4.2): https://wiki.documentfoundation.org/ReleaseNotes/4.3

Preface | 13

Page 14 of the LibreOffice Math 4.4 user manual — What is new in LibreOffice 4.4?
Page 14 · click to enlarge
Page 14
Page 14 of the LibreOffice Math 4.4 user manual — What is new in LibreOffice 4.4?
Page 15 of the LibreOffice Math 4.4 user manual — Math Guide
Page 15 · click to enlarge
Page 15

Math Guide

Chapter 1

Creating & Editing Formulas

Page 16 of the LibreOffice Math 4.4 user manual — Chapter 1 Creating & Editing Formulas
Page 16 · click to enlarge
Page 16
Page 16 of the LibreOffice Math 4.4 user manual — Chapter 1 Creating & Editing Formulas
Page 17 of the LibreOffice Math 4.4 user manual — Formulas as separate documents or files
Page 17 · click to enlarge
Page 17

Introduction

Math is a formula editor module included with LibreOffice that allows you to create or edit formulas (equations) in a symbolic form, within LibreOffice documents or as stand-alone objects; example formulas are shown below. However, if you want to evaluate numeric values using formulas, then refer to the Calc Guide for more information as Math does not carry out any actual calculation.

df (x)

2. or NH 3 + H 2 O ⇌ NH 4 + + OH

dx =ln(x)+tan

−1(x

The Formula Editor in Math uses a markup language to represent formulas. This markup language is designed to be easily read wherever possible, for example, a over b produces the fraction

a b when used in a formula.

Getting started

Using the Formula Editor, you can create a formula as a separate document or file for a formula library, or insert formulas directly into a document using LibreOffice Writer, Calc, Impress or Draw.

Formulas as separate documents or files

To create a formula as a separate document or file, use one of the following methods to open an empty formula document in LibreOffice Math (Figure 2).

  • On the main menu bar, go to File > New > Formula .
  • On the Standard toolbar, click the triangle to the right of the New icon

and select Formula from the context menu.

LibreOffice Math 4.4 — Formulas as separate documents or files diagram (page 17)
Fig. 4 · Formulas as separate documents or files
Figure 2An empty formula document in Math

Chapter 1 Creating & Editing Formulas | 17

−

Page 18 of the LibreOffice Math 4.4 user manual — Formulas in LibreOffice documents
Page 18 · click to enlarge
Page 18
  • From the Start Center, click Math Formula .
  • From within LibreOffice Math, use the keyboard shortcut Ctrl+N .

As you enter the markup language in the Formula Editor, the formula will appear in the Preview window during and after input of the markup language. The Elements Dock to the left of the Preview window and/or the Elements dialog as a floating dialog may also appear, if these have been selected in View on the main menu bar. For more information on creating formulas, see “Creating formulas” on Page 19.

Formulas in LibreOffice documents

To insert a formula into a LibreOffice document, open the document in Writer, Calc, Draw, or Impress. The LibreOffice module you are using affects how you position the cursor to insert the formula.

  • In Writer, click in the paragraph where you want to insert the formula.
  • In Calc, click in the spreadsheet cell where you want to insert the formula.
  • In Draw and Impress, the formula is inserted into the center of the drawing or slide.

Then, go to Insert > Object > Formula on the main menu bar to open the Formula Editor. Alternatively, go to Insert > Object > OLE Object on the main menu bar to open the Insert OLE Object dialog, select Create new option and Formula from the sub-menu, then click OK to open the Formula Editor. The Elements Dock to the left of the Preview window and/or the Elements dialog as a floating dialog may also appear, if these have been selected in View on the main menu bar. For more information on creating formulas, see “Creating formulas” on Page 19.

Figure 3 shows an example Writer document with the formula box selected ready for a formula to be entered.

LibreOffice Math 4.4 — Formulas in LibreOffice documents diagram (page 18)
Fig. 5 · Formulas in LibreOffice documents
Figure 3Empty formula in a Writer document
Page 19 of the LibreOffice Math 4.4 user manual — Elements dialog
Page 19 · click to enlarge
Page 19

When you have completed entering the markup language for your formula, close the Formula Editor by pressing the Esc key or by clicking an area outside the formula in your document. Double-clicking on the formula object in your document will open the Formula Editor again so that you can edit the formula.

Formulas are inserted as OLE objects into documents. You can, as with any OLE object, change how the object is placed within your document. For more information on OLE objects, see Chapter 2 Formulas in Writer, Chapter 3 Formulas in Calc, Draw & Impress and the user guides for Writer, Calc, Draw, and Impress.

If you frequently insert formulas into documents, it is recommended to add the Formula button to the Standard toolbar or create a keyboard shortcut. See Chapter 4 Customization for more information.

Creating formulas

You can insert a formula using one of the following methods:

  • Select a category, then a symbol using the Elements dialog.
  • Select a category from the drop-down list, then a symbol using the Elements Dock.
  • Right-click in the Formula Editor and select a category, then a symbol from the context menu.
  • Enter markup language directly in the Formula Editor.

Elements dialog

1. Go to View > Elements on the main menu bar to open the Elements dialog (Figure 4).
2. Select the category you want to use in your formula from the upper part of the Elements dialog.
3. Select the symbol you want to use in your formula from the bottom part of the Elements dialog. The symbols that are available change according to the selected category.
LibreOffice Math 4.4 — Elements dialog diagram (page 19)
Fig. 6 · Elements dialog
Figure 4Elements dialog

Chapter 1 Creating & Editing Formulas | 19

Page 20 of the LibreOffice Math 4.4 user manual — Context menu
Page 20 · click to enlarge
Page 20

Tip When using the Elements dialog or the Elements Dock, it is recommended to have Tips selected in the LibreOffice Options. This will help you identify the categories and symbols you want to use in your formula. Go to Tools > Options on the main menu bar, then select LibreOffice > General in the Options dialog and select Tips in the Help section.

Elements Dock

The Elements Dock has the same categories as the Elements dialog and either can easily be used when entering your formula data. However, the Elements Dock also provides an Example category which gives you example formulas to use as a starting point for your formula or equation.

1. Go to View on the main menu bar and select Elements Dock to open the Elements Dock (Figure 5).
2. Select the category you want to use in your formula from the drop-down list at the top of the Elements Dock.
3. Select the symbol you want to use in your formula from the Elements Dock. The symbols that are available change according to the selected category.
LibreOffice Math 4.4 — Elements Dock diagram (page 20)
Fig. 7 · Elements Dock
Figure 5Elements Dock

Context menu

The Formula Editor also provides a context menu to access categories and symbols when creating your formula. Right-click in the Formula Editor to open the context menu. Select a category and then select the markup example that you want to use from the sub-context menu, an example is shown in Figure 6.

Page 21 of the LibreOffice Math 4.4 user manual — Greek characters
Page 21 · click to enlarge
Page 21
LibreOffice Math 4.4 — Markup language diagram (page 21)
Fig. 8 · Markup language
Figure 6Context menu in Formula Editor

Markup language

Markup language is entered directly into the Formula Editor. For example, typing the markup language 5 times 4 into the Formula Editor creates the simple formula 5×4 . If you are experienced in using markup language, it can be the quickest way to enter a formula. Table 2 shows some examples of using markup language to enter commands. For a full list of commands that can be used in the Formula Editor, see Appendix A Commands Reference.

Table 2Example commands using markup language

Display Command Display Command

a=b a = b √a sqrt {a}

2 a^2 an a_n

∫f (x)dx int f(x) dx ∑an sum a_n

a≤b a

a×b a times b x⋅y x cdot y

Greek characters

Using markup language Greek characters are commonly used in formulas, but Greek characters cannot be entered into a formula using the Elements dialog, Elements Dock, or the context menu. Use the English names of Greek characters in markup language when entering Greek characters into a formula. See Appendix A commands Reference for a list of Greek characters that can be entered using markup language.

  • For a lowercase Greek character, type a percentage % sign, then type the character name in lowercase using the English name. For example, typing %lambda creates the Greek character λ.
  • For an UPPERCASE Greek character, type a percentage % sign, then type the character name in UPPERCASE using the English name. For example, typing %LAMBDA creates the Greek character Λ.

Chapter 1 Creating & Editing Formulas | 21

a

Page 22 of the LibreOffice Math 4.4 user manual — Formula examples
Page 22 · click to enlarge
Page 22
  • For an italic Greek character, type a percentage % sign followed by the i character, then the English name of the Greek character in lower or UPPER case. For example, typing %iTHETA creates the italic Greek character Θ .

Symbols dialog Greek characters can also be entered into a formula using the Symbols dialog.

1. Make sure your cursor is in the correct position in the Formula Editor.
2. Go to Tools > Catalog on the main menu bar or click on the Catalog icon

in the Tools toolbar to open the Symbols dialog (Figure 7)

3. Select Greek from the Symbol set drop-down list. For italic characters, select iGreek from the drop-down list.
4. Select the Greek character from the symbol list, then click Insert . When selected, the name of a Greek character is shown below the symbol list.
5. Click Close when you have finished entering Greek characters into your formula.
LibreOffice Math 4.4 — Symbols dialog diagram (page 22)
Fig. 9 · Symbols dialog
Figure 7Symbols dialog

Formula examples

Example 1 The simple formula 5×4 can be created using LibreOffice Math as follows:

1. Make sure your cursor is flashing in the Formula Editor, then select the category Unary/Binary Operators and symbol Multiplication using one of the following methods:

– In the Elements dialog, select the Unary/Binary Operators icon

– In the Elements Dock, select Unary/Binary Operators from the drop-down list and then select the Multiplication icon

– Right-click in the Formula Editor and select Unary/Binary Operators > a times b from the context menu.

– Using markup language, enter 5 times 4 in the Formula Editor.

– The first three methods place the formula text times in the Formula Editor and the symbol

appears in the document.

– Using markup language in the Formula Editor places the formula 5×4 directly into your document and there is no need to carry out the following steps.

and then select · the Multiplication icon

Page 23 of the LibreOffice Math 4.4 user manual — Editing formulas
Page 23 · click to enlarge
Page 23
2. Select the first placeholder before the word times in the Formula Editor and replace it with the character 5 . The formula in your document updates automatically.
3. Select the second placeholder after the word times in the Formula Editor and replace it with the character 4 . The formula in your document updates automatically.

Example 2 You want to enter the formula π ≃3.14159 where the value of pi is rounded to 5 decimal places. You know the name of the Greek character (pi), but do not know the markup associated with the Is Similar Or Equal symbol ≃.

1. Make sure your cursor is flashing in the Formula Editor.
2. Enter %pi in the Formula Editor to enter the Greek character for pi (π).
3. Select the category Relations and symbol Is Similar Or Equal using one of the following methods:

– In the Elements dialog, select the Relations icon

and then select the Is Similar Or

– In the Elements Dock, select Relations from the drop-down list and then select the Is Similar Or Equal icon

– Right-click in the Formula Editor and select Relations > a simeq b from the context menu.

4. Delete the first placeholder before the word simeq in the Formula Editor.
5. Select the second placeholder after the word simeq in the Formula Editor and replace it with the characters 3.14159 . The formula π ≃ 3.14159 now appears in your document.

Editing formulas

How you edit a formula and switch into formula editing mode depends on whether the formula is in Math or another LibreOffice module.

1. In Math, double-click on a formula element in the formula that appears in the Preview window to select the formula element in the Formula Editor, or directly select a formula element in the Formula Editor.
2. In Writer, Calc, Impress, or Draw, double-click on the formula, or right-click on the formula and select Edit form the context menu, to open the Formula Editor and enter editing mode. The cursor is positioned at the start of the formula in the Formula Editor. NOTE If you cannot select a formula element using your cursor, click on the Formula Cursor

in the Tools toolbar to activate the formula cursor.

Chapter 1 Creating & Editing Formulas | 23

Equal icon · icon

Page 24 of the LibreOffice Math 4.4 user manual — Using braces
Page 24 · click to enlarge
Page 24
3. Select the formula element you want to change use one of the following methods:

– Click on the formula element in the preview window positioning the cursor at the beginning of the formula element in the Formula Editor, then select the formula element in the Formula Editor.

– Double-click on the formula element in the preview window to select the formula element in the Formula Editor.

– Position the cursor in the Formula Editor at the formula element you want to edit, then select that formula element.

– Double-click directly on the formula element in the Formula Editor to select it.

4. Make your changes to the formula element you have selected.
5. Go to View > Update on the main menu bar, or press the F9 key, or click on the Update

in the Tools toolbar to update the formula in the preview window or your document.

6. In Math, save your changes to the formula after editing.
7. In Writer, Calc, Impress or Draw, click anywhere in your document away from the formula to leave editing mode, then save your document to save your changes to the formula.

Formula layout

This section provides some advice on how to layout complex formulas in Math or in your LibreOffice document.

Using braces

LibreOffice Math knows nothing about order of operation within a formula. You must use braces (curly brackets) to state the order of operations that occur within a formula. The following examples show how braces can be used in a formula.

2 over x + 1 gives the result 2 x +1

Math has recognized that the 2 before and the x after the over as belonging 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 using braces so that both will be placed there.

Inserting braces into 2 over {x + 1} gives the result 2 x+1 where x+1 is now the

denominator.

– 1 over 2 gives the result −1

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 fraction is negative, with the minus sign in front of the fraction, you must put the fraction in braces to signify to Math that the characters belong together.

Adding braces into the markup language {1 over 2} gives the result – 1

2 and the whole

fraction is now negative.

icon · Example 1 · Example 2

Page 25 of the LibreOffice Math 4.4 user manual — Unpaired brackets
Page 25 · click to enlarge
Page 25

When braces are used in markup language, they are used to define the layout of the formula and are not displayed or printed. If you want to use braces within your formula, you use the commands lbrace and rbrace within the markup language.

x over {–x + 1} gives the result x – x+1

Replace the braces using the commands lbrace and rbrace in the markup language.

Write x over lbrace –x + 1 rbrace and the result is x {– x+1}

Brackets (parentheses) and matrices

If you want to use a matrix in a formula, you have to use a matrix command. For example,

matrix { a # b ## c # d } gives the resulting matrix a b c d in your formula, where rows

are separated by two hashes (##) and entries within each row are separated by one hash (#).

Normally, when you use brackets within a matrix, the brackets do not scale as the matrix increases

in size. For example, ( matrix { a # b ## c # d } ) gives the result (a b c d)

To overcome this problem of brackets with a matrix, LibreOffice Math provides scalable brackets that grow in size to match the size a matrix. The commands left( and right) have to be used to create scalable brackets within a matrix. For example, left( matrix { a # b ## c #

d } right) gives the result (

a b c d) where the matrix is now bracketed by scalable brackets.

Scalable brackets can also be used with any element of a formula, such as fraction, square root, and so on.

Unpaired brackets

When using brackets in a formula, Math expects that for every opening bracket there will be a closing one. If you forget to add a closing bracket, Math places an inverted question mark next to where the closing bracket should have been placed. This inverted question mark disappears when all the brackets are paired. However, an unpaired bracket is sometimes necessary and you have the following options.

Non-scalable brackets A backslash \ is placed before a nonscalable bracket to indicate that the following character should not be regarded as a bracket, but as a literal character.

Chapter 1 Creating & Editing Formulas | 25

Example 3

Page 26 of the LibreOffice Math 4.4 user manual — Formulas over multiple lines
Page 26 · click to enlarge
Page 26

For example, the unpaired brackets in the formula [ a; b [ are deliberate, but gives the result

. To remove the inverted question marks and create unpaired brackets, backslashes are

added. The formula now becomes \ [ a; b \ [ and the result [a;b[ shows unpaired brackets without the inverted question marks.

Scalable brackets To create unpaired scalable brackets or braces in a formula, the markup commands left, right, and none are used.

You want to create the formula | x | = {

x for x≥0 −x for x

= x lbrace stack {x "for" x >= 0 # -x "for" x < 0. However, this gives the

¿ x for x≥0 −x for x

. To remove the inverted question marks and create the correct

|¿|x ¿

formula, you have to use the markup commands left, right, and none. Change your entry in the Formula Editor to abs x = left lbrace stack {x "for" x >= 0 # -x "for" x < 0} right none and this creates the correct formula.

Recognizing functions

In the basic installation of Math, Math outputs functions in normal characters and variables in italic characters. However, if Math fails to recognize a function, you can tell Math that you have just entered a function. Enter the markup command func before a function forces Math to recognize the following text as a function and uses normal characters.

For a full list of functions within Math, see Appendix A Commands Reference.

Some Math functions have to be followed by a number or a variable. If these are missing, Math places an inverted question mark where the missing number or variable should be. To remove the inverted question mark and correct the formula, you have to enter a number, a variable or a pair of empty brackets as a placeholder.

Tip

You can navigate through errors in a formula using the key F3 or the key combination Shift+F3.

Formulas over multiple lines

Suppose you want to create a formula that requires more than one line, for example x=3

y=1 . Your

first reaction would normally be to press the Enter key. However, if you press the Enter key, the markup language in the Formula Editor goes to a new line, but the resulting formula does not have two lines. You must type the macro command newline each time you want to create and display a new line in a formula.

x = 3 y = 1 gives the incorrect result x=3 y=1

x = 3 newline y = 1 gives the correct result x=3

Show 6 more labels / short text on this page
¿ a;b¿ · ¿ · Example · incorrect result · Example · y=1
Page 27 of the LibreOffice Math 4.4 user manual — ℜ
Page 27 · click to enlarge
Page 27

It is not possible in Math to create multiple line formulas when a line ends with an equals sign and you want to continue the calculation on a new line without completing the term on the right side of the equals sign. If you require a multiple line formula to have an equals sign at the end of a line without a term after the equals sign, then use either empty quotes “” or empty braces {} or the space characters grave ` or tilde ˜.

By default, the alignment of a multiple line formula is center aligned. For more information on alignment using the equals sign, see Chapter 4 Customization.

Spacing between the element in a formula is not set by using space characters in the markup language. If you want to add spaces into your formula, use one of the following options:

  • Grave ` to add a small space.
  • Tilde ~ for a large space.
  • Add space characters between quotes “ ”. These spaces will be considered as text.

Any spaces at the end of a line in the markup language are ignored by default. For more information, see Chapter 4 Customization.

Adding limits to sum/integral commands

The sum and integral commands can take the parameters from and to if you want to set the lower and upper limits respectively. The parameters from and to can be used singly or together as shown by the following examples. For more information on the sum and integral commands, see Appendix A Commands Reference.

sum from k = 1 to n a_k gives the result ∑

int from 0 to x f(t) dt gives the result ∫

f (t)dt

int_0^x f(t) dt gives the result ∫ 0

f (t)dt

int from Re f gives the result ∫

ℜ

sum to infinity 2^{-n} gives the result ∑

Writing derivatives

When writing derivatives, you have to tell Math that it is a fraction by using the over command. The over command is combined with the character d for a total derivative or the partial command for a partial derivative to achieve the effect of a derivative. Braces {} are used each side of the element to surround the element and make the derivative as shown by the following examples.

{df} over {dx} gives the result df dx

{partial f} over {partial y} gives the result ∂f ∂y

2f ∂t

{partial^2 f} over {partial t^2} gives the result ∂

Chapter 1 Creating & Editing Formulas | 27

Show 8 more labels / short text on this page
Examples · n · ak · k=1 · f · ∞ · 2 −n · Examples
Page 28 of the LibreOffice Math 4.4 user manual — Text in formulas
Page 28 · click to enlarge
Page 28

Markup language characters as normal characters

Characters that are used as controls in markup language cannot be entered directly as normal characters. These characters are: %, {, }, &, |, _, ^ and ". For example, you cannot write 2% = 0.02 in markup language and expect the same characters to appear in your formula. To overcome this limitation in markup language, use one of the following methods:

  • Use double quotes either side of the character to mark that character as text, for example 2"%"= 0.02 will appear in your formula as 2% = 0.02 . However, this method cannot be used for the double-quote character itself, see “Text in formulas” below.
  • Add the character to the Math Catalog, for example the double quote character.
  • Use commands, for example lbrace and rbrace give you literal braces {} .

Text in formulas

To include text in a formula, you have to enclose any text in double-quotes, for example x " for " x >= 0 in markup language will create the formula x for x≥0 . All characters, except double quotes, can be used in text. However, if you require double quotes in your formula text, then you have to create your text with double quotes in LibreOffice Writer, then copy and paste the text into the Formula Editor as shown in Figure 8.

The font used for text in a formula will be the default font that has been set in the Fonts dialog. For more information on how to change fonts used for in formulas, see “Changing formula appearance” on page 29.

By default, text alignment is left-justified in formulas. For more information on how to change text alignment, see “Adjusting formula alignment” on page 34.

LibreOffice Math 4.4 — Text in formulas diagram (page 28)
Fig. 10 · Text in formulas
Figure 8Example of double quotes in formula text
Page 29 of the LibreOffice Math 4.4 user manual — After font size change to 18pt: π ≃ 3.14159
Page 29 · click to enlarge
Page 29

Formatting commands are not interpreted within text used in formulas. If you want to use formatting commands within formula text, then you must break up the text using double quotes in the Formula Editor.

Enter the following in the Formula Editor:

"In " color blue bold "isosceles" "triangles, the base angles are equal"

creates the following text in a formula In isosceles triangles, the base angles are equal

Aligning formulas using equals sign

LibreOffice Math does not have a command for aligning formulas on a particular character. However, you can use a matrix to align formulas on a character and this character is normally the equals sign (=).

Creating the matrix:

matrix{ alignr x+y # {}={} # alignl 2 ## alignr x # {}={} # alignl 2-y }

gives the following result where formulas are aligned on the equals sign x+ y = 2 x = 2−y

You can reduce the spacing on each side of the equals sign if you change the inter-column spacing of the matrix. See “Adjusting formula spacing” on page 32 for information on how to adjust adjust formula spacing.

Changing formula appearance

Formula font size

Current formula font size To change the font size used for a formula already inserted in Math or another LibreOffice module:

1. Click in the markup language in the Formula Editor.
2. Go to Format > Font size on the main menu bar to open the Font Sizes dialog (Figure 9).
3. Select a different font size using the Base size spinner or type a new font size in the Base Size box.
4. Click OK to save your changes and close the dialog. An example result when you change font size is shown below.
Default font size 12ptπ ≃ 3.14159

After font size change to 18pt: π ≃ 3.14159

Chapter 1 Creating & Editing Formulas | 29

Example · Example · Example

Page 30 of the LibreOffice Math 4.4 user manual — Default formula font size
Page 30 · click to enlarge
Page 30
LibreOffice Math 4.4 — Default formula font size diagram (page 30)
Fig. 11 · Default formula font size
Figure 9Font Sizes dialog

Default formula font size To change the default font size used for all formulas in Math or another LibreOffice module:

1. Before inserting any formulas in your document, go to Format > Font size on the main menu bar to open the Font Sizes dialog (Figure 9).
2. Select a different font size using the Base size spinner or type a new font size in the Base Size box.
3. Click Default and confirm your changes to the base size font. Any formulas created from this point on will use the new base size font for formulas.
4. Click OK to save your changes and close the Font Sizes dialog. Note If you have already inserted formulas into your document and you change the default font size, only formulas inserted after the change in default font size will use the new default settings. You have to individually change the font size of formulas already inserted if you want these formulas to use the same font size as the default settings.

Font size options The Font Sizes dialog (Figure 9) specifies the font sizes for your formula. Select a base size and all elements of the formula will be scaled in relation to this base.

  • Base size – all elements of a formula are proportionally scaled to the base size. To change the base size, select or type in the desired point (pt) size. You can also use other units of measure or other metrics, which are then automatically converted to points.
  • Relative Sizes – in this section, you can determine the relative sizes for each type of element with reference to the base size.

– Text – select the size for text in a formula relative to the base size.

– Indexes – select the relative size for the indexes in a formula in proportion to the base size.

– Functions – select the relative size for names and other function elements in a formula in proportion to the base size.

– Operators – select the relative size of the mathematical operators in a formula in proportion to the base size.

– Limits – select the relative size for the limits in a formula in proportion to the base size.

  • Default – clicking this button saves any changes as a default for all new formulas. A confirmation message appears before saving any changes.
Page 31 of the LibreOffice Math 4.4 user manual — Formula fonts
Page 31 · click to enlarge
Page 31

Formula fonts

Current formula fonts To change the fonts used for the current formula in Math or another LibreOffice module:

1. Click in the markup language in the Formula Editor.
2. Go to Format > Fonts on the main menu bar to open the Fonts dialog (Figure 10).
3. Select a new font for each the various options from the drop-down lists.
4. If the font you want to use does not appear in the drop-down list, click Modify and select the option from the context menu to open a fonts dialog. Select the font you want to use and click OK to add it to the drop-down list for that option.
5. Click OK to save your changes and close the Fonts dialog.
LibreOffice Math 4.4 — Formula fonts diagram (page 31)
Fig. 12 · Formula fonts
Figure 10Fonts dialog

Default formula fonts To change the default fonts used for all formulas in Math or another LibreOffice module:

1. Before inserting any formulas in your document, go to Format > Fonts on the main menu bar to open the Fonts dialog (Figure 10).
2. Select a new font for each the various options from the drop-down lists.
3. If the font you want to use does not appear in the drop-down list, click Modify and select the option from the context menu to open a fonts dialog. Select the font you want to use and click OK to add it to the drop-down list for that option.
4. Click Default and confirm your changes to the fonts. Any formulas created from this point on will use the new font for formulas.
5. Click OK to save your changes and close the Fonts dialog. Note If you have already inserted formulas into your document and you change the default fonts, only formulas inserted after the change in default fonts will use the new default settings. You have to individually change the font of formulas already inserted if you want these formulas to use the same font as the default settings.

Formula font options Defines the fonts that can be applied to formula elements.

  • Formula Fonts – defines the fonts used for the variables, functions, numbers and inserted text that form the elements of a formula.

Chapter 1 Creating & Editing Formulas | 31

Page 32 of the LibreOffice Math 4.4 user manual — Adjusting formula spacing
Page 32 · click to enlarge
Page 32

– Variables – selects the fonts for the variables in your formula. For example, in the formula x=SIN(y), x and y are variables and will reflect the assigned font.

– Functions – selects the fonts for names and properties of functions. For example, the functions in the formula x=SIN(y) are =SIN( ).

– Numbers – selects the fonts for the numbers in a formula.

– Text – defines the fonts for the text in a formula.

  • Custom Fonts – in this section of the Fonts dialog (Figure 10), fonts are defined which format other text components in a formula. The three basic fonts Serif , Sans and Fixed are available. Other fonts can be added to each standard installed basic font using the Modify button. Every font installed on a computer system is available for use.

– Serif – specifies the font to be used for the font serif format. Serifs are the small "guides" that can be seen, for example, at the bottom of a capital A when the Times serif font is used. Using serifs is quite helpful since it guides the eye of a reader in a straight line and can speed up reading.

– Sans – specifies the font to be used for sans font formatting.

– Fixed – specifies the font to be used for fixed font formatting.

  • Modify – click one of the options from the context menu to access the Fonts dialog, where the font and attributes can be defined for the respective formula and for custom fonts.
  • Default – clicking this button saves any changes as a default for all new formulas. A confirmation message appears before saving any changes. Note When a new font is selected for a formula, the old font remains in the list alongside the new one and can be selected again.

Note Variables should be written in italics, so make sure that the Italic option is selected. For the font you want to use. For all other elements, use the basic form of a font. 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.

Adjusting formula spacing

Use the Spacing dialog (Figure 11) to determine the spacing between formula elements. The spacing is specified as a percentage in relation to the defined base size for font sizes.

LibreOffice Math 4.4 — Adjusting formula spacing diagram (page 32)
Fig. 13 · Adjusting formula spacing
Figure 11Spacing dialog
Page 33 of the LibreOffice Math 4.4 user manual — Current formula spacing
Page 33 · click to enlarge
Page 33

Current formula spacing To change the spacing used for the current formula in Math or another LibreOffice module:

1. Click in the markup language in the Formula Editor.
2. Go to Format > Spacing on the main menu bar to open the Spacing dialog (Figure 11).
3. Click Category and select one of the options from the drop-down list. The options in the Spacing dialog change according to the category selected.
4. Enter new values for the spacing category and click OK .
5. Check the result in your formula. If not to your satisfaction, repeat the above steps.

Default formula spacing To change the default spacing used for all formulas in Math or another LibreOffice module:

1. Before inserting any formulas in your document, go to Format > Spacing on the main menu bar to open the Spacing dialog (Figure 11).
2. Click Category and select one of the options from the drop-down list. The options in the Spacing dialog change according to the category selected.
3. Click Default and confirm your changes to the formula spacing. Any formulas created from this point on will use the new spacing for formulas.
4. Click OK to save your changes and close the Spacing dialog. Note If you have already inserted formulas into your document and you change the spacing, only formulas inserted after the change in spacing will use the new default settings. You have to individually change the spacing of formulas already inserted if you want these formulas to use the same spacing as the default settings.

Spacing options Use Category in the Spacing dialog (Figure 11) to determine the formula element for which you would like to specify the spacing. The appearance of the dialog depends on the selected category. A preview window shows you which spacing is modified through the respective boxes.

  • Category – pressing this button allows you to select the category for which you would like to change the spacing.
  • Spacing – defines the spacing between variables and operators, between lines, and between root signs and radicals.

– Line Spacing – determines the spacing between lines.

– Root Spacing – determines the spacing between the root sign and radicals.

  • Indexes – defines the spacing for superscript and subscript indexes.

– Superscript – determines the spacing for superscript indexes.

– Subscript – determines the spacing for subscript indexes.

  • Fractions – defines the spacing between the fraction bar and the numerator or denominator.

– Numerator – determines the spacing between the fraction bar and the numerator.

– Denominator – determines the spacing between the fraction bar and the denominator.

  • Fraction Bars – defines the excess length and line weight of the fraction bar.

– Excess length – determines the excess length of the fraction line.

– Weight – determines the weight of the fraction line.

Chapter 1 Creating & Editing Formulas | 33

Page 34 of the LibreOffice Math 4.4 user manual — Adjusting formula alignment
Page 34 · click to enlarge
Page 34
  • Limits – defines the spacing between the sum symbol and the limit conditions.

– Upper limit – determines the spacing between the sum symbol and the upper limit.

– Lower limit – determines the spacing between the sum symbol and the lower limit.

  • Brackets – defines the spacing between brackets and the content.

– Excess size (left/right) – determines the vertical distance between the upper edge of the contents and the upper end of the brackets.

– Spacing – determines the horizontal distance between the contents and the upper end of the brackets.

– Scale all brackets – scales all types of brackets. If you then enter ( a over b) in the Formula Editor, the brackets will surround the whole height of the argument. You normally achieve this effect by entering left ( a over b right ).

– Excess size – adjusts the percentage excess size. At 0% the brackets are set so that they surround the argument at the same height. The higher the entered value is, the larger the vertical gap between the contents of the brackets and the external border of the brackets. The field can only be used in combination with Scale all brackets.

  • Matrices – defines the relative spacing for the elements in a matrix.

– Line spacing – determines the spacing between matrix elements in a row.

– Column spacing – determines the spacing between matrix elements in a column.

  • Symbols – defines the spacing of symbols in relation to variables

– Primary height – defines the height of the symbols in relation to the baseline.

– Minimum spacing – determines the minimum distance between a symbol and variable.

  • Operators – defines the spacing between operators and variables or numbers.

– Excess size – determines the height from the variable to the operator upper edge.

– Spacing – determines the horizontal distance between operators and variables.

  • Borders – adds a border to a formula. This option is particularly useful if you want to integrate the formula into a text file in LibreOffice Writer. When making settings, make sure that you do not use 0 as a size as this creates viewing problems for text that surrounds the insertion point.

– Left – the left border is positioned between the formula and background.

– Right – the right border is positioned between the formula and background.

– Top – the top border is positioned between the formula and background.

– Bottom – the bottom border is positioned between the formula and background.

  • Preview Field – displays a preview of the current selection.
  • Default – saves any changes as default settings for all new formulas. A security response will appear before saving these changes.

Adjusting formula alignment

The alignment settings determine how formula elements located above one another are aligned horizontally relative to each other.

Page 35 of the LibreOffice Math 4.4 user manual — Changing formula color
Page 35 · click to enlarge
Page 35

Current formula alignment To change the alignment used for the current formula in Math or another LibreOffice module:

1. Click in the markup language in the Formula Editor.
2. Go to Format > Alignment on the main menu bar to open the Alignment dialog (Figure 12).
3. Select either Left , Centered , or Right for horizontal alignment.
4. Click OK and check the result in your formula. If not to your satisfaction, repeat the above steps.
LibreOffice Math 4.4 — Current formula alignment diagram (page 35)
Fig. 14 · Current formula alignment
Figure 12Alignment dialog

Default formula alignment To change the default alignment used for all formulas in Math or another LibreOffice module:

1. Before inserting any formulas in your document, go to Format > Alignment on the main menu bar to open the Alignment dialog (Figure 12).
2. Select either Left , Centered , or Right for horizontal alignment.
3. Click Default and confirm your changes to the formula alignment. Any formulas created from this point on will use the new alignment for formulas.
4. Click OK and check the result in your formula. If not to your satisfaction, repeat the above steps. Note If you have already inserted formulas into your document and you change the formula alignment, only formulas inserted after the change in alignment will use the new default settings. You have to individually change the alignment of formulas already inserted if you want these formulas to use the same alignment as the default settings.

Changing formula color

Character color Formula color for the characters used in a formula is changed by using the command color in the mark up language. This command only works on the formula element immediately after the color name. For example, entering the markup language color red ABC 5 times 4 gives the result

ABC 5×4 .

Chapter 1 Creating & Editing Formulas | 35

Page 36 of the LibreOffice Math 4.4 user manual — Using Writer, Calc, Draw, or Impress
Page 36 · click to enlarge
Page 36

To change the color of the whole formula, you have to enclose the whole formula within brackets. For example, entering the markup language color red {ABC 5 times 4} gives the result

ABC 5×4 .

For information on the colors available in Math, see Appendix A Commands Reference.

Background color It is not possible to select a background color for formulas in LibreOffice Math. The background color for a formula is by default the same color as the document or frame that the formula has been inserted into. However, in LibreOffice documents, you can use object properties to change the background color for a formula. For more information on using a background color (area fill for objects) with a formula, please refer to the user guides for Writer, Calc, Draw and Impress.

Formula library

If you regularly insert the same formulas into your documents, you can create a formula library using formulas that you have created using the Formula Editor. Individual formulas can be saved as separate files using the ODF format for formulas with the file suffix of .odf, or in MathML format with the file suffix of .mml.

You can use either LibreOffice Math, Writer, Calc, Draw, or Impress to create formulas and build up your formula library.

Using Math

1. Create a folder on your computer to contain your formulas and give the folder a memorable name, for example Formula Library.
2. In LibreOffice, go to File > New > Formula on the main menu bar, or click on Math Formula in the opening splash screen to open LibreOffice Math and create your formula using the Formula Editor. See “Formulas as separate documents or files” on Page 17 for more information.
3. Go to File > Save As on the main main menu bar or use the keyboard shortcut Ctrl+Shift+S to open a Save As dialog.
4. Navigate to the folder you have created for your formula library.
5. Type in a memorable name for your formula in the File name text box.
6. Select from the drop-down list for File type either ODF Formula (.odf) or MathML 1.01 (.mml) as the file type for your formula.
7. Click Save to save your formula and close the Save As dialog.

Using Writer, Calc, Draw, or Impress

1. Create a folder on your computer to contain your formulas and give the folder a memorable name, for example Formula Library.
2. Open a document using Writer, Calc, Draw, or Impress.
3. Go to Insert > Object > Formula on the main menu bar to open the Formula Editor and create your formula. See “Formulas in LibreOffice documents” on page 18 for more information.
4. Right-click on your formula object and select Save Copy as from the context menu to open a Save As dialog.
5. Navigate to the folder you have created for your formula library.
6. Type in a memorable name for your formula in the File name text box.
Page 37 of the LibreOffice Math 4.4 user manual — Using your formula library
Page 37 · click to enlarge
Page 37
7. Select from the drop-down list for File type either ODF Formula (.odf) or MathML 1.01 (.mml) as the file type for your formula.
8. Click Save to save your formula and close the Save As dialog.

Using your formula library

You cannot insert a formula from your library into a document by dragging and dropping using the mouse, nor by using Insert > File on the main menu bar. You must insert a formula from your library into your document as an OLE object.

1. Open your document in Writer, Calc, Draw, or Impress.
2. Go to Insert > Object > OLE Object on the main menu bar to open the Insert OLE Object dialog.
3. Select the option Create from file .
4. Click Search to open your file browser dialog.
5. Navigate to the folder you have created for your formula library.
6. Select the formula you want to insert and click Open , or double-click on the formula you want to insert.
7. Click OK to insert your formula as an OLE object in your document and close the OLE Object dialog.

Chapter 1 Creating & Editing Formulas | 37

Page 38 of the LibreOffice Math 4.4 user manual — Using your formula library
Page 38 · click to enlarge
Page 38
Page 38 of the LibreOffice Math 4.4 user manual — Using your formula library
Page 39 of the LibreOffice Math 4.4 user manual — Math Guide
Page 39 · click to enlarge
Page 39

Math Guide

Chapter 2

Formulas in Writer

Page 40 of the LibreOffice Math 4.4 user manual — Chapter 2 Formulas in Writer
Page 40 · click to enlarge
Page 40
Page 40 of the LibreOffice Math 4.4 user manual — Chapter 2 Formulas in Writer
Page 41 of the LibreOffice Math 4.4 user manual — ABC 5 × 4 (1)
Page 41 · click to enlarge
Page 41

Introduction

When a formula is inserted into a document, LibreOffice Writer inserts the formula into a frame and treats the formula as an OLE object. Double-clicking on an inserted formula will open the Formula Editor in LibreOffice Math allowing you to edit the formula. For more information on creating and editing formulas, please refer to Chapter 1 Creating & Editing Formulas.

This chapter explains what options you can change for each individual formula within your Writer document. Please refer to the chapters on styles in the Writer Guide for information on how to change the default settings for frame styles for OLE objects.

Automatic formula numbering

Automatic numbering of formulas for cross reference purposes can only be carried out in LibreOffice Writer.

Numbering

1. Start a new line in your document.
2. Type fn and then press the F3 key. A two column table with no borders is inserted into your document with the left column containing a sample formula and the right column containing a reference number, as shown below.

ABC 5 × 4 (1)

3. Delete the sample formula and insert your formula as an object in the left column. See Chapter 1 Creating & Editing Formulas for more information on inserting formulas.
4. Alternatively, you can first insert your formula into the document, then carry Steps 1 and 2 above replacing the sample formula with your formula.
LibreOffice Math 4.4 — ABC 5 × 4 (1) diagram (page 41)
Fig. 15
Figure 13Fields dialog – Cross references page

Chapter 2 Formulas in Writer | 41

Page 42 of the LibreOffice Math 4.4 user manual — Anchoring formulas
Page 42 · click to enlarge
Page 42

Cross referencing

1. Click in your document where you want the cross reference to appear.
2. Go to Insert > Cross-reference on the menu bar to open the Fields dialog (Figure 13).
3. Click on the Cross-references tab, then select Text in the Type section.
4. In the Selection section, select the formula number you want to refer to.
5. In the Insert reference to section, select Reference and click Insert .
6. When you have finished creating cross references, click Close to close the Fields dialog. Tip To insert the cross reference number without parentheses, select Numbering instead of Reference in the Insert reference to section.

Anchoring formulas

A formula is treated as an object within Writer and its default anchoring is As character within a paragraph when it is inserted into a document. To change the anchoring of a formula object:

1. Right-click on the selected formula object and select Anchor from the context menu.
2. Select a new anchoring option from the context sub-menu. The anchoring positions available are To page , To paragraph , To character or As character .
LibreOffice Math 4.4 — Anchoring formulas diagram (page 42)
Fig. 16 · Anchoring formulas
Figure 14Object dialog – Type page with Anchor options
Page 43 of the LibreOffice Math 4.4 user manual — Object spacing
Page 43 · click to enlarge
Page 43
3. Alternatively, right-click on the selected formula object and select Object from the context menu, or go to Format > Frame/Object on the main menu bar to open the Object dialog (Figure 14).
4. Make sure the Type page is selected and select a new anchoring position from the Anchor section.
5. Click OK to save your changes and close the Object dialog. Note The anchoring options are not available in the Object dialog when you are making changes to the various options available for frame styles. For more information on how to modify frame styles, please refer to the chapters on styles in the Writer Guide .

Vertical alignment

The normal default setting for vertical alignment for formula objects is to use the text base line as a reference. This default setting can be changed by modifying the formula frame style, see the chapters on styles in the Writer Guide for more information.

To change the vertical alignment position of an individual formula object:

1. Right-click on the selected formula object and select Object from the context menu, or go to Format > Frame/Object to open the Object dialog (Figure 14).
2. Make sure the Type page is selected and select a new alignment position from the dropdown list in the Position section. The vertical alignment options available are Top , Bottom , Center or From bottom .
3. If necessary, type in the text box a plus or minus value for vertical alignment. This option is only available if From bottom vertical alignment has been selected.
4. Select the type of text alignment from the drop-down list in the Position section. The text alignment options available are Base line , Character and Row .
5. Click OK to save your changes and close the Object dialog. Note If the Position section in the Object dialog is greyed out and not available, then 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. Any new documents created will also use this setting for Math baseline alignment .

Object spacing

A formula object, when inserted into a Writer document, has spacing each side of the formula object. The default value used for spacing is set within the frame style for formula objects and can be changed by modifying the formula frame style, see the chapters on styles in the Writer Guide for more information.

You can individually adjust the spacing for each formula object within your document as follows:

1. Create your formula in your Writer document.
2. Right-click on your selected formula object and select Object from the context menu, or go to Format > Frame/Object on the main menu bar to open the Object dialog.
3. Click on the Wrap tab to open the Wrap page in the Object dialog (Figure 15).
4. In the Spacing section, enter the spacing value for Left , Right , Top and Bottom spacing.
5. Click OK to save your changes and close the Object dialog.

Chapter 2 Formulas in Writer | 43

Page 44 of the LibreOffice Math 4.4 user manual — Background and borders
Page 44 · click to enlarge
Page 44
LibreOffice Math 4.4 — Text mode diagram (page 44)
Fig. 17 · Text mode
Figure 15Object dialog – Wrap page

Text mode

In large formulas placed within a line of text, the formula elements can often be higher than the text height. Therefore, to make large formulas easier to read, it is recommended to always insert large formulas into a separate paragraph of their own so that it is separated from text.

However, if it is necessary to place a large formula within a line of text, double-click on the formula to open the Formula Editor and then go to Format > Text Mode on the main menu bar. The Formula Editor will try to shrink the formula to fit the text height. The numerators and denominators of fractions are shrunk, and the limits of integrals and sums are placed beside the integral/sum sign, as shown in the following example.

A formula in a separate paragraph:

∑

and the same formula embedded into a line of text using text mode format: ∑i=2

Background and borders

The default setting for background (area fill) and borders for formula objects is set by the formula frame style. To change this default setting for formula frame style, refer to the chapters on styles in the Writer Guide. However, for individual formulas in your document, you can change the background and borders.

Example · i=2

Page 45 of the LibreOffice Math 4.4 user manual — Backgrounds
Page 45 · click to enlarge
Page 45

Backgrounds

1. In your document, select the formula where you want to change the background.
2. Right-click on the formula and select Object from the context menu, or go to Format > Frame/Object on the main menu bar to open the object dialog.
3. Click on the Area tab and select the type of fill you want to use for your formula from the Fill drop-down list (Figure 16).
4. Select the options you want to use for your formula background. The options change depending on the type of fill selected.
5. Click OK to save your changes and close the Object dialog.
LibreOffice Math 4.4 — Backgrounds diagram (page 45)
Fig. 18 · Backgrounds
Figure 16Object dialog – Area page
LibreOffice Math 4.4 — Backgrounds diagram (page 45)
Fig. 19 · Backgrounds
Figure 17Object dialog – Borders page

Chapter 2 Formulas in Writer | 45

Page 46 of the LibreOffice Math 4.4 user manual — Quick insertion of formulas
Page 46 · click to enlarge
Page 46

Borders

1. In your document, select the formula where you want to change the borders.
2. Right-click on the formula and select Object from the context menu, or go to Format > Frame/Object on the main menu bar to open the object dialog.
3. Click on the Borders tab and select the options you want to use for your formula borders (Figure 17).
4. Click OK to save your changes and close the Object dialog.

Quick insertion of formulas

To quickly insert a formula into your Writer document without opening the Formula Editor and you know the markup language for the formula:

1. Enter the formula markup language into your document at the position where you want the formula.
2. Select the markup language.
3. Go to Insert > Object on the main menu bar and select Formula , or click on the Formula icon

on the Standard toolbar to create a formula from the selected markup language. Note If the Formula icon is not displayed on the Standard toolbar, then right-click in an empty area on the toolbar, select Visible Buttons from the context menu, then select Formula from the available options.

Page 47 of the LibreOffice Math 4.4 user manual — Math Guide
Page 47 · click to enlarge
Page 47

Math Guide

Chapter 3

Formulas in Calc, Draw & Impress

Page 48 of the LibreOffice Math 4.4 user manual — Chapter 3 Formulas in Calc, Draw & Impress
Page 48 · click to enlarge
Page 48
Page 48 of the LibreOffice Math 4.4 user manual — Chapter 3 Formulas in Calc, Draw & Impress
Page 49 of the LibreOffice Math 4.4 user manual — Formula object properties
Page 49 · click to enlarge
Page 49

Introduction

In Calc, Draw, and Impress, formulas are inserted as OLE objects without any background (area fill) or borders. See Chapter 1 Creating & Editing Formulas for more information on inserting formulas into a LibreOffice module.

Each formula object is inserted into a spreadsheet, drawing, or slide as follows:

  • In Calc, formulas are inserted into a selected cell in a spreadsheet with no style assigned to the formula object.
  • In Draw and Impress, formulas are inserted into a central position on your drawing or slide and, by default, are assigned the drawing object style Object with no fill and no line . For more information on how to modify or assign drawing object styles, see the Draw User Guide or the Impress User Guide .

Anchoring formulas

Calc

A formula object can be anchored into your spreadsheet as To Page (default setting), or as To Cell. To change the anchoring type of formulas in a Calc spreadsheet:

1. Select the formula object in your spreadsheet.
2. Right-click on the formula and select Anchor > To Page or To Cell from the context menu
3. Alternatively, go to Format > Anchor on the main menu bar and select To Page or To Cell .

Draw and Impress

When a formula is inserted into a drawing or slide, it is inserted as a floating OLE object and is not anchored to any particular position in a drawing or slide.

Formula object properties

Formula objects in Calc, Draw, and Impress can be modified just like any other object that has been placed in your spreadsheet, drawing, or presentation, with the exception of formula object size and changing the format of any text within a formula. For more information on how to change object properties, see the Calc User Guide, Draw User Guide and Impress User Guide. For more information on formula object size and formatting formula text, see Chapter 1 Creating & Editing Formulas in this guide.

The following points will help you select which dialog to use if you want to change the properties of formula objects.

  • For formula backgrounds, use the various options in the pages of the Area dialog.
  • For formula borders, use the various options in the Line dialog. Note that formula borders are separate from cell borders in a Calc spreadsheet.
  • To accurately re-position a formula object, use the various options in pages of the Position and Size dialog.
  • In Draw and Impress, you can arrange, align, group, flip, convert, break, combine, and edit points of formula objects.
  • You cannot change the text attributes of a formula object. The text used in a formula is set when you create the formula in the Formula Editor.
  • Formula object size is set by the formula font size when the formula is created in the Formula Editor. The formula object size is protected in the Position and Size dialog, but this

Chapter 3 Formulas in Calc, Draw & Impress | 49

Page 50 of the LibreOffice Math 4.4 user manual — Formulas in charts
Page 50 · click to enlarge
Page 50

can be deselected if you so wish. However, this is not recommended as resizing a formula object using the Position and Size dialog could lead to distortion of a formula making it difficult to read.

Formulas in charts

A chart in a Calc spreadsheet is itself an OLE object, therefore, you cannot use the Formula Editor to create and insert a formula into a chart.

To insert a formula into a chart, create the formula first using the Formula Editor and copy the formula to the clipboard. You then create your chart in Calc and paste the formula into your chart. The formula is automatically converted into the correct format for insertion into a chart.

If you want to change the formula at a later date, then you must repeat the whole process of creating, copying, and pasting.

Page 51 of the LibreOffice Math 4.4 user manual — Math Guide
Page 51 · click to enlarge
Page 51

Math Guide

Chapter 4

Customization

Page 52 of the LibreOffice Math 4.4 user manual — Chapter 4 Customization
Page 52 · click to enlarge
Page 52
Page 52 of the LibreOffice Math 4.4 user manual — Chapter 4 Customization
Page 53 of the LibreOffice Math 4.4 user manual — Floating dialogs
Page 53 · click to enlarge
Page 53

Introduction

This chapter explains how you can customize LibreOffice Math to suit the way you create formulas for use in LibreOffice documents. Also, refer to the Getting Started Guide for information on how to customize LibreOffice.

Chemical formulas

The primary purpose of Math is to create mathematical formulas, but it can also be used to write chemical formulas. However, in chemical formulas, the chemical symbols are normally written in uppercase using non-italic characters. The following table shows some examples of chemical formulas.

Construction Example Markup Language

Molecules H 2SO4 H_2 SO_4

Isotopes U 92 238 U lsub 92 lsup 238

2− or SO4

To create chemical formulas using Math, you have to change the font used for variables to a non- italic font. For more information on how to change fonts in a formula, see Chapter 1 Creating and Editing Formulas.

For reversible reactions in chemical formulas, there is no symbol you can use for a double arrow in Math. If you have a font available with correct symbols for use in chemical formulas, then you can add these symbols to the Catalog. See “Catalog customization” on page 56 for more information on how to add symbols to the Catalog.

Floating dialogs

The Formula Editor and Elements Dock can cover a large part of your document. To help create more space and/or allow you to move either the Formula Editor or Elements Dock out of the way, you turn both of them into floating dialogs.

1. Position the cursor on the frame.
2. Hold down the Ctrl key and double-click. This turns the Formula Editor into the Commands dialog (Figure 18) and the Elements Dock into the Elements Dock dialog (Figure 19).
LibreOffice Math 4.4 — Floating dialogs diagram (page 53)
Fig. 20 · Floating dialogs
Figure 18Commands dialog

Chapter 4 Customization | 53

Ions SO4 · 2- SO_4^{2-{}} or SO_4^{2"-"}

Page 54 of the LibreOffice Math 4.4 user manual — Example keyboard shortcut
Page 54 · click to enlarge
Page 54
Figure 19Elements Dock dialog

To return the Commands dialog and Elements Dock dialog back to their default positions:

1. Position the cursor on the frame of the dialog, NOT the title bar at the top of the of the dialog.
2. Hold down the Ctrl key and double-click.

Adding keyboard shortcuts

You can add keyboard shortcuts to LibreOffice to make creating documents much easier and to match your workflow. Below is an example of how to add a keyboard shortcut for inserting a Math formula into a LibreOffice document.

Example keyboard shortcut

1. Go to Tools > Customize on the main menu bar to open the Customize dialog (Figure 20).
2. Click on the Keyboard tab to access the options available for adding keyboard shortcuts.
3. Select the level of the new keyboard shortcut.

– Select LibreOffice so that the new keyboard shortcut can be used in all modules of LibreOffice.

– Select Math to use the new keyboard shortcut in Math only.

4. In the Category list, select Insert .
5. In the Function list, select Import Formula .
6. In the Shortcut Keys list, select the key or keyboard combination that you want to use for your new keyboard shortcut.
7. Click Modify and your keyboard shortcut will appear in the Keys list.
8. If necessary, continue to add keyboard shortcuts using the above steps.
9. Click OK to save your keyboard shortcuts and close the Customize dialog.
Page 55 of the LibreOffice Math 4.4 user manual — Keyboard customize options
Page 55 · click to enlarge
Page 55
LibreOffice Math 4.4 — Keyboard customize options diagram (page 55)
Fig. 21 · Keyboard customize options
Figure 20Customize dialog – Keyboard page

Keyboard customize options

The options for customizing keyboard shortcuts are as follows:

  • LibreOffice – displays shortcut keys that are common to all LibreOffice modules.
  • Math , Writer , Calc , Draw , or Impress – displays the keyboard shortcuts for the open and current LibreOffice module.
  • Shortcut Keys – lists the shortcut keys and the associated commands. To assign or modify the shortcut key for the command selected in the Function list, click a shortcut in this list, and then click Modify .
  • Functions – lists the function categories and the LibreOffice functions that you can assign shortcut keys to.

– Category – lists the available function categories.

– Function – select a function that you want to assign a shortcut key to, select a key combination in the Shortcut Keys list, and then click Modify. If the selected function already has a shortcut key, it is displayed in the Keys list.

– Keys – displays the shortcut keys that are assigned to the selected function.

  • Modify – assigns the key combination selected in the Shortcut Keys list to the command selected in the Function list.
  • Delete – deletes the selected element or elements without requiring confirmation.

Chapter 4 Customization | 55

Page 56 of the LibreOffice Math 4.4 user manual — Adding symbols
Page 56 · click to enlarge
Page 56
  • Load – replaces the shortcut key configuration with one that was previously saved.
  • Save – saves the current shortcut key configuration, so that you can load it later.
  • Reset – resets modified values back to the default values.

Catalog customization

If you regularly use a symbol that is not available in Math, you can add it to the Symbols dialog (Figure 21) by opening the Edit Symbols dialog (Figure 22).

Using the Edit Symbols dialog you can add symbols to a symbol set, edit symbol sets, or modify symbol notations. You can also define new symbol sets, assign names to symbols, or modify existing symbol sets.

Adding symbols

1. Go to Tools > Catalog on the main menu bar or click on the Catalog icon

in the Tools toolbar to open the Symbols dialog.

2. Click Edit to open Edit Symbols dialog.
3. Select a font from the Font: drop-down list.
4. Select a symbol character that you want to add from the preview box. You may have to scroll down in the preview box to locate the symbol you want to use. The right preview box above the Add button displays the new symbol.
5. In the Symbol: box, type a memorable name for the symbol you are adding.
6. In the Symbol set: box, select a symbol set from the drop-down list to add your new symbol to, or type a new name to create a new symbol set for your new symbol.
7. If required, select a font style from the Style: drop-down list – Standard, Italic , Bold , or Bold Italic .
8. Click Add , then click OK to close the Edit Symbols dialog. The new symbol and, if created, new symbol set are now available for use.
Figure 21Symbols dialog
Page 57 of the LibreOffice Math 4.4 user manual — Editing symbols
Page 57 · click to enlarge
Page 57

Note When LibreOffice is installed on a computer, 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, so that when the document is transferred to another computer it can be edited by another person. Go to Tools > Options > LibreOffice Math > Settings, uncheck the option Embed only used symbols (smaller file size).This setting is only available when you are working with LibreOffice Math.

Editing symbols

Modifying symbol names You can change the name of a symbol as follows:

1. Select the symbol name you want to change from the Old symbol: drop-down list. The symbol appears in the left preview pane at the bottom of the Edit Symbols dialog (Figure 22).
2. Type a new name for the symbol in the Symbol: text box, or select a new name from the Symbol: drop-down list. The new symbol name appears above the right preview pane at the bottom of the Edit Symbols dialog.
3. Click Modify and the symbol name is changed.
4. Click OK to close the Edit Symbols dialog.
LibreOffice Math 4.4 — Editing symbols diagram (page 57)
Fig. 22 · Editing symbols
Figure 22Edit Symbols dialog

Chapter 4 Customization | 57

Page 58 of the LibreOffice Math 4.4 user manual — Options for editing symbols
Page 58 · click to enlarge
Page 58

Moving symbols You can move a symbol from one symbol set to another as follows:

1. In the Old symbol set: drop-down list, select the symbol set where the symbol you want to move is located.
2. Select the symbol name you want move from the Old symbol: drop-down list. The symbol appears in the left preview pane at the bottom of the Edit Symbols dialog (Figure 22).
3. In the Symbol set: drop-down list, select the symbol set that you want to move the symbol to. The new symbol set name appears below the right preview pane at the bottom of the Edit Symbols dialog.
4. Click Modify and the symbol is moved to the new symbol set.
5. Click OK to close the Edit Symbols dialog.

Deleting symbols You can delete a symbol from a symbol set as follows:

1. In the Old symbol set: drop-down list, select the symbol set from which you want to delete the symbol.
2. Select the symbol name you want delete from the Old symbol: drop-down list. The symbol appears in the left preview pane at the bottom of the Edit Symbols dialog (Figure 22).
3. Click Delete and the symbol is deleted from the symbol set without any confirmation.
4. Click OK to close the Edit Symbols dialog. Note The only way you can delete a symbol set is by deleting all of the symbols in that set. When you delete the last symbol from a set, the set is also deleted.

Options for editing symbols

  • Old symbol – select the name of the current symbol. The symbol, the name of the symbol, and the set that the symbol belongs to are displayed in the left preview pane at the bottom of the Edit Symbols dialog.
  • Old symbol set – this list box contains the name of the current symbol set. You can also select a different symbol set using this list box.
  • Symbol – lists the names for the symbols in the current symbol set. Select a name from the list or type a name for a newly added symbol.
  • Symbol set – this list box contains the names of all existing symbol sets. You can modify a symbol set or create a new one.
  • Font – displays the name of the current font and enables you to select a different font.
  • Subset – if you selected a non-symbol font in the Font list box, you can select a Unicode subset in which to place your new or edited symbol. When a subset has been selected, all symbols belonging to this subset of the current symbol set are displayed in the Symbol list.
  • Style – the current style of font is displayed. You can change the font style by selecting one from the list box.
  • Add – click this button to add the symbol shown in the right preview window to the current symbol set. It will be saved under the name displayed in the Symbol list. You must specify a name under Symbol or Symbol set to be able to use the Add button. Names cannot be used more than once.
Page 59 of the LibreOffice Math 4.4 user manual — Extensions
Page 59 · click to enlarge
Page 59
  • Modify – click this button to replace the name of the symbol shown in the left preview window (the old name is displayed in the Old symbol list) with the new name you have entered in the Symbol list.
  • Delete – click this button to remove the symbol shown in the left preview window from the current symbol set. There will be confirmation of deletion. Deleting the last remaining symbol of a symbol set also deletes the symbol set.
  • Cancel – click this button at any time to close the dialog without saving any of the changes.

Formula spacing

The grave accent (`) inserts an additional small space and the tilde (~) inserts an additional large space into formulas. However, in the basic installation of LibreOffice, these symbols are ignored when they occur at the end of a formula. If you are working with running text in a formula, it may be necessary to include spacing at the end of formulas as well. This customization is only required when you are working with a Math document and is not required when you are inserting a formula into another LibreOffice module.

To add spacing at the end of formula in Math, go to Tools > Options > LibreOffice Math > Settings on the main menu bar and uncheck Ignore ~ and ` at the end of the line in the Miscellaneous Options section.

Extensions

If you create formulas frequently in your documents, you can customize LibreOffice by adding extensions that are designed to help you create formulas. Extensions are easily installed using the Extension Manager. For more information on how to install extensions, see the Getting Started Guide.

One extension that is recommended for installation is Dmaths. This extension is designed for use in Writer and adds a mathematical macro package providing five toolbars for creating formulas. For more information on this extension, go to the website http://www.dmaths.org

Chapter 4 Customization | 59

Page 60 of the LibreOffice Math 4.4 user manual — Formula spacing
Page 60 · click to enlarge
Page 60
Page 60 of the LibreOffice Math 4.4 user manual — Formula spacing
Page 61 of the LibreOffice Math 4.4 user manual — Math Guide
Page 61 · click to enlarge
Page 61

Math Guide

Chapter 5

Exporting & Importing

Page 62 of the LibreOffice Math 4.4 user manual — Chapter 5 Exporting & Importing
Page 62 · click to enlarge
Page 62
Page 62 of the LibreOffice Math 4.4 user manual — Chapter 5 Exporting & Importing
Page 63 of the LibreOffice Math 4.4 user manual — [S]: Convert and save the object
Page 63 · click to enlarge
Page 63

Math ML format

In addition to exporting documents as PDFs, as described in the Getting Started Guide, LibreOffice offers the possibility of exporting formulas in the MathML format. This allows you or another person to insert formulas into documents that were created in other software, for example, Microsoft Office or an internet browser.

If you are working on a Math document, go to File > Save as on the main menu bar or use the keyboard combination Ctrl+Shift+S to open the Save as dialog. Select MathML from the list of available file formats in File type: to save your formula as MathML.

If you are working in another LibreOffice module, right-click on the formula object and select Save copy as from the context menu to open the Save as dialog. Select MathML from the list of available file formats in File type: to save your formula object as MathML.

Microsoft file formats

To control how formulas in Microsoft format are imported and exported using LibreOffice, go to Tools > Options > Load/Save > Microsoft Office on the main menu bar and select or deselect the options for MathType to LibreOffice Math or reverse.

  • [L]: Load and convert the object
  • [S]: Convert and save the object

[L]: Load and convert the object

Select this option if Microsoft OLE objects are to be converted into the specified LibreOffice OLE object when a Microsoft document is opened in LibreOffice. For formulas, any embedded MathType objects must not exceed the MathType 3.1 specifications to be successfully loaded and converted. Information on MathType format can be found on the website http://www.dessci.com/en

Any formulas created using the Microsoft Office Math Markup Language (OMML) cannot be converted when the document is loaded into LibreOffice regardless of whether the [L]: Load and convert the object option is selected. OMML is normally used in the later versions of Microsoft Office that use the .docx format for documents.

If a document containing OMML formulas has been saved in .docx format and then converted to the older .doc format, then any OMML objects are converted into graphics, which will be displayed in LibreOffice as graphics.

[S]: Convert and save the object

Select this option if LibreOffice OLE objects are to be converted and saved in Microsoft file format. LibreOffice converts any formulas into a format that can be read and modified by Microsoft Equation Editor and MathType.

When this option is not selected, 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 Microsoft Office will attempt to launch LibreOffice.

If a LibreOffice document is saved in the .docx format, formulas are not converted, whether this option is selected or not.

Chapter 5 Exporting & Importing | 63

Page 64 of the LibreOffice Math 4.4 user manual — Math ML format
Page 64 · click to enlarge
Page 64
Page 64 of the LibreOffice Math 4.4 user manual — Math ML format
Page 65 of the LibreOffice Math 4.4 user manual — Math Guide
Page 65 · click to enlarge
Page 65

Math Guide

Appendix A

Commands Reference

Page 66 of the LibreOffice Math 4.4 user manual — Appendix A Commands Reference
Page 66 · click to enlarge
Page 66
Page 66 of the LibreOffice Math 4.4 user manual — Appendix A Commands Reference
Page 67 of the LibreOffice Math 4.4 user manual — Unary/binary operator commands
Page 67 · click to enlarge
Page 67

Introduction

This appendix lists all the operators and commands that are available for use in the Formula Editor when you are creating your formulas.

The more common operators and commands can be entered by clicking on the appropriate icon in the Elements Dock. Where there is no icon displayed in the following tables for the Elements Dock, then you have to enter the operator or command into the Formula Editor using markup language.

Unary/binary operator commands

To access the icons used for entering markup language for unary/binary operator commands into the Formula Editor, select Unary/Binary Operators from the drop-down list at the top of the Elements Dock.

LibreOffice Math 4.4 — Unary/binary operator commands diagram (page 67)
Fig. 23 · Unary/binary operator commands

Division (Slash) / or slash A/B

Appendix A Commands Reference | 67

Page 68 of the LibreOffice Math 4.4 user manual — Relation commands
Page 68 · click to enlarge
Page 68
LibreOffice Math 4.4 — Relation commands diagram (page 68)
Fig. 24 · Relation commands

Boolean AND and or & A∧B

Slash in circle odivide A⊘B

Small multiply symbol in circle odot A⊙B

Subtract symbol in circle ominus A⊖B

Add symbol in circle oplus A⊕B

Multiply symbol in circle otimes A⊗B

User defined binary operator boper monOpB

User defined unary operator uoper A monOp B

Relation commands

To access the icons used for entering markup language for relations commands into the Formula Editor, select Relations from the drop-down list at the top of the Elements Dock.

LibreOffice Math 4.4 — Relation commands diagram (page 68)
Fig. 25 · Relation commands

Is not equal or neq A≠B

Is less than < or lt A

Page 69 of the LibreOffice Math 4.4 user manual — Relation commands
Page 69 · click to enlarge
Page 69
LibreOffice Math 4.4 — Relation commands diagram (page 69)
Fig. 26 · Relation commands

Is less than or equal to

Is less than or equal to leslant A⩽B

Is greater than > or gt A>B

Is greater than or equal to >= A≥B

Is greater than or equal to geslant A⩾B

Is much less than ll A≪B

Is much greater than >> or gg A≫B

Is approximately equal approx A≈B

Is similar to sim A∼B

Is similar to or equal simeq A≃B

Is congruent to equiv A≡B

Is proportional to prop A∝B

Is parallel to parallel A∥B

Is orthogonal to ortho A⊥B

Does not divide ndivides A∤B

Double arrow left dlarrow A⇐B

Double arrow left and right dlrarrow A⇔B

Double arrow right drarrow A ⇒B

Appendix A Commands Reference | 69

Page 70 of the LibreOffice Math 4.4 user manual — Set operation commands
Page 70 · click to enlarge
Page 70
LibreOffice Math 4.4 — Set operation commands diagram (page 70)
Fig. 27 · Set operation commands

Precedes or equal to preccurlyeq A≼B

Succeeds or equal to succcurlyeq A≽B

Precedes or equivalent to precsim A≾B

Succeeds or equivalent to succsim A≿B

Corresponding symbol image of transl A⊷B

Corresponding symbol original of transr A⊶B

Set operation commands

To access the icons used for entering markup language for set operation commands into the Formula Editor, select Set Operations from the drop-down list at the top of the Elements Dock.

LibreOffice Math 4.4 — Set operation commands diagram (page 70)
Fig. 28 · Set operation commands

Is not in notin A∉B

Owns owns or ni A∋B

Difference setminus or bslash A ∖B

Page 71 of the LibreOffice Math 4.4 user manual — Functions
Page 71 · click to enlarge
Page 71
LibreOffice Math 4.4 — Functions diagram (page 71)
Fig. 29 · Functions

Quotient set (slash) between characters slash A/B

Subset or equal to subseteq A⊆B

Superset or equal to supseteq A⊇B

Not subset or equal to nsubseteq A⊈B

Not superset or equal to nsupseteq A⊉B

Functions

To access the icons used for entering markup language for function commands into the Formula Editor, select Functions from the drop-down list at the top of the Elements Dock.

LibreOffice Math 4.4 — Functions diagram (page 71)
Fig. 30 · Functions

Appendix A Commands Reference | 71

Page 72 of the LibreOffice Math 4.4 user manual — Functions
Page 72 · click to enlarge
Page 72
LibreOffice Math 4.4 — Functions diagram (page 72)
Fig. 31 · Functions

Inverse sine or arcsine arcsin() arcsin(A)

Inverse cosine or arccosine arccos() arccos(A)

Inverse tangent or arctangent arctan() arctan(A)

Inverse cotangent or arccotangent arccot() arccot(A)

Inverse or area hyperbolic sine arsinh() arsinh(A)

Page 73 of the LibreOffice Math 4.4 user manual — Operators
Page 73 · click to enlarge
Page 73
LibreOffice Math 4.4 — Operators diagram (page 73)
Fig. 32 · Operators

Inverse or area hyperbolic cosine arcosh() arcosh(A)

Inverse or area hyperbolic tangent artanh() artanh( A)

Inverse or area hyperbolic cotangent arcoth() arcoth( A)

Operators

To access the icons used for entering markup language for operator commands into the Formula Editor, select Operators from the drop-down list at the top of the Elements Dock.

LibreOffice Math 4.4 — Operators diagram (page 73)
Fig. 33 · Operators

Appendix A Commands Reference | 73

Page 74 of the LibreOffice Math 4.4 user manual — A
Page 74 · click to enlarge
Page 74

Operation Markup language Example formula

A

Sum superscript top sum to{<?>} <?> ∑

B

B

Sum sup/sub script sum from{<?>} to{<?>} <?> ∑

A

Product prod <?> ∏ A

Product subscript bottom prod from{<?>} <?> ∏

B

A

A

Product superscript top prod to{<?>} <?> ∏

B

B

Product sup/sub script prod from{<?>} to{<?>} <?> ∏

A

Coproduct coprod <?> ∐ A

Coproduct subscript bottom coprod from{<?>} <?> ∐

B

A

A

Coproduct superscript top coprod to{<?>} <?> ∐

B

Coproduct sup/sub script coprod from{<?>} to{<?>} <?> ∐

B

A

Integral int <?> ∫ A

Elements Dock

Page 75 of the LibreOffice Math 4.4 user manual — B
Page 75 · click to enlarge
Page 75

Operation Markup language Example formula

Integral subscript bottom int from{<?>} <?> ∫

B

A

A

Integral superscript top int to{<?>} <?> ∫

B

B

Integral sup/sub script int from{<?>} to{<?>} <?> ∫

A

Double integral iint <?> ∬ A

Double integral subscript bottom iint from{<?>} <?> ∬

B

A

Double integral superscript top iint to{<?>} <?> ∬

A

B

B

Double integral sup/sub script iint from{<?>} to{<?>} <?> ∬

A

Triple integral iiint <?> ∭ A

Triple integral subscript bottom iiint from{<?>} <?> ∭

B

A

A

Triple integral superscript top iiint to{<?>} <?> ∭

B

Appendix A Commands Reference | 75

Elements Dock

Page 76 of the LibreOffice Math 4.4 user manual — A
Page 76 · click to enlarge
Page 76

Operation Markup language Example formula

B

Triple integral sup/sub script iiint from{<?>} to{<?>} <?> ∭

A

Curve integral lint <?> ∮ A

Curve integral subscript bottom lint from{<?>} <?> ∮

B

A

A

Curve integral superscript top lint to{<?>} <?> ∮

B

B

Curve integral sup/sub script lint from{<?>} to{<?>} <?> ∮

A

Double curve integral llint <?> ∯ A

Double curve integral subscript bottom llint from{<?>} <?> ∯

B

A

Double curve integral superscript top llint to{<?>} <?> ∯

A

B

B

Double curve integral sup/sub script

llint from{<?>} to{<?>} <?> ∯

A

Triple curve integral lllint <?> ∰ A

Triple curve integral subscript bottom lllint from{<?>} <?> ∰

B

A

Elements Dock

Page 77 of the LibreOffice Math 4.4 user manual — Attributes
Page 77 · click to enlarge
Page 77
LibreOffice Math 4.4 — Attributes diagram (page 77)
Fig. 34 · Attributes

Triple curve integral superscript top lllint to{<?>} <?> ∰

1 A.

For example, entering oper OP from 0 to 1 A will give the formula OP

Attributes

To access the icons used for entering markup language for attribute commands into the Formula Editor, select Attributes from the drop-down list at the top of the Elements Dock, or click the Attributes icon in the Elements dialog.

LibreOffice Math 4.4 — Attributes diagram (page 77)
Fig. 35 · Attributes

Appendix A Commands Reference | 77

Page 78 of the LibreOffice Math 4.4 user manual — Attributes
Page 78 · click to enlarge
Page 78
LibreOffice Math 4.4 — Attributes diagram (page 78)
Fig. 36 · Attributes
Page 79 of the LibreOffice Math 4.4 user manual — Brackets
Page 79 · click to enlarge
Page 79
LibreOffice Math 4.4 — Brackets diagram (page 79)
Fig. 37 · Brackets

Note The font command changes the font type The first placeholder is replaced with the name of the font and the second placeholder is replaced with your formula values or text. The default fonts you can use are Serif, Sans, or Fixed. If you have added custom fonts to Math (see Chapter 1 Creating & Editing Formulas), then you can replace the first placeholder with the custom font name.

Brackets

To access the icons used for entering markup language for bracket commands into the Formula Editor, select Brackets from the drop-down list at the top of the Elements Dock.

LibreOffice Math 4.4 — Brackets diagram (page 79)
Fig. 38 · Brackets

Appendix A Commands Reference | 79

Page 80 of the LibreOffice Math 4.4 user manual — Brackets
Page 80 · click to enlarge
Page 80
LibreOffice Math 4.4 — Brackets diagram (page 80)
Fig. 39 · Brackets

Double square brackets ldbracket rdbracket ⟦AB⟧

Left double square bracket only \ldbracket ⟦A

Right double square bracket only \rdbracket A⟧

Operator brackets langle mline rangle ⟨AB|CD⟩

Ceiling (upper half square brackets) lceil rceil ⌈AB⌉

Floor (lower half square brackets) lfloor rfloor ⌊AB⌋

Page 81 of the LibreOffice Math 4.4 user manual — Scalable square brackets left [ <?> right ] [
Page 81 · click to enlarge
Page 81
LibreOffice Math 4.4 — Brackets diagram (page 81)
Fig. 40 · Brackets

Scalable round brackets left ( <?> right ) (

Scalable left round bracket only left ( <?> right none (

Scalable right round bracket only left none right ) A B)

Scalable square brackets left [ <?> right ] [

Scalable left square bracket only left [ <?> right none [

Scalable right square bracket only left none right ] A B]

Appendix A Commands Reference | 81

Page 82 of the LibreOffice Math 4.4 user manual — Scalable angle brackets left langle <?> right rangle ⟨
Page 82 · click to enlarge
Page 82
LibreOffice Math 4.4 — Brackets diagram (page 82)
Fig. 41 · Brackets

Scalable left brace only left lbrace {<?>} right none {

Scalable right brace only left none {} right rbrace

Scalable angle brackets left langle <?> right rangle ⟨

Scalable operator brackets left langle <?> mline <?> right none ⟨

Scalable left operator bracket left langle <?> mline <?> right none ⟨

Scalable left ceiling left lceil <?> right none ⌈

Scalable right ceiling left none <?> right rceil A B ⌉

Scalable left floor left lfloor <?> right none ⌊

Page 83 of the LibreOffice Math 4.4 user manual — Formats
Page 83 · click to enlarge
Page 83
LibreOffice Math 4.4 — Formats diagram (page 83)
Fig. 42 · Formats

Scalable single lines left lline <?> right rline |

Scalable left single line left lline <?> right none |

Scalable right single line left none <?> right rline A B |

Scalable double lines left ldline <?> right rdline ‖

Scalable left double line left ldline <?> right none ‖

Scalable right double line left none right rdline

Formats

To access the icons used for entering markup language for format commands into the Formula Editor, select Formats from the drop-down list at the top of the Elements Dock.

LibreOffice Math 4.4 — Formats diagram (page 83)
Fig. 43 · Formats

Power (superscript right) ^{} or sup{} or rsup{} 20 10

Subscript right _{} or sub{} or rsub{} 2010

Appendix A Commands Reference | 83

Page 84 of the LibreOffice Math 4.4 user manual — Formats
Page 84 · click to enlarge
Page 84
LibreOffice Math 4.4 — Formats diagram (page 84)
Fig. 44 · Formats

No space (suppresses space between elements) nospace {} 12+4+5

Vertical stack (more than 2 elements) stack{ # # }

Matrix stack matrix{ # ## # }

Note By default, text characters are aligned to the center in a formula. Use the alignl and alignr commands to align text characters in a formula to the left or right when a formula has more than one line. You can also use the align commands in conjunction with the stack commands to align multi-line formulas on a specific formula element, for example, the equals sign (=).

Page 85 of the LibreOffice Math 4.4 user manual — Others
Page 85 · click to enlarge
Page 85

Others

To access the icons used for entering markup language for other commands into the Formula Editor, select Others from the drop-down list at the top of the Elements Dock, or click the Others icon in the Elements dialog.

LibreOffice Math 4.4 — Others diagram (page 85)
Fig. 45 · Others

Existential quantifier, there is at least one exists ∃

Appendix A Commands Reference | 85

Page 86 of the LibreOffice Math 4.4 user manual — Greek characters
Page 86 · click to enlarge
Page 86
LibreOffice Math 4.4 — Greek characters diagram (page 86)
Fig. 46 · Greek characters

Greek characters

Greek characters are normally entered into a formula using the Symbols dialog (see Chapter 1 Creating & Editing Formulas for more information). However, if you know the name of the Greek character, you can type a percentage sign (%) followed by the name of the Greek character into the Formula Editor.

For uppercase Greek characters, type the name using uppercase characters, for example %BETA

Β (see Table 3 for a full list of uppercase Greek characters). For lowercase Greek characters, type the name using lowercase characters, for example %beta β (see Table 4 for a full list of lowercase Greek characters)

Italic Greek characters can also be entered into a formula by typing the character i after the percentage sign (%) and before the name of the Greek character, for example, %iPI Π for uppercase and %ipi for lowercase π . See Table 5 for a full list of italic uppercase Greek characters and Table 6 for a full list of italic lowercase Greek characters.

Note In localized versions of LibreOffice, the names of Greek characters are also localized. If a document is not localized to the same language, then the names of Greek characters in the following tables may not work correctly. If this happens, you can use the Symbols dialog to select the required Greek character. When selected in the Symbols dialog, the name of the Greek character is displayed at the bottom of the Symbols dialog in the correct language. See Chapter 1 Creating & Editing Formulas for more information on Greek characters and the Symbols dialog.

Table 3Uppercase Greek characters
LibreOffice Math 4.4 — Greek characters diagram (page 86)
Fig. 47 · Greek characters
Page 87 of the LibreOffice Math 4.4 user manual — Special characters
Page 87 · click to enlarge
Page 87
Table 4Lowercase Greek characters
LibreOffice Math 4.4 — Special characters diagram (page 87)
Fig. 48 · Special characters
Table 5Uppercase italic Greek characters
LibreOffice Math 4.4 — Special characters diagram (page 87)
Fig. 49 · Special characters
Table 6Lowercase italic Greek characters
LibreOffice Math 4.4 — Special characters diagram (page 87)
Fig. 50 · Special characters

Special characters

Special characters are normally entered into a formula using the Symbols dialog (see Chapter 1 Creating & Editing Formulas for more information). However, if you know the name of the special character, you can type a percentage sign (%) followed by the name of the special character into the Formula Editor. Table 7 Shows the full list of special characters that are available in LibreOffice.

Appendix A Commands Reference | 87

Page 88 of the LibreOffice Math 4.4 user manual — Reserved words
Page 88 · click to enlarge
Page 88

Note In localized versions of LibreOffice, the names of special characters are also localized. If a document is not localized to the same language, then the names of special characters in the following table may not work correctly. If this happens, you can use the Symbols dialog to select the required special character. When selected in the Symbols dialog, the name of the special character is displayed at the bottom of the Symbols dialog in the correct language. See Chapter 1 Creating & Editing Formulas for more information on special characters and the Symbols dialog.

Table 7Special characters

%perthousand ‰ %tendto → %element ∈

%noelement ∉ %infinite ∞ %angle ∢

%and ∧ %or ∨ %notequal ≠

%identical ≡ %strictlylessthan ≪ %strictlygreaterthan ≫

Reserved words

A reserved word is a word that is used by LibreOffice as a command in the Math markup language and it cannot be used as a variable name or entered into a formula as text. However, if you want to use a reserved word as text in a formula then you must place the reserved word between double quotes.

For example, you want to use the word “purple” in a formula, but do not want the formula elements to be changed to the color purple. If you simply type A purple B in the Formula Editor, the resulting formula is A ¿ B, which is incorrect and the error is shown by the upside question mark. To correct this error, type A "purple" B in the Formula Editor using double quotes each side of the word purple and the resulting correct formula is A purple B.

The reserved words used in Math are listed in the above tables for commands in markup language.

Page 89 of the LibreOffice Math 4.4 user manual — Reserved words
Page 89 · click to enlarge
Page 89

Appendix A Commands Reference | 89

Page 90 of the LibreOffice Math 4.4 user manual — Reserved words
Page 90 · click to enlarge
Page 90
LibreOffice Math 4.4 — Reserved words diagram (page 90)
Fig. 51 · Reserved words
Sources

References & links

Pages referenced in this manual — manufacturer, support and downloads.

Ask about the LibreOffice Math 4.4

Owners and our team usually reply within a day — and your question helps the next person too.

Add your email to get notified when it’s answered — no spam, ever.

0 questions
No questions yet about the LibreOffice Math 4.4

Be the first to ask — other owners or our team will answer.

Original document

LibreOffice Math 4.4 manual PDF

90 pages·2.2 MB·Software·PDF
Click any page above to open it here
Page 1 / …
100%
Loading pages…