# TomBen - Markdown 写作,Pandoc 转换:我的纯文本学术写作流程 (Highlights) ![rw-book-cover|256](https://readwise-assets.s3.amazonaws.com/static/images/article4.6bc1851654a0.png) ## Metadata **Cover**:: https://readwise-assets.s3.amazonaws.com/static/images/article4.6bc1851654a0.png **Source**:: #from/readwise **Zettel**:: #zettel/fleeting **Status**:: #x **Authors**:: [[TomBen]] **Full Title**:: Markdown 写作,Pandoc 转换:我的纯文本学术写作流程 **Category**:: #articles #readwise/articles **Category Icon**:: 📰 **URL**:: [sspai.com](https://sspai.com/post/64842) **Host**:: [[sspai.com]] **Highlighted**:: [[2021-03-11]] **Created**:: [[2022-09-26]] ## Highlights - 在 Pandoc 的加持下,它还可以「自成一派」,独立生成格式化的参考文献,例如:pandoc --citeproc --csl ieee.csl ref.bib -o ref.docx - 在 Markdown 中引用文献,实质就是遵循 Pandoc 的 文献引用语法 进行写作。 https://pandoc.org/MANUAL.html#citations - 特别地,著者-出版年制下,在句中引用时,引用同一作者不同年份的文献需要这样写:@coser1956 [@coser1957] argued that conflict can serve a positive role for the social relationship and social structure… - 在 Visual Studio Code 中写需要引用文献的 Markdown,Pandoc Citer 这个插件可以实现真正的 Cite While You Write - 在 input.md 中写好文章的内容之后,接下来在终端中输入下面的命令,就可以将 Markdown 转换为 DOCX 文件:pandoc --citeproc --number-sections \ --csl china-national-standard-gb-t-7714-2015-author-date.csl \ --bibliography ref.bib -M reference-section-title="参考文献" \ -M link-citations=true --reference-doc ref.docx input.md -o main.docx - Pandoc 提供了一个 Lua Filter 来移除句中引用时这个多余的空格 https://pandoc.org/lua-filters.html#remove-spaces-before-citations - 调整包裹汉字的引号非常简单,只需要在 Microsoft Word 中将中文文本内容选中,点击最下方的语言选项,将所选文字标记为「中文(中国)」,最后点击「确定」即可。 - Adobe Acrobat 可以为 PDF 添加附件,但是毕竟要付费,不是人人都能用它。免费的方式是使用 LaTeX 宏包 Navigator