From: Rasmus <rasmus@gmx.us>
To: emacs-orgmode@gnu.org
Subject: hlines in babel output
Date: Mon, 11 Feb 2013 02:34:34 +0100 [thread overview]
Message-ID: <871ucnr5ud.fsf@pank.eu> (raw)
Hi,
I have the following Org document where I would like to add some extra
hlines to the output. I'm using babel. I tried the ascii package but
couldn't find anything giving me extra hlines. I'd also prefer to
stick to just babel.
Here's the example:
#+begin_src org
#+TITLE:hline test
* Some R code
I have the following R code and I want to add hlines to the final
output since it is exported and needs to look good. In particular,
it is desired that the last line is separated with an hline.
I could do it by exporting directly to LaTeX, but I would rather
export to an Org table.
#+NAME:budget-dta
#+begin_src R :colnames yes
tt <- textConnection("
account p
rent 110
food 50")
ee <- read.table(tt, header = TRUE)
close(tt)
cc <- 4 ## a complicated number generated with R
ee$p <- ee$p * cc
ee <- rbind(ee, data.frame(p=sum(ee$p),account=c("total")))
ee
#+end_src
* Actual output:
#+RESULTS: budget-dta
| account | p |
|---------+-----|
| rent | 440 |
| food | 200 |
| total | 640 |
* Minimally desired output
| account | p |
|---------+-----|
| rent | 440 |
| food | 200 |
|---------+-----|
| total | 640 |
* Most desired output
|---------+-----|
| account | p |
|---------+-----|
| rent | 440 |
| food | 200 |
|---------+-----|
| total | 640 |
|---------+-----|
#+end_src
--
. . . The proofs are technical in nature and provides no real understanding.
next reply other threads:[~2013-02-11 1:34 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-02-11 1:34 Rasmus [this message]
2013-02-23 21:23 ` hlines in babel output Rasmus
2013-02-23 21:38 ` Eric Schulte
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=871ucnr5ud.fsf@pank.eu \
--to=rasmus@gmx.us \
--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).