Skip to main content

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
0 votes
2 answers
83 views

Automatic FrameTicks with MaTeX style

I'm currently working on generating several function plots and have been using the following code as a template: ...
Albus Black's user avatar
2 votes
1 answer
103 views

MaTeX text looks shabby when latex generated pdf is not zoomed

I want to use Matex for the figures in my plots which I eventually would like to use in overleaf. I create a plot and use Matex in it and right click on it to save as pdf. I then use this pdf in ...
Razor's user avatar
  • 155
3 votes
2 answers
101 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
  • 567
3 votes
1 answer
379 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
  • 179
1 vote
1 answer
145 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
221 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,111
4 votes
1 answer
421 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
  • 143
0 votes
2 answers
189 views

Parentheses control

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

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

when calling MaTex in MMA13.1 << MaTeX` I get this ...
MMA13's user avatar
  • 4,732
2 votes
0 answers
114 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
279 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
150 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,390
4 votes
1 answer
179 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
409 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
60 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
114 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,526
2 votes
0 answers
393 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
301 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
179 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 ...
MMA13's user avatar
  • 4,732
2 votes
1 answer
79 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
732 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
  • 858
0 votes
0 answers
231 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
82 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
  • 872
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
645 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
315 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,526
1 vote
1 answer
198 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,888
13 votes
1 answer
786 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
107 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
222 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
84 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
133 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
415 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,526
6 votes
0 answers
720 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
184 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,526
3 votes
1 answer
1k 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
2k 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,099
5 votes
1 answer
921 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
272 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
781 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
168 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
373 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,287
2 votes
1 answer
337 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
75 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
94 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
  • 145k
4 votes
1 answer
693 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
199 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
173 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,165
1 vote
0 answers
104 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,526