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 visaya...@gmail.com wrote: Fletcher Charest fletcher.char...@gmail.com 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

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 silent) (:exports .

Re: [O] Exporting org-mode source

2014-05-04 Thread Vikas Rawal
Vikas Rawal vikaslists at 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

Re: [O] Exporting org-mode source

2014-05-04 Thread Han Fan
Vikas Rawal vikaslists at agrarianresearch.org writes: Vikas Rawal vikaslists at 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?

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,

Re: [O] Exporting org-mode source

2014-05-04 Thread Han Fan
Fletcher Charest fletcher.char...@gmail.com 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,

Re: [O] Exporting org-mode source

2014-05-04 Thread Vikas Rawal
On 04-May-2014, at 11:46 am, Han Fan visaya...@gmail.com wrote: Fletcher Charest fletcher.char...@gmail.com 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

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 the right

[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