From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bernt Hansen Subject: Re: [bug] org block not correctly exported to LaTeX Date: Mon, 25 Jul 2011 13:48:10 -0400 Message-ID: <87fwlu5k11.fsf@norang.ca> References: <87zkk3tgry.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:56741) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QlPGW-0003Nd-8B for emacs-orgmode@gnu.org; Mon, 25 Jul 2011 13:48:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QlPGU-0006IZ-VQ for emacs-orgmode@gnu.org; Mon, 25 Jul 2011 13:48:28 -0400 Received: from mho-03-ewr.mailhop.org ([204.13.248.66]:59960 helo=mho-01-ewr.mailhop.org) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QlPGU-0006IB-Ta for emacs-orgmode@gnu.org; Mon, 25 Jul 2011 13:48:26 -0400 In-Reply-To: (Thomas Holst's message of "Mon, 25 Jul 2011 10:02:37 +0200") 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@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Thomas Holst Cc: Bastien , "emacs-orgmode@gnu.org" Thomas Holst writes: > Hi Bastien, > > thanks for your answer. > >>> when the follwing org-file is exported to LaTeX, #+BEGIN_ORG >>> and #+END_ORG is inserted in the tex-file. >> >> You surely want >> #+begin_src org >> #+end_src org >> "#+begin_org" doesn't exist. > > #+BEGIN_ORG > #+END_ORG > > gets inserted by org-babel. Here is the relevant part of ob.el lines > 1620 ff. > > #+srcname: ob.el > #+begin_src emacs-lisp > ;; .... > ((member "org" result-params) > (wrap "#+BEGIN_ORG" "#+END_ORG")) > ;; ... > #+end_src emacs-lisp > > Here is an example which shows the issue. > > #+begin_src org > * Testing org-babel perl > > #+srcname: TestingPerl > #+begin_src perl :exports results :results output org > print("#+CAPTION: A caption\n"); > print("#+LABEL: tbl:dvi\n"); > print("#+ATTR_LaTeX: placement[H]\n"); > print("| *bold/T* |\n"); > print("|--------|\n"); > print("| normal |\n"); > #+end_src > #+results: TestingPerl > #+BEGIN_ORG > #+CAPTION: A caption > #+LABEL: tbl:dvi > #+ATTR_LaTeX: placement[H] > | *bold/T* | > |--------| > | normal | > #+END_ORG > #+end_src org Hi Thomas, You have nested #+begin_src / #+end_src in this example. I'm not sure that is supported. Fontification of this example seems to indicate that the second #+begin_src perl is invalid and the first #+end_src terminates the #+begin_src org -Bernt