Re: [O] Exporting org-mode source

2014-05-08 Thread Sebastien Vauban
Vikas Rawal wrote: >>> It does not work without ":exports code” >> >> I don't understand that, as ":exports code" is the default for Org code >> blocks, as shown by: >> >> ╭ >> │ org-babel-default-header-args:org is a variable defined in `ob-org.el'. >> │ Its value is ((:results . "raw sil

Re: [O] Exporting org-mode source

2014-05-08 Thread Sebastien Vauban
Vikas Rawal wrote: > On 04-May-2014, at 11:46 am, Han Fan wrote: >> Fletcher Charest writes: >>> >>> Sorry if I misunderstood... If you create an Org source block like >>> this with nothing inside: >>> >>> #+begin_src org >>> >>> #+end_src >>> >>> ...then, with your cursor inside, enter it wi

Re: [O] Exporting org-mode source

2014-05-04 Thread Vikas Rawal
On 04-May-2014, at 11:46 am, Han Fan wrote: > Fletcher Charest writes: > >> Hi, >> >> Sorry if I misunderstood... If you create an Org source block like this with >> nothing inside: >> >> #+begin_src org >> >> #+end_src >> >> ...then, with your cursor inside, enter it with C-c ', write yo

Re: [O] Exporting org-mode source

2014-05-04 Thread Han Fan
Fletcher Charest writes: > Hi, > > Sorry if I misunderstood... If you create an Org source block like this with > nothing inside: > > #+begin_src org > > #+end_src > > ...then, with your cursor inside, enter it with C-c ', write your org tree, > and validate with C-c ' again, then export... Doe

Re: [O] Exporting org-mode source

2014-05-04 Thread Fletcher Charest
Hi, Sorry if I misunderstood... If you create an Org source block like this with nothing inside: #+begin_src org #+end_src ...then, with your cursor inside, enter it with C-c ', write your org tree, and validate with C-c ' again, then export... Does it do what you want? FC On Sun, May 4, 20

Re: [O] Exporting org-mode source

2014-05-04 Thread Han Fan
Vikas Rawal agrarianresearch.org> writes: > > > > > Vikas Rawal agrarianresearch.org> writes: > > > > > >> I think I could not express my objective clearly.I want the org code block > > to be exported literally. > > > > > > Indent lines that begin with *, is this what you want? > > I a

Re: [O] Exporting org-mode source

2014-05-04 Thread Vikas Rawal
> > Vikas Rawal agrarianresearch.org> writes: > > >> I think I could not express my objective clearly.I want the org code block > to be exported literally. > > > Indent lines that begin with *, is this what you want? I am not exactly sure what you are suggesting. The block below does not w

Re: [O] Exporting org-mode source

2014-05-03 Thread Sebastien Vauban
Vikas Rawal wrote: > I want to export a block of org-mode source code in a tutorial I am > writing. > > I have tried variations of the following. But nothing seems to give me > org-mode code in the exported pdf. > > #+BEGIN_SRC org :results code replace > org-mode code here > #+END_SRC > > What is

[O] Exporting org-mode source

2014-05-02 Thread Vikas Rawal
I want to export a block of org-mode source code in a tutorial I am writing. I have tried variations of the following. But nothing seems to give me org-mode code in the exported pdf. #+BEGIN_SRC org :results code replace org-mode code here #+END_SRC What is the right way to do it? Vikas