Menu

#379 good looking printouts

None
open
nobody
None
5
2013-07-31
2011-02-09
Lee Worden
No

How to print the wiki pages so that they make good pdfs, Is there custom CSS to plug in that does this?

Discussion

  • Lee Worden

    Lee Worden - 2011-02-09

    Here is some, from http://en.wikipedia.org/wiki/Help:Printable. I've tested it and it does make the pdf look better. Paste this CSS code into http://your.wiki/index.php/User:Yourself/monobook.css:

    / Printing customizations from http://en.wikipedia.org/wiki/Help:Printable /

    / shrink the fonts /
    @media print {
    #footer,
    #content,
    body { font-size: 8pt !important; }
    h1 { font-size: 17pt }
    h2 { font-size: 14pt }
    h3 { font-size: 11pt }
    h4 { font-size: 9pt }
    h5 { font-size: 8pt }
    h6 {
    font-size: 8pt;
    font-weight: normal;
    }
    }

    / Remove non-essential elements /
    @media print {
    .firstHeading { margin-top: 0; padding-top: 0; }
    #siteSub { display: none; }
    .printfooter { display: none; }
    #catlinks, .catlinks { display: none; }
    #footer { display: none; }
    }

    After you edit that, you have to do a "hard" reload (Ctrl-F5 in Firefox) on a given wiki page before printing to make sure it's using the latest copy of your monobook.css.

    How is that?

     
  • Lee Worden

    Lee Worden - 2011-02-09

    Alternatively, I think one can make these rules apply for all users by putting them in MediaWiki:Print.css, without the surrounding "@media print { }".

     
  • Lee Worden

    Lee Worden - 2013-07-31

    Ticket moved from /p/workingwiki/feature-requests/24/

     

Anonymous
Anonymous

Add attachments
Cancel