From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rasmus Subject: hlines in babel output Date: Mon, 11 Feb 2013 02:34:34 +0100 Message-ID: <871ucnr5ud.fsf@pank.eu> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:58241) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U4iIC-0003Lv-SM for emacs-orgmode@gnu.org; Sun, 10 Feb 2013 20:34:50 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U4iIB-0001e1-J8 for emacs-orgmode@gnu.org; Sun, 10 Feb 2013 20:34:48 -0500 Received: from plane.gmane.org ([80.91.229.3]:46933) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U4iIB-0001dB-CW for emacs-orgmode@gnu.org; Sun, 10 Feb 2013 20:34:47 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1U4iIR-0005mA-Oz for emacs-orgmode@gnu.org; Mon, 11 Feb 2013 02:35:03 +0100 Received: from dynamic-adsl-94-34-191-77.clienti.tiscali.it ([94.34.191.77]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 11 Feb 2013 02:35:03 +0100 Received: from rasmus by dynamic-adsl-94-34-191-77.clienti.tiscali.it with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 11 Feb 2013 02:35:03 +0100 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: emacs-orgmode@gnu.org 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.