• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

ihrke/markdown-paper: Write a LaTeX paper in markdown.

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称(OpenSource Name):

ihrke/markdown-paper

开源软件地址(OpenSource Url):

https://github.com/ihrke/markdown-paper

开源编程语言(OpenSource Language):

TeX 93.5%

开源软件介绍(OpenSource Introduction):

markdown-paper

Scientific paper in markdown using LaTeX. See the pdf-directory for examples.

The source of this document is written in markdown (file paper.md) and translated to latex using pandoc and customized templates located in the templates folder. References are stored in references.bib in bibtex format.

The Makefile.template file details how the translation works.

There is a convenience script build.py that creates a Makefile from Makefile.template that is consistent with the desired template as specified in the template field in the markdown-header. All supported templates are listed in conf.py. Which template to use is specified in the header of the .md-file using the template: field. If the template is not changed, build.py does not need to be rerun but simply calling make will suffice. It is also possible to specify the desired template on the command-line using the -t <template name> option. See python build.py -h for details. Note, however, that not all variables are implemented for all templates.

If you are on linux, simply calling make in the parent directory will compile the report to a pdf-format if all dependencies are installed.

Preview of templates

paper_elsevier paper_scientific_reports paper_springer paper_wiley

Supported templates

This is a list of all supported templates along with a list of all variables defined for each template. It is generated using tools/templatevar.py and may or may not be outdated.

elsevier

  • abstract
  • acknowledgements
  • additionalinformation
  • affiliation
  • affiliation.name
  • affiliation.number
  • author-meta
  • author.address
  • author.email
  • author.footnote
  • author.name
  • bibliography
  • body
  • citecolor
  • contribution
  • journal: journal name (str)
  • keyword
  • linkcolor
  • title
  • title-meta
  • toc-depth
  • urlcolor

scientific_reports

  • abstract
  • acknowledgements
  • additionalinformation
  • affiliation.name
  • affiliation.number
  • author.email
  • author.footnote
  • author.name
  • bibliography
  • body
  • contribution
  • keyword
  • title

springer

  • abstract
  • acknowledgements
  • additionalinformation
  • author.email
  • author.footnote
  • author.institute
  • author.name
  • bibliography
  • body
  • documentclass_options
  • journal
  • keyword
  • svjourstyle
  • title
  • toc-depth

wiley

  • abbreviation
  • abstract
  • acknowledgements
  • additionalinformation
  • affiliation.name
  • affiliation.number
  • author
  • author.email
  • author.footnote
  • author.institute
  • author.name
  • bibliography
  • body
  • contribution
  • funding
  • journalsection
  • keyword
  • papertype
  • title

Installation

with conda

conda create --name testenv pandoc pandocfilters
conda activate testenv
pip install pandoc-fignos

linux

sudo apt-get install pandoc pandoc-citeproc
pip install pandoc-fignos

Usage

  1. Clone this repository

    git clone
    
  2. Write paper in paper.md, refs in references.bib

  3. compile with python build.py paper.md

usage: build.py [-h] [-t TEMPLATE] [-b] mdfile

positional arguments:
  mdfile

optional arguments:
  -h, --help            show this help message and exit
  -t TEMPLATE, --template TEMPLATE
                        template to use for translation
  -b, --build-makefile-only
                        build Makefile only or also run latex?

NOTE: paper.md contains example code for tables, figures, equations, references and so on.

Dependencies


Matthias Mittner [email protected]




鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap