Re: Is there a way to intercept the PDF rendering?
Posted by
1marc1 on
Nov 08, 2018; 10:45am
URL: https://discuss.asciidoctor.org/Is-there-a-way-to-intercept-the-PDF-rendering-tp6583p6584.html
Matt,
I am assuming you are using asciidoctor-pdf.
You are not saying how often these "secret sauce" notes change or how large they are. If they don't change often and fit on a single page, why not do something like this:
// Use :trainer_copy: to create a copy for the trainer.
// Use :trainer_copy!: to create a copy for the delegates.
:trainer_copy:
== Introduction
This is the introduction to the training course.
blah blah
<<<
ifdef::trainer_copy[]
Here are the secret sauce notes.
<<<
endif::[]
ifndef::trainer_copy[]
Space for delegates to write their notes.
<<<
endif::[]
If it needs to fit on multiple pages, you may need to use additional page breaks.
That way, you will end up with the same number of pages and the same ToC.
Marc.