File Exchange > Graphing >    LaTeX

Author:
OriginLab Technical Support
2/12/2016
Last Update:
10/31/2022
4205
Total Ratings:
49
File Size:
27 KB
Average Rating:
File Name:
LaTeX.opx
File Version:
2.40
Minimum Versions:
Free
Summary:

Insert LaTeX objects in worksheet cells, graph axes titles, legends and text labels.

Screen Shot and Video:
Description:

Purpose:
This app can be used to insert LaTeX objects in worksheet cells, graph axes titles, legends and text labels.

NEW App Features in version 2.0 or later (requires Origin 2017 or later):

Installing and using the LaTeX App version 2.0 or later in Origin 2017 or higher versions allows for the following features:

• Insert a LaTeX object into worksheet column label row cells, axis titles, and legends.
• Arbitrary text labels on either graphs or worksheets.
• Easily generate the LaTeX markup for built-in fitting functions via a button in the App dialog

Installing the LaTex App allows you to also add LaTeX objects to worksheet column label rows, graph axis titles, and graph legends. Also, you can add the LaTeX markup for all built-in fitting functions via a simple click of a button in the App dialog.

Installation:

Prerequisite:

If your version is Origin 2023 or higher versions, MikTex and OAutotrace will be installed automatically when you install the app.

If your version is lower than Origin 2023, you must have the following installed on your computer before you can use this App:

1. MiKTeX
Note: During MikTex installation, choose All Users (default) instead of This User Only.
2. OAutotrace

After installing the aforementioned components:

• Restart Origin if already running.
• Download the file LaTex.opx from this page, and then drag-and-drop the file onto the Origin workspace. An icon will appear in the Apps Gallery window.
• When you launch the app for the first time, the Get MikTex Path dialog will open for you to select the path of the LaTex.exe file. If MikTex was installed in the default path, the path is: C:\Program Files\MiKTeX\miktex\bin\x64 .

Operation:

1. With a graph window active, click the "LaTex" icon from Apps Gallery window and the LaTex Equation Editor dialog will open.
2. Input LaTex script in Equation edit box. Click the Preview button to preview the result .
3. Click OK button to insert the equation into the active graph window.
4. To modify the equation, you can double click on the inserted equation to re-open the editor.

Notes:

• The equation in the graph can be rotated, and the color can be changed using the Format toolbar.
• Exporting the graph as EPS or PDF will maintain the equation as a vector object.
• When clicking the Preview button for the first time, you will experience an extended delay (perhaps in excess of a minute) as the App fetches additional packages from the internet. The update status is shown on the Origin Status Bar at the bottom of your workspace. This delay will occur only on first time use. Subsequent operations will be much faster.
• If the equation need call other packages, e.g. chemfig, you'd better run it in TeXworks (TeXworks is MiKTex's editor. You can find it in Windows Start menu or Search button) first to install required packages. For example,
\documentclass{article} \usepackage{chemfig} \pagestyle{empty} \begin{document} \chemfig{H-C(-[2]H)(-[6]H)-C(=[1]O)-[7]H} \end{document}
• If it can work in TeXworks, but fail in Origin's LaTex app, select Help: Open Folder: Application Data from Origin menu, navigate to the folder: \\ImageCache\textemp, and delete temp files. Restart Origin, and it can work now.

This blog post highlights new features for the App in Origin 2017 including adding LaTeX objects to worksheet column label rows, graph axis titles, and graph legends:

http://blog.originlab.com/graphing/latex-improvements-in-origin-2017

http://blog.originlab.com/graphing/introducing-the-latex-app

https://blog.originlab.com/the-improved-latex-app-version-2-3

If you begin to have issues generating output with markup that is known to work, or if you want to delete temporary files and free up disk space, see this blog post:

Note for Old Versions:

• App version 1.71 or later requires Origin 2017 SR0
• App version 1.4 requires Origin 2016 SR2
• If you have installed the earlier version v1.2 of this App,  please follow these steps:
• Uninstall the App (right-click on the icon and select Uninstall)
• Close Origin
• Navigate to the user folder, such as:
C:\Users\<User Name>\AppData\Local\OriginLab\93\TMP\textemp\,
• Delete the temp files
• Restart Origin and then install the new version of the App

v 2.4: 10/26/2022 Supported to auto install MiKTex and OAutotrace in Origin 2023.
v 2.3: 12/30/2019 Updated to make it compatible with Origin 2017 and 2018.
v 2.2: 9/29/2019 Updated error message.
v 2.1: 8/14/2018 Updated Chinese version's dialog.
v 2.0: Insert LaTeX objects in worksheet cells, graph axes titles, legends and text labels.
v 1.4: Improved handling of temporary files created by the App
v 1.4: Allows additional LaTeX commands including full documents

11/22/2022Zuo-Xin Cai

04/20/2022PEI YANG

03/29/2022OriginLabHi JiajieC,

For 2, MiKTeX needs to compile or download files, so it might be slow sometimes.

Thanks

03/26/2022JiajieC1. Please make TeXlive could also available
2. It's too slow and not convenient!
Thank you for the team!

09/22/2021maanhozeonTeX Live
TeX Live
TeX Live

08/20/2021OriginLabHi Lirry_LR,

LaTex App is built based on TexWork of MikTeX. Please send us a sample to ry, or you can download TexWork to try macro package yourself. If you find any macro package TexWork can use but App cannot, please let us know.

Thank you.

08/19/2021Lirry_LRI only want to know how the app uses the macro package, or how to modify the font of the formula

08/14/2021yzyzy96it is really productive.

05/19/2021xiaojzh7@mail2.sysu.edu.cn

 1 2 3 4 5