Skip to content

Latex typesetting broken #461

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

Closed
royr2 opened this issue Feb 11, 2016 · 2 comments
Closed

Latex typesetting broken #461

royr2 opened this issue Feb 11, 2016 · 2 comments

Comments

@royr2
Copy link

royr2 commented Feb 11, 2016

The official example here is broken.

# This doesn't work

library(plotly)
plot_ly(x = c(1, 2, 3, 4), y = c(1, 4, 9, 16),
        name = "$\\alpha_{1c} = 352 \\pm 11 \\text{ km s}^{-1}$") %>%
  add_trace(x = c(1, 2, 3, 4), y = c(0.5, 2, 4.5, 8),
            name = "$\\beta_{1c} = 25 \\pm 11 \\text{ km s}^{-1}$") %>%
  layout(xaxis = list(title = "$\\sqrt{(n_\\text{c}(t|{T_\\text{early}}))}$"),
         yaxis = list(title = "$d, r \\text{ (solar radius)}$"))


# This works

library(plotly)
plot_ly(x = c(1, 2, 3, 4), y = c(1, 4, 9, 16),
        name = "A") %>%
  add_trace(x = c(1, 2, 3, 4), y = c(0.5, 2, 4.5, 8),
            name = "B") %>%
  layout(xaxis = list(title = "C"),
         yaxis = list(title = "D"))
@artemklevtsov
Copy link

Duplicated #375.

@royr2
Copy link
Author

royr2 commented Feb 11, 2016

Closing...

@royr2 royr2 closed this as completed Feb 11, 2016
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