Hello everyone,

I am trying to figure out a way to be able to generate both slides and a 
textbook from the same and one set of asciidoc source files.

So far I am simply adding delimiters as asciidoc comments (//slide 
//endslide) to the asciidoc source files. For generating the slides, I 
simply use a script to parse my asciidoc source files, preserve only 
section titles (which must be flattened out) and text between my 
slide-delimiters and generate a temporary set of asciidoc sources for the 
slides.

What I am trying to achieve here, is to avoid having to maintain two sets 
of asciidoc source files: one for the textbook chapters and other for the 
corresponding slides.

As the backend for the slide generation, I would go for either 
asciidoctor-reveal.js or asciidoctor-bespoke.

Is anyone aware of similar approaches that could help me getting there?

Thanks in advance!
Joao

An example:

----

= About computers

This is a simple text for the textbook, which will not get included in the 
slides.

//slide

This is a simple text for the slides.

* Bullet 1
* Bullet 2

//endslide

== What are computers

This is a simple text for the textbook, which will not get included in the 
slides.

//slide

This is a simple text for the slides.

* Bullet 1
* Bullet 2

//endslide

----

The (temporary) asciidoc sources for the textbook will look like:

----

= About computers

This is a simple text for the textbook, which will not get included in the 
slides.

== What are computers

This is a simple text for the textbook, which will not get included in the 
slides.

----

The (temporary) asciidoc sources for the slides will look like:


----

= About computers

This is a simple text for the slides.

* Bullet 1
* Bullet 2


== What are computers

This is a simple text for the slides.

* Bullet 1
* Bullet 2

----

-- 
You received this message because you are subscribed to the Google Groups 
"asciidoc" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/asciidoc.
For more options, visit https://groups.google.com/d/optout.

Reply via email to