Coder Social home page Coder Social logo

creeeeeg / unbuch Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mrtzh/unbuch

0.0 1.0 0.0 608 KB

Simple pandoc setup to compile markdown into an html and pdf book

License: MIT License

Makefile 5.74% CSS 33.30% Python 5.04% HTML 52.42% TeX 3.51%

unbuch's Introduction

A simple pandoc setup to compile a book from markdown sources into html pages and pdf based on pandoc and python filters.

Features:

  • Tufte-inspired layout with sidenotes
  • Latex formulas via katex plugin
  • Environments
  • HTML and PDF output

Example

Check out fairmlbook.org for a real example.

Getting started

  1. Insall pandoc v2.2 or higher and pandoc-citeproc
  2. Make sure you have python 2.7 installed with pandocfilters package
  3. Clone the repository
  4. Customize your book by setting up variables in Makefile.
  5. Type make to build both pdf and html files.
  • To build html only, type make html.
  • To build pdf only, type make pdf.

Find the compiled results in publish/ directory.

Dependencies

  • pandoc v2.2 or higher
  • python 2.7 with pandocfilters installed

The workflow was developed and tested with:

  • pandoc v2.2, python 2.7, Ubuntu 18.04 LTS

Special files and folders

  • assets -- Put all files linked to from the sources here
  • css -- All css files
  • filters -- Pandoc filters
  • sources -- This is where the source files live. Go here to edit.
  • templates -- Pandoc template files
  • publish -- Contains compiled pages and pdfs ready for publishing. DO NOT EDIT.

Credits

The setup is based on:

Current issues

See Issues tab for current issues and ways of contributing to the project.

Thank you.

unbuch's People

Contributors

mrtzh avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.