Andreas Hoenen wrote:
> Noah Slater <[EMAIL PROTECTED]> wrote:
>
>> On 25/11/2007, Neal Becker <[EMAIL PROTECTED]> wrote:
>>> 2) How does dblatex work for asciidoc documents? aasciidoc has it's own
>>> markup format which is not xml. Can you show me a simple example of using
>>> dblatex for asciidoc document?
>> I am guessing you use asciidoc to convert to docbook and then use
>> dblatex to transform to a given output format.
> <snip/>
>
> Exactly like you said:
>
> dblatex transforms DocBook into PDF (or DVI or PostScript). AsciiDoc
> can produce DocBook, voilĂ . Look at the example attached below [1] and its
> output [2].
I've just built a PDF of the AsciiDoc User Guide with dblatex 0.2.5-1 on
Xubuntu 7.10 (this is the default packaged dblatex version on Ubuntu 7.10):
$ asciidoc -b docbook asciidoc.txt && dblatex --pdf asciidoc.xml
But I got an error when compiling AsciiDoc's example article:
---------------------------------------------------------------------
$ asciidoc -b docbook article.txt && dblatex --pdf article.xml
Build the listings...
XSLT stylesheets DocBook - LaTeX 2e (0.2.5-1)
===================================================
Processing Revision History
Processing Bibliography
Output Mode: all
Build article.pdf
This is pdfTeXk, Version 3.141592-1.40.3 (Web2C 7.5.6)
%&-line parsing enabled.
entering extended mode
pdflatex failed
article_tmp.tex:167: Misplaced alignment tab character &.
article_tmp.tex:167: leading text: [walsh-muellner] Norman Walsh &
article_tmp.tex:168: Misplaced alignment tab character &.
article_tmp.tex:168: leading text: DocBook - The Definitive Guide.
O'Reilly &
Error: pdflatex compilation failed
---------------------------------------------------------------------
I downloaded and installed the latest dblatex 0.2.8 and article.xml
compiled to pdf fine but generated an error compiling AsciiDoc example
book (seems to be related to the book doctype because book.xml compiles
to PDF OK if the '-d book' option is ommitted):
---------------------------------------------------------------------
$ asciidoc -d book -b docbook book.txt && dblatex --pdf book.xml
Build the listings...
XSLT stylesheets DocBook - LaTeX 2e (0.2.8)
===================================================
Processing Revision History
Processing Bibliography
Output Mode: all
Build book.pdf
This is pdfTeXk, Version 3.141592-1.40.3 (Web2C 7.5.6)
%&-line parsing enabled.
entering extended mode
pdflatex failed
book_tmp.tex:66: Argument of \label has an extra }.
book_tmp.tex:66: leading text: \chapter\label
book_tmp.tex:66: Argument of \label has an extra }.
book_tmp.tex:66: leading text: \chapter\label
book_tmp.tex:66: Missing $ inserted.
book_tmp.tex:66: leading text: \chapter\label{_
book_tmp.tex:66: Extra }, or forgotten $.
book_tmp.tex:66: leading text: \chapter\label{_dedication}
book_tmp.tex:67: Missing $ inserted.
Error: pdflatex compilation failed
---------------------------------------------------------------------
Here's how I installed the dblatex download on Xubuntu 7.10:
$ tar -xjf dblatex-0.2.8.tar.bz2
$ cd dblatex-0.2.8
$ sudo python ./setup.py install --prefix=/usr/local
--catalogs=/etc/xml/catalog
Cheers, Stuart
_______________________________________________
asciidoc-discuss mailing list
[email protected]
http://lists.metaperl.com/cgi-bin/mailman/listinfo/asciidoc-discuss