create new tag
, view all tags
Here is a method to force a page break while printing a TWiki page. IIUC, it depends on HTML4 and style sheets and thus will only work on browsers which can handle HTML4 and style sheets.

AFAIK, this includes:

  • IE4 and above (it works on my installation of IE5)
  • (I can't reliably print from Linux, so I have not tested Konqueror 2.2.2 or Mozilla 0.9.8)

Of course, it does no harm to include this on any page where it might be useful -- where it works, it's great, where it doesn't, it does no harm.

WikiLearnPolicy: It is my intent to start using this on any WikiLearn page that includes sketches or drawings so that, if possible, a sketch starts at the top of a page, and thus, if it fits on one page, it is not split between two pages. (I may have to think about this a little more -- where sketches are much smaller than one page, or the page is already arranged so the sketches start at the top of a page (or are otherwise arranged to minimize the chance of being split across pages when printed) there is no need for a forced page break. Maybe the "policy" should be stated more like this:

The printability of WikiLearn pages shall be considered. Especially when sketches, drawings, graphics, tables or similar large entities are included on a wiki page, consideration should be given to attempting to ensure that a printout of that WikiLearn page will result in the most legible printout possible on a majority of printers. Some tools to accomplish this include the ability to force a page break, and the ability to manually arrange pages so that sketches start high enough on a printed page so that they can be printed in their entirety on the page they start on. The assumption will be that printing is done with the "Printable" template ("Printable" at the bottom of any page). Notices of this intent shall be placed in appropriate places around WikiLearn so that the intent becomes known.

And, maybe, this isn't really a "policy" but just an awareness campaign. wink (For me, as well.)

See AboutThesePages.


Inserting a Page Break

The following is from http://www.htmlgoodies.com/beyond/css_print.html. With this approach you define a class (P.breakhere, I guess -- the first three lines), and then, anywhere you want a page break, you insert the class (the last line).

<STYLE TYPE="text/css"> P.breakhere {page-break-before: always} </STYLE>

<P CLASS="breakhere">

There is an alternate method described on the same page to put a break after every heading of a given level -- at present I have no need for that.


  • () RandyKramer - 03 Sep 2002
  • <If you edit this page: add your name here; move this to the next line; and include your comment marker (initials), if you have created one, in parenthesis before your WikiName.>

Page Ratings

Edit | Attach | Watch | Print version | History: r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r2 - 2002-09-03 - RandyKramer
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by PerlCopyright 1999-2017 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding WikiLearn? WebBottomBar">Send feedback
See TWiki's New Look