Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Latex support #1464

Closed
fanyuan-lab opened this issue Jul 7, 2020 · 7 comments
Closed

Latex support #1464

fanyuan-lab opened this issue Jul 7, 2020 · 7 comments

Comments

@fanyuan-lab
Copy link

It seems that Gadfly still cannot support latex form of axis. I think that is quite important for researchers who want to plot figures of papers.

@Mattriks
Copy link
Member

Mattriks commented Jul 7, 2020

See #1094 and GiovineItalia/Compose.jl#369 (Compose is the graphics package that Gadfly uses).

@fanyuan-lab
Copy link
Author

Thanks a lot. By the way, why to_latex("\lambda_i") works, but to_latex("\lambda_A") does not work. I mean sub of Capital character doesn't support.

@Mattriks
Copy link
Member

Mattriks commented Jul 7, 2020

Yes, not all characters have been added to julia unicode superscript/subscript.
An alternative is to use pango markup. You can mix julia unicode and pango e.g. "V<sup>×10⁻⁵</sup>".

@fanyuan-lab
Copy link
Author

Thanks for your patience. That is nice.

@fanyuan-lab
Copy link
Author

Sorry to disturb again. to_latex("\muA") does not work as well.

@Mattriks
Copy link
Member

Mattriks commented Jul 7, 2020

Gadfly relies on julia itself or other packages to provide symbol support. In a julia REPL (or Jupyter) try typing "\mu" (without the quote marks) and press tab key immediately. This will give you the symbol μ. See Tab completion in the Julia docs.

You can copy and paste the symbol into any julia code e.g. "μ<sub>A</sub>" (you don't need to use to_latex). If you really want to use the UnicodeFun.jl package, and something doesn't work, then you should open an issue there: https://github.com/SimonDanisch/UnicodeFun.jl/issues.

@Mattriks
Copy link
Member

Closing this now because the info is in #1094

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants