Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide option to export as beamer pdf using pandoc. #26

Open
ramnathv opened this issue Jun 11, 2012 · 1 comment
Open

Provide option to export as beamer pdf using pandoc. #26

ramnathv opened this issue Jun 11, 2012 · 1 comment

Comments

@ramnathv
Copy link
Owner

In order to enable this option, I need to follow the guidelines for slide formatting in pandoc. Here are the key things
to do in order to make slidify decks pandoc compatible

  1. Remove class definitions from slide separators.
  2. Download and replace online images with local images.
  3. Remove content with iframe, script etc.
@ramnathv
Copy link
Owner Author

Here are some ideas.

pandoc <- function(..., path = 'pandoc', cmdOnly = FALSE){
  xargs <- list(...)
  nxargs <- names(xargs)
  nxargs <-ifelse(nxargs == "", "", sprintf("--%s=", nxargs))
  xcmd  <- paste(sprintf('%s%s', nxargs, xargs), collapse = " ")
  if (!cmdOnly) {
    system(sprintf('%s %s', path, xcmd))
  } else {
    xcmd
  }
}
pandoc(write = "beamer", "SLIDES.txt", output = 'example9.pdf', 
  cmdOnly = FALSE, variable="theme:CambridgeUS")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant