docbook: xml / xsl to pdf or ps or tex


Previous by date: 23 Jul 2003 12:58:53 -0000 Re: xml / xsl to pdf or ps or tex, Michael Wiedmann
Next by date: 23 Jul 2003 12:58:53 -0000 Re: xml / xsl to pdf or ps or tex, Michael Wiedmann
Previous in thread: 23 Jul 2003 12:58:53 -0000 Re: xml / xsl to pdf or ps or tex, Michael Wiedmann
Next in thread: 23 Jul 2003 12:58:53 -0000 Re: xml / xsl to pdf or ps or tex, Michael Wiedmann

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

Previous by date: 23 Jul 2003 12:58:53 -0000 Re: xml / xsl to pdf or ps or tex, Michael Wiedmann
Next by date: 23 Jul 2003 12:58:53 -0000 Re: xml / xsl to pdf or ps or tex, Michael Wiedmann
Previous in thread: 23 Jul 2003 12:58:53 -0000 Re: xml / xsl to pdf or ps or tex, Michael Wiedmann
Next in thread: 23 Jul 2003 12:58:53 -0000 Re: xml / xsl to pdf or ps or tex, Michael Wiedmann


  ©The Linux Documentation Project, 2014. Listserver maintained by dr Serge Victor on ibiblio.org servers. See current spam statz.