From b6d9d91cbc02bef7b5b3e2abc79ff30fe5eb734d Mon Sep 17 00:00:00 2001 From: Dan Allen Date: Tue, 17 May 2022 02:59:01 -0600 Subject: add method of start_new_part and start_new_chapter methods on extended converter use cases page --- docs/modules/extend/pages/use-cases.adoc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'docs/modules/extend') 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. -- cgit v1.2.3