t-bltg

Results 349 comments of t-bltg

Thanks for the example. > both \text and \textrm are legal in LaTeX Let's not forget that `\textrm{}` is a `LaTeX` command, but `\text{}` comes from `amsmath` (which we add...

Anyway, the `Plots` [example](https://github.com/korsbo/Latexify.jl/pull/225#issuecomment-1210561784) using the `gr` backend does **NOT** use `Latexify` at all. Maybe there is an impact when using `pfgplotsx` backend ... I'll run `Plots` test suite.

A better alternative is `\textnormal` (in the latex kernel), as explained [here](https://www.stefaanlippens.net/textnormal/). GR only supports [these font commands](https://github.com/sciapp/gr/blob/da1f9819aec3fea4af30f98b383657999fee4f20/lib/gr/mathtex2.y#L662) , so I'll open a PR there (EDIT: https://github.com/sciapp/gr/pull/159). A keyword arg...

I've tested this PR on `MathJax` and it seems fine (using the code outputted using `MIME("juliavscode/html")`).

The sequence `tex` -> `div` -> `png` is pretty bad, because dvi does not have OTF (OpenType Font) support (see e.g. https://tex.stackexchange.com/q/330676/75098), or the warnings in https://github.com/korsbo/Latexify.jl/pull/224#issue-1321497720. I propose to...

~~I'm not sure to where to go from there. I've added `svg`, `pdf` and `png` tests. Unfortunately, rendering to `dvi` seems to be failing because of `unicode-math`. We seem to...

I think that this PR is ready for review / comments.

Also reproduced with `glibc 2.34`, `Intel(R) Xeon(R) CPU E5-2670 0 @ 2.60GHz`: ```bash $ cd test; make bench $ diff -y

Cc @juliohm for https://github.com/JuliaPlots/UnicodePlots.jl/issues/291.

Thanks for pointing #880, I didn't find it when searching the existing issues. It would be disappointing not to discuss the relevance of this PR, because of a closed issue...