Questions tagged [matex]

Questions on the use, installation, and development of MaTeX—a package written by Szabolcs Horvát that makes it easy to use LaTeX-generated labels in Mathematica.

Filter by
Sorted by
Tagged with
3 votes
2 answers
85 views

Convert number of scientific format with with negative exponent to MaTeX?

MaTeX can convert many data to LaTeX format, such as: MaTeX[1.26591*^100] will output But when the number has a minus of the exponent, MaTeX wouldn't work right. ...
Y. zeng's user avatar
  • 425
3 votes
1 answer
186 views

LaTeX typeset for the frame ticks

Following this site, I inserted a LaTeX type set for the frame ticks. Following is the sample code. ...
Rakesh's user avatar
  • 169
1 vote
1 answer
91 views

Installation guide for Matex and Ghostscript on Mac system for compatibility with Mathematica

I require assistance with installing and configuring Matex and Ghostscript for use with Mathematica on my Mac system. I have successfully installed Matex and executed the following codes on ...
PoreyS's user avatar
  • 635
4 votes
1 answer
161 views

Why does \color fail in MaTeX?

Does anyone know why this fails? It worked before if I remember correctly. (13.0.1 for Microsoft Windows (64-bit)) ...
emnha's user avatar
  • 2,361
3 votes
1 answer
287 views

How to change color of math output of MaTeX

I like to work with the ReverseStyle stylesheet, in Mathematica, which is the closest to a Dark theme that's available by default. However, the default font color for math output from MaTeX is black, ...
Dess's user avatar
  • 133
0 votes
2 answers
113 views

Parentheses control

I have an equation with random integer coefficients. The structure is to demonstrate the distributive property. ...
JEM's user avatar
  • 1,147
5 votes
1 answer
227 views

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

when calling MaTex in MMA13.1 << MaTeX` I get this ...
valar morghulis's user avatar
2 votes
0 answers
87 views

MaTeX text now appears with a white background and not a transparent one

LaTeX typeset text in Mathetmatica v13 created using MaTeX v1.7.8 now appears with a white background instead of a transparent one on my machine (MacOS Monterey). I suspect it has something to do with ...
rsgill's user avatar
  • 21
1 vote
1 answer
226 views

MaTeX stopped working after a TeX upgrade

My system: Windows 10, Mathematica 11.2 Yesterday I had to upgrade my MikTeX because I absolutely needed to compile a document needing a newer version. Today MaTeX stopped working. I started getting ...
Jyrki Lahtonen's user avatar
2 votes
1 answer
138 views

Why does this TeXForm cause many errors?

Bug introduced in 13.0 or earlier. Fixed in 13.2.0 or earlier. Why do I get this error? I don't do any calculation with this. I just want to use TeXForm and then wrap MaTeX around it. ...
hana's user avatar
  • 2,678
4 votes
1 answer
154 views

BarLegend tick labels broken with MaTeX

There appears to be an issue with using MaTeX text on the ticks of a BarLabel. Without MaTex,...
xzd209's user avatar
  • 141
3 votes
1 answer
299 views

3D plot with LaTeX axis labels

I am trying to create a 3D density plot and use LaTeX to render the axis labels. My code is below. When I comment out the AxesLabel command the code runs fine and, in particular, MaTeX renders the ...
Sarah's user avatar
  • 31
1 vote
0 answers
55 views

How to get MaTeX to export to PDF with 12.3.1? [duplicate]

I like to use MaTeX to produce publication quality figures. It makes the right font at the right size. However, since upgrading to MMA 12.3.1, it does not export to pdf with export quality. What ...
Astor Florida's user avatar
1 vote
0 answers
102 views

Using MaTeX with outline to create transparency around the equation

Is there a way to combine outline around equations as described here, with the ideas proposed here to create images with transparent background? Currently, since outline requires a color, I end up ...
Wynne's user avatar
  • 1,506
2 votes
0 answers
310 views

Windows MaTeX Configuration [closed]

I configured Ghostscript but not sure why pdflatex was not configured. this is how Ghostscript is done: ...
Cemile S A's user avatar
3 votes
1 answer
266 views

Poor label and legend resolution using MaTeX

I am using Mathematica 12.3 and the MaTeX package in order to typeset my labels and legends correctly. I get quite blurry text and I don't know if there is a way to improve the resolution of the ...
Polarized photon's user avatar
0 votes
1 answer
159 views

What is the best font for Labeling in windows that is consistent with MaTeX fonts?

I am using MaTex on windows and Ubuntu and for labeling, I use the font Latin Modern Roman which is completely consistent with ...
valar morghulis's user avatar
2 votes
1 answer
75 views

CellPrint to EquationNumbered using MaTeX

I'm writing an online book in a Mathematica template and would like to display equations using Szabolcs' wonderful MaTeX (LaTeX typesetting in Mathematica) because the readability is superior to the ...
David G. Stork's user avatar
3 votes
1 answer
567 views

How to adjust the size of a `FrameLabel` that consists of a picture or an object from MaTeX?

I want to plot a figure with $\LaTeX$ formulas as labels. A simple example looks like the following: ...
Jie Zhu's user avatar
  • 513
0 votes
0 answers
189 views

LegendFunction and MaTeX

I have started using MaTeX (excellent package to integrate Latex in your wonderful Mathematica generated plots). I am getting a warning in generating the following plot ...
user12588's user avatar
  • 585
1 vote
0 answers
76 views

Autoloading MaTeX` and Rubi` via DeclarePackage[] in the user init.m does not work

Former question: Autoloading and adding code to a package in the user init.m I am using MaTeX, and I found the updateMaTeX[] function] at the GitHub repo. I tried ...
Gravifer's user avatar
  • 812
3 votes
1 answer
1k views

Is it possible to define RGB colors to be used in MaTeX? How?

My system: Windows 10, Mathematica 11.2, MikTeX 2.9 I am in the process of learning more about the features of Szabolcs Horvát's nice paclet. This time I am toying with the color choices for the ...
Jyrki Lahtonen's user avatar
3 votes
0 answers
462 views

Problem in installing Matex

I am using Mathematica 12.0, and I want to install Matex. According to this page https://github.com/szhorvat/MaTeX only writing the code ...
user avatar
0 votes
1 answer
240 views

Frame around text or MaTeX? [duplicate]

This seems like it should be easy, but I can't figure out how to do it or any documentation of it. How does one add a frame (not an outline, but a frame) around Text...
Wynne's user avatar
  • 1,506
1 vote
1 answer
138 views

How to properly write multiline text with LaTeX symbol in a frame and with background

I wanted to include a number of text-box with background color white inside a plot. The text inside the box will also have LaTex expressions as well as multiple lines. Is there any way to include ...
BabaYaga's user avatar
  • 1,552
13 votes
1 answer
710 views

LyX-like LaTeX in Mathematica Text Cells

Lately I've been learning more about the Wolfram Language, and I've become particularly enamored with the stated goals of the Mathematica notebook interface. I've used Mathematica exclusively as a &...
sferics's user avatar
  • 330
1 vote
0 answers
89 views

How to control the decimals in MaTeX

I'm using MaTeX to display the ticks of a stream plot. However, I would like to standardize the number of decimals displayed in this plot, that is, I would like to show just one decimal. My code is ...
Herr Schrödinger's user avatar
2 votes
0 answers
185 views

Combining PlotThemes, PlotMarkers and Plot with MaTeX used on Labels, Axis Labels and Legend

Summary I am currently attempting to make some of my earlier plots more fit for black-and-white printing, while keeping color and typesetting in TeX/Latin Modern Roman. While at it, I tried to ...
Wraith of Seth's user avatar
1 vote
1 answer
76 views

Why does renderig my equation in Mathematica using MaTeX does not work out?

I have some problem with showing this LaTeX input: ...
blabla's user avatar
  • 231
1 vote
0 answers
107 views

Using MaTeX after plotting

I have plotted something using Mathematica 11.0 and it takes a while to generate the plot. I would like to use the package ...
Nitin's user avatar
  • 431
7 votes
1 answer
382 views

Matrices in MaTeX

Is it possible to display matrices using MaTeX? I tried: MaTeX["\\begin{matrix}c\\\\f\\end{matrix}"] but it did not display the matrix.
Wynne's user avatar
  • 1,506
5 votes
0 answers
628 views

Using "Latin Modern Math"with MaTeX on Windows

I started using MaTeX and it is all wonderful expect for the fact I am unable to use the "Latin Modern Math" , "LM 12" to work for the tickmarks. I get decent results with "Times" but not quite ...
Smerdjakov's user avatar
5 votes
1 answer
173 views

MaTeX shadow option?

When I create my graphics, I find that the tex objects created with MaTeX either clash with other objects (such as a coordinate grid) or, if I add a background, erase too much. Is there another option ...
Wynne's user avatar
  • 1,506
3 votes
1 answer
932 views

How to configure MaTeX correctly under the environment of TeXLive2019

I downloaded and installed MaTeX from here. I installed texlive2019.And I configured Matex as follows, but there was a strange error: ...
A little mouse on the pampas's user avatar
5 votes
2 answers
1k views

Typesetting LaTeX in a text cell

I recently started trying to use stylesheets and different cell types to organize and explain my logic. Often I try to type equations into my text cells to explain what I'm doing, but this can be ...
Kai's user avatar
  • 2,079
5 votes
1 answer
742 views

Line break with MaTeX

I am using MaTeX to put a box on a graph with an outline. The code looks like this: ...
Astor Florida's user avatar
3 votes
1 answer
219 views

MaTeX stopped accepting certain font sizes

My system: Windows 10, Mathematica 11.2 Problem: I have been using the fine MaTeX paclet to get nice symbols on my plots. As I scale the images in a TeX-document after exporting them in EPS, I need ...
Jyrki Lahtonen's user avatar
3 votes
1 answer
614 views

Error using MaTeX, MaTeX::texerr : LaTeX Error: Missing \begin{document}

I've managed to install MateX with all prerequisites. pdflatex and GhostScript paths are correctly specified. I am able to load it into Mathematica. However, a simple command such as MaTeX[x^2] gives ...
S P Krishna Phanindra's user avatar
0 votes
0 answers
144 views

MaTeX in the labels

Writing Plot[Sin[2.5 x], {x, 0, 2}, PlotLabel -> Framed["a=1.5" // MaTeX]] I get the expected labeled plot: However, if I just change ...
Iosif Pinelis's user avatar
1 vote
1 answer
296 views

Why "Modern Latin Math" font messes my plot?

I just download the Modern Latin Math font from here to have a consistent font with my LaTeX text. The font is exactly what I am looking for. But when I use it for my plot it messes the gap between ...
KratosMath's user avatar
  • 1,243
2 votes
1 answer
305 views

Problem with MaTeX PlotLabel

I'm trying to label a plot as follows: ...
rami_salazar's user avatar
4 votes
1 answer
2k views

MaTeX, font size, and PlotLegends

I want to create plots in Mathematica where all labels have font sizes which match those in a LaTeX document. I start by defining ...
kalix's user avatar
  • 352
0 votes
1 answer
66 views

Concatenating MaTeX with a computable expression in PlotLabel

To produce a graphics grid, I would like the PlotLabel to be a concatenation of graphics such as "y="//MaTeX and the value of an ...
Iosif Pinelis's user avatar
5 votes
1 answer
85 views

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

I am playing with MaTeX to include an image. It works but it also displays the path of the image in the output which messes things out. Here is a MWE (on windows with 11.3) ...
Nasser's user avatar
  • 135k
4 votes
1 answer
651 views

MaTeX no longer working after upgrade

My institution has recently upgraded to Ubuntu 18.04 and to Mathematica 11.3 and I'm guessing various other packages have been upgraded alongside this. I have the latest MaTeX version downloaded (1.7....
bjorne's user avatar
  • 569
0 votes
1 answer
179 views

MaTeX produces strange error

I've managed to install and configure matex, however when I try to run it the following error arise: ...
G.David's user avatar
  • 151
1 vote
1 answer
156 views

Behavior of MaTeX for a polynomial equation

I have been researching today the possibility of creating interactive mathematics documents using Mathematica for use in the classroom. I want to be able to use LaTeX typesetting within my notebook ...
JEM's user avatar
  • 1,147
1 vote
0 answers
102 views

MaTeX bug when combined with a transparency

Works fine: Graphics3D[{{Opacity[1], Polygon[{{0, 0, 0}, {1, 0, 0}, {1, 1, 0}, {0, 1, 0}}]},Inset[MaTeX["P", Magnification -> 4], {.5, .5, .5}] }] Works not ...
Wynne's user avatar
  • 1,506
2 votes
1 answer
186 views

Can MaTeX objects scale the same way as Text objects?

When one uses Text[Style["Hi", FontSize -> Scaled[.1]]] the text will resize proportional with Imagesize? Is there a way ...
Wynne's user avatar
  • 1,506
6 votes
3 answers
479 views

Using MaTeX with Callout

Recently, I tried to use Callout with the MaTeX objects. MaTeX is a package I downloaded in ...
Sungmin's user avatar
  • 2,285