I'd expect there are plenty of ways to accomplish this, but my first inclination is to use source blocks.
Suppose your "book" looks like this:
= Manpage Inclusion Here is a manpage: [source,manpage] ---- include::manpage.txt[] ----
Then you'd need to create manpage.txt
, perhaps like this:
$ man ls > manpage.txt
Then:
$ asciidoctor book.adoc
Obviously, with many manpages to be included, you'd use a sensible naming scheme.
I hope that helps!
Free forum by Nabble | Edit this page |