summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Allen <dan.j.allen@gmail.com>2022-05-17 02:59:01 -0600
committerDan Allen <dan.j.allen@gmail.com>2022-05-17 02:59:01 -0600
commitb6d9d91cbc02bef7b5b3e2abc79ff30fe5eb734d (patch)
treeda9a7143197be1e871314a18cdd57c0444cca100
parent9f0b258b57fea2a2d2f0bfa783e96128a7325599 (diff)
add method of start_new_part and start_new_chapter methods on extended converter use cases page
-rw-r--r--docs/modules/extend/pages/use-cases.adoc4
1 files changed, 4 insertions, 0 deletions
diff --git a/docs/modules/extend/pages/use-cases.adoc b/docs/modules/extend/pages/use-cases.adoc
index dbaff812..d7e69ad5 100644
--- a/docs/modules/extend/pages/use-cases.adoc
+++ b/docs/modules/extend/pages/use-cases.adoc
@@ -63,6 +63,8 @@ include::example$pdf-converter-custom-part-title.rb[]
The method `ink_prose` is provided by Asciidoctor PDF to make writing text to the page easier.
If you wanted, you could just use the low-level `text` method provided by Prawn.
+TIP: It's also possible to override the `start_new_part` method if all you want to do is called `page.imported` to turn off the running content.
+
To find all the available methods to override, consult the {url-api-docs}[API docs^].
== Custom chapter title
@@ -76,6 +78,8 @@ The extended converter can override the method that inks the chapter title to ad
include::example$pdf-converter-custom-chapter-title.rb[]
----
+TIP: It's also possible to override the `start_new_chapter` method if all you want to do is called `page.imported` to turn off the running content.
+
== Chapter image
As another way to customize the chapter title, you may want to add an image above the chapter title if specified.