Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F31700666
app.js
Libattery
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Authored By
Libattery
Mar 25 2020, 1:06 AM
2020-03-25 01:06:37 (UTC+0)
Size
606 B
Referenced Files
None
Subscribers
None
app.js
View Options
// a simple TeX-input example
var
mjAPI
=
require
(
"mathjax-node"
);
mjAPI
.
config
({
MathJax
:
{
// traditional MathJax configuration
}
});
mjAPI
.
start
();
var
exMath
=
`\\begin{array}{
\
|l
\
|}
\\text{abcdefghijk} \\\\
1234567890 \\\\
\\text{中华人民共和国} \\\\
\\text{にっぽんこく} \\\\
\\text{대한민국서울} \\\\
\\end{array}`
;
mjAPI
.
typeset
({
math
:
exMath
,
format
:
"TeX"
,
// or "inline-TeX", "MathML"
// mml:true, // or svg:true, or html:true
svg
:
true
,
},
function
(
data
)
{
// if (!data.errors) {console.log(data.mml)}
if
(
!
data
.
errors
)
{
console
.
log
(
data
.
svg
)}
});
File Metadata
Details
Attached
Mime Type
text/x-tex
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
8360946
Default Alt Text
app.js (606 B)
Attached To
Mode
T239333: In Math formula, Chinese, Japanese, and Korean letters have too short a space between them.
Attached
Detach File
Event Timeline
Log In to Comment