Difference between revisions of "LibreOffice-Suite-Math-6.3/C2/Markup-language-and-Formula-formatting/English"
Nancyvarkey (Talk | contribs) |
|||
Line 13: | Line 13: | ||
|| '''Slide: Learning Objectives ''' | || '''Slide: Learning Objectives ''' | ||
|| In this tutorial, we will learn: | || In this tutorial, we will learn: | ||
− | * '''Markup language''' for writing the | + | * '''Markup language''' for writing the formulae. |
* To use ''' brackets''' to state the order of the operation. | * To use ''' brackets''' to state the order of the operation. | ||
* How to format the formulae | * How to format the formulae | ||
− | |||
|- | |- | ||
Line 24: | Line 23: | ||
* '''Ubuntu Linux OS''' version 18.04 and | * '''Ubuntu Linux OS''' version 18.04 and | ||
* '''LibreOffice Suite''' version 6.3.5 | * '''LibreOffice Suite''' version 6.3.5 | ||
− | |||
|- | |- | ||
Line 40: | Line 38: | ||
|| I have opened the '''Writer ''' document. | || I have opened the '''Writer ''' document. | ||
|- | |- | ||
− | || | + | || '''Insert ''' menu >> select the '''Object'''. |
From the submenu >> select the '''Formula''' option. | From the submenu >> select the '''Formula''' option. | ||
Line 61: | Line 59: | ||
− | Let’s write a formula using '''Markup language''' in the '''Formula | + | Let’s write a formula using '''Markup language''' in the '''Formula editor'''. |
Line 69: | Line 67: | ||
'''Markup language''' for a formula resembles the way we read the formula in English. | '''Markup language''' for a formula resembles the way we read the formula in English. | ||
|- | |- | ||
− | || Type '''4+3=7''' | + | || Type '''4+3=7''' |
− | Go to the '''Writer | + | Go to the '''Writer''' gray box >> |
Point to''' 4+3=7''' and '''4-3=1'''. | Point to''' 4+3=7''' and '''4-3=1'''. | ||
Line 78: | Line 76: | ||
− | Type 4 plus 3 equal to 7 in the ''' Formula editor'''. | + | Type '''4 plus 3 equal to 7''' in the ''' Formula editor'''. |
− | + | |- | |
− | Similarly type 4 minus 3 equal to 1. | + | || Type '''4-3=1'''. |
− | + | ||Similarly, type '''4 minus 3 equal to 1'''. | |
− | + | |- | |
− | Notice the display in the '''Writer | + | ||In the '''Writer''' gray box. |
+ | ||Notice the display in the '''Writer''' gray box. | ||
The two formulae are shown on the same line. | The two formulae are shown on the same line. | ||
Line 94: | Line 93: | ||
type '''newline'''. | type '''newline'''. | ||
− | Go to the '''Writer | + | Go to the '''Writer''' gray box >> Point to the new line. |
|| The '''markup''' to insert a new line is ''' newline'''. | || The '''markup''' to insert a new line is ''' newline'''. | ||
|- | |- | ||
− | || Go to the '''Formula | + | || Go to the '''Formula editor ''' window >> |
type: '''Some more example formulae: newline'''. | type: '''Some more example formulae: newline'''. | ||
Line 103: | Line 102: | ||
Press ''' Enter key'''. | Press ''' Enter key'''. | ||
− | || In the '''Formula | + | || In the '''Formula editor ''' window, type '''Some More Example Formulae newline'''. |
For better readability, we will press the '''Enter''' key. | For better readability, we will press the '''Enter''' key. | ||
Line 113: | Line 112: | ||
− | Go to the '''Writer | + | Go to the '''Writer''' gray box >> Point to the last formula. |
− | || Now let’s write '''x | + | || Now let’s write '''x greater than equal to y''' and also number the formulae. |
Line 120: | Line 119: | ||
− | Notice that the ''' Writer | + | Notice that the ''' Writer''' gray box has refreshed and the contents are numbered. |
|- | |- | ||
|| Go to the''' Formula Editor''' window >> | || Go to the''' Formula Editor''' window >> | ||
Line 126: | Line 125: | ||
type: '''2. a ^ 2 newline''' >> press '''Enter.''' | type: '''2. a ^ 2 newline''' >> press '''Enter.''' | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
|| Next, let’s write the markup for '''a squared'''. | || Next, let’s write the markup for '''a squared'''. | ||
Type '''2. a caret 2 newline''' and press '''Enter.''' | Type '''2. a caret 2 newline''' and press '''Enter.''' | ||
+ | |- | ||
+ | ||Type ''' 3.a caret 10.''' | ||
+ | Go to the '''Writer gray box''' >> | ||
− | To write the markup for '''a to the power of 10 '''type '''3. a caret 10 newline'''. | + | Point to the last''' formula'''. |
+ | ||To write the markup for '''a to the power of 10 '''type '''3. a caret 10 newline'''. | ||
− | Notice the mathematical symbols in the '''Writer | + | Notice the mathematical symbols in the '''Writer''' gray box. |
|- | |- | ||
− | || Go to the''' Formula | + | || Go to the''' Formula editor''' window >> |
type '''4. sqrt {16}= 4''' '''newline '''>> press '''Enter.''' | type '''4. sqrt {16}= 4''' '''newline '''>> press '''Enter.''' | ||
− | Go to the '''Writer | + | Go to the '''Writer''' gray box >> Point to the last '''formula'''. |
− | || Let us write the markup for square root of 16 = 4. | + | || Let us write the '''markup''' for '''square root of 16 = 4.''' |
Line 155: | Line 152: | ||
− | Notice the formula in the '''Writer | + | Notice the formula in the '''Writer''' gray box. |
|- | |- | ||
|| '''Σ a suffix n, a1 + a2 + a3 + -----+ an.''' | || '''Σ a suffix n, a1 + a2 + a3 + -----+ an.''' | ||
− | Go to the''' Formula | + | Go to the''' Formula editor''' window >> |
type: '''5. sum a_n newline '''>> press '''Enter.''' | type: '''5. sum a_n newline '''>> press '''Enter.''' | ||
− | Go to the '''Writer | + | Go to the '''Writer''' gray box >> |
Point to the last '''formula'''. | Point to the last '''formula'''. | ||
Line 174: | Line 171: | ||
− | Notice the summation symbol in the '''Writer | + | Notice the summation symbol in the '''Writer''' gray box. |
|- | |- | ||
− | || Go to the''' Formula | + | || Go to the''' Formula editor''' window >> |
type:''' 6. int f(x) dx newline ''' >> press '''Enter'''. | type:''' 6. int f(x) dx newline ''' >> press '''Enter'''. | ||
− | Go to the '''Writer | + | Go to the '''Writer''' gray box >> |
Point to the last '''formula'''. | Point to the last '''formula'''. | ||
Line 192: | Line 189: | ||
− | Notice the '''integral symbol''' in the ''' Writer | + | Notice the '''integral symbol''' in the ''' Writer''' gray box. |
Here I will include one more newline. | Here I will include one more newline. | ||
Line 228: | Line 225: | ||
The mark up is: '''‘5 over x+y ''' in '''curly ''' brackets. | The mark up is: '''‘5 over x+y ''' in '''curly ''' brackets. | ||
− | |||
− | |||
|- | |- | ||
Line 268: | Line 263: | ||
|| Now let us learn to '''format''' the formulae we wrote. | || Now let us learn to '''format''' the formulae we wrote. | ||
|- | |- | ||
− | || Go to '''Writer | + | || Go to '''Writer''' gray box >> |
Point to all '''formulae'''. | Point to all '''formulae'''. | ||
Line 276: | Line 271: | ||
Point to the '''Format menu'''. | Point to the '''Format menu'''. | ||
− | || In the ''' Writer | + | || In the ''' Writer''' gray box, notice that the formulae are left aligned and numbered. |
Line 293: | Line 288: | ||
|| The '''Alignment''' dialog box appears on the screen. | || The '''Alignment''' dialog box appears on the screen. | ||
− | Under '''Horizontal | + | Under '''Horizontal, Left ''' option is selected by default. |
Line 306: | Line 301: | ||
Click the '''OK '''button. | Click the '''OK '''button. | ||
− | Go to the '''Writer | + | Go to the '''Writer''' gray box >> |
Point to all '''formulae.''' | Point to all '''formulae.''' | ||
− | || If you have the default option as ''' | + | || If you have the default option as '''Centred''', please change it to '''Left'''. |
You may try the '''Right ''' alignment option on your own. | You may try the '''Right ''' alignment option on your own. | ||
Line 343: | Line 338: | ||
− | From the drop down menu, choose '''Variables''' category. | + | From the drop-down menu, choose '''Variables''' category. |
|- | |- | ||
|| Point to '''Fonts''' dialog box >> Point to all fonts. | || Point to '''Fonts''' dialog box >> Point to all fonts. | ||
Line 373: | Line 368: | ||
− | In the '''Writer gray box, | + | In the '''Writer''' gray box, notice the change in the '''font style''' of the '''formulae.''' |
|- | |- | ||
|| Click '''Format menu''' >> '''Font Size.''' | || Click '''Format menu''' >> '''Font Size.''' | ||
Line 380: | Line 375: | ||
Click the '''Format menu''' and then on '''Font Size'''. | Click the '''Format menu''' and then on '''Font Size'''. | ||
|- | |- | ||
− | || Point to the '''Font Sizes '''dialog box | + | || Point to the '''Font Sizes '''dialog box. |
Line 386: | Line 381: | ||
− | Default sizes: '''Text 100, Indexes 60, | + | Default sizes: '''Text 100, Indexes 60, Functions 100 Operators''' 100 '''Limits 60'''. |
|| The '''Font Sizes ''' dialog box appears on the screen. | || The '''Font Sizes ''' dialog box appears on the screen. | ||
Line 395: | Line 390: | ||
'''Functions field''' >> '''Operators field''' >> '''Limits field.''' | '''Functions field''' >> '''Operators field''' >> '''Limits field.''' | ||
− | + | || Let’s change the '''Relative Sizes''' of '''Text''', '''Indexes''', '''Functions''', '''Operators''' and '''Limits'''. | |
− | + | ||
− | + | ||
− | || Let’s change the '''Relative Sizes''' of '''Text''' , '''Indexes''', '''Functions''', '''Operators''' and '''Limits'''. | + | |
|- | |- | ||
|| Click''' OK''' button. | || Click''' OK''' button. | ||
− | Go to the''' Writer | + | Go to the''' Writer''' gray box >> |
point to all '''formulae'''. | point to all '''formulae'''. | ||
|| Now click the '''OK''' button. | || Now click the '''OK''' button. | ||
− | In the '''Writer | + | In the '''Writer''' gray box, notice the change in the '''font size''' of the '''formulae.''' |
|- | |- | ||
|| Point to the formulae. | || Point to the formulae. | ||
Click on the '''Format menu ''' >> '''Spacing'''. | Click on the '''Format menu ''' >> '''Spacing'''. | ||
− | || Next, let us make changes to the spacing of the | + | || Next, let us make changes to the spacing of the formulae. |
Line 439: | Line 431: | ||
− | Let us change the '''Spacing''', '''Line spacing''' and '''Root | + | Let us change the '''Spacing''', '''Line spacing''' and '''Root spacing''' each to '''30 percent.''' |
− | As we set the | + | As we set the spacing type, preview shows the position of the spacing. |
Line 452: | Line 444: | ||
− | Go to the''' Writer | + | Go to the''' Writer''' gray box >> |
point to the spacing between '''formulae'''. | point to the spacing between '''formulae'''. | ||
Line 461: | Line 453: | ||
− | In the '''Writer | + | In the '''Writer''' gray box, notice that spacing between the '''formulae''' has changed. |
|- | |- | ||
|| Point to the Elements window. | || Point to the Elements window. | ||
Line 469: | Line 461: | ||
click on the drop-down >> select '''‘Formats’'''. | click on the drop-down >> select '''‘Formats’'''. | ||
− | || In the '''Elements''' window, click on the '''Element Categories'''. | + | || In the '''Elements''' window, click on the '''Element Categories''' drop-down. |
Line 506: | Line 498: | ||
− | Go to the '''Writer | + | Go to the '''Writer''' gray box >> Point to the fifth example. |
− | || In the '''Formula | + | || In the '''Formula editor''' window, click after number 5. in the fifth example. |
Go to the '''Elements window '''and click on the symbol '''‘tilde’'''. | Go to the '''Elements window '''and click on the symbol '''‘tilde’'''. | ||
− | In the '''Writer | + | In the '''Writer''' gray box, notice the new gap that is created after number 5. |
|- | |- | ||
|| Cursor on the interface. | || Cursor on the interface. | ||
Line 523: | Line 515: | ||
Point to''' 5.''' | Point to''' 5.''' | ||
− | || Now let’s learn to use '''color | + | || Now let’s learn to use '''color command''' in the '''markup '''language. |
− | This command works only on the formula element that is next to the '''color '''name. | + | This '''command''' works only on the formula element that is next to the '''color '''name. |
− | Let us use the '''color''' | + | Let us use the '''color command''' for the last formula. |
− | Type '''color red''' before | + | Type '''color red''' before 5. |
− | Notice that only 5 is shown in | + | Notice that only 5 is shown in red colour. |
|- | |- | ||
|| In FEW, type: | || In FEW, type: | ||
Line 547: | Line 539: | ||
|- | |- | ||
|| Narration only: | || Narration only: | ||
− | || With this we have come to the end of this | + | || With this we have come to the end of this tutorial. |
Line 554: | Line 546: | ||
|| '''Slide: Summary''' | || '''Slide: Summary''' | ||
|| In this tutorial, we have learnt: | || In this tutorial, we have learnt: | ||
− | * '''Markup language''' for writing the | + | * '''Markup language''' for writing the formulae |
− | * To use brackets | + | * To use brackets to state the order of the operation. |
* How to format the formulae | * How to format the formulae | ||
− | |||
|- | |- | ||
Line 564: | Line 555: | ||
|| Here is an assignment for you. | || Here is an assignment for you. | ||
− | In the '''Writer''' window, call the '''Math''' application. | + | *In the '''Writer''' window, call the '''Math''' application. |
− | Write the following '''formulae''' using the '''Markup''': | + | *Write the following '''formulae''' using the '''Markup''': |
− | Use '''Elements''' dock if necessary. | + | *Use '''Elements''' dock if necessary. |
* '''Summation''' of '''x''' squared | * '''Summation''' of '''x''' squared | ||
* '''sin''' to the power of x plus '''cos''' to the power of x is equal to 1 | * '''sin''' to the power of x plus '''cos''' to the power of x is equal to 1 | ||
* '''Summation''' from 1 to n of x | * '''Summation''' from 1 to n of x | ||
− | Use the '''Operators''' category to set the '''limits''' for '''summation.''' | + | *Use the '''Operators''' category to set the '''limits''' for '''summation.''' |
− | Save the file as '''Math-assignment.odt''' | + | *Save the file as '''Math-assignment.odt''' |
|- | |- | ||
|| '''Slide:''' | || '''Slide:''' | ||
Line 582: | Line 573: | ||
|| Here is an another assignment for you. | || Here is an another assignment for you. | ||
− | Change the '''font style''' of the formulae to''' Lato Black''' and '''font size''' to 20 point. | + | *Change the '''font style''' of the formulae to''' Lato Black''' and '''font size''' to 20 point. |
− | Provide more spacing between the symbols | + | *Provide more spacing between the symbols |
− | Colour the characters in the formulae to green. | + | *Colour the characters in the formulae to green. |
|- | |- | ||
Line 593: | Line 584: | ||
* The video at the following link summarises the Spoken Tutorial project | * The video at the following link summarises the Spoken Tutorial project | ||
* Please download and watch it | * Please download and watch it | ||
− | |||
|- | |- | ||
|| '''Slide: Spoken tutorial workshops''' | || '''Slide: Spoken tutorial workshops''' | ||
− | |||
− | |||
|| | || | ||
* We conduct workshops using '''spoken''' '''tutorials''' and give certificates | * We conduct workshops using '''spoken''' '''tutorials''' and give certificates | ||
* For more details, please contact us | * For more details, please contact us | ||
− | |||
|- | |- | ||
Line 614: | Line 601: | ||
* The Spoken Tutorial project will ensure an answer | * The Spoken Tutorial project will ensure an answer | ||
* You will have to register on this website to ask questions | * You will have to register on this website to ask questions | ||
− | |||
|- | |- |
Revision as of 16:14, 29 June 2022
Title: Markup Language and Formula Formatting
Keywords: LibreOffice Math, markup language, Save file, brackets, font style, font size, alignment, spacing, color command, video tutorial.
Visual Cue | Narration |
Slide: Title Slide | Welcome to this Spoken Tutorial on Markup Language and Formula Formatting. |
Slide: Learning Objectives | In this tutorial, we will learn:
|
Slide: System Requirements | This tutorial is recorded using:
|
Slide: Prerequisites | To follow this tutorial, learner should be familiar with Math interface.
If not please access the relevant tutorials on this website. |
Click on Show Applications >> Type writer in the search bar that appears.
>> click on the Writer icon. |
I have opened the Writer document. |
Insert menu >> select the Object.
From the submenu >> select the Formula option. |
Now let’s call the Math application inside Writer.
From the submenu, select the Formula option.
|
Point to the Elements window
Point to the Formula editor window.
|
We can easily write a formula using the Elements window.
|
Type 4+3=7
Point to 4+3=7 and 4-3=1. |
Let us learn this by writing a few examples.
|
Type 4-3=1. | Similarly, type 4 minus 3 equal to 1. |
In the Writer gray box. | Notice the display in the Writer gray box.
The two formulae are shown on the same line. |
Cursor on the interface. | Let us learn to insert formulae in new lines. |
Go to the Formula Editor window >>
type newline. Go to the Writer gray box >> Point to the new line. |
The markup to insert a new line is newline. |
Go to the Formula editor window >>
type: Some more example formulae: newline.
|
In the Formula editor window, type Some More Example Formulae newline.
For better readability, we will press the Enter key. |
Cursor on the interface.
|
Now let’s write x greater than equal to y and also number the formulae.
|
Go to the Formula Editor window >>
type: 2. a ^ 2 newline >> press Enter. |
Next, let’s write the markup for a squared.
|
Type 3.a caret 10.
Go to the Writer gray box >> Point to the last formula. |
To write the markup for a to the power of 10 type 3. a caret 10 newline.
|
Go to the Formula editor window >>
type 4. sqrt {16}= 4 newline >> press Enter.
|
Let us write the markup for square root of 16 = 4.
|
Σ a suffix n, a1 + a2 + a3 + -----+ an.
type: 5. sum a_n newline >> press Enter.
Point to the last formula. |
Let us write a summation symbol for a suffix n, to denote a1 + a2 + a3 + -----+ so on upto an.
|
Go to the Formula editor window >>
type: 6. int f(x) dx newline >> press Enter.
Point to the last formula.
|
Let us now write the markup for an integral with a function.
Type 6. int f(x) dx newline and press Enter.
Here I will include one more newline. |
Cursor on the interface. | Let us learn to use brackets to state the order of the operation in the formula. |
In FEW, press Enter, type 5 over x + y | For example, how do we write add x and y, then divide the result by 5 ?
|
In FEW, add { character before x and } character after y.
5 over {x+y}
|
Is this really what we wanted to write?
|
Cursor on the interface. | Let us save the file now. |
Click on the File menu >> Save | Click on the File menu and select the Save option. |
Point to the dialog box.
Point to Name field.
|
A dialog box, that prompts us to enter the name of the file appears.
|
Select Desktop location to save the file.
|
On the left side, I will select Desktop as the location to save my file.
|
Point to the MathExample1.odtin the title bar. | Observe the change in the title bar now.
|
Point to the formulae. | Now let us learn to format the formulae we wrote. |
Go to Writer gray box >>
Point to all formulae.
Point to the Format menu. |
In the Writer gray box, notice that the formulae are left aligned and numbered.
|
Click on the Format menu >> Alignment. | Let us first see the alignment options.
Click on the Format menu and then click on Alignment. |
Point to the Alignment dialog box.
Point to Horizontal >> point to Left. |
The Alignment dialog box appears on the screen.
Under Horizontal, Left option is selected by default.
|
Point to Centered option.
Point to Horizontal >> Point on the Right. Click the OK button. Go to the Writer gray box >> Point to all formulae. |
If you have the default option as Centred, please change it to Left.
You may try the Right alignment option on your own.
|
Click on the Format menu >> Fonts.
|
Let us change the font style now.
Click the Format menu and select the Fonts option. The Fonts dialog box appears on the screen. |
Point to all categories. | Fonts dialog box shows various categories of fonts. |
Point to Variables >> Functions >>
Numbers >> Text . |
Formula fonts can be used to set different types of fonts for: Variables, Functions , Numbers and Text. |
Go to the bottom of the window >>
click on the Modify.
|
To modify a font style, click the Modify button at the bottom of the window.
|
Point to Fonts dialog box >> Point to all fonts.
Under Attributes click the Bold check box. Click OK button. |
Another Fonts dialog box which has different types of fonts appears.
|
Point to the Variable drop-down >> Click OK.
point to the font of all formulae. |
To save the font of the variable click the OK button at the bottom right corner.
|
Click Format menu >> Font Size. | Let us increase the font size of the formulae.
Click the Format menu and then on Font Size. |
Point to the Font Sizes dialog box.
|
The Font Sizes dialog box appears on the screen.
|
Point to Text field >> Indexes field >>
Functions field >> Operators field >> Limits field. |
Let’s change the Relative Sizes of Text, Indexes, Functions, Operators and Limits. |
Click OK button.
point to all formulae. |
Now click the OK button.
In the Writer gray box, notice the change in the font size of the formulae. |
Point to the formulae.
Click on the Format menu >> Spacing. |
Next, let us make changes to the spacing of the formulae.
|
Point to the Spacing dialog box.
Default sizes: Spacing field 10% Line Spacing field 5% Root Spacing field 0%
Point to the right. Line Spacing field >> Type ‘30’ >> Point to the right. Root Spacing field >> Type ‘30’ >> Point to the right. |
The Spacing dialog box appears on the screen.
|
Click on the Category button >> Point to all spacing types.
point to the spacing between formulae. |
We can also select the spacing types by clicking the Category drop down.
|
Point to the Elements window. | Some more formatting options are available in the Elements window. |
Go to the top of the Element window >>
click on the drop-down >> select ‘Formats’. |
In the Elements window, click on the Element Categories drop-down.
|
Go below the drop-down.
Point to the formats.
Point to the symbol “ ~ ”. |
Notice the various format options in the Element window.
|
Point to the fifth example, | Let us introduce a long gap in the fifth example. |
Go to the Formula Editor window >> go to the fifth example >> click after “5.”.
Go to the Elements window >> click on the symbol “ ~ ”.
|
In the Formula editor window, click after number 5. in the fifth example.
Go to the Elements window and click on the symbol ‘tilde’.
|
Cursor on the interface. | Explore all the formatting options which Math provides on your own. |
In FEW, type:
color red 5 over{ x+y} newline
|
Now let’s learn to use color command in the markup language.
|
In FEW, type:
color red {5 over {x+y}} newline |
To colour of the whole formula, we have to enclose it within curly brackets. |
Ctrl + S | Let us save the file now. |
Narration only: | With this we have come to the end of this tutorial.
|
Slide: Summary | In this tutorial, we have learnt:
|
Slide: Assignment | Here is an assignment for you.
|
Slide:
Assignment |
Here is an another assignment for you.
|
Slide: About Spoken Tutorial Project |
|
Slide: Spoken tutorial workshops |
|
Slide: Answers for THIS Spoken Tutorial |
|
Slide: Acknowledgement | The Spoken Tutorial project is funded by the Ministry of Education, Govt. of India. |
Slide: Thank you
Acknowledgement to DesiCrew |
This tutorial was originally contributed by DesiCrew Solutions Pvt. Ltd. in 2011
This is Madhuri Ganapathi along with the Spoken Tutorial team from IIT Bombay signing off. Thank you for watching. |