[pmwiki-users] hard page break in print view

John Rankin john.rankin at affinity.co.nz
Wed Oct 19 16:50:54 CDT 2005


On Thursday, 20 October 2005 8:10 AM, Patrick R. Michaud <pmichaud at pobox.com> wrote:
>On Wed, Oct 19, 2005 at 03:04:25PM -0400, Russ Fink wrote:
>> Thank you, that worked like a charm.  I echo your sentiment, is there some 
>> way to add this easily into a wiki markup, perhaps a style, (even a 
>> cookbook recipe) so that I can say something like,
>> %hardpage%
>> or even
>> (:hardpage:)
>> ?
>
>Try:
>
>    $WikiStyleCSS[] = 'page-break-before';
>    $WikiStyle['hardpage'] = 
>      array('page-break-before' => 'always', 'apply' =>
>'block');
>
>Then you can use %hardpage% on any element to force a page break
>before it, as in
>
>    !! %hardpage% Why PmWiki is the best package ever
>
>Pm
>
Just a suggestion: it may be appropriate to tansfer this to
the print css, so there is always a new page before (say)
<h2>. Otherwise, the authors have to remember to apply the
style to every heading on every page to get a consistent look.

And if it were me, I'd call it 'newpage' by analogy with 'newwin'.

Just my 5¢.

-- 
JR
--
John Rankin






More information about the pmwiki-users mailing list