As of May 31, 2023, we have updated our Code of Conduct.

Hot answers tagged

22 votes

MaTeX for Mathematica 9

I am not willing to make MaTeX compatible with Mathematica 9 for the simple reason that it would create too much of a maintenance burden, and I already don't have time to properly respond to all ...
Szabolcs's user avatar
  • 231k
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
  • 130k
12 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
  • 231k
10 votes
Accepted

MaTeX shadow option?

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

Cell sizing and labeling for $\textit{MaTeX}$ equations

this is (now a very long) comment not an answer. The objective is to write a book using Mathematica. Within the book equations are generated from LaTex rather than typeset directly using Mathematica. ...
Mike Honeychurch's user avatar
8 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
  • 231k
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
  • 231k
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
  • 231k
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,791
7 votes

RunProcess seemingly does not work on my Windows system

Your RunProcess works properly in all examples and System settings are fine. As @Oleksandr R. has admitted, date is a shell ...
garej's user avatar
  • 4,755
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
  • 130k
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
6 votes

Cell sizing and labeling for $\textit{MaTeX}$ equations

I guess my questions are 1) why you are not doing the typesetting in Mathematica; 2) for those of us unfamiliar with MaTeX are the equations rendered as vectors or bitmap or what? Here is a solution ...
Mike Honeychurch's user avatar
6 votes

Cell sizing and labeling for $\textit{MaTeX}$ equations

I did not notice this post until today. MaTeX has two options for setting the size of the output: Magnification just scales everything (i.e. the PDF file output ...
Szabolcs's user avatar
  • 231k
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
  • 231k
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
  • 231k
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,079
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
  • 231k
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
  • 231k
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
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
  • 231k
5 votes
Accepted

MaTeX doesn't change fonts on axes?

The first block of code you show, ...
Szabolcs's user avatar
  • 231k
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
  • 231k
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
  • 127k
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
  • 228k
5 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
  • 130k
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
  • 60.8k
4 votes

Cell sizing and labeling for $\textit{MaTeX}$ equations

You could set it up it manually: ...
martin's user avatar
  • 8,332
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
  • 231k
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

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