Skip to content

v1.60

Compare
Choose a tag to compare
@Jonathan-LeRoux Jonathan-LeRoux released this 20 May 22:02
· 34 commits to master since this release

Summary

v1.60 is the first official release supporting both Mac and Windows, as well as SVG.
Many thanks to Tsung-Ju Chiang for his great work on the Mac version.

Major new features include Mac and SVG support (from the beta v1.59), with many bug fixes and UI improvements (in particular, keyboard shortcuts on Mac).

Download

Note: IguanaTex_v1_60.ppam is the same for Windows and Mac.

LaTeXiT support:

Installation

Please refer to the README.

Help welcome in identifying:

  • Missing or unclear installation instructions
  • Broken features and quirks
  • Supported features in different Office versions (e.g., is SVG supported in Office 2019 Windows?)
  • Potential improvements

Full list of changes

New in IguanaTex 1.60 (May 20, 2022)

  • (Win/Mac) Changed Main Settings icon so that it works also on Mac (ControlsGallery icon is not available on Office for Mac, switched to ControlToolboxOutlook)
  • (Win/Mac) Replaced CDbl by Val in bounding box computation (fixes #18)
  • (Win/Mac) Implemented SVG generation via XDV/DVI file with dvisvgm (the original PDF->SVG vector route is still available as another option). This circumvents issue with some symbols when converting to SVG via PDF (#22). Added ControlTipText in Main Settings menu recommending the SVG via DVI route. Note that I considered adding more general support for XDV/DVI for xelatex, lualatex, and platex, but there is no good way to convert straight to PNG for the XDV/DVI files generated by these engines. Note also that platex already goes through DVI to generate PDF (and then PNG/EMF/SVG).
  • (Win/Mac) Added DVI/XDV support when loading vector graphics files
  • (Win/Mac) Refactored and simplified compilation pipeline.
  • (Win/Mac) Fixed bug when loading EPS file.
  • (Win/Mac) Made the "Close/Continue" button in the Error/Debug window the default selected button. As as side-effect, it is now clearer on Mac that clicking the "Copy" button is having an effect because the button becomes selected. Unfortunately, command buttons do not appear depressed when clicked on Mac, and because "Copy" does not have any visible effect, it wasn't clear that it was working.
  • (Win/Mac) Fixed bug that lead to resize issues when a display's file format changed to another during regeneration (e.g., PDF<->PNG)
  • (Win/Mac) On Windows, updated instructions regarding setting ImageMagick's path to magick.exe instead of convert.exe; on Mac, removed irrelevant reference in the README's instructions and removed the path selection in the Main Settings.
  • (Mac) Enabled copy, cut, paste, select all, undo, redo globally in all text forms, via usual Command+Key keyboard shortcuts (This is a major feat, thanks Tsung-Ju!!)
  • (Mac) Enabled shortcuts/accelerators on Mac. The accelerators are mapped to “ctrl+cmd+*” to avoid collision with system shortcuts. (Another major feat, thanks Tsung-Ju!!)
  • (Mac) Changed default path for LaTeXiT-metadata application on Mac to /Library/Application Support/Microsoft/Office365/User Content.localized/Add-Ins.localized/LaTeXiT-metadata-macos, and added test for its existence if the file is under that folder. We do not check otherwise because this would trigger a permission request.
  • (Mac) Debug option on Mac now shows command that will be run and offers the user to copy it, similarly to Windows. The only remaining difference is that the output of each run is only shown on Windows, not Mac.
  • (Win) Added proper unicode support for strings saved to the registry (fixes #17).
  • (Win) Automatically replace gswin32.exe/gswin64.exe with gswin32c.exe/gswin64c.exe (with a "c")
  • (Win) Allow use of LaTeX installations that do not rely on .exe binaries by removing an unnecessary check

New in IguanaTex 1.59.1 (February 17, 2022)

  • (Mac) Add-in is now M1 compatible (new dylib, fixed bug in TextWindowFont)

New in IguanaTex 1.59.0 (April 25, 2021)

  • Added Mac support:
    • integrated original Mac port by Tsung-Ju Chiang into latest Windows code, leading to single code base supporting both platforms.
    • fixed minor issues with original Mac port: made UserForms appear the same size as on Windows (they used to be 3/4 smaller) and tweaked labels so that no text gets truncated; removed Accelerators, which are not implemented on VBA for Mac; ...
    • replaced PNG with PDF for "Bitmap" on Mac (except when selecting DVIPNG compilation route): PDFs are inserted as pictures on Mac, even though they're really vector graphics under the hood (internally stored as EMF); they cannot be converted into Shapes, unfortunately.
    • enabled "Vector" support on Mac, in which a display is inserted as SVG and converted into a Shape object. Contrary to EMF on Windows, Shapes obtained from SVG cannot be "ungrouped" so that individual elements can be modified independently. User needs to set path to libgs.9.dylib in Main Settings (if default one is not correct).
    • enabled support for "Load vector graphics file" on Mac, with support for PS/EPS/PDF/SVG (no EMF at this point and for the foreseeable future). SVG is used for converting PS/EPS/PDF before insertion, which means that the inserted Shape cannot be freely decomposed into smaller elements, unfortunately.
    • added options for setting the default height/width of the editor window in Main Settings
    • enabled support for dynamically resizable editor window on Mac (Thanks, Tsung-Ju!)
    • enabled support for M1 Silicon Macs (Thanks, Tsung-Ju!)
  • Significant code cleaning and refactoring: all variable declarations enforced via "Option Explicit"; coding style improvements suggested by Rubberduck; redundant code made into separate Subs/Functions.
  • Added SVG support on Windows (Office 365 only). See above for Mac.
  • Added option for selecting between SVG, EMF via TeX2img's pdfiumdraw (.tex->.pdf->.emf conversion, fast), and EMF via TeX2img itself (direct .tex->.emf conversion, slower but potentially more robust). SVG seems to lead to the best looking outcome, but one downside is that the obtained Shape cannot be "ungrouped", so that one cannot interact with individual elements.
  • Added option for selecting between SVG and EMF for conversion when inserting a vector graphics file, and added option to skip shape cleanup procedure, which may be irrelevant and not work with EMF or EPS files generated by some software.
  • Added support for reading LaTeX source from images inserted from LaTeXiT: this requires downloading executables (different ones on Windows and Mac) that parse the EMF/PDF files generated by LaTeXiT to retrieve the source. Major thanks to Pierre Chatelier, the developer of LaTeXiT, for kindly implementing all the parsing code, this would have been totally impossible without his fantastic help.
  • Added option to use latexmk for compilation
  • Added option to always keep temporary files, even when not in debug mode.
  • Fixed width and height in some forms to avoid issue where a form would appear much smaller than designed, likely due to display dpi issues
  • Replaced ClipBoard copying code with something much simpler that does not rely on Windows API (Windows) and added ClipBoard support on Mac using AppleScript (Thanks, Tsung-Ju!)
  • Error messages now displayed in a UserForm with a button to copy to clipboard the command that led to an error (instead of forcing copy to clipboard, which may overwrite important information without the user first giving consent)
  • Removed UseUTF8 option as not using it does not appear to have a clear advantage
  • Transparency no longer handled by making PNG non-transparent but by adding white fill to shape (simpler and does not rely on inserted image type)
  • Fixed bug occurring when regenerating displays in a group whose 1st element is not an IguanaTex display
  • Automatically replace %USERPROFILE% in paths with actual value as such types of path lead to issue in CreateProcess API call

See change.log