diff options
author | Maksim Pecherskiy <max@maksimize.com> | 2015-06-30 10:03:24 -0700 |
---|---|---|
committer | Maksim Pecherskiy <max@maksimize.com> | 2015-06-30 19:48:51 -0700 |
commit | 917a6f70d821e675181cbc1b28e603be2e53a1ea (patch) | |
tree | 25051e3074b572aa4b2594faa035efc21b70c17a /lib/configuration.js | |
parent | 2f5e53da5581daf01570d422d55dcbc94443fc85 (diff) | |
download | gitbook-917a6f70d821e675181cbc1b28e603be2e53a1ea.zip gitbook-917a6f70d821e675181cbc1b28e603be2e53a1ea.tar.gz gitbook-917a6f70d821e675181cbc1b28e603be2e53a1ea.tar.bz2 |
Allowing for custom chapter-mark and page-break in PDF.
Diffstat (limited to 'lib/configuration.js')
-rw-r--r-- | lib/configuration.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/configuration.js b/lib/configuration.js index 29776bd..9e839e6 100644 --- a/lib/configuration.js +++ b/lib/configuration.js @@ -246,6 +246,14 @@ Configuration.DEFAULT = { // Choices are [u’a0’, u’a1’, u’a2’, u’a3’, u’a4’, u’a5’, u’a6’, u’b0’, u’b1’, u’b2’, u’b3’, u’b4’, u’b5’, u’b6’, u’legal’, u’letter’] "paperSize": "a4", + // How to mark detected chapters. + // Choices are “pagebreak”, “rule”, "both" or “none”. + "chapterMark" : "pagebreak", + + // An XPath expression. Page breaks are inserted before the specified elements. + // To disable use the expression: "/" + "pageBreaksBefore": "/", + // Margin (in pts) // Note: 72 pts equals 1 inch "margin": { |