emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Thorsten Jolitz <tjolitz@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: use # instead of * to signal different levels of headlines? is it possible?
Date: Sat, 05 Apr 2014 13:01:25 +0200	[thread overview]
Message-ID: <87bnwgdoqi.fsf@gmail.com> (raw)
In-Reply-To: 87zjk0ob0p.fsf@gmail.com

Thorsten Jolitz <tjolitz@gmail.com> writes:

> For editing the property-drawer of the first headline in full Org-mode,
> use outorg.el. 
>
> This is how the *outorg-edit-buffer* looks after doing C-u M-# M-#
> (outorg-edit-as-org) on the first headline (to convert and edit only the
> subtree at point, use M-# M-#):
>
> | * code
> | ** My first R Function
> | 
> | simple example function from the manual
> | #+begin_example
> | twosam <- function(y1, y2) {
> |          n1  <- length(y1); n2  <- length(y2)
> |          yb1 <- mean(y1);   yb2 <- mean(y2)
> |          s1  <- var(y1);    s2  <- var(y2)
> |          s <- ((n1-1)*s1 + (n2-1)*s2)/(n1+n2-2)
> |          tst <- (yb1 - yb2)/sqrt(s*(1/n1 + 1/n2))
> |          tst
> |        }
> | #+end_example
>
> [ups, I see a bug ... sources should be wrapped into #+begin_src R blocks]

This should be fixed now, I associated (ess . R) but it should rather be
(ess-mode . R), now outorg recognizes ESS/R mode and converts code to
R code-blocks instead of example blocks:

,--------------------------------------------------
| ** My first R Function
| 
| simple example function from the manual
| #+begin_src R
| twosam <- function(y1, y2) {
|          n1  <- length(y1); n2  <- length(y2)
|          yb1 <- mean(y1);   yb2 <- mean(y2)
|          s1  <- var(y1);    s2  <- var(y2)
|          s <- ((n1-1)*s1 + (n2-1)*s2)/(n1+n2-2)
|          tst <- (yb1 - yb2)/sqrt(s*(1/n1 + 1/n2))
|          tst
|        }
| #+end_src
`--------------------------------------------------


-- 
cheers,
Thorsten

      parent reply	other threads:[~2014-04-05 11:00 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-04-04 22:34 use # instead of * to signal different levels of headlines? is it possible? isaac
2014-04-04 23:35 ` Josiah Schwab
2014-04-05  0:49   ` Thorsten Jolitz
2014-04-05  2:16     ` Isaac
2014-04-05 11:01     ` Thorsten Jolitz [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=87bnwgdoqi.fsf@gmail.com \
    --to=tjolitz@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /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).