You can use gjots2 to organise your jottings into a tree structure, adding thoughts and miscellany as you go. You can get it to spit out HTML, XML, postscript, pdf, man etc etc (see the online manual for an example of the HTML conversion).

You can use it to "mind-map" your compositions - write down all your thoughts and then start organising them into a tree. By manipulating the tree you can easily reorder your thoughts and structure them appropriately.

It's a bit like the KDE program kjots but it supports a hierarchy of folders and the folder hierarchy is always visible. Of course, it's also written primarily for gnome/GTK-2 rather than KDE.