From mboxrd@z Thu Jan 1 00:00:00 1970 From: Charles Berry Subject: Re: Proposal/request for input: slidify export for html slides Date: Fri, 7 Feb 2014 21:50:11 +0000 (UTC) Message-ID: References: <20140130014552.GA8980@eyeBook> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:33818) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WBtJs-0007o1-MQ for emacs-orgmode@gnu.org; Fri, 07 Feb 2014 16:50:49 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WBtJm-0005dr-4d for emacs-orgmode@gnu.org; Fri, 07 Feb 2014 16:50:44 -0500 Received: from plane.gmane.org ([80.91.229.3]:55603) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WBtJl-0005dg-Q4 for emacs-orgmode@gnu.org; Fri, 07 Feb 2014 16:50:38 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1WBtJk-0006Hl-4N for emacs-orgmode@gnu.org; Fri, 07 Feb 2014 22:50:36 +0100 Received: from 169.228.157.113 ([169.228.157.113]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 07 Feb 2014 22:50:36 +0100 Received: from ccberry by 169.228.157.113 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 07 Feb 2014 22:50:36 +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 John Hendy gmail.com> writes: > > An interesting update on this. Aside from some image and code block > stuff, the following works surprisingly well! > - Export Org -> markdown (md) > - Start an R session and `setwd("/path/to/file.md")` > - Run `library(slidify)` and `author("deck") > - Copy the deck/assets folder into the parent directory > - Copy the header code from the resultant deck/index.Rmd file into > exported .md file > - Add three hyphens before each heading (headings are # Slide title) > - Save the file as file.Rmd (vs. file.md) > - From the R session, do `setwd("../")` (running `author("deck")` > changes the working directory to deck/ > - Run `slidify("file.Rmd")` > [much deleted] John, You can put the header code into an MD export block (and ignore index.Rmd). You can add '#+MD: ---' keyword lines to mark new slides. Then you export to my.Rmd directly (using ravel) and run slidify("my.Rmd"). Graphics 'just work', but you have to mind the spacing to be sure the slides render nicely. The file slidify-example.org at https://github.com/chasberry/orgmode-accessories/ produces a minimal slidify slideshow with code, computed results, and graphics. And it has some notes on org --> slidify using the md-knitr backend from ox-ravel. Ideally, a `md-slidify' backend would get written to automagically produce the yaml header, separate slides based on headline levels, et cetera. But that is a low priority right now. HTH, Chuck