Hi Sylvain > I did hack the toc macro to make a book macro. freezes the browser tab when > using the whole wiki (<<book TableOfContents>>)... But not if I uses book > macro for each first level chapter (see TiddlyWiki-Book.tid). I don't know > why…
It would be interesting if you could try your hacked doc macro on the latest prerelease that incorporates a number of performance optimisations to the indexing performed by the core: https://tiddlywiki.com/prerelease/ <https://tiddlywiki.com/prerelease/> The indexing optimisations are described in more detail here: https://github.com/Jermolene/TiddlyWiki5/pull/3951 <https://github.com/Jermolene/TiddlyWiki5/pull/3951> It’ll be interesting to see if you get any improvements, and to use the recent improvements to the performance instrumentation to help identify the specific filters that need improvement: https://github.com/Jermolene/TiddlyWiki5/issues/3941 <https://github.com/Jermolene/TiddlyWiki5/issues/3941> Best wishes Jeremy > > It's a bit raw out of the box and needs a lot polishing but works (see > example attached - note i'm behind a proxy firewall so a lot of external > ressources are blocked) - nearly 900 pages!!! Had to put this on a sharing > partner (available only 7 days and 100 downloads. Be fast! ;-) : > https://send.firefox.com/download/285dc36d71cf93d7/#Gj_WNWkdrRULJb6HUkOe5A > > You may play with it by yourself : get the "book.tid" macro and the > "TiddlyWiki-Book.tid" tiddlers in your own copy. > > cheers > > Sylvain > @sycom > > Le mardi 28 mai 2019 09:24:11 UTC+2, TonyM a écrit : > Folks, > > I have built a Linear Table Of Contents that appears in a single tiddlywiki, > such as it would create a single tiddler with the content from the Table Of > Contents. Its working well, but It fails due to the size of tiddlywiki.com > <http://tiddlywiki.com/> (offline copy). > > I can list all the titles but if I transclude the content for each tiddler on > clicking "done, the result is never displayed. The Wiki seems to freezes, and > closing the browser the only option. > > I wonder if there are some settings that would allow it to work. > > Regards > Tony > > On Tuesday, May 28, 2019 at 11:13:24 AM UTC+10, TonyM wrote: > Hi Tam, > > It is interesting to read your request. Tell us more how/where you will use > the resulting PDF? > > As Mat points out TiddlyWiki.com is non-linear, it is not a book, it makes > full use of an interactive table of contents, search and optional paths. This > is better organised that any PDF can be. I have actually built a version of > TiddlyWiki.com for the new user but it includes the ability to take notes and > more. > > Unless you plan to print your PDF can I ask where will you read your PDF that > you can't instead open the tiddlywiki itself? If you want to read everything > in a wiki, perhaps a button to tag each read tiddler with a "read" tag. > > Sticking to your original request. > If we come up with a good solution, perhaps others will also use this, not > just for tiddlywiki.com <http://tiddlywiki.com/>. > > Ideally if we could export it to pdf with the chapter headings in the > contents of the pdf and then use the search within pdf it may be almost as > easy to read it in pdf. This may actually be possible by generating a HTML > tiddler/file with the correct use of headings and sections etc... and feeding > this into a good html to PDF converter. > > But this could need lots of work, but it could be a worthwhile investment as > it would be a way to publish the content of TiddlyWiki as a book, and some > authors may want this. With careful design the one wiki could contain both > the draft and revised versions of a book. > > Quick and easy > The quick and easy way is to create a tiddler which transcludes all the > content you want to package in your PDF, open that tiddler in a new window > and use the browsers print function to print to PDF (assuming you have > installed a "print to pdf" printer). Note however to do the whole > TableOfContents can be a disaster. see Transcluding the content you want to > package in your PDF > > Transcluding the content you want to package in your PDF > Mark and Sylvain address this in this thread, but the idea of say using the > TableOfContents to generate this view may be compromised by some loops, ie a > lower tiddler referencing a higher tiddler, resulting in a loop. > > I have a design pattern I am keen to explore that iterates the whole Table of > Contents (TOC) adding a branch field to each tiddler, that contains the path > from the Top of the TOC to the current tiddler. If you come to the same > tiddler and it already contains a branch then a reference to the tiddler in > its branch is given to stop any infinite loops, and repeating content. The > Branch could be use as bread crumbs as well. We could also use the kin > operator to list all tiddlers not in the TOC as appendices. > > So I am working on this now. > > Regards > Tony > > On Tuesday, May 28, 2019 at 2:52:11 AM UTC+10, tam wrote: > I am planning to spend a bit of time learning how to use TiddlyWiki in more > depth and I have tried to get the documentation <https://tiddlywiki.com/>in > a PDF format. > > At first I thought it would be easy - just "Export all" as static HTML then > convert to a PDF. Of course this gives me all the tiddlers in alphabetical > order. This is not much good to me, ideally I would need them to be in > roughly the order they appear in the contents menu of tiddlywiki.com > <http://tiddlywiki.com/>. > > Is there anyway to do this? (I'm guessing probably not). > > Thanks! > > -- > 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 [email protected] > <mailto:[email protected]>. > To post to this group, send email to [email protected] > <mailto:[email protected]>. > Visit this group at https://groups.google.com/group/tiddlywiki > <https://groups.google.com/group/tiddlywiki>. > To view this discussion on the web visit > https://groups.google.com/d/msgid/tiddlywiki/33b16758-88c6-46b6-853a-da7bc62c9103%40googlegroups.com > > <https://groups.google.com/d/msgid/tiddlywiki/33b16758-88c6-46b6-853a-da7bc62c9103%40googlegroups.com?utm_medium=email&utm_source=footer>. > For more options, visit https://groups.google.com/d/optout > <https://groups.google.com/d/optout>. > <bookMacro.tid><TiddlyWiki-Book.tid> -- 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 [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/tiddlywiki. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/7FF9B104-B007-4352-9E9C-DEA68F2CE88F%40gmail.com. For more options, visit https://groups.google.com/d/optout.

