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

asciidoc support for Equations and Formulas (STEM) #2299

Open
4 tasks done
b2arrival opened this issue May 21, 2024 · 2 comments
Open
4 tasks done

asciidoc support for Equations and Formulas (STEM) #2299

b2arrival opened this issue May 21, 2024 · 2 comments

Comments

@b2arrival
Copy link

⚠️ This issue respects the following points: ⚠️

  • This is a enhancement/feature request. Not a bug or question.
  • The topic is not already reported at Issues. (I've searched it).
  • Markor is up to date. See Releases for the latest version. Updates are available from F-Droid and GitHub.
  • The wanted feature/enhancement is not present in the latest development version (git master). (Please download and try the test version of Markor, named Marder. Don't worry; Markor and Marder appear as completely separate applications. You can install both side-by-side, and Markor's settings are not touched. If your desired feature is present, you don't need to open this issue. The change will be part of the next Markor update.)

Description

  1. Suport for Equations and Formulas in view mode in asciidoc with LaTeX and
    Screenshot_2024-05-21-10-56-40-851_com android chrome
    AsciiMath
= My Diabolical Mathematical Opus
Jamie Moriarty
:stem: latexmath

.An e-xciting limit with LaTeX!
[stem]
++++
\lim_{n \to \infty}\frac{n}{\sqrt[n]{n!}} = {\large e}
++++

.A basic square root with AsciiMath
[asciimath]
++++
sqrt(4) = 2
++++

Information

Android version: 13 ΤΡ1Α.220624.014
Device: POCO M4 Pro
App Version: v2.11

Source

F-Droid

Format / File type

Something else (-> Additional info)

Additional info / Log

- acsiidoc
@gsantner
Copy link
Owner

Improvements are welcome. In Markdown also KaTex is available.
Maybe AsciiDoc is able to reuse that somehow for it's formula stuff.

@b2arrival
Copy link
Author

Improvements are welcome. In Markdown also KaTex is available.
Maybe AsciiDoc is able to reuse that somehow for it's formula stuff.

I was able to render the mathematical expressions, injecting the following code into the preview mode body, according to the instructions in the asciimath page

<script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.4/latest.js?config=AM_CHTML"></script>
<script src="ASCIIMathML.js"></script>
  • after Screenshot_2024-06-04-11-48-09-831_net.gsantner.markor.jpg

  • before Screenshot_2024-06-04-11-50-11-519_net.gsantner.markor.jpg

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