I'm also looking to eliminate headers, et al., when printing tiddlers. I
generally LOVE Eric's plugins, but I'm struggling trying to understand
Snapshot. And I think I'm more interested in a simpler solution along the
lines of Jan's approach. Any help would be very much appreciated.
Alvin
On Sunday, March 6, 2011 9:05:13 AM UTC-6, Jan Johannpeter wrote:
>
> Thanks for the help on the stylesheet M�ns and Bauwe.
>
> The Stylesheet below was in deed able to eliminate the Top Title and the
> notices on the editor in the printview.
> What remains to be made invisible is the Tags and the Editbar which do
> not have a real use in the Printversion...
> Does anyone hav an Idea?
> /*{{{*/
>
> @media print {#mainMenu {display: none ! important;}}
> @media print {#topMenu {display: none ! important;}}
> @media print {#sidebar {display: none ! important;}}
> @media print {#messageArea {display: none ! important;}}
> @media print {#toolbar {display: none ! important;}}
> @media print {.header {display: none ! important;}}
> @media print {.tiddler .subtitle {display: none ! important;}}
> @media print {#tiddler #toolbar {display; none ! important; }}
> @media print {.tiddler .tagging {display; none ! important; }}
> @media print {.tiddler .tagged {display; none ! important; }}
> @media print {#displayArea {margin: 1em 1em 0em 1em;}}
>
> /*}}}*/
>
>
> Am 26.02.2011 22:20, schrieb M�ns:
> > Hi Jan
> >
> > Extracted from:https://groups.google.com/group/tiddlywiki/
> > browse_thread/thread/3a0563e38b2faada/b0ea07d64316fa45?
> > hl=en&lnk=gst&q=StyleSheetPrint+uses+the+following
> > +statement:#b0ea07d64316fa45
> >
> > StyleSheetPrint uses the following statement:
> > @media print { ... }
> > so that CSS contained inside the {...} will only be applied when
> > sending output to printing devices. This allows TW to format things
> > differently for hard-copy vs. screen display, without having to switch
> > stylesheets at all!
> >
> > To optimize for printing, you can just place your own
> > @media print {...} definitions into StyleSheet. Since
> > StyleSheet is an OVERLAY, any print-related CSS it contains will
> > simply override the standard CSS in StyleSheetPrint and whenever
> > you print the document, it will use your customized styles by
> > default.
> >
> >
> > I copied this from http://twhelp.tiddlyspot.com
> >
> > *{{{*/
> >
> > @media print {#mainMenu {display: none ! important;}}
> > @media print {#topMenu {display: none ! important;}}
> > @media print {#sidebar {display: none ! important;}}
> > @media print {#messageArea {display: none ! important;}}
> > @media print {#toolbar {display: none ! important;}}
> > @media print {.header {display: none ! important;}}
> >
> > @media print {.tiddler .subtitle {display: none ! important;}}
> > @media print {.tiddler .toolbar {display; none ! important; }}
> > @media print {.tiddler .tagging {display; none ! important; }}
> > @media print {.tiddler .tagged {display; none ! important; }}
> > @media print {#displayArea {margin: 1em 1em 0em 1em;}}
> > @media print {.pageBreak {page-break-before: always;}}
> >
> > /*}}}*/
> >
> > Cheers M�ns M�rtensson
> >
> > On 26 Feb., 19:29, Jan <[email protected]> wrote:
> >> Hello I spent some Time copypasting commands to suppress the printing
> >> of the author, the Tags and the dates the tiddler was created and
> >> modified.and the tiiddelertoolbar.
> >> like: @media print {
> >> .header {display: none ! important;}
> >> .toolbar {display: none ! important;}
> >> .tagged {display: none ! important;}
> >>
> >> }
> >>
> >> This had either no effect or caused quite au chaos...
> >> Certainly my knowledege of CSS is to bad to do this correctly.
> >>
> >> Could someone post a working Style sheetprint supressing all Elements
> >> except for the TiddlerTitles
> >>
> >> Best would be if the Tiddler was Commented to explain what
>
>
--
You received this message because you are subscribed to the Google Groups
"TiddlyWiki" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/tiddlywiki/-/2SzOXwxiJdUJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/tiddlywiki?hl=en.