On 1 February 2012 04:23, Toni Cebrián <[email protected]> wrote:
> Hi,
>
> I'm trying to generate aligned formulas in PDF (by first going to
> docbook and later with dblatex) but I'm getting the error:
>
>
> asciidoc -a latexmath -b docbook45 -o target/article.xml docs/
> article.acd
The latexmath attribute applies to latexmathml with the xhtml backend,
you don't need it for dblatex processed output. I'm not sure it will
upset it, but you could try without.
> dblatex target/article.xml
> Build the book set list...
> Build the listings...
> XSLT stylesheets DocBook - LaTeX 2e (0.3.2-1)
> ===================================================
> Build article.pdf
> pdflatex failed
> article.tex:84: Package amsmath Error: Erroneous nesting of equation
> structures;
> article.tex:84: leading text: \[\begin{align} 3 & 4 \\ 5 & 6
> \end{align}
I don't know latex, but it looks like it is saying you can't nest
begin{aligned} in []? Someone here might know, but you are probably
better asking on some latex list.
>
> A possible reason for transformation failure is invalid DocBook
> (as reported by xmllint)
>
I doubt it, the latex is wrapped in [CDATA[]] and shouldn't be noticed
by xmllint. Since you havn't provided any more info like the message
and the erroneous line we can't help further.
Cheers
Lex
>
> The ofending code is this:
> [latexmath]
> ++++++++++++++++++++++++++++++++++++++++++
> \[\begin{align} 3 & 4 \\ 5 & 6 \end{align} \]
> ++++++++++++++++++++++++++++++++++++++++++
>
> What I'm doing wrong?
>
> --
> 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.
>
--
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.