From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Eric Schulte" Subject: Re: Commas in org source blocks Date: Tue, 25 Jan 2011 18:48:22 -0700 Message-ID: <87mxmo4eqh.fsf@gmail.com> References: <8739og6aje.fsf@gmail.com> <87sjwg4pm1.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from [140.186.70.92] (port=36911 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PhuUo-0005Td-Pi for emacs-orgmode@gnu.org; Tue, 25 Jan 2011 20:48:31 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PhuUn-0005IP-KG for emacs-orgmode@gnu.org; Tue, 25 Jan 2011 20:48:30 -0500 Received: from mail-iw0-f169.google.com ([209.85.214.169]:49008) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PhuUn-0005IJ-HD for emacs-orgmode@gnu.org; Tue, 25 Jan 2011 20:48:29 -0500 Received: by iwn40 with SMTP id 40so493616iwn.0 for ; Tue, 25 Jan 2011 17:48:28 -0800 (PST) In-Reply-To: (Jeff Horn's message of "Tue, 25 Jan 2011 17:00:44 -0500") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Jeff Horn Cc: Org-mode ml Jeff Horn writes: > On Tue, Jan 25, 2011 at 4:32 PM, Eric Schulte wrote: >> yes, you will need to add org-mode to you list of supported languages >> along the directions in http://orgmode.org/manual/Languages.html >> >> I'll update the manual to reflect org-mode as a valid language. > > Done, and thanks. One last follow up. I have the following in an org > source block (it is a child of a list item, and I like the indirect > buffer): > > #+begin_src org > ,| | | Column Player | | > ,|------------+---+---------------+-----| > ,| / | < | | > | > ,| | | A | B | > ,| Row Player | A | 1,2 | 3,4 | > ,| | B | 5,6 | 7,8 | > #+end_src > > When I export to HTML or ASCII, the table isn't produced. I was half > expecting an org table (not an HTML table, of course) or at least a > verbatim environment. Adding 'exports: code' didn't change anything. > Any recommendations? Yes, the org-mode language has some weird default header argument which make its use different from other languages, specifically for every language but org-mode by default :results has the value of "replace". Try the following to export org-mode plain or as quoted code. #+begin_src org :results replace :exports results ,| | | Column Player | | ,|------------+---+---------------+-----| ,| / | < | | > | ,| | | A | B | ,| Row Player | A | 1,2 | 3,4 | ,| | B | 5,6 | 7,8 | #+end_src #+begin_src org :results replace :exports code ,| | | Column Player | | ,|------------+---+---------------+-----| ,| / | < | | > | ,| | | A | B | ,| Row Player | A | 1,2 | 3,4 | ,| | B | 5,6 | 7,8 | #+end_src Cheers -- Eric