Group Abstract Group Abstract

Message Boards Message Boards

24
|
136K Views
|
12 Replies
|
36 Total Likes
View groups...
Share
Share this post:

LaTeX typesetting in Mathematica

Posted 11 years ago

Join the chat at https://gitter.im/MaTeX-help/Lobby GitHub (pre-)release Github All Releases Contributions welcome DOI


Hello everyone,

I wrote a package that makes it easy to insert LaTeX-typeset formulae in Mathematica notebooks, in particular in Mathematica graphics. I use this to create figures with high quality typesetting that fit well with the visual style of LaTeX documents.

Here's the package description and here's MaTeX.

Features of the package:

  • get LaTeX-typeset snippets as Mathematica Graphics expressions (convenient for a Mathematica-centric workflow)
  • the baseline is preserved so these snippets can be precisely aligned with each other or with Mathematica text
  • control over font size, magnification and display or inline styles
  • integrated documentation (open the documentation centre and search for "MaTeX")

Let me know what you think and whether you find it useful.

A quick demo:

Attachments:
POSTED BY: Szabolcs Horvát
12 Replies

How does one uninstall an earlier version of MaTeX (or, for that matter, any add-on distributed in the form of a packet)?

I found that, along with the undocumented function PacletInstall, there's a PacletUninstall function. But exactly what does one uninstall?

The reason it's not obvious is that, while I do find MaTeX-1.6.2 in ~/Library/Mathematica/Paclets/Repository, I wonder if there's some corresponding file, or entries in a file, in `~/Library/Mathematica/Paclets/Configuration, or even in ~/Library/Mathematica/Paclets/Temporary that needs to be changed somehow. (Or does PacletUninstall do that automatically when you use it to uninstall the file from ~/Library/Mathematica/Paclets/Repository?

POSTED BY: Murray Eisenberg

Let me give a fully general answer, in case others need this information too.

If you have MaTeX 1.6.1 or earlier (which does not use paclets), it is located in FileNameJoin[{$UserBaseDirectory, "Applications"}]. Navigate to that directory and delete the MaTeX directory within.

If you have MaTeX 1.6.2 or later, it uses the paclet system. It is not strictly necessary to uninstall earlier versions when upgrading. <<MaTeX` will always load the newest version that is installed.

To see which versions you have installed, use the command

versions = PacletFind["MaTeX"]

To uninstall a specific version, apply PacletUninstall to it. For example, to uninstall the second element returned in the versions list above, use

PacletUninstall[ versions[[2]] ]

To uninstall all versions of MaTeX at the same time, use

PacletUninstall["MaTeX"]

I do not usually delete the files in ~/Library/Mathematica/Paclets/ manually. I believe it is better to let the paclet manager do it.

Some of this information is available at the following locations:

POSTED BY: Szabolcs Horvát

Version 1.7.1 is now released. This is the recommended version for Mathematica 11.1 and later (although it is compatible with 10.0 and later).

User-facing changes since the 1.6 series:

  • Better documentation compatibility with recent versions of Mathematica
  • Expanded documentation
  • Improved compatibility with certain Linux systems

Please upgrade, and don't forget that the documentation can be accessed by going to Help ? Wolfram Documentation and entering MaTeX.

POSTED BY: Szabolcs Horvát

Version 1.6.2 is now released. Get it from the GitHub releases page.

The 1.6 series can compile a list of expressions using a single call to LaTeX, which is much faster than compiling them separately.

In 1.6.2 now the documentation integrates with Mathematica. Search for "matex" in the documentation center.

This release is distributed as a .paclet file. This means that the installation instructions have changed. Please see the README on GitHub. This is my first experiment with this distribution format, so any feedback is appreciated.

POSTED BY: Szabolcs Horvát
POSTED BY: Szabolcs Horvát

Very nice, useful package!

In your code for the functions, you had something Mathematica-ly mysterious to me:

Sin[x] + O[x]^6

I know about "big-oh" but was surprised by that use — until I found under "Scope" on docs page ref/O a similar example with the explanation, "Like approximate numbers, approximate functions are contagious". Neat!

POSTED BY: Murray Eisenberg
POSTED BY: Szabolcs Horvát
POSTED BY: Gianluca Gorni
POSTED BY: Gianluca Gorni
POSTED BY: Szabolcs Horvát

Works like a charm. It's great for presentations at conferences and for teaching. Fantastic work!

Thanks a lot,

Marco

POSTED BY: Marco Thiel
POSTED BY: Bernat Espigulé
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard