Skip to main content
13 votes
Accepted

Different fonts in MaTeX

This is all covered in the built-in documentation. Search for MaTeX in Mathematica's documentation centre, or type in the following address: MaTeX/guide/MaTeX. ...
Szabolcs's user avatar
  • 236k
12 votes

MaTeX and \phantom

The same sizes show up using pure Latex. \documentclass[11pt]{article} \begin{document} \Huge \[ \sqrt{\phantom{a^2}b} \] \[ \sqrt{a^2b} \] \end{document} ...
Nasser's user avatar
  • 147k
11 votes
Accepted

MaTeX shadow option?

MaTeX returns plain Graphics, usually with some FilledCurve inside. You can disassemble it ...
Szabolcs's user avatar
  • 236k
9 votes
Accepted

MaTeX, font size, and PlotLegends

This has nothing to do with MaTeX and is essentially a duplicate of How to export graphics in “Working” style environment rather than “Printout”? (But can't be marked as such because that question ...
Szabolcs's user avatar
  • 236k
8 votes
Accepted

Why do I get an error message when calling MaTeX in MMA13.1?

Update: Version 1.7.9 addresses this. I expect that this is harmless and the package still works. This is very likely because you have an invalid entry in your system ...
Szabolcs's user avatar
  • 236k
7 votes

Text[] with offset not positioned correctly in M11.1 and M11.2

Skip to the end for a workaround. Understanding the bug To understand the underlying cause of the bug, let us cycle figure through a box representation and look ...
Szabolcs's user avatar
  • 236k
7 votes
Accepted

How to plot using MaTeX for LaTeX typesetting in Mathematica

I think you want something like this to convert your plot labels to LaTeX (note that I'm also using CustomTicks): ...
Felix's user avatar
  • 3,871
7 votes

LyX-like LaTeX in Mathematica Text Cells

Step 1: Set a hot key for the convertion from Wolfram Language codes to MaTeX graphics. This have been discussed for many times on MSE. (See KeyEventsTranslation.tr and ...
asd1dsa's user avatar
  • 573
7 votes
Accepted

Matrices in MaTeX

V12.1 on windows 10. It works for me this option setting is not even needed, works without it, but you could try adding it, may be your latex is different. ...
Nasser's user avatar
  • 147k
6 votes
Accepted

Line break with MaTeX

MaTeX interprets its input in inline math mode, which means that normally no newlines are allowed. Depending on why you want a newline, you can do one of the following: For multiline equations, use ...
Szabolcs's user avatar
  • 236k
6 votes

Typesetting LaTeX in a text cell

In MMA 12.2 this is now possible in text boxes using ctrl + $, see the documentation.
Kai's user avatar
  • 2,099
6 votes
Accepted

MaTeX no longer working after upgrade

tl;dr MaTeX 1.7.0 and later do not have this issue. Restarting Mathematica after upgrading will fix the problem. After receiving the troubleshooting notebook from OP in e-mail, I believe this is what ...
Szabolcs's user avatar
  • 236k
6 votes
Accepted

Using MaTeX with Callout

I assume you are using Mathematica 11.3. The resizing you observe is due to the new LabelingSize feature. The default is ...
Szabolcs's user avatar
  • 236k
6 votes
Accepted

Poor label and legend resolution using MaTeX

This happens because Mathematica 12.2 and later import PDFs as raster images by default. MaTeX 1.7.8, released October 2020, is updated to be compatible with Mathematica 12.2 and later. Please upgrade ...
Szabolcs's user avatar
  • 236k
6 votes
Accepted

How to change color of math output of MaTeX

How can I change the font color to white for the MaTeX output? ...
Nasser's user avatar
  • 147k
5 votes
Accepted

SciDraw: Insert MaTeX text without distortion

I do not know if this is the best way, but it appears to work well: Use FigLabel, the object intended for label construction in SciDraw Specify an offset for the ...
Szabolcs's user avatar
  • 236k
5 votes
Accepted

MaTeX doesn't change fonts on axes?

The first block of code you show, ...
Szabolcs's user avatar
  • 236k
5 votes
Accepted

ScientificForm without dot "."

One silly idea is to use: ScientificForm[#, NumberPoint->""]& It is silly because it will give wrong answers if more than 1 significant digit is shown (...
Carl Woll's user avatar
  • 131k
5 votes
Accepted

Import an image using Matex without the path of the image inserted in the output

This happens because the file path that you provided contains spaces. Everything after the first space is interpreted as text. This is discussed in this TeX.SE thread: Prevent the file path of an ...
Szabolcs's user avatar
  • 236k
5 votes
Accepted

Typesetting LaTeX in a text cell

Maybe you need MaTeX package. This is the official website of MaTeX package.
A little mouse on the pampas's user avatar
5 votes

BarLegend tick labels broken with MaTeX

Use the Method option (obviously, right?) and the MaTeX option ContentPadding -> False, ...
Michael E2's user avatar
  • 239k
5 votes
Accepted

Why does \color fail in MaTeX?

To make it work you need to add "Preamble" -> {"\\usepackage{color}"} option to MaTeX. This is mentioned ...
xzczd's user avatar
  • 67.1k
5 votes
Accepted

LaTeX typeset for the frame ticks

How to change the size of the x-axis frame tick labels and make them bold? Code ...
Nasser's user avatar
  • 147k
4 votes
Accepted

MaTeX stopped accepting certain font sizes

This also started happening to me sometime last week. I have no clue what triggered the change, since I have not updated anything manually. Unfortunately, I don't have a proper fix, but a simple ...
Academic Bot's user avatar
4 votes

Why "Modern Latin Math" font messes my plot?

Following the comment of @Szabolcs, I downloaded the full package of Latin Modern Roman fonts here and tried them one by one to check which is the most similar to "Latin Roman Math". So I found "LM ...
KratosMath's user avatar
  • 1,309
4 votes
Accepted

How to configure the path to the pdflatex and Ghostscript executables manually

How can I configure the path to the "pdflatex" and "Ghostscript" executables manually? pdflatex.ini is not an executable. Use ...
Szabolcs's user avatar
  • 236k
4 votes
Accepted

Why does this TeXForm cause many errors?

In light of the comment by @Daniel Lichtblau the following is a workaround to the bug that is present Edit: addressing all the comments The code is given below: ...
bmf's user avatar
  • 16.4k
4 votes
Accepted

MaTeX text looks shabby when latex generated pdf is not zoomed

A solution without a satisfactory explanation Open your PDF in Adobe Acrobat Reader and print it from there. I've had the same issue a while ago, when some of the images, created with python (...
Domen's user avatar
  • 28k
3 votes
Accepted

Can MaTeX objects scale the same way as Text objects?

MaTeX returns a Graphics expression. You can include it in some enclosing graphics using Text or ...
Szabolcs's user avatar
  • 236k
3 votes

MaTeX doesn't change fonts on axes?

I am not sure if you want to change Axes labels to Latex only or also change the ticks. According to MaTeX web site, to also change ticks to Latex, one needs to manually typeset them to Latex. I do ...
Nasser's user avatar
  • 147k

Only top scored, non community-wiki answers of a minimum length are eligible