paper| 使用 markdown 写论文

2021-01-28  本文已影响0人  daydaygo

写论文已经够头秃了, 再浪费时间来反复折腾格式, 幸福感就忒低了. 用工具把自己从重复性的工作中解放出来, 去享受创造的乐趣~


bing每日壁纸

工具

brew install pandoc
pip install pandoc-fignos # 处理图片交叉引用, 需要先安装 anaconda
pandoc demo.md -o demo.docx # md -> docx
# 文献引用
pandoc --filter pandoc-citeproc --bibliography=myref.bib --csl=chinese-gb7714-2005-numeric.csl demo-citation.md -o demo-citation.docx
# 图片引用
pandoc --filter pandoc-fignos --filter pandoc-citeproc --bibliography=myref.bib --csl=chinese-gb7714-2005-numeric.csl demo-figref.md -o demo-figref.docx

# pandoc 开箱即用版
pandoc
--filter pandoc-fignos # 有图: 图片交叉引用
--filter pandoc-tablenos # 有表格
--filter pandoc-citeproc --bibliography=ref.bib # 文献应用
--metadata link-citations=true --metadata reference-section-title="参考文献"
--csl=chinese-gb7714-2005-numeric.csl # 格式规范
--toc # 生成目录
# --reference-doc democonf.docx # 文档样式模板
paper.md -o paper.docx # md -> docx

论文格式示例

a[^1]
c[^3]
b[^2]

[^1]: a
[^3]: b
[^2]: c
@article{王国成2017从,
  title={从3V到5V:大数据助推经济行为的深化研究},
  author={王国成},
  journal={天津社会科学},
  number={2},
  pages={94-99},
  year={2017},
}
王国成阐述了大数据的特性变迁过程[@王国成2017从]
---
fignos-cleveref: On
fignos-plus-name: 图
___

# 图片引用

大数据的3V特性如{@fig:bigdata3v}所示

![大数据的3V特性](assets/demo-a5a137d9.png){#fig:bigdata3v}

大数据的5V特性如{@fig:bigdata5v}所示

![大数据的5V特性](assets/demo-8b0323d7.png){#fig:bigdata5v}

mark 参考资料


  1. 简书 - 如何用 markdown 写论文: https://www.jianshu.com/p/b0ac7ae98100

  2. 知乎 - Sci.Fun | 如何使用markdown撰写论文?https://zhuanlan.zhihu.com/p/103234043

  3. 知乎 - 用markdown 和 pandoc 写论文的语法小抄: https://zhuanlan.zhihu.com/p/111750527

上一篇下一篇

猜你喜欢

热点阅读