-
Notifications
You must be signed in to change notification settings - Fork 99
latex issure #72
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
Comments
Hi @Wongboo I would really appreciate a full code example, but i managed latex output to work in principle. The problem is MathJax (the tex rendering engine used in plotly tex examples) not being referenced in our HTML scaffold. For a workaround until this is properly implemented, add these script tags to the html: <script type="text/x-mathjax-config;executed=true">MathJax.Hub.Config({tex2jax: {inlineMath: [['$','$'], ['\\(','\\)']], processEscapes: true}});</script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js?config=TeX-AMS-MML_HTMLorMML%2CSafe.js&ver=4.1"></script> Additionally, as tex uses a lot of [
Chart.Line([(1.,2.)],@"$\beta_{1c} = 25 \pm 11 \text{ km s}^{-1}$")
Chart.Line([(1.,2.)],@"$\beta_{1c} = 25 \pm 11 \text{ km s}^{-1}$")
]
|> Chart.Combine
|> Chart.Show Which will then look like this: From our side it is most likely the best to set this on the |
@kMutagene
to the chart which might be too complicated since no |
I can think of two workarounds that might work for you in the meantime:
|
So temporarily solution is to change the HTML directly through adding these lines. |
Exactly, i don't imagine this feature taking too long to implement though |
@Wongboo Watch out for the next release, you will be able to use [
Chart.Line([(1.,2.)],@"$\beta_{1c} = 25 \pm 11 \text{ km s}^{-1}$")
Chart.Line([(1.,2.)],@"$\beta_{1c} = 25 \pm 11 \text{ km s}^{-1}$")
]
|> Chart.Combine
|> Chart.withTitle @"$\beta_{1c} = 25 \pm 11 \text{ km s}^{-1}$"
|> Chart.WithMathTex(true) |
version:2.0.0-beta8
The thing is that I can't produce
LaTeX
output out of line, which can be produced underPlotly
onpython
,MATLAB
The text was updated successfully, but these errors were encountered: