- Join over
**1.5M+ people** - Join over
**100K+ communities** - Free
**without limits** - Create
**your own community**

Make sure MaTeX is configured to use pdflatex and not pdfxelatex

```
A = {{Cos[4], Sin[4]}, {Sin[4], -Cos[4]}};
MaTeX[PromptForm["A^2", MatrixForm[A]]]
```

Any method can get what I expected?

You have a complicated expression with a string buried in it. That string is not going to be extracted to be interpreted as TeX ...

It must be made globally accessible to LaTeX. I hope this helps: https://en.wikibooks.org/wiki/LaTeX/Installing_Extra_Packages I have limited internet access for a while and can’t respond easily.

Can anyone help me with an issue I ran into?

Describe the problem.

@szhorvat If you could send one example it would be great! and thanks very much for your fantastic work

Also, look up the syntax for

`FrameTicks`

for the first one.
You simply need to specify the bottom and right edge separately instead of using a pure function to do them together.

You’ll find the second one in the “Typesetting with MaTeX” tutorial page.

It’ll just work regardless of the range.

This is the recommended method for ticks: just install the appropriate font and use it.

I only recommend doing the ticks with MaTeX when this would make a real difference in the quality (e.g. the fractions in the first example look better with MaTeX than with plain Mathematica + font change—but it is rare to have such fractions in ticks)

I'm trying with an histogram but I still can't do it...

```
Needs["MaTeX`"]
wReturns = RandomReal[1, 1000];
Histogram[wReturns, Automatic, "PDF", PlotRange -> All, Frame -> True,
FrameLabel -> {MaTeX["r_{t}", ContentPadding -> False], "PDF"},
PlotLabel -> MaTeX@"\\text{Histograma de retornos}",
BaseStyle -> {FontFamily -> "Latin Modern Roman"},
FrameStyle -> BlackFrame]
```

What do you get?

Make sure you use the correct font name, and that you installed the font. The correct name is mentioned in the documentation for Mac and for Windows (it’s different).

If you use Linux, you’ll have to figure it out ...

I've changed it for Windows to LM Roman 12