On 16/05/11 06:44, Aleksey Tsalolikhin wrote:
Hi. I'm having trouble including a source code file in my AsciiDoc book.
Could somebody post a working example, please? (I am using the
DocBook XML backend.)
I've tried a few things:
1. AsciiDoc text:
-----------------------------------
include::body_template.cf
-----------------------------------
Should be (note square brackets):
-----------------------------------
include::body_template.cf[]
-----------------------------------
Cheers, Stuart
generates DocBook XML:
<screen>include::body_template.cf</screen>
2. AsciiDoc text:
[source]
-----------------------------------
include::body_template.txt
-----------------------------------
generates DocBook XML:
include::body_template.txt</programlisting>
(which is not valid XML, no opening<programlisting> tag.
3. AsciiDoc text:
[source]
-----------------------------------
\include::body_template.txt
-----------------------------------
generates DocBook XML:
\include::body_template.txt</programlisting>
This is on asciidoc 8.6.4.
Thanks,
Aleksey
--
You received this message because you are subscribed to the Google Groups
"asciidoc" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/asciidoc?hl=en.