From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sebastien Vauban Subject: Re: Exporting org-mode source Date: Sat, 03 May 2014 09:03:58 +0200 Message-ID: <86zjizwdgh.fsf@somewhere.org> References: <1E931AAE-1737-4705-80F2-E9672C85BCDC@agrarianresearch.org> Mime-Version: 1.0 Content-Type: text/plain Return-path: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org To: emacs-orgmode-mXXj517/zsQ@public.gmane.org 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 way to do it? The following Org code block... #+begin_src org ,#+begin_src ,#+end_src #+end_src ... works for me (that is, is fontified correctly in the HTML export). Best regards, Seb -- Sebastien Vauban