diff --git a/README.md b/README.md index 8e90d99885684069df425903ab084bb351d838a1..7a62843da8c4fed75cdee400b786ec2ece842534 100644 --- a/README.md +++ b/README.md @@ -41,6 +41,7 @@ pandoc: imposition: true binder: true covers_dir: assets/covers + signature: 20 flags: '--smart' site_flags: '--toc' @@ -72,12 +73,18 @@ regular jekyll site build. * `bundle_permalink` is the path of the bundled articles -* `papersize` is the page size for PDF +* `papersize` is the page size for PDF. You can also use this option on + the front matter. -* `sheetsize` is the page size for ready the print PDF +* `sheetsize` is the page size for ready the print PDF. You can also + use this option on the front matter. * `covers_dir` the directory where covers are stored +* `signature` is the amount of pages per fold on the imposition version. + Specify `0` for a single fold of all the pages. You can also use this + option on the front matter. + **IMPORTANT**: As of version 0.1.0 the syntax of the config changed. Please upgrade your `_config.yml` accordingly. diff --git a/lib/jekyll-pandoc-multiple-formats/imposition.rb b/lib/jekyll-pandoc-multiple-formats/imposition.rb index 4289420418d1a1b7dcfc4b9f17c3e61eedf6dbdd..65828079c3ad0b7016411e8619ba756c1e989c83 100644 --- a/lib/jekyll-pandoc-multiple-formats/imposition.rb +++ b/lib/jekyll-pandoc-multiple-formats/imposition.rb @@ -34,6 +34,8 @@ module JekyllPandocMultipleFormats @blank_pages = @rounded_pages - @pages # If we don't use a signature, make a single fold @signature = signature || @rounded_pages + # Also if we specified 0 + @signature = @rounded_pages if signature == 0 render_template self diff --git a/lib/jekyll-pandoc-multiple-formats/version.rb b/lib/jekyll-pandoc-multiple-formats/version.rb index 570cc97638af94b24908628cc5e175addb00c551..4a7e317ef020e31685aa33f08e70c1832d9940e8 100644 --- a/lib/jekyll-pandoc-multiple-formats/version.rb +++ b/lib/jekyll-pandoc-multiple-formats/version.rb @@ -1,3 +1,3 @@ module JekyllPandocMultipleFormats - VERSION = '0.2.8' + VERSION = '0.2.9' end