Hello Stuart,
thanks but I can't make it work.
For such bibliography.txt file:
[bibliography]
Bibliography
============
[bibliography]
+++<bibliodiv><title>Books</title>+++
- [[[abc2004]]] Gall Anonim. "A book", Whatever. 2004.
+++</bibliodiv>+++
+++<bibliodiv><title>Articles</title>+++
- [[[abc2003]]] Gall Anonim. "An article", Whatever. 2003.
+++</bibliodiv>+++
After execution of
a2x -f pdf -d book --fop book2.txt -v -D ../target
I get the following errors:
asciidoc: WARNING: bibliodiv.txt: line 5: missing style: [paradef-
default]: bibliography
a2x: executing: xmllint --nonet --noout --valid /home/tomek/Documents/
testbook/target/book2.xml
/home/tomek/Documents/testbook/target/book2.xml:18: parser error :
Opening and ending tag mismatch: bibliodiv line 18 and simpara
<simpara><bibliodiv><title>Books</title></simpara>
^
/home/tomek/Documents/testbook/target/book2.xml:26: parser error :
Opening and ending tag mismatch: simpara line 26 and bibliodiv
<simpara></bibliodiv></simpara>
^
/home/tomek/Documents/testbook/target/book2.xml:27: parser error :
Opening and ending tag mismatch: bibliodiv line 27 and simpara
<simpara><bibliodiv><title>Articles</title></simpara>
^
/home/tomek/Documents/testbook/target/book2.xml:35: parser error :
Opening and ending tag mismatch: simpara line 35 and bibliodiv
<simpara></bibliodiv></simpara>
generated book2.xml looks like this:
<bibliography id="_bibliography">
<title>Bibliography</title>
<simpara><bibliodiv><title>Books</title></simpara>
<itemizedlist>
<listitem>
<simpara>
<anchor id="abc2004" xreflabel="[abc2004]"/>[abc2004] Gall Anonim. "A
book", Whatever. 2004.
</simpara>
</listitem>
</itemizedlist>
<simpara></bibliodiv></simpara>
<simpara><bibliodiv><title>Articles</title></simpara>
<itemizedlist>
<listitem>
<simpara>
<anchor id="abc2003" xreflabel="[abc2003]"/>[abc2003] Gall Anonim. "An
article", Whatever. 2003.
</simpara>
</listitem>
</itemizedlist>
<simpara></bibliodiv></simpara>
</bibliography>
--
Cheers,
Tomek Kaczanowski
http://kaczanowscy.pl/tomek
On Oct 2, 7:17 pm, Stuart Rackham <[email protected]> wrote:
> On 03/10/10 07:12, Tomek Kaczanowski wrote:
>
> > Hello,
>
> > how can I create a bibliodiv element (http://www.docbook.org/tdg/en/
> > html/bibliodiv.html) ? I suspect this is similar to partintro stuff
> > that I asked recently, but my Asciidoc-fu is still to weak to figure
> > it out myself. :)
>
> If you don't want to create an OpenBlock style like partintro then just insert
> the DocBook markup direct into you bibliography using a passthrough e.g.
>
> +++<bibliodiv><title>A title</title>+++
>
> ... biblio list here
>
> +++</bibliodiv>+++
>
> Cheers, Stuart
>
>
>
> > --
> > Cheers,
> > Tomek Kaczanowski
> >http://kaczanowscy.pl/tomek
>
>
--
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.