Exporting several tiddlers to a single document (doc or pdf)

2,811 views
Skip to first unread message

Octavi

unread,
Dec 29, 2013, 11:16:41 AM12/29/13
to tiddl...@googlegroups.com
Hi,

I am looking for the best way to export several tiddlers (probably hundreds) into a single document (for example a Word document or a PDF), that can be printed as a book. I am using the new version of tiddlyWiki (5.0)

One possibility is creating a big tiddler with all other tiddlers transcluded in it (using the syntax {{TiddlerName}}). Then export it as html, open it in Microsoft Word or OpenOffice, add the table of contents, list of figures, page numbering and so on and print it to PDF.

The main problem is that the links between tiddlers don't translate into links between sections of the book.

Does anyone has used tiddlywiki to write a big document or a book?

Thank you!

Octavi

okido

unread,
Dec 30, 2013, 2:42:07 PM12/30/13
to tiddl...@googlegroups.com
Hi Octavi,

To give you some ideas I generate documents from TWc in 2 different ways:
  1. Create a HTML file from tiddlers with style sheets, svg graphs etc. all included, this requires js coding, although there is a plugin for html export in TWc.
    I abandoned this path as it becomes more and more complicated to save to the local file system.
    Once you have a HTML file on the file system print the whole page with cutepdf or easypdf, page numbering is done by FF.
  2. Create the whole document as one large tiddler by inclusion. Occasionally I set the page breaks by hand.
    Printing is done again with cutepdf or easypdf. You might need a print stylesheet to hide certain TW5 elements.
I would regard No. 2 as being the best option right now that can be used in TW5.
If you use node.js you can generate static html pages from a TW5, it might be possible to selected only these pages that you need and convert them with phantomjs to pdf.

Goodluck, Okido

2013年12月29日日曜日 17時16分41秒 UTC+1 Octavi:

Jeremy Ruston

unread,
Dec 31, 2013, 6:21:35 AM12/31/13
to TiddlyWiki
Hi Octavi

For TW5, I've just committed an example of generating an all-in-one static HTML representation of a wiki, with wiki links represented as internal #anchor links:


The change will show up in 5.0.6. Let me know how you get on,

Best wishes

Jeremy




--
You received this message because you are subscribed to the Google Groups "TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+...@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/groups/opt_out.



--
Jeremy Ruston
mailto:jeremy...@gmail.com

Octavi

unread,
Dec 31, 2013, 8:16:54 AM12/31/13
to tiddl...@googlegroups.com, jeremy...@gmail.com
Hi Jeremy,

Thank you very much!! This is a great start for what I want to do. I think I will need to change a little bit the source to select somehow the tiddlers I need (filters perhaps) and sort them in the appropriate order, but looking at your code, I think I will manage to do it.

I will report my progress with that.

By the way, I have been a fan to tiddlywiki classic for some years, and TW5 is much more powerful!

Happy new year!!

Octavi

Jeremy Ruston

unread,
Dec 31, 2013, 8:20:35 AM12/31/13
to Octavi, TiddlyWiki
Hi Octavi

Thank you very much!! This is a great start for what I want to do. I think I will need to change a little bit the source to select somehow the tiddlers I need (filters perhaps) and sort them in the appropriate order, but looking at your code, I think I will manage to do it.

I will report my progress with that.

Just override the shadow tiddler $:/core/templates/alltiddlers.content - the default contents is this:

{{{ [!is[system]sort[title]] ||$:/core/templates/static-tiddler}}}

Replace the filter at the beginning with the tiddlers you want.
 
By the way, I have been a fan to tiddlywiki classic for some years, and TW5 is much more powerful!

Thank you, much appreciated. If you love TiddlyWiki the most helpful thing is to be out there telling the world, teaching your friends and family to use it. We need to make it much more popular in 2014 than it's ever been before,

Best wishes

Jeremy

Octavi

unread,
Dec 31, 2013, 10:22:37 AM12/31/13
to tiddl...@googlegroups.com, Octavi, jeremy...@gmail.com
Hi Jeremy,

Mi idea is to do something similar to 


but with the actual content of the tiddlers in the same page. This way you can print some kind of eBook with the documentation and with links between sections.

In fact, my intention is to convince my boss to use TiddlyWiki5 instead of a large and boring Word document in a network drive. But I think he will ask for an "export to Word" feature.

Octavi
Reply all
Reply to author
Forward
Message has been deleted
0 new messages