Re: help with RAW directive to insert a text file
David Goodger <[email protected]>
| Newsgroups | gmane.text.docutils.user |
|---|---|
| Message-ID | <CABiJP=LoY9PG7ySe9c8=R6J67U--3O0kP8eN-=s6VQZRU62ykA@mail.gmail.com> |
On 23 February 2014 14:47, Jorge <[email protected]> wrote: > Hi there, > > I'm quite new to this stuff, I am trying to embed a plain text file into my > document using the raw directive. But can't figure out how to do this. > > > This is what I have in my .rst > > " > The code executed by this job is listed below: > > .. raw:: text > :file: ../gits/vcloud-management-tools/lib/application.rb > > " > > How do I do this? You're using the wrong directive. "raw" is to insert fragments that are passed untouched to the final output. IOW, the format of the raw fragment must match the document output format (e.g. HTML, LaTeX, etc.). You should be using the "include" directive with the "literal" or "code" options. For details, see: http://docutils.sourceforge.net/docs/ref/rst/directives.html#include -- David Goodger <http://python.net/~goodger> ------------------------------------------------------------------------------ Flow-based real-time traffic analytics software. Cisco certified tool. Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow Analyzer Customize your own dashboards, set traffic alerts and generate reports. Network behavioral analysis & security monitoring. All-in-one tool. http://pubads.g.doubleclick.net/gampad/clk?id=126839071&iu=/4140/ostg.clktrk