Performing a Little Housekeeping for Origin’s LaTeX App

はじめに

Origin’s LaTeX App is a great way to add equations to graphs. The App utilizes MiKTeX as the typesetting engine involved in generating equations that are placed on graphs. In the process of generating an equation, MiKTeX and the LaTeX App itself must create a number of temporary files. These files are saved in a directory typically located on your hard drive at C:\Users\username\AppData\Local\OriginLab\XX\TMP\textemp (where username is your actual user name and XX is your version of Origin (e.g. for Origin 2020,  XX  = 97).

Very occasionally, you may run into an instance where the App may begin to have issues generating output with markup that is known to usually work correctly. When this happens, you may need to perform a little housekeeping by deleting the files in the temporary folder. Also over time, files can build up in the folder and you may want to remove them in order to recover the hard disk space they use. In this blog post, I will show you how to delete these files. Deleting the files will have no adverse effect on your existing LaTeX equations and also will not effect future usage of the App.

Note: If you don’t feel comfortable navigating your file system or deleting files, you should probably not continue.

Step 1. Exit Origin

If you are currently running Origin, exit (close) all running instances of the application.

Step 2. Navigate to the LaTeX App Temporary Folder

First you need to enable viewing “Hidden items” in Windows File Explorer by selecting the “View” tab in File Explorer and checking the “Hidden items” control. For Windows 8-10, see Figure 1 below. For Windows 7, please see this reference.

Figure 1 (click to enlarge)
Figure 1 (click to enlarge)

Now in File Explorer, navigate to the C:\Users\username\AppData\Local\OriginLab\XX\TMP\textemp folder (again where username is your user name and XX is your Origin version.  See Figure 2 below.

Figure 2 (click to enlarge)
Figure 2 (click to enlarge)

Step 3. Delete the Files

Once you have navigated to the textemp folder in File Explorer, select all files in the folder by first selecting one file and then using the CTRL+A keyboard shortcut (see Figure 3 below). Be careful that you only select files in the textemp folder and not the folder itself or other files outside the folder! Next, right-click to open the context menu and select “Delete” to delete all of the selected files. That’s all there is to it.

Figure 3 (click to enlarge)
Figure 3 (click to enlarge)

まとめ

This simple housekeeping step does not need to be performed frequently. It really only needs to be done if the LaTeX App begins to have issues with output when using markup that is known to usually work correctly. However, it is also useful to run if you want to recover the hard disk space that MiKTeX and the App have used over an extended period of time.

Thanks for reading!

About Chris Drozdowski

Chris Drozdowski is a Product Support Engineer at OriginLab. He loves to talk to customers and educate them. He particularly relishes diagnosing and solving difficult, edge-case issues. As well, he contributes code to help solve problems or enhance user experience. In his down time at work, he likes to research and write about esoteric product features. Outside of work, he enjoys spending time with his family, having fun with C++, working on his aquarium, and exploring craft beers.

View all posts by Chris Drozdowski →

コメントを残す

メールアドレスが公開されることはありません。 が付いている欄は必須項目です