### Introduction

**Origin 2023b** introduces built-in support for **LaTeX** Equation, therefore the **LaTex App** and **MiKTeX **are no longer required.

- Uses MathJax JS library
- Add extensions to MathJax from
**Tools: LaTeX Extensions**menu - Equations are rendered as SVG, allowing for true vector export of graphs and layouts

New System Variable **@MKX** is introduced. 0: default, use built-in LaTeX. User can set it to 1 to go back to old way.

In addition to the new rendering method, we also improved the GUI to make inserting LaTeX equations more user-friendly.

#### Graph/Layout Window

There are a few different ways of adding a LaTeX equation to a Graph or Layout window:

**Paste LaTeX**

Right-click in a graph and select **Paste LaTeX Equation **to paste a LaTeX equation from the clipboard. Double-click to enter in-place edit mode of the object. Double-click on the equation again to open the LaTeX Equation Editor.

Note: You can type regular text before and after the LaTeX equation.

- Insert equation by LaTeX Equation Editor dialog

Choose **Insert: LaTeX Equation** menu, click the improved **Insert Equation** toolbar button or right-click and choose **Insert: LaTeX Equation** context menu to open the dialog.

LaTeX Equations can also be inserted in Axis Title, Legend, or mixed with regular text. E.g. double-click the axis title to enter in-place edit mode. Then, right-click and choose **Insert: LaTeX Equation** or Ctrl+L to bring up the above dialog.

**escape sequence**:

\q() is the escape sequence for LaTeX in Origin. Same as in previous versions, if a LaTeX Equation is entered with \q(), it will be rendered as a LaTeX Equation. E.g. to add LaTeX equation in legend, right-click legend and and choose Properties. Type \q(x[au]) to replace %(1).

You can also double-click any text object in graph to enter the in-place edit mode. Directly paste the text with the \q() notation to show the LaTeX equation .

Note for in-place edit mode, if you manually type in \q(…. ), or paste the LaTeX Equation and then add the \q( ) notation around it, you may see the raw pasted text instead of the rendered LaTeX equation. This is because Origin adds an extra \ for every \ entered in text object. If you right-click the Text and choose Properties to open the Text Properties dialog, you will find an extra \ for all \ characters. You will have to remove these extra \ to make the syntax work. So if you prefer to type in the equations, it is better to open the LaTeX Equation Editor dialog.

#### Workbook

When clicking in cells in the Column Label area or data area, an **Insert LaTeX** button is added on the Mini Toolbar, making LaTeX more accessible.

When a LaTeX equation is inserted in the Column Label row, e.g. Long Name, the substitution notation \q() is automatically inserted and the raw text will show in the worksheet. When the data is plotted in a graph, the equation will render as LaTeX.

If you want to have the rendered LaTeX equation in the worksheet instead of the raw text, click the Long Name row and click RTF button in the Mini Toolbar popup to turn Rich Text on. Rich Text will also have to be turned on for a LaTeX equation in the data area. You will need to right-click any cell in data area and choose Set Data Style: Rich Text to turn it on to see the rendered equation in worksheet.

#### Notes Window

Origin’s Notes window has been improved a lot over the past few versions to expand customization options and generate polished reports. The most recent addition is the ability to insert LaTeX equations in the Notes window by right-clicking inside the window and selecting, **Insert: LaTeX equation**.

View examples by **Notes: Load Samples: LaTeX Equations.txt**. Double click in the loaded sample to see the syntax.

To see how it works in previous versions, check out these blogs:

great

Thank you for sharing

The next step should include the implementation of Origin data parsing in LaTeX expressions. Now the solution looks like a half-measure.

Great improvement!

I will be using it with quite often.