数学公式编辑器

数学公式编辑器,第1张

数学公式编辑器有:Word、MathType、Latex、Maple。

Word里的公式编辑器(Microsoft Equation)应是使用最广泛的一种数学公式编辑器了,它的优势有目共睹:把所有公式做成可视化按钮,输入时直接点击,通俗易懂。

MathType是Word中公式编辑器的升级版本,MathType是一款专业、功能强大的数学公式编辑工具,同时支持Windows和Macintosh *** 作系统,与文字处理软件有很好的兼容性,可在各种文档中加入复杂的数学公式和符号。

Latex是由美国计算机学家研制开发的专业数学排版软件的一种格式,这种格式提供了一组生成复杂文档所需要的高级命令。需要通过编译等 *** 作才能显示,所以该软件对用户对象的要求较专业化。

Maple是由加拿大计算机学家开发的数学软件,发展至如今,已成为一个功能极其强大的数学软件,不过对公式的输入,Maple就显得比较缺乏,输出结果为公式化,对结果进行编辑。

#include <stdio.h>

int main()

{

char c

while (scanf("%c",&c))

printf("%d\n",c)

return 0

}

markdown虽然写起来方便, 但是要预览的话还要用ReText打开, 而且ReText好像是Qt程序, 打开文件时不如别的编辑器那么流畅. 所以想找一个可以把markdown文件变成html格式的工具.

我甚至搜了很久"markdown2html"(github上居然可以搜到好几个项目...) 而没有注意到, 在终端输入"html2markdown"时显示的警告:

$ html2markdown

程序“html2markdown”尚未安装。 您可以使用以下命令安装:

sudo apt-get install pandoc

后来安装了pandoc(sudo apt-get install pandoc), 其实只要看看帮助就知道咋用了:

$ pandoc -h

pandoc [OPTIONS] [FILES]

Input formats: native, markdown, markdown+lhs, rst, rst+lhs, html, latex, latex+lhs

Output formats: native, html, html+lhs, s5, docbook, opendocument, odt, latex, latex+lhs, context, texinfo, man, markdown, markdown+lhs, plain, rst, rst+lhs, mediawiki, rtf

Options:

-f FORMAT, -r FORMAT --from=FORMAT, --read=FORMAT

-t FORMAT, -w FORMAT --to=FORMAT, --write=FORMAT

-s--standalone

-o FILENAME --output=FILENAME

-p--preserve-tabs

--tab-stop=TABSTOP

--strict

--reference-links

-R--parse-raw

-S--smart

-m[URL] --latexmathml[=URL], --asciimathml[=URL]

--mathml[=URL]

--mimetex[=URL]

--jsmath[=URL]

--gladtex

-i--incremental

--xetex

-N--number-sections

--no-wrap

--sanitize-html

--email-obfuscation=none|javascript|references

--id-prefix=STRING

--indented-code-classes=STRING

--toc, --table-of-contents

--base-header-level=LEVEL

--template=FILENAME

-V FILENAME --variable=FILENAME

-c URL--css=URL

-H FILENAME --include-in-header=FILENAME

-B FILENAME --include-before-body=FILENAME

-A FILENAME --include-after-body=FILENAME

-C FILENAME --custom-header=FILENAME

-T STRING --title-prefix=STRING

--reference-odt=FILENAME

-D FORMAT --print-default-template=FORMAT

--data-dir=DIRECTORY

--dump-args

--ignore-args

-v--version

-h--help

真是more than I've expected! markdown/rst/html/latex之间可以互转!

使用pandoc命令就可以在随便转换了, 示例, 把demo.md输出成demo.html:

$pandoc -f markdown -t html -o demo.html demo.md

或者直接:

$pandoc -f markdown -t html -o demo.html demo.md

我觉得这个实在是很有用的一条命令~


欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/yw/11693195.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2023-05-18
下一篇 2023-05-18

发表评论

登录后才能评论

评论列表(0条)

保存