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 08:50:00 +0200 Message-ID: References: <87zkk3tgry.fsf@gnu.org> <87tyaajnji.fsf@gmail.com> 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]:38700) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QlbT7-00057o-Ci for emacs-orgmode@gnu.org; Tue, 26 Jul 2011 02:50:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QlbT6-0002MW-8z for emacs-orgmode@gnu.org; Tue, 26 Jul 2011 02:50:17 -0400 Received: from smtp2-v.fe.bosch.de ([139.15.237.6]:20984) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QlbT6-0002MM-2Q for emacs-orgmode@gnu.org; Tue, 26 Jul 2011 02:50:16 -0400 In-Reply-To: <87tyaajnji.fsf@gmail.com> (Eric Schulte's message of "Mon, 25 Jul 2011 19:08:33 +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)" , Bastien Hi Eric, thanks for looking into this. =B7 Eric Schulte 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 >> >> gets inserted by org-babel. > > Yes, Babel uses the #+begin/end_org as markers, so that it can identify > the beginning and end of raw Org-mode results when those results need t= o > be deleted or replaced with new results. > > Since these are just used as markers and are functionally equivalent to > comment lines (e.g., no special treatment of the portion between the > begin_org and end_org lines) we didn't really coordinate this with the > results of Org-mode. > > It seems however that since comments must start on the first character > of a line, these don't work when indented. > > Would it be difficult to recognize these two lines as comments when the= y > are indented? Note we also have #+begin/end_result lines which may > likely have similar issues. This exactly is the issue. If I remove the indentation from the result block export works fine. As you mentioned #+begin/#+end_org markers are treated as comments and do not appear in the LaTeX output. I tried to find a solution to this but my lisp is not (yet) good enough. --=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