【文件属性】:
文件名称:node-make-latex:将 JS 对象从 node.js 内部转换为 LaTeX 表
文件大小:12KB
文件格式:ZIP
更新时间:2021-06-17 21:30:31
JavaScript
乳胶
从 node.js 内部创建 LaTeX 表
安装
通过 npm 轻松实现:
$ npm install --save make-latex
用法
var makeLatex = require ( 'make-latex' ) ;
var mat = [
[ 1 , 2 , 3 ] ,
[ 4 , 5 , 6 ] ,
[ 7 , 8 , 9 ]
] ;
makeLatex ( mat ) ;
/*
returns:
\begin{table}
\centering
\begin{tabular}{ccc}
1 & 2 & 3 \\
4 & 5 & 6 \\
7 & 8 & 9 \\
\end{tabular}
\end{table}
*/
应用程序接口
makeLatex(obj [, options])
Main 函数接受一个 JavaScript 对象obj并
【文件预览】:
node-make-latex-master
----.travis.yml(151B)
----.jshintignore(104B)
----package.json(1KB)
----.yo-rc.json(26B)
----test()
--------test.js(4KB)
----LICENSE(1KB)
----.npmignore(215B)
----examples()
--------object.js(150B)
--------objectArray.js(217B)
--------matrix.js(130B)
----.gitignore(40B)
----lib()
--------index.js(1KB)
--------convertObjArr.js(3KB)
--------convertMatrix.js(3KB)
--------convertObj.js(3KB)
----README.md(3KB)
----.jshintrc(1KB)
----.editorconfig(170B)