Comments (10)
Katex claims to be faster / smaller, so I will use Katex. Thanks for the suggestion!
This will be done likely at the very end of this week.
from diagon.
I updated the website. This should now render the latex formula using katex.
From your list of fixes to do:
- \displaystyle vs inline LaTeX, the former should but \limits on Sums, Integrals, etc I believe (however I am not sure).
- f(x) = turns into \f{x} =, I'm fairly certain it should be just f\left(x\right) =
- (expr), even when parentheses are needed, turns into {latexexpr}, instead of \left(latexexpr\right)
- \cdot for multiplication vs \times
- \ldots for ellipsis
- \alpha{}, \Alpha{} instead of the literal symbols
from diagon.
We have several "generator"
- Mathematic Expression
- Sequence Diagram
- Tree
- Frame
- Table
- Planar graph
And the generators have "options", the one in Mathematic Expression are:
- ASCII-only [x]
- Math symbols [x]
I can replace the first one by:
style: [
- unicode
- ascii
- latex
]
I can work on it this weekend, starting with the "Mathematic Expression" generator.
Could you describe a bit more your project? Is this a web based application or are you using the command line application?
I have made some experiment using vim + diagon here:
https://youtube.com/watch?v=WTnMft_wvZU
from diagon.
I would probably bundle the command line application in the document rendering program, or write my thing in C++ and build it with.
I'm tired of org-mode's lack of:
- Math expressions in the text-based outputs (ascii, utf8)
- Bibliography support
- Footnote support
- Graph/Tree support
So I've been wanting to write my own thing, and I stumbled across Diagon and the way it parses expressions and has existing utf8 and ascii options makes it a good fit for what I want to do.
from diagon.
I added a "Latex" mode for the mathematic generator.
I updated the website: https:/arthursonzogni.com/Diagon
(you will likely have to refresh and/or clear the website disk cache to get the new version)
Does it work the way you expected?
from diagon.
Sorry for the late response.
It almost works the way I expect. I'm not able to actually test the LaTeX right now, but a few things that worry me:
\displaystyle
vs inline LaTeX, the former should but\limits
on Sums, Integrals, etc I believe (however I am not sure).f(x) =
turns into\f{x} =
, I'm fairly certain it should be justf\left(x\right) =
(expr)
, even when parentheses are needed, turns into{latexexpr}
, instead of\left(latexexpr\right)
\cdot
for multiplication vs\times
\ldots
for ellipsis\alpha{}
,\Alpha{}
instead of the literal symbols
from diagon.
Thanks for this list! I will submit fixes one by one.
Ideally, I should find a way to build a vizualizer that will build images from latex.
from diagon.
I forgot to mention, special functions, like log
, sin
, cos
, etc, that should be rendered like this and not like this have a backslash before them. \sin\left(3 + x\right)
.
As for the visualizer, unless you mean Diagon parsing LaTeX itself, I would recommend KaTeX output at least for the website.
from diagon.
I am going to use MathJax to renderer the latex formula. I am starting to get really nice results.
from diagon.
KaTeX can statically compile LaTeX into HTML without the need for client-side JS and also doesn't push its own right-click menu, if that's an option.
from diagon.
Related Issues (20)
- Can this convert a mathematical equation written in latex to ascii? HOT 2
- Finite State Machine Support HOT 3
- Removing label from sequence diagram connection causes browser crash HOT 2
- Nassi-Schneiderman diagram
- Support "freeform" flowcharts HOT 3
- Support Docker HOT 2
- Limes in Mathematical expression HOT 2
- Application crashes on too long input
- New lines in Tree HOT 1
- Output structured data HOT 2
- Horizontal DAG graph
- Sequence: send message to itself or polling HOT 4
- Support for comments HOT 2
- Security vulnerabilities HOT 2
- Make java an optional dependecy HOT 2
- Sequence: a way to make a visual difference between async and sync calls HOT 3
- WebAssembly usage on backend (Deno, Node.js) HOT 4
- non destructive nvim plugin
- How to create Sequence with multi lines in command-line? HOT 2
- Use 'v' instead of '▽' HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from diagon.