docbook: xml / xsl to pdf or ps or tex
Subject:
Re: xml / xsl to pdf or ps or tex
From:
Alasdair Hatfield ####@####.####
Date:
23 Jul 2003 12:58:53 -0000
Message-Id: <200307231156.h6NBu9f32710@foureyes.embedded-designs.co.uk>
Hi
The problem occurs with 'example' as well as with 'Verbatim', possibly for
the same reason in the xsl file.
This is the xml source code:
<example id="dir-hierarchy"><title>Directory Hierarchy</title>
<programlisting>
$(LT_HOME)
- models
- model name
- model
- ...
- ...
</programlisting>
</example>
This is the code created:
\begin{example}%
\hypertarget{dir-hierarchy}{}%
\captionswapskip{}{{\caption{Directory Hierarchy}\label{dir-hierarchy}}}
\captionswapskip{}
\begin{Verbatim}[]
$(LT_HOME)
- models
- model name
- model
- ...
- ...
\end{Verbatim}
\end{example}
Here is the error:
! LaTeX Error: Environment example undefined.
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...
l.255 \begin{example}
%
? x
If I use code without <example> then I suffer the same problem but with
{Verbatim} in the error instead.
Best regards
Alasdair
On Wednesday 23 July 2003 14:07, you wrote:
> Alasdair Hatfield wrote:
> > Just one thing - I am using <programlisting> which db2latex translates to
> > <Verbatim>. dvips, which I use to get to .ps and then (via pstopdf) to
> > .pdf, gets upset by this. Any experience of this and other approaches?
>
> I generate PDF directly using 'pdflatex' and didn't have any problems with
> <programlistings>. Can you explain in more detail your problems with
> 'Verbatim'?
>
> Michael