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

Add asciimath support #2068

Closed
wants to merge 2 commits into from
Closed

Add asciimath support #2068

wants to merge 2 commits into from

Conversation

expikr
Copy link
Contributor

@expikr expikr commented Apr 16, 2023

This pull request adds an option to let users enable the less verbose AsciiMath syntax supported by MathJax.

To type an equation, the user simply use the \`...\` delimiter.

So for example:

Output:

image

Input:

Euler's Formula \` e^(ix) = cosx + isinx \` defines fractional signs.

Matrix:

\`
[ [a,b],
  [c,d] ] 
\`

Fourier Transform:

\`
f(x) = int_(-infty)^(infty) F(s) e^(2 pi i x s) ds 
\`

\`
F(s) = int_(-infty)^(infty) f(x) e^(-2 pi i x s) dx
\`

Dirac Delta:

\`
delta (x) = {
    ( 1 , "," , x=0 ) ,
    ( 0 , "," , "otherwise" )
:} 
\`

@rustbot rustbot added the S-waiting-on-review Status: waiting on a review label Apr 16, 2023
@expikr expikr closed this Apr 16, 2023
@expikr expikr deleted the patch-4 branch April 16, 2023 18:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-review Status: waiting on a review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants