Skip to content

Generate a PDF file using Pandoc from an input folder with Markdown files

License

Notifications You must be signed in to change notification settings

m1es/markdown-pandoc-book

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Markdown Pandoc Book

This repository shows a Markdown to Pandoc flow to generate a simple book.

Example

The result of running the Rake task generates the PDF file that can be found in the build folder.

Usage

rake book:generate

Which by default looks for source files in src/front and src/main and writes the PDF file to build/output.pdf

or run

rake book:generate\[./src,book.pdf\]

for using another input directory and/or output file.

Pandoc

Pandoc command

To change the Pandoc command, head over to lib/book.rb and modify it's contents.

Front and main matter

Take a look at the src folder to get an idea on how to use the front and main matter. In short:

  • The front matter does not have page numbers
  • There is a table of contents at the end of the front matter
  • Use numbers, like 5-filename.txt in front of your files to determine the order

Dependencies

The following Latex packages are required:

  • collection-fontsrecommended
  • sectsty

These packages can be installed by running:

  • tlmgr install collection-fontsrecommended
  • tlmgr install sectsty

About

Generate a PDF file using Pandoc from an input folder with Markdown files

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published