From: Jeff Horn <jrhorn424@gmail.com>
To: Eric Schulte <schulte.eric@gmail.com>
Cc: Org-mode ml <emacs-orgmode@gnu.org>
Subject: Re: Commas in org source blocks
Date: Tue, 25 Jan 2011 21:21:55 -0500 [thread overview]
Message-ID: <AANLkTimJfHVFBpRx9sQseb0jf51pWPbZtgFF3DC6skDZ@mail.gmail.com> (raw)
In-Reply-To: <87mxmo4eqh.fsf@gmail.com>
On Tue, Jan 25, 2011 at 8:48 PM, Eric Schulte <schulte.eric@gmail.com> wrote:
> Jeff Horn <jrhorn424@gmail.com> writes:
>
>> On Tue, Jan 25, 2011 at 4:32 PM, Eric Schulte <schulte.eric@gmail.com> 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
>
Many thanks, Eric. That did the trick!
--
Jeffrey Horn
http://www.failuretorefrain.com/jeff/
prev parent reply other threads:[~2011-01-26 2:22 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-01-25 18:52 Commas in org source blocks Jeff Horn
2011-01-25 19:36 ` Eric Schulte
2011-01-25 20:39 ` Jeff Horn
2011-01-25 21:32 ` Eric Schulte
2011-01-25 22:00 ` Jeff Horn
2011-01-26 1:48 ` Eric Schulte
2011-01-26 2:21 ` Jeff Horn [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=AANLkTimJfHVFBpRx9sQseb0jf51pWPbZtgFF3DC6skDZ@mail.gmail.com \
--to=jrhorn424@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=schulte.eric@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).