Frequently Asked Questions about IguanaTex

Quick links: [Index] [Download] [Google Group]

The following are some common issues and problems with IguanaTex and how to solve them.

Error messages
Other bugs
How do I...
System requirements

Error messages

Q: When pressing the Generate button in IguanaTex, I get the error message: Could not start process: 'latex -interaction=batchmode "addin_tmp.tex"'. GetLastError returned 0.

Could not start process: 'latex interaction=batchmode "addin_tmp.tex"'. GetLastError return 0.

A: This problem occurs when IguanaTex is unable to locate LaTeX in order to compile your Latex file. To verify that this is indeed the problem, click on Start, then on Run, then type cmd and press Enter. In the new window type latex and press Enter. You should see the Latex command prompt. If instead you receive an error message such as 'latex' is not recognized as an internal or external command, then there is a problem with your installation of LaTeX. Verify that you have LaTeX installed and that the version you are using is still supported by its developers. Reinstalling the latest version if necessary should resolve most problems. On Windows, the most common LaTeX installations are MikTex and TeX Live.

Q: When pressing the Generate button in IguanaTex, I get the error message: Run-time error '-2147024809 (80070057)': The specified file wasn't found.

Run-time error '-2147024809 (80070057)': The specified file wasn't found.

A: This problem is usually caused when the program dvipng, or other MikTex/TexLive components, are not installed correctly. dvipng is usually installed with MikTex/TexLive, but some 'minimal' or 'custom' MikTex/TexLive installation options do not include it. To verify that this is the problem, generate the above error message and then check the contents of the temporary directory which you specified when installing IguanaTex. If dvipng or some of its component packages are missing, you will see a tex file containing your LaTeX code, and a dvi file, but no png file.

There are three ways to solve this problem:

  1. Some users have been able to install the missing packages by clicking on the Debug checkbox in the IguanaTex window. This then allowed MikTex/TexLive to pop-up the install window and install any missing software.
  2. If this does not work, switch to the temporary directory you chose when installing IguanaTex (usually c:\temp). The directory should contain the file addin_tmp.dvi. Then, run the command:
    dvipng addin_tmp.dvi
    You should now see dvipng installing whatever missing packages were required during the creation of the IguanaTex image. After doing this successfully, you should be able to use IguanaTex with no problems.
  3. If all else fails, reinstall MikTex/TexLive and choose the "Complete" setting during installation; this will install dvipng and the packages it requires, but will take some time.

Q: When pressing the Generate button in IguanaTex, compilation does not complete and the LaTeX window appears with no particular error message.

A: This may be due to missing LaTeX packages. Some users have been able to install the missing packages by clicking on the Debug checkbox in the IguanaTex window. This then allowed MikTex/TexLive to pop-up the install window and install any missing software.

Q: When pressing the Generate button in IguanaTex, I get a Run-time error '76' and/or Path not found error message. (Occurs on Windows 7)

A: Windows 7 has enhanced security measures which limit the ability of programs to write to some directories on the hard disk. IguanaTex uses a directory to store temporary files, which is set to c:\temp by default. Make sure that this directory exists, and that you are allowed to write to it (for example, by creating a text file in this directory). If the directory does not exist, you can simply create it. If the directory exists but you cannot create text files there, or if you receive a confirmation message from Windows when you attempt to create a text file in that directory, you can set a different temp directory by clicking "Set Temp folder" in the IguanaTex tab and putting the path to the folder of your choice.

Q: When trying to run IguanaTex, I get a Run-time error '70': Permission denied error message.

A: For IguanaTex to function, PowerPoint security settings must be set such that macros are allowed to run. To verify that your security settings are correct:

If this error occurs in Windows 7, it may also be a result of your operating system's security measures. Windows 7 has enhanced security measures which limit the ability of programs to write to some directories on the hard disk. IguanaTex uses a directory to store temporary files, which is set to c:\temp by default. Make sure that this directory exists, and that you are allowed to write to it (for example, by creating a text file in this directory). If the directory does not exist, you can simply create it. If the directory exists but you cannot create text files there, or if you receive a confirmation message from Windows when you attempt to create a text file in that directory, you can set a different temp directory by clicking "Set Temp folder" in the IguanaTex tab and putting the path to the folder of your choice.

Q: When launching PowerPoint 2016, I get a "Type Mismatch" error.

I know. This seems to only happen on some machines (my laptop is one, if that's any consolation), for an unknown reason, and this somehow does not trigger PowerPoint's debugger , so I don't know where this comes from. Everything seems normal after just clicking "OK".

Q: When launching PowerPoint, or when trying to use IguanaTex, I get a "Run-time error '2185': Could not get the LineCount property." error (PowerPoint 2010).

I know. For some reason Powerpoint seems to fail correctly initializing IguanaTex on some machines (my laptop is one, if that's any consolation). I spent a ridiculous amount of time trying to fix this issue, without success. The only workaround is to click "End", "OK", then go to the "Developper" tab (or to "File" then "Options"), click "Add-ins", and un-check then re-check IguanaTex to force PowerPoint to reload it. Yes, I have to do this every time I launch PowerPoint 2010 on my laptop.

Q: IguanaTex prevents Powerpoint from starting, displaying "Microsoft PowerPoint has stopped working".

This may be caused by Kaspersky Internet Security. It has been reported to prevent AddIns from running. The only workaround at this point is to uninstall Kaspersky.
If you are having a similar issue but do not have Kaspersky installed, please let me know.

Q: IguanaTex complains about ImageMagick not working properly.

Some users have reported issues right after installing ImageMagick on their system. Please try to restart Powerpoint, then if it still does not work, restart your computer. If this does not work, try reinstalling ImageMagick and make sure that you check the box to "Install development headers and libraries for C and C++" or in recent versions to "Install legacy utilities (e.g. convert)".

Q: The dvipng conversion fails.

You may be lacking some font on your system. Try running with "Debug" checked; if, at the dvipng step, there is a prompt to install some fonts, follow the instructions to install the fonts, and you should be all set from there on.

Other bugs

Q: Editing an equation that was created with an old version of IguanaTex (version 1.33 or earlier) results in a image with a different size.

A: In v1.34, we fixed an issue to handle an inconsistency in the way PowerPoint inserts images into slides. As a consequence, there is now a discrepancy between v1.34 and older versions in terms of what IguanaTex considers the reference dimensions. Fortunately, this will only happen once per display, and it should hopefully not happen again when upgrading to later versions. We apologize for the inconvenience.
In v1.50, we fixed another issue to handle an inconsistency in the way IguanaTex dealt with displays on high-dpi screens, which resulted in wrong rescaling when editing displays on machines with various DPI settings. This will only happen once per display if your display was created on a machine with a DPI other than 96.

Q: The point size setting usually matches well Powerpoint's point size for regular LaTeX displays, but there are sometimes discrepancies, for example when using Tikz or if I set a specific point size within the LaTeX code.

A: The point size setting is basically a rescaling factor applied to the generated PNG file, that is intended to make the font size of text/maths written in "regular" LaTeX match that of Powerpoint. It assumes that LaTeX's default font size of 10 points is used. If you want to have a match between Powerpoint's font size and that generated by IguanaTex, you need to make sure that you are using 10 point fonts in your LaTeX code (and of course use the same font in Powerpoint and LaTeX), or change IguanaTex's point size accordingly.

Q: Vector graphics displays are slightly warped, and they don't exactly match PowerPoint's point size.

A: I tried to match the point size, but couldn't find a logic that worked across a range of machines. Eventually, I decided to implement a manual rescaling factor in "Main Settings" so that you can tune the size once and for all for your machine. One way to use it is to create a Bitmap display, copy it, convert it to Vector, and find the correct ratio to apply to the Vector one to match the Bitmap one. You can also try comparing with normal text in a PowerPoint Text Box, making sure to use the same font (e.g., Times New Roman, or ideally Computer Modern if you have it loaded in PowerPoint).

Q: The aspect ratio of vector graphics displays is changed when regenerating after moving a part of the display outside the original bounding box.

A: Yes, there is not much we can do about this. IguanaTex uses the size of the bounding box to determine if the user rescaled the original display. Any change to the structure of the display that modifies the bounding box will result in a change in aspect ratio when regenerating (and the change to the structure will of course be discarded).

Q: Some strange things happen to the formatting (color changed, shapes getting filled) when regenerating a vector graphics display.

A: By default, the formatting of the new display is determined by any formatting applied to the original display as a group, and to the left-most character in the display. If formatting is not the same for all parts of the display, for example when different colors are used, then the regenerated display's formatting will be overwritten with wrong information. To avoid this issue, please check the "reset format" checkbox before regenerating.

Q: I sometimes get strange resizing issues. Modifying a display completely changes its zoom factor, making it tiny or huge.

A: This is due to a bug in the way Powerpoint inserts images, and, as far as I know, only occurs for very large images (the behaviour is erratic, and does not only depend on the image size; it's not clear what exactly triggers the bug). As a workaround, you can try to split your display into smaller parts. If you are using the "slides" class (e.g., because you like the sans-serif fonts), I recommend switching to "article" class (do not forget to use \pagestyle{empty}) and using sans serif font, for example by following this guide.
There are also strange issues in the way PowerPoint handles PNG files created using dvipng. You may thus want to try switching to pdflatex or other engines that do not rely on dvipng.

Q: When using the "Insert vector graphics file" function, the size of the inserted image (actually a group of Shapes) is different from that of the file being inserted.

A: This can occur on some machines depending on the resolution and dpi setting. Calibration scaling factors are provided to compensate for the difference. The user can compare the original and inserted sizes, and apply the right scaling factors. These settings can be saved by pressing on "Make Default".

Q: Some parts of the equation (especially subscripts or superscripts) do not appear. For example, I get the following equation:

You may encounter missing subscript symbols the first time you run IguanaTex.

but I would like to see the following:

Running IguanaTex again on the same equation will work around this bug, which typically appears only once per computer.

A: I haven't seen this reported since I took over development of IguanaTex, but in case this occurs, it is suppoed to be a once per computer issue that is easily fixed by regenerating the display. If it persists, please let me know.

Q: Why can't I double-click on an equation to edit it? (In PowerPoint 2007 and up)

A: Unfortunately, Microsoft disabled this feature in PowerPoint 2007. The feature works fine in PowerPoint 2003. As a workaround, click on the equation and then choose "Edit LaTeX display" from the IguanaTex tab. You can also right-click on "Edit LaTeX display" and choose "Add to Quick Access Toolbar": the command will then be available directly from the top of the PowerPoint window, as well as through keyboard shortcuts of the form "Alt + Number" (press Alt once to see which number is associated with the command).

Q: While editing an equation, pressing Enter causes the Generate button to be pressed, rather than moving down a line.

A: This issue was fixed in version 1.04 of IguanaTex. Please download and install the latest version.

Q: When I try to convert the slides to PDF, the IguanaTeX displays appear very pixelated.

A: PDF conversion is tricky. Powerpoint and/or the PDF converter tend to do some compression on images, degrading the output, even if IguanaTex displays are created with very high DPI. One solution is to try converting all displays to vector graphics (using the convenient batch convert feature of IguanaTex): if the conversion does not break the displays (it shouldn't in most cases, but vector graphics conversion is touchy, so you should always check the result matches what you expect), then converting to PDF after that will most likely result in a great-looking, light-weight file. If you do need to stick with bitmap displays, then there a few things that may help improve the output. First, make sure to check the "Do not compress images in file" option in File > Options > Advanced, and pick "High Quality" as the print setting. Second, people have reported better results when using the Acrobe add-in that comes with the paid version of Acrobat.
Regarding the "Do not compress images in file" option: this setting is unfortunately "per powerpoint file", and to make it stick across files, you need to tweak the registry. See this (replace 12.0 by 14.0 for Office 2010, 15.0 for Office 2013, 16.0 for Office 2016). Note that regedit needs to be run under your login, NOT as admininistrator.

How Do I...

Q: How do I make equations in colors other than black?

An example of an IguanaTex equation with color.

A: Use the LaTeX color package. Another solution is to use Vector displays and to apply formatting directly to the display using PowerPoint tools; note however that only formatting applied to the display as a group or to the left-most character will carry over when regenerating/modifying a display.

Q: How do I include my favorite LaTeX macros, command definitions, and custom definitions?

A: The simplest method is to include your definitions as the default IguanaTex LaTeX code. Just type or paste whatever definitions you want into the IguanaTex LaTeX text box and then click "Make Default". From now on, all new IguanaTex equations will include these definitions.

A slightly more generic solution is to add an \include command to your default IguanaTex LaTeX code. The \include command will reference a file containing all your macros and definitions. In this way, you can add new commands and edit existing ones more easily.

Q: Can I use IguanaTex with psfrag and PSTricks?

A: Yes! One way to make this work is to select pdflatex as the compilation engine, and to add \usepackage{auto-pst-pdf} to your preamble. (auto-pst-pdf trick from TeX StackExchange; more debugging tips on the PSTricks website)

Q: Can I use keyboard shortcuts to add or edit equations?

A: Yes, on PowerPoint 2007, 2010, 2013, and 2016, but you cannot choose the shortcut. "Add" and "Edit" commands can be made accessible through the "Quick Access Toolbar", which is the toolbar at the top left of the PowerPoint window. To add them to that toolbar, right-click on each command in the IguanaTex tab of the ribbon, and choose "Add to Quick Access Toolbar": the commands will then be available directly from the top of the PowerPoint window, as well as through keyboard shortcuts of the form "Alt + Number". Press Alt once to see which number is associated to which command.

Q: Can I make my own changes to the IguanaTex source code?

A: Certainly! The IguanaTex source code is freely available for your use. Download the PPTM file from the Download page. This PPTM file contains the Visual Basic for PowerPoint source code for IguanaTex. To access it, you need to enable the Developer tab (right-click on the ribbon and choose "Customize the Ribbon..."), and click on the "Visual Basic" button in there (or use the Alt+F11 shortcut).

Note: If you create any useful modifications of IguanaTex, please let me know (email: ), so that others can enjoy your work as well.

System Requirements

Q: Can I specify the path to LaTeX executables? (useful with portable installations)

A: Yes, starting with v1.54, there is an option to set the path in Main Settings. If left blank, IguanaTex will assume the executables are on the path and accessible from anywhere (default).

Q: Can IguanaTex run on 64-bit Windows systems?

A: Yes, the current version (anything after 1.3) of IguanaTex should work on both 32-bit and 64-bit Windows systems, whether you use 32-bit or 64-bit Microsoft Office.

Q: Can I use IguanaTex on a Mac?

A: No. For a similar product allowing you to embed LaTeX code into Keynote and other Mac programs, try LatexIt.

Q: Does IguanaTex work with Microsoft Word?

A: No. IguanaTex does not work with Word. Some users have reported being happy using TeXsword.

Back to the IguanaTex home page