summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Allen <dan.j.allen@gmail.com>2016-09-16 02:11:41 -0600
committerDan Allen <dan.j.allen@gmail.com>2016-09-16 02:14:49 -0600
commitbf985fde3cfce91335aae524c2ab0127524cf88f (patch)
tree66712ccab989993737952b11dabb2d865ee1a5a7
parentc9f865a049456ab0a29b0da814bb83c6609a2f8b (diff)
follow-up to #383 start parts & chapters on recto page
- start parts and chapters on recto page unless nonfacing option is set on section - don't put page break before Credits in chronicles example - make Credits section in chronicles example an appendix
-rw-r--r--docs/theming-guide.adoc1
-rw-r--r--examples/chronicles-example.adoc5
-rw-r--r--lib/asciidoctor-pdf/converter.rb1
3 files changed, 4 insertions, 3 deletions
diff --git a/docs/theming-guide.adoc b/docs/theming-guide.adoc
index 93d7807f..241a94cb 100644
--- a/docs/theming-guide.adoc
+++ b/docs/theming-guide.adoc
@@ -2627,6 +2627,7 @@ If a document uses the book doctype, a blank page will be inserted, if necessary
* Title page
* Table of contents
* First page of body content
+* Parts and chapters (except those which have the nonfacing option set)
Other facing pages may be added in the future.
diff --git a/examples/chronicles-example.adoc b/examples/chronicles-example.adoc
index 6734d7f9..1f6c7bff 100644
--- a/examples/chronicles-example.adoc
+++ b/examples/chronicles-example.adoc
@@ -477,12 +477,11 @@ filler content
Here's some content inside an open block.
--
-<<<
-
+[appendix]
== Credits
.Brought to you with icon:heart[] by OpenDevise
-[%header%footer,cols="1,1s,1",grid=rows,frame=topbot,width=70%,caption=]
+[%header%footer,cols="2,2s,3",grid=rows,frame=topbot,width=75%,caption=]
|===
|Name
|Title
diff --git a/lib/asciidoctor-pdf/converter.rb b/lib/asciidoctor-pdf/converter.rb
index 348bf342..47551d42 100644
--- a/lib/asciidoctor-pdf/converter.rb
+++ b/lib/asciidoctor-pdf/converter.rb
@@ -1801,6 +1801,7 @@ class Converter < ::Prawn::Document
def start_new_chapter chapter
start_new_page unless at_page_top?
+ start_new_page if @ppbook && verso_page? && !(chapter.option? 'nonfacing')
end
def layout_chapter_title node, title, opts = {}