From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Schulte Subject: Re: [bug] org block not correctly exported to LaTeX Date: Mon, 25 Jul 2011 11:08:33 -0600 Message-ID: <87tyaajnji.fsf@gmail.com> References: <87zkk3tgry.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:35186) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QlOe1-0002nt-E9 for emacs-orgmode@gnu.org; Mon, 25 Jul 2011 13:08:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QlOdz-0005Qx-TJ for emacs-orgmode@gnu.org; Mon, 25 Jul 2011 13:08:41 -0400 Received: from mail-yx0-f169.google.com ([209.85.213.169]:48541) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QlOdz-0005Qr-Pj for emacs-orgmode@gnu.org; Mon, 25 Jul 2011 13:08:39 -0400 Received: by yxn22 with SMTP id 22so2632600yxn.0 for ; Mon, 25 Jul 2011 10:08:39 -0700 (PDT) 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. 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 to 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 they are indented? Note we also have #+begin/end_result lines which may likely have similar issues. Best -- Eric -- Eric Schulte http://cs.unm.edu/~eschulte/