This is the mail archive of the docbook-apps@lists.oasis-open.org mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Need help including c source


On Thu, Oct 18, 2001 at 09:12:49AM -0700, Eric Richardson wrote:
> I'm trying to include C source into docbook but I'm having problems with 
> the #include <stdio.h>. I really would like to have the source compile 
> as is and include as is into the document.

Instead of using an entity, you can use:

<imagedata fileref="foo.c" format="linespecific">

That roughly means, consider foo.c as an image encoded in the
"linespecific" format - not a common way of looking at things, but
semantically correct I think.

docbook-dsssl 1.73 should work out-of-the box with this construct, I
don't know for sure about docbook-xsl, which I don't use.

-- 
Yann Dirson <Yann.Dirson@fr.alcove.com>                 http://www.alcove.com/
Free-Software Engineer				      Ingénieur Logiciel-Libre
Free-Software time manager    	       Responsable du temps Informatique-Libre

----------------------------------------------------------------
To subscribe or unsubscribe from this elist use the subscription
manager: <http://lists.oasis-open.org/ob/adm.pl>


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]