项目作者: the-other-mariana

项目描述 :
A Bunch of pdfs generated from .md files written as my courses' notes using Pandoc.
高级语言:
项目地址: git://github.com/the-other-mariana/pandoc-pdfs.git
创建时间: 2021-03-28T03:54:17Z
项目社区:https://github.com/the-other-mariana/pandoc-pdfs

开源协议:

下载


Pandoc-generated PDFs

Go to this repo (Install MikTex option).

  • pandoc installation: here

Command in Terminal:

  1. $ pandoc SEGINT.md -o example.pdf --from markdown --template eisvogel --listings

Step By Step Linux Installation (Ubuntu)

  1. Install pandoc
  1. sudo apt-get install pandoc
  1. Install TeXLive full:
  1. sudo apt install texlive-full
  1. Go to this repo’s release page https://github.com/Wandmalfarbe/pandoc-latex-template/releases and download the .zip from the version [2.0.0] - 2021-01-31.

  2. Extract the file eisvogel.latex to your Downloads folder.

  3. Go to the pandoc directory /home/<your_user>/ and create the necessary pandoc directory

  1. mkdir -p .pandoc/templates
  1. Move the extrated file to the new directory
  1. mv ~/Downloads/eisvogel.latex /home/mariana/.pandoc/templates/eisvogel.latex
  1. Now you can perform your command to create pdfs from .md files
  1. pandoc README.md -o example.pdf --from markdown --template eisvogel --listings

Notes

In the YAML, in order to change font put:

  1. fontfamily: cantarell
  2. fontfamilyoptions: default
  1. fontfamily: fouriernc
  2. header-includes:
  3. - \renewcommand{\familydefault}{\sfdefault}

Bash Scripts

  • To execute .sh scripts inside some folder, type on GitBash:
  1. $ cd path/to/folder
  2. $ sh script.sh