kerl13 / asciimath Goto Github PK
View Code? Open in Web Editor NEWCompiler from asciimath to LaTeX
License: MIT License
Compiler from asciimath to LaTeX
License: MIT License
In the current grammar, "cos(x)/2" can be reduced the following two ways
It would be great to be able to support new keywords.
Among them, I can see:
\left| x \right>
for kets in quantum mechanics. Conversely, \left< x \right|
for bras.Due to the fact that *
gets translated in middle dot (as an operator), it is also the case when it is in an exponent.
Then, to write z^*
(complex conjugate), one has to write z^(**)
.
Should be really helpful if hbar
could be used to produce a \hbar
(same as greek letters).
(cd filters/asciimath; cabal update; make filter-only)
Downloading the latest package list from hackage.haskell.org
Skipping download: local and remote files match.
cabal install --only-dependencies
Resolving dependencies...
All the requested packages are already installed:
Use --reinstall if you want to reinstall anyway.
cabal configure --enable-optimization --enable-test
Resolving dependencies...
Warning: solver failed to find a solution:
Could not resolve dependencies:
rejecting: AsciiMath-0.1.0.0:!test (constraint from config file, command line
flag, or user target requires opposite flag selection)
trying: AsciiMath-0.1.0.0:*test
unknown package: HUnit (dependency of AsciiMath-0.1.0.0:*test)
Dependency tree exhaustively searched.
Trying configure anyway.
Configuring AsciiMath-0.1.0.0...
cabal: Encountered missing dependencies:
HUnit -any
Why not considering that
And force a user who wishes to write
echo "1.3/1.2 " | asciimath
=> 1.\frac{3}{1}.2
instead of \frac{1.3}{1.2}
The comma (,
) and dot (.
) symbols are not in the grammar, so statements like 1.2
and [0,1]
can't be parsed
Something like
\left\{\begin{array}{c}
eq1 \\
eq2 \\
\end{array}\right.
is widely used in LaTeX, it would be really cool to have it here.
You might be interested in asciimath/asciimathml#41 as well.
chi_p / 2
gives a lexical error
but
(chi_p) / 2
works.
In integrals (e.g. int_0^1 f(x) dx) , dx should not be rendered as
cc "L"
is a valid Asciimath font command according to their homepage, but is not supported by AsciiMath.
The structure " ... "
should be handled using alex's startcodes and not the current hack
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.