On device--:--
Log in

How to add a formula and a chart to a document

A lab report, a course paper or a business report rarely does without formulas and charts. In the editor both take a minute: a formula is typed as a line of text, and a chart is built from a few numbers.

Step 1. Open the formula window

Put the cursor where the formula should stand and choose Insert → Formula…, or press Alt+=.

Text editor: How to add a formula and a chart to a document
The Insert menu with the Formula… item highlighted
Insert → Formula….

The tool for this: Text editor

Step 2. Type the formula

A formula is written in LaTeX, a simple text notation used in science. A fraction is \frac{numerator}{denominator}, a power uses ^, an index uses _, a root is \sqrt{x}. For example, the distance in free fall: h = \frac{g t^2}{2}.

Below the box you see at once how the formula will look. Under it is a hint with examples: a sum, an integral, Greek letters, comparison signs. The “On its own line, centred” tick box puts the formula on a line of its own. Press Insert.

To fix a finished formula, double-click it in the text: the window opens again.

The Formula (LaTeX) window: the notation h = \frac{g t^2}{2} and a preview of the fraction
The notation at the top, the preview below it.

Step 3. Open the chart window

Put the cursor in an empty line where the chart should be and choose Insert → Chart….

The Insert menu with the Chart… item highlighted
Insert → Chart….

Step 4. Enter the data

Choose the type: Bars to compare, Line for change over time, Pie for shares of a whole. Write a title, and in the data box enter one value per line: the name first, the number at the end.

The chart on the right is redrawn as you type. When all is well, press Insert.

The Chart window: the Line type is chosen, five lines of data and a preview of the chart
Five measurements and a line chart in the preview.

Step 5. Check the result

The formula and the chart are in the text. The chart can be made smaller or larger by dragging its corner, given a caption, and referred to in the text with Insert → Cross-reference….

In a Word file the formula is saved as a real formula that can be edited, and the chart as an image. In a PDF both look as they do on the screen.

A lab report with the free-fall distance formula and a line chart titled Distance, m
The finished document with a formula and a chart.

Tip. Data can be copied straight from a spreadsheet: the name and the number may be separated by a space, a tab or a semicolon.

Questions and answers

Do I have to know LaTeX?

No. A few notations from the hint under the box are enough: \frac for a fraction, ^ for a power, _ for an index, \sqrt for a root. The result shows at once, so a mistake is easy to spot.

How do I change the data of a finished chart?

Double-click the chart in the document: the same window opens with your data. Change it and press Save.

Can a table add up a column?

Yes. Put the cursor in the cell under a column of numbers and choose Format → Formula: sum of the column above. There are also a row sum and a mean.

Read next

TextTildekit text editor: a full reviewTextHow to move text from Word to a website without junk codeTextHow to make an automatic table of contents with page numbers