Basic question - how do you print a tiddler?

1,056 views
Skip to first unread message

JWHoneycutt

unread,
Jun 7, 2018, 6:44:00 AM6/7/18
to TiddlyWiki
How I print a tiddler:

1) Render the tiddler
2) Copy / paste it into a word processor
3) Fix any formatting that does not come out as expected
4) Return to TW5 to get the title (and subtitle)
5) Print from word processor
6) Any last minute changes from word processor (spelling, PS add-ons, etc) are retyped into TW5

I would like to know the process you use

I found this in another discussion and created a tiddler with the $:/tags/Stylesheet tag 

@media print { @page { margin-right: 4.0cm; } }

There are scant references to printing - how do you "print to PDF"?

As you can see, mine is a very basic question

David Gifford

unread,
Jun 7, 2018, 9:37:02 AM6/7/18
to tiddl...@googlegroups.com
How I print a tiddler:

1) I go to the print menu in Firefox
2) I check that the scale and other settings are how I want them
3) I click print.

I do have the following in all my stylesheet tiddlers:

/*HIDE SECTIONS FOR PRINTING*/

@media print {#tc-page-background {display: none ! important;}} 
@media print {.tc-tags-wrapper {display: none ! important;}} 

 @media print { body.tc-body {background-color: transparent;}
 @media print {.tc-image-chevron-up {display: none ! important;}} 
 @media print {.tc-image-chevron-down {display: none ! important;}} 


.sidebar-header, .tc-topbar {
display: none;
}

@media print {

.story-river {
margin: 0;
padding: 0;
}

html body.tc-body .tc-tiddler-frame {
margin: 0;
border-bottom: 1px solid #ccc;
padding: 5px;}

html body.tc-body a.tc-tiddlylink-external:hover {
border: 1px solid <<colour tiddler-border>>;
}

html body.tc-body .tc-tiddler-info {
padding: 14px 42px 14px 42px;
background-color: <<colour tiddler-info-background>>;}

}
}

BurningTreeC

unread,
Jun 7, 2018, 12:24:36 PM6/7/18
to TiddlyWiki
Hi @JWHoneycutt,

I use a button, say $:/buttons/print-tiddler:

\whitespace trim
<$button tooltip="print tiddler" aria-label="print tiddler" class=<<tv-config-toolbar-class>>>
<$action-setfield $tiddler="$:/templates/print/tiddler" $field="tiddler-title" $value=<<storyTiddler>>/>
<$action-sendmessage $message="tm-open-window" $param="$:/templates/print/tiddler"/>
<$list filter="[<tv-config-toolbar-icons>prefix[yes]]">
{{$:/core/images/print-button}}
</$list>
<$list filter="[<tv-config-toolbar-text>prefix[yes]]">
<span class="tc-btn-text">
<$text text=" "/>
<$text text="print tiddler"/>
</span>
</$list>
</$button>

... and a template tiddler $:/templates/print/tiddler where the tiddler-to-print gets rendered:

\define containerClasses()
tc-page-container tc-page-view-$(themeTitle)$ tc-language-$(languageTitle)$
\end

\define tiddlerPrintTemplate()

<$importvariables filter="[[$:/core/ui/PageMacros]] [all[shadows+tiddlers]tag[$:/tags/Macro]!has[draft.of]]">

<$set name="tv-config-toolbar-icons" value={{$:/config/Toolbar/Icons}}>

<$set name="tv-config-toolbar-text" value={{$:/config/Toolbar/Text}}>

<$set name="tv-config-toolbar-class" value={{$:/config/Toolbar/ButtonClass}}>

<$set name="themeTitle" value={{$:/view}}>

<$set name="currentTiddler" value={{$:/language}}>

<$set name="languageTitle" value={{!!name}}>

<$set name="currentTiddler" value="">

<div class=<<containerClasses>>>

{{$(tiddlerTitle)$}}

</div>

</$set>

</$set>

</$set>

</$set>

</$set>

</$set>

</$set>

</$importvariables>

\end

<$vars tiddlerTitle={{!!tiddler-title}}>
<<tiddlerPrintTemplate>>
</$vars>

... for this template I just copied lines from the $:/core/ui/PageTemplate tiddler. I wanted to have all macros and variables working when I print and that's what worked best for me.

With this each tiddler has its print button, which opens it in a new window. Ctrl-P then opens the print dialogue for printing

all the best,
BTC

BurningTreeC

unread,
Jun 7, 2018, 12:39:29 PM6/7/18
to TiddlyWiki
... I forgot: the button tiddler needs the tag $:/tags/ViewToolbar

I've added a button that launches the print dialogue to the template tiddler:

\define containerClasses()
tc-page-container tc-page-view-$(themeTitle)$ tc-language-$(languageTitle)$
\end

\define tiddlerPrintTemplate()

<$importvariables filter="[[$:/core/ui/PageMacros]] [all[shadows+tiddlers]tag[$:/tags/Macro]!has[draft.of]]">

<$set name="tv-config-toolbar-icons" value={{$:/config/Toolbar/Icons}}>

<$set name="tv-config-toolbar-text" value={{$:/config/Toolbar/Text}}>

<$set name="tv-config-toolbar-class" value={{$:/config/Toolbar/ButtonClass}}>

<$set name="themeTitle" value={{$:/view}}>

<$set name="currentTiddler" value={{$:/language}}>

<$set name="languageTitle" value={{!!name}}>

<$set name="currentTiddler" value="">

<div class=<<containerClasses>>>

<$button class="tc-btn-invisible tc-print-tiddler-print-button" message="tm-print">{{$:/core/images/print-button}}</$button>

{{$(tiddlerTitle)$}}

</div>

</$set>

</$set>

</$set>

</$set>

</$set>

</$set>

</$set>

</$importvariables>

\end

<$vars tiddlerTitle={{!!tiddler-title}}>
<<tiddlerPrintTemplate>>
</$vars>


... and the styles for the button, put them in a tiddler tagged $:/tags/Stylesheet 

button.tc-print-tiddler-print-button {
font-size: 2em;
position: fixed;
right: 20px;
top: 20px;
}

@media print {
button.tc-print-tiddler-print-button {
display: none;
}
}


Ste Wilson

unread,
Jun 7, 2018, 5:36:33 PM6/7/18
to TiddlyWiki
Another basic question...
Do any of those solutions allow setting of page breaks?

TonyM

unread,
Jun 7, 2018, 10:42:03 PM6/7/18
to TiddlyWiki
Printing tiddlers?

I do not do it very often and prefer print to PDF

In firefox I open the tiddler with the content, including the transclusion of multiple tiddlers if required, if I want title to appear for each tiddler in this print I include them in the tiddler content. Basically I create a Print View Tiddler.

I open this print view tiddler in a new window, and print it (hamburger menu on right).
  • Of course you may want to change the zoom, shrink to fit, 
  • Ensure it uses landscape layout
I print to the PDF Printer - Foxit PDF
  • I can see a live preview
  • This gives me page setup options including
    • Margins, headers and footers and more
    • Page numbers etc...
  • And Printer properties
    • Folder/Filename
    • Fast webView Format
    • Ability to add Document info
The PDF opens in Foxit reader.

This is where I tend to stop. In part because the it is easy to return here if I make changes.

Keep in mind Foxit Reader allows you to further annotate the PDF file including;
  • Arrows/shapes/stamps/highlighter
  • Bookmarks
  • Notes comments, 

Untested lots of features including secure, sign, attachments, adding bookmarks (Saved in PDF)

You can export/import comments and highlights so you may be able to apply these again if you regenerate the PDF.
There are many export and conversion options under FoxIt reader.

Regards
Tony


However you can open the PDF in Word and do more if you must.

@TiddlyTweeter

unread,
Jun 8, 2018, 4:37:37 AM6/8/18
to TiddlyWiki
Ciao BTC

Great stuff, as usual from you, working to add to basic utility of TW! A few points ... hope they don't come over as negative and might be helpful.

1 - Your solution breaks in v5.1.14 of TiddlyWiki. That is to do with...

\whitespace trim

... not supported till v5.1.15.

2 - Because the printer dialogue itself is not invoked this won't solve the problem is TiddlyDesktop which currently has neither Ctrl-P, nor Right Click to display menu with a print option. IMO this issue in TD is important to address.

3 - I'm unclear what your solution currently adds over "Open In New Window?"

4 - I think you are hot on this because of previous work you have done related to the timing of appearance of the print dialogue before the Tiddler render is done? :-) In other words, the print could be corrupted/truncated. Right? That led to postponement of getting a Single Tiddler Print option into the basic TW release?

5 - I actually think the Single Tiddler Print thing might better be contextualised as... What a Window of a Single Tiddler is? And what it could contain?

i.e. it might be as good, if not better, to have a menu of some sort possible at the top of Single Tiddlers in a Window with a button for Print. (a) It would be more design consistent with current printing of story river & the main TW interface; (b) The timing problem on display of the printer dialogue should go away; (c) Should get round TiddlyDesktop's limitations.

There are other things about Open In New Window that might also be looked at. Like being able to Toggle whether the Title can be displayed etc ...

You get my point? Printing Single Tiddlers could be seen as part of a wider design approach for spawned Window content.

Just thoughts
Josiah

BurningTreeC

unread,
Jun 8, 2018, 5:25:54 AM6/8/18
to TiddlyWiki
Ciao BTC

Great stuff, as usual from you, working to add to basic utility of TW! A few points ... hope they don't come over as negative and might be helpful.

1 - Your solution breaks in v5.1.14 of TiddlyWiki. That is to do with...

\whitespace trim

... not supported till v5.1.15.

I didn't know that, thanks! 

2 - Because the printer dialogue itself is not invoked this won't solve the problem is TiddlyDesktop which currently has neither Ctrl-P, nor Right Click to display menu with a print option. IMO this issue in TD is important to address.

3 - I'm unclear what your solution currently adds over "Open In New Window?"

It adds a print button in the top right corner (see my second example) ... about the rest I'm unclear, too

4 - I think you are hot on this because of previous work you have done related to the timing of appearance of the print dialogue before the Tiddler render is done? :-) In other words, the print could be corrupted/truncated. Right? That led to postponement of getting a Single Tiddler Print option into the basic TW release?

Yes that's right - I stopped that from being already available by testing it with content that needs time to load - that caused the printed page to be truncated/not complete - Jeremy has already proposed some solutions but we'll have to wait a bit

5 - I actually think the Single Tiddler Print thing might better be contextualised as... What a Window of a Single Tiddler is? And what it could contain?

i.e. it might be as good, if not better, to have a menu of some sort possible at the top of Single Tiddlers in a Window with a button for Print. (a) It would be more design consistent with current printing of story river & the main TW interface; (b) The timing problem on display of the printer dialogue should go away; (c) Should get round TiddlyDesktop's limitations.

There are other things about Open In New Window that might also be looked at. Like being able to Toggle whether the Title can be displayed etc ...

Yeah, that wouldn't be bad ... there could be a top right menu bar which won't get printed but can be used to toggle these things...  

You get my point? Printing Single Tiddlers could be seen as part of a wider design approach for spawned Window content.



Yes I get it, it's a good idea

BurningTreeC

unread,
Jun 8, 2018, 5:52:48 AM6/8/18
to TiddlyWiki
Ciao BTC

Great stuff, as usual from you, working to add to basic utility of TW! A few points ... hope they don't come over as negative and might be helpful.

1 - Your solution breaks in v5.1.14 of TiddlyWiki. That is to do with...

\whitespace trim

... not supported till v5.1.15.

I didn't know that, thanks! 

2 - Because the printer dialogue itself is not invoked this won't solve the problem is TiddlyDesktop which currently has neither Ctrl-P, nor Right Click to display menu with a print option. IMO this issue in TD is important to address.

3 - I'm unclear what your solution currently adds over "Open In New Window?"

It adds a print button in the top right corner (see my second example) ... about the rest I'm unclear, too

But it also somehow tries to reassamble the "environment" kinda like in the story river. It would need to add a tc-story-river div and list the viewed tiddler using the view template to make that complete.
I'm not that sure if it changes the way tiddlers get printed - but I thought that some styles could not be applied in a simple single-tiddler window like they get applied in the story river, and maybe some macros don't behave the same.
I remember that once I got weird results and wasn't sure why - and I made such a template tiddler which I use since. I just cannot exactly remember what the problem was

@TiddlyTweeter

unread,
Jun 8, 2018, 6:04:45 AM6/8/18
to TiddlyWiki
In my understanding, the spawned windows have full access to Mother.

Quirks are most likely about styling since the window may inherit a subset of styles with variations. Which is good for printing.

The interesting issue for me is Single Tiddlers opened in a New Window seem to have a "Lost Daughter" feel about them, as if they were dumb...

I'd need be clearer but I think they are quite capable of "Talking With Mother" and offer, potentially, nice minimal ways to talk to her.


BTC:

BurningTreeC

unread,
Jun 8, 2018, 6:33:57 AM6/8/18
to TiddlyWiki
let's play with a mockup:

@TiddlyTweeter

unread,
Jun 8, 2018, 6:57:06 AM6/8/18
to TiddlyWiki
BTC: let's play with a mockup:


That is exactly it! (Your quick understanding of TW coding is awesome! It would take me a week to do that :)

I wonder. Can we edit in it too? Or maybe that opens back in Mother?

BurningTreeC

unread,
Jun 8, 2018, 1:18:11 PM6/8/18
to TiddlyWiki
We could, but what's the benefit? Editing it is just a click away in the story river.
Changing it to be editable seems overly complicated to me, we'd need to add another independent storylist and navigator... 

@TiddlyTweeter

unread,
Jun 8, 2018, 1:41:56 PM6/8/18
to TiddlyWiki
Leave it. Sounds like far too much work for no benefit.

I was just imagining an editor on Screen 2 at full width. But the issue could be dealt with, as you imply, on the Mother Screen better and easier.

The visual singularity of a single tiddler, margins minimal, though, does have a seductive appeal for me.

Thanks for the play! Very instructive.

TBH the variation made on the "Open In New Window" with Title you can switch off and on and a print button is extremely good and I think one that could have wide appeal.

Best wishes
Josiah

David Gifford

unread,
Jun 8, 2018, 10:26:03 PM6/8/18
to TiddlyWiki
Added to the toolmap in a new section, Printing, with a little explanation.. https://dynalist.io/d/zUP-nIWu2FFoXH-oM7L7d9DM

BurningTreeC

unread,
Jun 9, 2018, 3:08:25 AM6/9/18
to TiddlyWiki
Added to the toolmap in a new section, Printing, with a little explanation.. https://dynalist.io/d/zUP-nIWu2FFoXH-oM7L7d9DM


Thanks, David! 

@TiddlyTweeter

Now I've actually made tiddlers editable in that new window.
I changed it to use a separate storylist - there's the benefit of opening more tiddlers at once, creating a multi-tiddler document
Now one can add tiddlers to the print list in the new window by clicking the print button

BurningTreeC

unread,
Jun 9, 2018, 3:11:04 AM6/9/18
to TiddlyWiki
We'll need to dig into the popups-cancelling problem in new tiddly windows

Mohammad

unread,
Jun 9, 2018, 6:35:57 AM6/9/18
to TiddlyWiki
Hello BTC,
 This is really amazing! Print set of tiddlers in form of a PDF or sent to the physical printer!
Thank you!
Do you release it as a plugin?

What is the pbr on the toolbar? I just print by clicking the printer icon!

/Mohammad

BurningTreeC

unread,
Jun 9, 2018, 7:07:19 AM6/9/18
to TiddlyWiki
Hello BTC,
 This is really amazing! Print set of tiddlers in form of a PDF or sent to the physical printer!
Thank you!
Do you release it as a plugin?

What is the pbr on the toolbar? I just print by clicking the printer icon!

Hi Mohammad, pbr stands for Page-Break ... I'm looking for an icon for it.
It allows to print the tiddler on a new page.

I'll make a PR for this on github. A print-tiddler button is under construction over there.

What I'm trying right now is adding sensible features

BurningTreeC

unread,
Jun 9, 2018, 7:08:17 AM6/9/18
to TiddlyWiki
@Ste Wilson,

print-tiddler.tiddlyspot.com now allows adding page-breaks for printing before single tiddlers in the print-list

@TiddlyTweeter

unread,
Jun 9, 2018, 7:17:00 AM6/9/18
to TiddlyWiki
BTC

Looking good!

One issue: The "More" (down-arrow) menu won't close once opened (FF & Chrome) for me.

BurningTreeC

unread,
Jun 9, 2018, 7:21:42 AM6/9/18
to TiddlyWiki
BTC

Looking good!

One issue: The "More" (down-arrow) menu won't close once opened (FF & Chrome) for me.

Yes, that's why:

We'll need to dig into the popups-cancelling problem in new tiddly windows

Popups in a new window don't cancel when clicking in that window, you need to click in the root window to close them...

I once tried to figure out how to fix that but wasn't lucky... I guess now's the time to take another look. Every helping hand is much appreciated

BTC

Mohammad

unread,
Jun 9, 2018, 7:40:15 AM6/9/18
to TiddlyWiki
Great!
 This is an icon from wikipedia:


This is another one

Seems they are free to use! 

Keep going on. This is great feature!

Cheers
Mohammad

@TiddlyTweeter

unread,
Jun 9, 2018, 7:40:24 AM6/9/18
to TiddlyWiki
Ciao BTC


What I'm trying right now is adding sensible features

 The relationship with stylesheets in it interests me. One thing that strikes me is control of vertical whitespace, especially after hiding Title etc. The PBR is already in that direction for situations where you need pagination.

But I don't quite know how one would handle that more fine-grained given that one might have several styles inherited already?

Just in a way of thinking it's maybe interesting to think of it as an approximation to a  "print-preview? If you get what I mean?

Just thoughts
Josiah

Mohammad

unread,
Jun 9, 2018, 7:47:26 AM6/9/18
to TiddlyWiki
Also, check this page

BurningTreeC

unread,
Jun 9, 2018, 8:20:12 AM6/9/18
to TiddlyWiki
 I think the page-breaks are a very commonly used feature and would be requested often. It's also covered by browser-support: https://caniuse.com/#search=page-break-before
Other features that make sense have to be explored but I am happy with the page-break right now

A print-preview in my eyes is already given clicking the print button and see how it looks like (I have a preview in the print dialogue).
Another separate preview pane somewhere doesn't make much sense to me

BurningTreeC

unread,
Jun 9, 2018, 8:21:01 AM6/9/18
to TiddlyWiki
@Mohammad, thanks for the links!
I've already added one of those icons

@TiddlyTweeter

unread,
Jun 9, 2018, 9:13:43 AM6/9/18
to TiddlyWiki
Ciao BTC

I was not clear enough. I did not mean a full preview per se. I meant live style changes related to vertical whitespace within it.

It may be that actually the CSS for printing covers inter-included-Tiddler whitespace already on actual print. I need play with that more to be sure.

I wasn't meaning you should do anything! :-)

I'm simply trying to understand the relationship between the TW's "normal" CSS and this spawned Window and whether one could globally apply some over-ride styles just to it.

Best wishes
J.


BTC

@TiddlyTweeter

unread,
Jun 9, 2018, 9:17:36 AM6/9/18
to TiddlyWiki
BTC

Sorry I misunderstood.

Is the issue with the popup's in the child window CSS related?

J.

@TiddlyTweeter

One issue: The "More" (down-arrow) menu won't close once opened (FF & Chrome) for me.


 @BTC

BurningTreeC

unread,
Jun 9, 2018, 9:22:40 AM6/9/18
to TiddlyWiki
BTC

Sorry I misunderstood.

Is the issue with the popup's in the child window CSS related?

No it's javascript related. I think popups were designed without the new windows in mind. In the window something needs to "hear" your clicks and delete the popups. That is missing in the new window. 

@TiddlyTweeter

unread,
Jun 9, 2018, 10:00:52 AM6/9/18
to TiddlyWiki
Ciao BTC

Further to last. A did a bunch of tests and the resultant spacing on actual print is good so my point is actually void.

One thing that I thought was, same as excellent PBR, might be of interest & useful if one could define a fragment of code that could be toggled on or off (i.e. inserted, or not) between Tiddlers (Tiddler specific). I'm thinking of, for example  ...

<br><hr>
 
or maybe wikitext?

Version: <<draftNo>>

Just thoughts
Josiah


On Saturday, 9 June 2018 15:13:43 UTC+2, @TiddlyTweeter wrote:
Ciao BTC

I was not clear enough. I did not mean a full preview per se. I meant live style changes related to vertical whitespace within it.

It may be that actually the CSS for printing covers inter-included-Tiddler whitespace already on actual print. I need play with that more to be sure.

BurningTreeC

unread,
Jun 9, 2018, 10:29:50 AM6/9/18
to TiddlyWiki
Ciao BTC

Further to last. A did a bunch of tests and the resultant spacing on actual print is good so my point is actually void.

One thing that I thought was, same as excellent PBR, might be of interest & useful if one could define a fragment of code that could be toggled on or off (i.e. inserted, or not) between Tiddlers (Tiddler specific). I'm thinking of, for example  ...

<br><hr>
 
or maybe wikitext?

Version: <<draftNo>>


Oh yes, that would be possible.
What are the most commonly used thingys people want to add between tiddlers?
I can only imagine adding the same for all print-tiddlers, not different ones for each one.

a text field could be added where you can write your separator

@TiddlyTweeter

unread,
Jun 9, 2018, 10:32:42 AM6/9/18
to TiddlyWiki
BTC

Okay, Im gonna click around and check if any other popups might be an issue in some circumstances. I can't help with Javascript. No skill.

FWIW, since you can get the buttons to work singularly maybe you can avoid invoking the popup? What buttons are actually needed in that window? (Given its dedicated to print / final edit)?

Just thoughts
Josiah

@TiddlyTweeter

unread,
Jun 9, 2018, 11:41:29 AM6/9/18
to tiddl...@googlegroups.com
BTC: I can only imagine adding the same for all print-tiddlers, not different ones for each one.

Okay. Makes sense.
 
 BTC: a text field could be added where you can write your separator

Could it have "memory"? i.e. you entered something before and its kept (bit like Snippets in the editor?)

I can't speak for other users, but here are a few examples ...

1 - Code for CSS that auto adds a number. Example result: "Section 7" above the 7th Tiddler.

2 - Time of print / Author / Version. CSS wikt-text & HTML to create a neat line of info

3 - Case: Titles are off. Bring them back via WikiText snippet. Rather than big Title, a small Title with a thin line above it...

These are just examples. I think the point is that the user defines it for their purpose.

Since PBR is a "break-above", not a "break-after", IF, combined with it (i.e. inserted just before it), it could also be used as a smart Running Header for printed pages.

Effectively by providing the mechanism you can have a neat sectioning system--whether that is (above) Tiddlers "Section Header" OR the same plus page break just before the Section Header, where its effectively a "Running Header" on print-out.

Hope this is clear & illustrative enough. Let me know if its unclear or if you need more examples.

Best wishes
Josiah

@TiddlyTweeter

unread,
Jun 9, 2018, 12:05:44 PM6/9/18
to TiddlyWiki
BTC

Personal note: I often feel bad having ideas, sometimes I know they are actually useful, but all too aware someone else is doing the work I can't.

BTW, I thought a quite good name for an eventual plugin could be: "Print River"

Best wishes
Josiah

@TiddlyTweeter

unread,
Jun 9, 2018, 12:08:45 PM6/9/18
to TiddlyWiki
Or, maybe, to be exact: "Print River Plus"


BTW, I thought a quite good name for an eventual plugin could be: "Print River"

Just thoughts
Josiah

BurningTreeC

unread,
Jun 9, 2018, 1:27:43 PM6/9/18
to TiddlyWiki
Step by step. It's too much at once.
I'm leaving it as it is right now - improvements can always be made in the future

BTC

@TiddlyTweeter

unread,
Jun 9, 2018, 2:02:21 PM6/9/18
to TiddlyWiki
io capisco. a dopo. grazie!

J.

JWHoneycutt

unread,
Jun 14, 2018, 12:55:26 AM6/14/18
to TiddlyWiki
@All: Thank you for answers.

@BTC


There is a yellow non-printing set of options across the top allowing the print to show or hide Title, Subtitle, Tags

How do I add that capability to my tiddler-to-print ?

I suspect there is additional code added to the mockup that isn't explicitly stated in the thread?

JWHoneycutt

BurningTreeC

unread,
Jun 14, 2018, 10:21:12 AM6/14/18
to TiddlyWiki
Hi @JWHoneycutt

It's a set of tiddlers I've added and I'm about to bundle them in a plugin.
It's not yet finished... I've already created a plugin page: http://printriver.tiddlyspot.com - the plugin version is currently 0.1.0 - I recommend waiting for 0.2.0, I'll post it in the group when it's ready.

all the best, BTC 

Mohammad

unread,
Jun 14, 2018, 11:17:49 AM6/14/18
to TiddlyWiki
Hi BTC
Please update us when you released the next revision.
This is a very handy tools!

Cheers
Mohammad

Mohammad

unread,
Jun 14, 2018, 11:49:18 AM6/14/18
to TiddlyWiki
@BTC
 I printed some tiddlers. Then I back to select a new set of tiddlers for a new print! When I click the print button in the second time of printing, I see the printriver has kept the list of previous tiddlers in its print queue!
How can I flush that queue?

/Mohammad

BurningTreeC

unread,
Jun 14, 2018, 12:26:06 PM6/14/18
to TiddlyWiki
@BTC
 I printed some tiddlers. Then I back to select a new set of tiddlers for a new print! When I click the print button in the second time of printing, I see the printriver has kept the list of previous tiddlers in its print queue!
How can I flush that queue?

That's right, it keeps the list. You just need a button (or shortcut) that deletes the $:/PrintList tiddler or sets its "list" field empty:

<$button set="$:/PrintList!!list" setTo="">clear print river</$button> 

or

<$button><$action-deletetiddler $tiddler="$:/PrintList"/>clear print river</$button>

Mohammad

unread,
Jun 14, 2018, 12:36:23 PM6/14/18
to TiddlyWiki
Thank you!
That works!

@TiddlyTweeter

unread,
Jun 15, 2018, 11:11:36 AM6/15/18
to TiddlyWiki
BTC

I did some testing on TiddlyDesktop.

0.1.0 already neatly *solves* the problem TD has with not being able to print from a new window.

Its looking good.

Best wishes
Josiah

TonyM

unread,
Jul 21, 2018, 2:24:38 AM7/21/18
to TiddlyWiki
An update on my own practices, to add pagination to printing from tiddlywiki

I was just reviewing BJ's http://bjtools.tiddlyspot.com/#VisualEditor and realised how I can use it to compose tiddlers that I then include in another wiki, a kind of rapid tiddler environment, even if I do not use it in the destination wiki.

One of the ckeditor tools is to insert a page break (html)

<div style="page-break-after:always"><span style="display:none">&nbsp;</span></div>

And I did this that may interest people doing a lot of printing
  • So I created a tiddler called page-break with the above in it
  • All I need to do is include {{page-break}} where I need it in a tiddler
  • Since however, in a recent document I have a tiddler that consolidated many tiddlers into one document, I also did the following.
  • In the list widget that locates all the tiddlers that make up the document after transcluding each tiddler I included {{!!print-footer}} which most often is empty or non  existent.
  • However for any tiddler I want to be followed by a page break I add to its field print-footer {{page-break}}
So now I print to pdf and identify where I would like a page break and add it to the relevant tiddlers footer.

Then print again with the appropriate pagination.

I am likely to
  • add a print-header as well
  • Develop other transclusion tiddlers to place in the print-header or Footer
  • Perhaps one day I will even work out how to compute page numbers.
Regards
Tony






On Friday, June 8, 2018 at 12:42:03 PM UTC+10, TonyM wrote:
Printing tiddlers?

I do not do it very often and prefer print to PDF

In firefox I open the tiddler with the content, including the transclusion of multiple tiddlers if required, if I want title to appear for each tiddler in this print I include them in the tiddler content. Basically I create a Print View Tiddler.

I open this print view tiddler in a new window, and print it (hamburger menu on right).
  • Of course you may want to change the zoom, shrink to fit, 
  • Ensure it uses landscape layout
I print to the PDF Printer - Foxit PDF
  • I can see a live preview
  • This gives me page setup options including
    • Margins, headers and footers and more
    • Page numbers etc...
  • And Printer properties
    • Folder/Filename
    • Fast webView Format
    • Ability to add Document info
The PDF opens in Foxit reader.

This is where I tend to stop. In part because the it is easy to return here if I make changes.

Keep in mind Foxit Reader allows you to further annotate the PDF file including;
  • Arrows/shapes/stamps/highlighter
  • Bookmarks
  • Notes comments, 

Untested lots of features including secure, sign, attachments, adding bookmarks (Saved in PDF)

You can export/import comments and highlights so you may be able to apply these again if you regenerate the PDF.
There are many export and conversion options under FoxIt reader.

Regards
Tony


However you can open the PDF in Word and do more if you must.





On Thursday, June 7, 2018 at 8:44:00 PM UTC+10, JWHoneycutt wrote:
How I print a tiddler:

1) Render the tiddler
2) Copy / paste it into a word processor
3) Fix any formatting that does not come out as expected
4) Return to TW5 to get the title (and subtitle)
5) Print from word processor
6) Any last minute changes from word processor (spelling, PS add-ons, etc) are retyped into TW5

I would like to know the process you use

I found this in another discussion and created a tiddler with the $:/tags/Stylesheet tag 

@media print { @page { margin-right: 4.0cm; } }

There are scant references to printing - how do you "print to PDF"?

As you can see, mine is a very basic question

axelmich...@gmail.com

unread,
Jan 19, 2021, 6:50:57 AM1/19/21
to TiddlyWiki
Hi BTC,

unfortunately the Tools-Icon is not there anymore when I import the plugin into 5.1.22 and hence there are no options to tweak the printing.
Is there a solution to that?

Thank you in advance and best regards
Axel
Reply all
Reply to author
Forward
0 new messages