GithubHelp home page GithubHelp logo

asciimath.github.io's People

Contributors

ad-si avatar colinkinloch avatar drlippman avatar fdeitylink avatar jipsen avatar mrkvon avatar pkra avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

asciimath.github.io's Issues

improve MathJax setup

For better performance, the script should be at the top and using the -full configuration.

derivatives using asciimath?

d/dx x^2 = 2

and

f'(x) = 2x

seem to work in the demo. I wonder if it would be worth adding them to the documentation.

Link to CDN outdated

The index page

src=&quot;https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=AM_HTMLorMML&quot;&gt;&lt;/script&gt;</code>
still provides an URI to https://cdn.mathjax.org/ which has shut down in 2017: https://www.mathjax.org/cdn-shutting-down/

However, it gracefully serves a loader that redirects to cdnjs.cloudflare (mentioned in previous link)

The page https://www.mathjax.org/#gettingstarted also provides details on this.

Fix preview

@pkra You made a commit 'Fix preview', but now it seems to be broken =D

Profile image for organization

The AsciiMath organization needs a profile image!
I made this one:

logo

I don't have the permissions so maybe someone of you can upload it in case you like it!?

stack level too deep

The following line in my asciidoctor document produces the trace below:
stem:[TD_t(s_t, a_t)=R(s_t, a_t)+\gamma \max_aQ(s_{t+1},a)-Q(s_t, a_t)]

asciidoctor-pdf -v -r asciidoctor-mathematical -a mathematical-format=svg WAD.adoc --trace
Traceback (most recent call last):
9775: from /usr/local/bin/asciidoctor-pdf:23:in <main>' 9774: from /usr/local/bin/asciidoctor-pdf:23:in load'
9773: from /var/lib/gems/2.7.0/gems/asciidoctor-pdf-1.6.0/bin/asciidoctor-pdf:27:in <top (required)>' 9772: from /var/lib/gems/2.7.0/gems/asciidoctor-2.0.15/lib/asciidoctor/cli/invoker.rb:113:in invoke!'
9771: from /var/lib/gems/2.7.0/gems/asciidoctor-2.0.15/lib/asciidoctor/cli/invoker.rb:113:in each' 9770: from /var/lib/gems/2.7.0/gems/asciidoctor-2.0.15/lib/asciidoctor/cli/invoker.rb:130:in block in invoke!'
9769: from /var/lib/gems/2.7.0/gems/asciidoctor-2.0.15/lib/asciidoctor/convert.rb:189:in convert_file' 9768: from /var/lib/gems/2.7.0/gems/asciidoctor-2.0.15/lib/asciidoctor/convert.rb:189:in open'
... 9763 levels...
4: from /var/lib/gems/2.7.0/gems/asciimath-2.0.2/lib/asciimath/ast.rb:99:in each' 3: from /var/lib/gems/2.7.0/gems/asciimath-2.0.2/lib/asciimath/latex.rb:385:in block in is_very_small'
2: from /var/lib/gems/2.7.0/gems/asciimath-2.0.2/lib/asciimath/latex.rb:385:in is_very_small' 1: from /var/lib/gems/2.7.0/gems/asciimath-2.0.2/lib/asciimath/latex.rb:385:in all?'
/var/lib/gems/2.7.0/gems/asciimath-2.0.2/lib/asciimath/ast.rb:99:in `each': stack level too deep (SystemStackError)

Replacing the {t+1} with t prevents the error from occurring.
This occurs only when using asciidoctor-pdf. With asciidoctor it works fine.

Update settings

  • Set master branch to protected => one can only merge into the master branch and not directly push
  • Update description text of repo to "Website for AsciiMath" and add the link to the website

Update Grammar

It seems to me as though the grammar for AsciiMath differs from that offered on the site. The implementation offers the following comment.

v ::= [A-Za-z] | greek letters | numbers | other constant symbols
u ::= sqrt | text | bb | other unary symbols for font commands
b ::= frac | root | stackrel         binary symbols
l ::= ( | [ | { | (: | {:            left brackets
r ::= ) | ] | } | :) | :}            right brackets
S ::= v | lEr | uS | bSS             Simple expression
I ::= S_S | S^S | S_S^S | S          Intermediate expression
E ::= IE | I/I                       Expression

This seems to be a more accurate description of the actual parser behavior. In the grammar defined at the moment sqrt(x^2+1) would be invalid since x^2 is not a simple expression and could not match the SE pattern in E.

Also why isn't S/S defined in the intermediate expression and then let E ::= IE | I? Isn't this more correct?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.