Opened 12 years ago

Closed 17 months ago

#9144 closed enhancement (invalid)

Make printing automatically load a print stylesheet

Reported by: jason Owned by: jason, was
Priority: major Milestone: sage-duplicate/invalid/wontfix
Component: notebook Keywords:
Cc: chapoton Merged in:
Authors: Reviewers: Dima Pasechnik
Report Upstream: N/A Work issues:
Branch: Commit:
Dependencies: Stopgaps:

Status badges

Description (last modified by jason)

If we did this, then we could maybe just eliminate the "Print" button? I don't know; maybe.

See the following excerpt from http://groups.google.com/group/sage-devel/browse_frm/thread/98969b6b9035bf6d/3c5d4c2647e974b7 for a discussion of how to do this:

It's pretty easy to specify a print css sheet using CSS "media" constructs. The browser then automatically uses this CSS when printing, but uses your normal CSS when displaying. A user shouldn't have to hit a special Sage print button to print.

Yeah, I know, "Implement it and send a patch" :). Well, if someone gets to it before me, here are a few references:

See http://www.yourhtmlsource.com/stylesheets/cssmediatypes.html or for the spec, see http://www.w3.org/TR/CSS2/media.html. See also http://www.javascriptkit.com/dhtmltutors/cssmedia.shtml or http://webdesign.about.com/cs/css/a/aa042103a.htm for further suggestions/tips.

Change History (9)

comment:1 Changed 12 years ago by jason

  • Type changed from defect to enhancement

comment:2 Changed 12 years ago by jason

  • Description modified (diff)

comment:3 Changed 8 years ago by jdemeyer

  • Milestone changed from sage-5.11 to sage-5.12

comment:4 Changed 8 years ago by vbraun_spam

  • Milestone changed from sage-6.1 to sage-6.2

comment:5 Changed 8 years ago by vbraun_spam

  • Milestone changed from sage-6.2 to sage-6.3

comment:6 Changed 7 years ago by vbraun_spam

  • Milestone changed from sage-6.3 to sage-6.4

comment:7 Changed 17 months ago by mkoeppe

  • Cc chapoton added
  • Milestone changed from sage-6.4 to sage-duplicate/invalid/wontfix
  • Status changed from new to needs_review

Proposing to close all sagenb tickets as outdated, so that all remaining open tickets in the notebook component are about the Jupyter notebook.

comment:8 Changed 17 months ago by dimpase

  • Reviewers set to Dima Pasechnik
  • Status changed from needs_review to positive_review

comment:9 Changed 17 months ago by chapoton

  • Resolution set to invalid
  • Status changed from positive_review to closed
Note: See TracTickets for help on using tickets.