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

Render TeX formula depending from slider? #1

Closed
axkr opened this issue Jul 13, 2019 · 2 comments
Closed

Render TeX formula depending from slider? #1

axkr opened this issue Jul 13, 2019 · 2 comments

Comments

@axkr
Copy link

axkr commented Jul 13, 2019

If I have an array of TeX formulas, is it possible to render these formulas in KaTeX or MathJAX?

For example, if I have ten formulas and an "integer" slider in the range 1..10 was moved a new formula from these ten formulas should be displayed.

See tranleduy2000/ncalc#67

axkr added a commit to axkr/symja_android_library that referenced this issue Jul 13, 2019
@paulmasson
Copy link
Owner

@axkr this is doable if you keep in mind that backslashes are used in JavaScript to escape characters. While there are different ways to handle this, the simplest appears to be to double them in all LaTeX and then replace them with a single HTML entity for rendering. Here is an example of the display you want:

https://paulmasson.github.io/mathcell/docs/examples/latex-display.html

axkr added a commit to axkr/symja_android_library that referenced this issue Jul 14, 2019
- paulmasson/mathcell#1
- if ToggleFeature.MANIPULATE is false Manipulate() isn't called
- if Config.USE_MATHCELL is true in console apps
  Plot() and Plot3D() redirect to Manipulate() function
- in console apps #printResult() method an HTNL WebPage is opened with
  Desktop.getDesktop().open(...)  if Manipulate() returns a
  JSFormData() AST
@axkr
Copy link
Author

axkr commented Jul 14, 2019

Thanks for your suggestion. I now have a running prototype.

tranleduy2000 pushed a commit to tranleduy2000/symja_android_library that referenced this issue Sep 9, 2019
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