gustaphe

Results 57 comments of gustaphe

Hi! Yes! There's a couple of different things you can do: `latexify(x)` in a cell by itself will show the latexification of `x`. ``` @latexify x^2 - 2x ``` will...

If you make a PR, I'll be happy to merge it. Thank you :)

By the way, I found another way to avoid the visual bug without `begin/end`: ```julia @latexrun (a,) = b ```

This looks very nice! We've discussed removing the 1.0 testing before, it might very well be time. While `\text` is more idiomatic, it needs to be `\textrm` to work with...

```julia julia> Pkg.status("Plots") Status `/tmp/jl_MksNwK/Project.toml` [91a5bcdd] Plots v1.31.6 julia> plot(randn(10); xguide=raw"$\textrm{\`a textrm}$", yguide=raw"$\text{\`a text}$") ``` ![textrm](https://user-images.githubusercontent.com/6677110/183890602-81d62e43-6455-4409-99a5-238c242f40a7.png) Maybe this is a problem best solved on the GR side then, both `\text`...

Ah, I thought I tested it without `amsmath`, but I had `siunitx` loaded in my test doc. That means GR is actually doing it right (apart from swallowing the space).

No, but it demonstrates the difference between the support for `text` and `textrm` clearly. I could produce the same result by loading this PR and running ```julia plot(randn(10); yguide=latexify("à")) ```

I have no idea how this would affect compile time, and your argument about runtime is a strong one. But I still think this is principally a good idea. Perhaps...

Sorry to throw extra stuff in the mix. > instead of being able to use any conditional one would be stuck with only being able to use method dispatch to...

This is a nobrainer to me, and I was looking into trying to fix whatever made the build fail, but that coveralls message is incomprehensible.