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 output could be better for some operations #294

Closed
2 tasks
shashi opened this issue May 14, 2021 · 1 comment
Closed
2 tasks

Latex output could be better for some operations #294

shashi opened this issue May 14, 2021 · 1 comment

Comments

@shashi
Copy link
Member

shashi commented May 14, 2021

  • sin should be \sin
  • a^{-1} shows up wrong -- 1 is not even super script. (see a^(b - 1))

cc @alanedelman

@karlwessel
Copy link
Contributor

This seems to be fixed.
SymbolicUtils does not support Latexify. And Symbolics correctly latexifies it:

julia> using Symbolics
julia> @variables x y
2-element Vector{Num}:
 x
 y
julia> using Latexify

julia> latexify(sin(x))
L"\begin{equation}
\sin\left( x \right)
\end{equation}
"

julia> latexify(x^(-1))
L"\begin{equation}
\frac{1}{x}
\end{equation}
"

julia> latexify(x^(y-1))
L"\begin{equation}
x^{-1 + y}
\end{equation}
"

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

3 participants