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


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

Re: Including code


Thanks! 

It's not glaringly obvious that an inline graphic element inside a
program listing element is the way to go. Perhaps the program listing
element should be augmented to support a filref?

-- Vladimir

"JK" == Jirka Kosek <jirka@kosek.cz> writes:

  JK> Vladimir Ivanovic wrote:
  >> 
  >> I'm writing a manual that includes many code fragments. The manual has
  >> several chapters that are separate files (see "DocBook:...", p. 30). I
  >> would prefer not to insert the actual code into my DocBook chapters, but
  >> rather just a reference to a file that contains the code. Then I can
  >> include code I know compiles and passes a sanity check.
  >> 
  >> Is there any way of including a file without having to change the master
  >> file?

  JK> <programlisting><inlinegraphic format="linespecific"
  JK> fileref="file-to-include.ext"/></programlisting>

  JK> -----------------------------------------------------------------
  JK>   Jirka Kosek  	                     
  JK>   e-mail: jirka@kosek.cz
  JK>   http://www.kosek.cz


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