pandoc-plot:使用您选择的绘图工具包渲染图形并将其包含在Pandoc文档中

时间:2024-02-23 17:25:04
【文件属性】:

文件名称:pandoc-plot:使用您选择的绘图工具包渲染图形并将其包含在Pandoc文档中

文件大小:135KB

文件格式:ZIP

更新时间:2024-02-23 17:25:04

ggplot2 matlab plotly pandoc mathematica

潘多克图 Pandoc过滤器,可从文档中的代码块生成图形 pandoc-plot使用您选择的绘图工具包(包括Matplotlib,ggplot2,MATLAB,Mathematica等),将文档(Markdown,LaTeX等)中存在的代码块转换为嵌入式图形。 总览 该程序是过滤器。 因此,它可以用于从输入格式到输出格式的转换过程中,用数字替换代码块。 过滤器识别具有与绘图工具包匹配的类的代码块。 例如,使用matplotlib工具包: # My document This is a paragraph. ```{.matplotlib} import matplotlib.pyplot as plt plt.figure() plt.plot([0,1,2,3,4], [1,2,3,4,5]) plt.title('This is an example figure') ``` 将以上内容放入input.md ,然后我们可以生成绘图并将其嵌入到HTML页面中: pandoc --filter pandoc-plot input.md --output output.html


【文件预览】:
pandoc-plot-master
----.gitignore(369B)
----Setup.hs(326B)
----data()
--------srctemplate.html(5KB)
----src()
--------Text()
----pandoc-plot.cabal(6KB)
----executable()
--------ManPage.hs(928B)
--------Main.hs(10KB)
--------ExampleConfig.hs(564B)
--------OpenFile.hs(1KB)
----LICENSE(18KB)
----CHANGELOG.md(10KB)
----.github()
--------FUNDING.yml(644B)
--------workflows()
----tools()
--------mkmanual.ps1(1KB)
--------format.ps1(102B)
--------build-setup.ps1(380B)
----README.md(4KB)
----tests()
--------issue16.md(262B)
--------Main.hs(5KB)
--------integration.md(2KB)
--------Common.hs(16KB)
--------fixtures()
--------includes()
----example-config.yml(4KB)
----benchmark()
--------gallery_item_1.py(615B)
--------bench.hs(1KB)
--------gallery_item_4.py(2KB)
--------gallery_item_3.py(647B)
--------gallery_item_2.py(3KB)
--------MatplotlibGallery.hs(733B)
----RELEASE-CHECKLIST.md(781B)
----.gitattributes(159B)
----docs()
--------manual-content.md(17KB)
--------manual-template.md(402B)
--------index.md(4KB)
--------plot-config.yml(158B)
--------examples()
--------MANUAL.html(71KB)
--------theme.css(3KB)
----MANUAL.md(23KB)
----installer()
--------pandoc-plot-setup.iss(2KB)
--------modpath.iss(7KB)
----stack.yaml(986B)

网友评论