GithubHelp home page GithubHelp logo

Comments (9)

 avatar commented on June 17, 2024

Have you tried https://stackoverflow.com/a/21270036

from tufte-css.

neuwirthe avatar neuwirthe commented on June 17, 2024

This does not work as it should.
This might be related to the dynamically defined font sizes.

On 07 Aug 2015, at 12:08, Nic [email protected] wrote:

Have you tried https://stackoverflow.com/a/21270036 https://stackoverflow.com/a/21270036

Reply to this email directly or view it on GitHub #30 (comment).

from tufte-css.

 avatar commented on June 17, 2024

Works great for me. I just tested it.

from tufte-css.

 avatar commented on June 17, 2024

Here is a gist to demonstrate how to do it: https://gist.github.com/xHN35RQ/c9cd616acc4b9bfb93ac

from tufte-css.

daveliepmann avatar daveliepmann commented on June 17, 2024

Thanks for that gist, @xhn35rq.

I'd like to add this functionality to tufte.css, and an example to index.html, but for me to feel OK doing so we'd need to also fix some other considerations for print. For instance, revert to pure black for text and pure white for the background. I'm tagging this help-wanted for anyone who wants to do that work; I don't have the desire to do the necessary testing right now.

from tufte-css.

 avatar commented on June 17, 2024

I don't see any reason to add this. If you want to print to physical printer or to PDF, then you're much better off using pandoc's Tufte template and writing your content in Latex, Markdown, or any other input that pandoc accepts. tufte.css should probably remain a web centric project. Otherwise you're re-inventing the wheel.

Here's an example of using Pandoc to convert from Multi-Markdown to PDF using Tufte Latex to create Tufte styled PDF's - http://plaintextadventure.com/blog/instant-pdfs-via-right-click.html

Much better option than printing HTML/CSS from web browser.

from tufte-css.

daveliepmann avatar daveliepmann commented on June 17, 2024

All excellent points.

from tufte-css.

 avatar commented on June 17, 2024

👍

from tufte-css.

neuwirthe avatar neuwirthe commented on June 17, 2024

It turns out the problem was with Safari. Somehow, Safari does not get the correct information about the page size of the printer. Things work nicely with Firefox.

from tufte-css.

Related Issues (20)

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.