Giter Club home page Giter Club logo

markdown_pandoc_book_template's Introduction

Markdown -> Pandoc -> Book creation

The real Future Proof solution

I am writing several books and i want to keep all sources as plain text files, since for too many reasons i don't want to use Word Processors or DTP to keep the sources of my writings.

This template is to create a book in PDF/ePub/html/Docx format from a group of markdown files.

I needed this because i wanted a single source project to feed into Pandoc (the universal document converter) current editors book exporters (Ulysses, Scrivener, Zettlr, iA Writer, Marked 2...) were limited, and my preferred one Obsidian.md doesn't export... yet. I know there other solutions, like BookDown (which uses R Studio), or AsciiDoc, reStructured text etc.. but i wanted to stay in Markdown because i love to edit this simple format.

Syntax

pandoc -d config_pdf.yaml manuscript/*.md
pandoc -d config_epub.yaml manuscript/*.md
pandoc -d config_docx.yaml manuscript/*.md
pandoc -d config_html.yaml manuscript/*.md

## to build the advanced book (experimental, needs full MacTeX)
pandoc -d config_advanced_pdf.yaml manuscript_advanced/*.md

Requirements

  • Install Pandoc (version 2.11 at least): Installing Pandoc.
  • Install a LaTeX distribuition. under mac i could work with the smaller BasicTeX

i installed both with:

brew install pandoc
brew install homebrew/cask/basictex

Update: i've moved to the much bigger but really complete MacTeX-2020 Distribution

How To

the book is in the manuscript/ directory as a group of markdown files. indeed we call Pandoc with manuscript/*.md which feeds all the .md files, that's why we prefix the files with the numered order

most of the book metadata are in the 000_metadata.md file, check there all the options. the other settings are in the config_.yaml

the generated files are in the output/ directory.

Please Contribute

If you like this procedure and find an new feature or optimization, please share or create a PR I'd like to help the world to create and publish better Future Proof book easily

Thanks

License

This project is loved by Stefano Cecere and .md friends and licensed under the MIT License see LICENSE.md

markdown_pandoc_book_template's People

Contributors

stefanocecere avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

markdown_pandoc_book_template's Issues

Error

Hello;

I am trying to use your process. I have Latex (mikTex) and Pandoc (latest version) and familiar with both.
I have unzipped your example in its own directory. When I run "pandoc -d config_pdf.yaml manuscript/.md"
I get : "pandoc.exe: manuscript/
.md: openBinaryFile: invalid argument (Invalid argument)".

Can't seem to find the error.

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.