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

[Q] Output formatting for the expression. #27

Closed
FoggyFinder opened this issue Feb 21, 2017 · 1 comment
Closed

[Q] Output formatting for the expression. #27

FoggyFinder opened this issue Feb 21, 2017 · 1 comment

Comments

@FoggyFinder
Copy link
Contributor

The output for LaTeX is similar as in Infix.format. But this format looks not always beautiful.

For example:

let value = "(cos(tan(sqrt(x))))/(2*sqrt(x)*cos(sqrt(x))^2) "
let expr = value |> Infix.parseOrUndefined

let format = expr |> Infix.format
let latex = expr |> LaTeX.format

//\frac{\frac{1}{2}{x}^{\left(-\frac{1}{2}\right)}\cos{\tan{\sqrt[2]{x}}}}{{\left(\cos{\sqrt[2]{x}}\right)}^{2}}

2

Question: might make sense to change the formatting to the more familiar form for the LaTeX?

3

@FoggyFinder
Copy link
Contributor Author

LaTeX.formatVisual does that

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

1 participant