GithubHelp home page GithubHelp logo

Comments (15)

ptoche avatar ptoche commented on July 2, 2024 1

@juaneschutte , I've had more success with the io2012 framework and chrome (not tested with others).

There appear to be 2 problems: 1) the first, title page is messed up (only part of the title shows, not centered properly); 2) there is an empty white slide at the end (it's not numbered, so the problem is quite minor).

Here is my workflow:

  1. File --> Print
  2. Select 'Landscape' mode.
  3. Print using system dialog
  4. Select orientation (I forget which, but it makes a difference)
  5. Pages per sheet: 1 (other numbers resulted in slides being cut off)
  6. select the PDF button at the bottom left corner. This seems to be rather important.

The resulting PDF is available here for 28 days: http://www.fileconvoy.com/dfl.php?id=gbf535f69bcbe21aa999618530ff3fd43ada27bb5c

from dataanalysis.

lcolladotor avatar lcolladotor commented on July 2, 2024

Once you get a .md file you can use Pandoc http://johnmacfarlane.net/pandoc/ to get a pdf file. Also check the slidify documentation or browse the past issues https://github.com/ramnathv/slidify/issues?state=closed (someone might have asked that previously).

from dataanalysis.

bluepill5 avatar bluepill5 commented on July 2, 2024

Thanks, i'm gonna check.

from dataanalysis.

ramnathv avatar ramnathv commented on July 2, 2024

For the slides in this repo, you can directly use Google Chrome's print feature to save it as a PDF.

from dataanalysis.

bluepill5 avatar bluepill5 commented on July 2, 2024

Perfect, thank you so much for the help.

from dataanalysis.

khughitt avatar khughitt commented on July 2, 2024

Anyone know of a way to print with one slide per page? Currently Chrome ignores slide boundaries and prints as much as it can fit.

from dataanalysis.

Nowosad avatar Nowosad commented on July 2, 2024

The same problem here. Chrome is ignoring slides boundaries, and sometimes doesn't print slide titles, etc.

from dataanalysis.

ramnathv avatar ramnathv commented on July 2, 2024

There were some changes to Google Chrome, which broke the print styles for the slide framework being used here. I would recommend printing to PDF from Safari of Firefox. I tried it today and it seems to work well for me.

from dataanalysis.

khughitt avatar khughitt commented on July 2, 2024

👍 Firefox worked for me as well.

from dataanalysis.

rpietro avatar rpietro commented on July 2, 2024

Printing using pandoc certainly works well, specially since the yaml is nicely transformed into a title. But what I was trying to do was to get a pdf that would keep all the custom styling created through CSS. My ultimate goal is to have the presentation imported into slideshare.

I tried to use http://wkhtmltopdf.org/ , which works pretty well in converting local and online html-css into very nice looking pdf or images, but that didn't work for slidify (pdf or images). I then tried standalone and selfcontained, but still no results.

I wonder whether anybody might have been successful in uploading a slidify presentation in any format to slideshare.

thanks

from dataanalysis.

ramnathv avatar ramnathv commented on July 2, 2024

The best way to do this is to use the browsers print function. Firefox seems to give the best results retaining most of the styling. There is also an automated solution that uses casperjs to capture each slide as screenshot and convert them into a pdf.

from dataanalysis.

ptoche avatar ptoche commented on July 2, 2024

I'm getting no-where with Firefox/Chrome/Safari/Opera print functions. They print only the current slide and without any of the styles. I'm using html5slides, in case that matters. I'll try pandoc, but I thought I should let you know.

from dataanalysis.

juaneschutte avatar juaneschutte commented on July 2, 2024

Unfortunately, im also not winning with any of those major browsers, even if i use the io2012 framework.

from dataanalysis.

ptoche avatar ptoche commented on July 2, 2024

Currently Firefox does a good job (it prints an extra blank page at the end, but otherwise fine), as long as you set the advanced printing options to landscape and remove headers, footers, and background colors. Chrome currently messes things up (in my case, it makes a mess of the title page and omits the second page, weird but true).

from dataanalysis.

NP-compete avatar NP-compete commented on July 2, 2024

On Mac OSX, this can be done using
Rscript -e "Sys.setenv(RSTUDIO_PANDOC='/Applications/RStudio.app/Contents/MacOS/pandoc');library(rmarkdown); library(utils); render('input.Rmd', 'pdf_document')"`

from dataanalysis.

Related Issues (5)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.