From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Holst Subject: Re: [bug] org block not correctly exported to LaTeX Date: Tue, 26 Jul 2011 09:00:14 +0200 Message-ID: References: <87zkk3tgry.fsf@gnu.org> <87fwlu5k11.fsf@norang.ca> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([140.186.70.92]:35067) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qlbcr-0007L0-Gt for emacs-orgmode@gnu.org; Tue, 26 Jul 2011 03:00:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qlbcq-0003w6-9q for emacs-orgmode@gnu.org; Tue, 26 Jul 2011 03:00:21 -0400 Received: from smtp2-v.fe.bosch.de ([139.15.237.6]:21406) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qlbcq-0003vx-5C for emacs-orgmode@gnu.org; Tue, 26 Jul 2011 03:00:20 -0400 In-Reply-To: <87fwlu5k11.fsf@norang.ca> (Bernt Hansen's message of "Mon, 25 Jul 2011 19:48:10 +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: "emacs-orgmode@gnu.org" Cc: "Holst Thomas (DGS-EC/ESE4)" , Bernt Hansen Hi Bernt, =B7 Bernt Hansen wrote: > Thomas Holst writes: > >> Hi Bastien, >> >> thanks for your answer.=20 >> >>>> 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=20 >> #+END_ORG >> >> Here is an example which shows the issue. >> >> #+begin_src org >> * Testing org-babel perl >> =20 >> #+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 > > You have nested #+begin_src / #+end_src in this example. I'm not sure > that is supported. I used #+begin_src / #+end_src org only to show the org file in my email. The part between #+begin / #+end_src org is the content of my test org file. As Eric said the problem is #+begin_org / #+end_org which is inserted by babel. If #+begin_org / #+end_org does not start at column 0 it appears i= n the exported LaTeX file. --=20 Mit freundlichen Gr=FC=DFen / Best regards=20 Thomas Holst=20 DGS-EC/ESE4 Tel. +49 (711) 811-40681 PC-Fax +49 (711) 811-5182208