how to change print margin

67 views
Skip to first unread message

Andrew Lister

unread,
Feb 6, 2017, 4:58:10 PM2/6/17
to TiddlyWiki
I'd like to have a big right-hand margin of blank space when I print. I'm sure there must be an easy way to do this, and perhaps I even used to know how...  some CSS in a tiddler tagged "$:/tags/Stylesheet"? 

Andrew Lister

unread,
Feb 6, 2017, 4:59:10 PM2/6/17
to TiddlyWiki
If this is already in the documentation that comes with TW, I apologize, but I didn't see it. If it isn't, I promise to write it up.

Drevarr the Old

unread,
Feb 6, 2017, 6:11:22 PM2/6/17
to TiddlyWiki
Try adding a printMargin tiddler tagged with $:/tags/Stylesheet.

add the following text:
@media print {
   
@page {
        margin
-right: 4.0cm;
   
}
}

change margin: 4.0cm to your preference.

Set the type to: text/css

Save and print something

Andrew Lister

unread,
Feb 6, 2017, 8:47:25 PM2/6/17
to TiddlyWiki
Thank you that worked. One more question - the font is changing size when the print margin changes (shrinking when the margin is bigger). Is there a way to stop that happening?

Maybe it's simpler if I say what I'm trying to accomplish. I print out a portion of my TW to use as lecture notes, and I like to have space to annotate these notes on the right hand side. On the computer screen I want the tiddler to cover the whole screen (depending if I have the sidebar displayed or toggled off), but when printing I only want it to cover part of the page.
Reply all
Reply to author
Forward
0 new messages