File Exchange > Graphing >    LaTeX

Author:
OriginLab Technical Support
Date Added:
2/12/2016
Last Update:
6/12/2025
Downloads (90 Days):
828
Total Ratings:
66
File Size:
28 KB
Average Rating:
File Name:
LaTex.opx
File Version:
2.63
Minimum Versions:
License:
Free
Type:
App
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
    You can download MiKTeX from: http://miktex.org/download.
    Note: During MikTex installation, choose All Users (default) instead of This User Only.
  2. OAutotrace
    You can download OAutotrace from our OAutotrace page.

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.

Learn More:

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

The following blog post provides more information about installing and using the App:

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

To learn more about the important improvements in version 2.3, read this blog post:

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

Updates:

v2.63: 11/4/2025 Updated localization.
v2.62: 5/14/2025 Updated localization.
v2.6: 3/20/2023 Made it compatible with Origin2023b.
v2.5: 3/3/2023 Fixed blurry icons on high DPI display.
v2.4: 10/26/2022 Supported to auto install MiKTex and OAutotrace in Origin 2023.
v2.3: 12/30/2019 Updated to make it compatible with Origin 2017 and 2018.
v2.2: 9/29/2019 Updated error message.
v2.1: 8/14/2018 Updated Chinese version's dialog.
v2.0: Insert LaTeX objects in worksheet cells, graph axes titles, legends and text labels.
v1.4: Improved handling of temporary files created by the App
v1.4: Allows additional LaTeX commands including full documents

Reviews and Comments:
11/08/2025  

02/18/2025douglas-sribeiro111111111

11/07/2024  

11/03/2024  

07/16/2024kawanishienv 

04/14/2024berlin222Not works with texlive yet. MikTex is too hard to use. so, install both of them?

03/28/2024  

10/28/2023wertdiderer

08/22/2023lu weihang 

05/19/2023OriginLabHi wanghusheng,
Please try to define the font size at the doucment header, such as

\documentclass[12pt]{article}

05/18/2023wanghushengOrigin 2022 is fine. But in Origin 2023, When I use
"documentclass{article}
usepackage{chemfig}
pagestyle{empty}
begin{document}

chemfig{H-C(-[2]H)(-[6]H)-C(=[1]O)-[7]H}

end{document}",
an error occurs
"The document header may not be using recommended 12pt fonts. The font size combo button may not work properly."

And nothing is shown in the graph

05/18/2023LiyananQBQ

03/04/2023  

03/01/2023zhangruoyao68 

02/27/2023OriginLabHi yjf10311212, to further check what went wrong, please send us a screenshot of the error message via a ticket: https://www.originlab.com/restricted/support/newticket.aspx?c=3

OriginLab Technical Support

02/25/2023yjf10311212Help, I had trouble in installing this app, which said number of parameters passed to function is not true. How can I install it?

02/14/2023liuyunwu 

11/22/2022Zuo-Xin Cai 

10/18/2022moyu3585Please support texlive

04/20/2022PEI YANG 

03/29/2022OriginLabHi JiajieC,

We have added your suggestion into APPS-854 to follow up it.
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 

03/08/2021JacquelineheHi dengcy,
Thanks for your suggestion. Now this app does not support TexLive. We will consider support it in the future version.
OriginLab Technical Support.

03/06/2021dengcyHope you can support TexLive

01/29/2021oi372Follow up:

I re-installed OAutoTrace using the *.msi version instead of the *.exe version. It seems to work now!

01/29/2021oi372I have the same problem as Thomas. Whenever I type LaTex code Origin shows me an error message that the tracing failed. I installed MikTex and OAutoTrace before installing the app. The app is recognized but it fails to render the LaTex code. I run Origin 2017 64bit b9.4.0220.

I received the following error message:
[01/29/2021 09:35:35]
SYSTEM.FONT.TRANSPARENCY: object property not found!
SYSTEM.LEGEND.TRANSPARENCY: object property not found!
Failed to execute Autotrace. Please contact OriginLab.

Looking forward to hear from you.

Kind regards

01/28/2021OriginLabHi ThomasKure,
Please make sure that you have install MiKTex and OAutotrace like the Prerequisite section above.
If it still doesn’t work, could you please tell which version you are using and what the error message is?

Regards, OriginLab Technical Support

01/27/2021ThomasKureDoes not work (Tracing failed!). Preview is working but I get an error in the end. Already checked FAQ-982 and the solutions but none of the helped.

01/11/2021julia.nofoente希望后续更新texlive版本的

01/08/2021sreekaroriginVery much needed app for generating aesthetic graphs needing mathematical typesetting

11/20/2020originlabHi Shuliang Xu, please make sure that you are using Origin 2017 and later versions, then read the description above and check if you installed the app correctly and use the app properly. If you still have any questions or issues, please feel free to leave your comment.
Peace & Love,
OriginLab Technical Support.

11/20/2020Shuliang Xu毫无价值,总是输不出公式,垃圾插件!!!

10/19/2020汪晨 

10/13/2020  

11/26/2019OriginLabHi @pranav,

I'm sorry, it doesn't seem that Texlive is supported.
OriginLab Technical Support

11/26/2019pranav.karanjkarWould it work with texlive?

10/14/2019jjbrown 

04/28/2019inamshahzad99Excellent! But the amsmath package doesn't totally work. I need insert the symbol \square in a plot. I know the symbol \square is included in the amssymb package, and this one belongs to the amsfonts package, which is active in MikTex. In fact, I can use the symbol \square in TExworks. Please, help me!

04/08/2019  

01/21/2019luocaiwei1212very good~

01/15/2019OriginLabHi @Screen4ger,
Yes, generating good Chemfig figures may be too complex for this App to handle. You may consider using an Application like ChemDraw and copying the image from that application and pasting it onto an Origin graph. That actually works well.

01/15/2019Screen4gerDoesn't work with chemfig nodes because they need multiple latex compilations to work.

11/17/2018yaohong123900hadiedieideded

10/16/2018OriginLabHi nebramall, there are several reasons which caused the error. We sent the workaround to your email. You can check it. We will also create a FAQ for it in our document.

10/14/2018nebramallI am running Win 7 Pro. I have MikTex installed and working with several LaTeX editors. When I try to use this app, I get the following error message:

"Origin failed to update MiKTeX packages. Please make sure internet access is available. If problem persists, try increasing the timeout value using @LTXTP (units sec)."

Not sure what to do with this...

05/09/2018tomlem14Works well with Windows 10 and Origin 2017

04/28/2018Ye ziyiOK, GREAT!

04/28/2018Ye ziyitracing failed! How to deal it?

02/21/2018skungTexLive PLEASE!!

12/06/2017axnkillercan the author publish a version which support texlive package?

11/14/2017ajodfajOrigin failed to update MiKTeX packages. Please make sure internet access is available. If problem persists, try increasing the timeout value using @LTXTP (units sec).

11/11/2017szh.zjIt works fine with win10, but actually it needs some manual configuation. First you should update all the packages in miktex, then you need to add the miktex's path into the user's environment variables (or you can simply run MiKTeX Update (not the *admin* one) to do this automatically). To put it in another way, it's the miktex that is to blame, not this app.

10/31/2017kaklasPlease provide instructions for windows 10 users. Your latex app doesn't work.

10/17/2017lurenjia007Are you kidding me? Do your company try run on Win 10?

06/17/2017sonyerI use Windows 10 and it doesn' work. I use Win 7 before and it works. Is it not compatible with Win 10? Thanks.

01/19/2017kuzyk1I am now upgrading my rating because LaTeX can now be entered in graph objects. I have had some issues with placing equations in worksheets, thus 4 stars. Perhaps this is an issue with me, so if this gets resolved, this add-on may be the perfect companion to Origin.

08/30/2016kuzykI am thankful that there is now a plugin that supports LaTeX. It would be even better if LaTeX could be added as axes labels, legends, etc. Perhaps you could allow an image to be entered in these fields so that LaTeX equations can be used. The symbols available for axes labels are not very professional looking when symbols or simple expressions are needed.

04/13/2016OriginLabHi ru.pro,
To Upgrade to v1.4, please first uninstall v1.2 and then delete the temp files under your system user folder(c:\Users\\AppData\Local\OriginLab\93\TMP\textemp\).

04/13/2016ru.prono longer works. does not recognize MikTex installation. (O2016SP2, Latex 1.4)

02/15/2016additivecool stuff! Now you need output from nlsf and other tools in LaTeX notation ;)

02/13/2016login_for