Michael,
Thank you very much for this: it’s really helpful and I’ve just spent a happy couple of hours playing with it (in the context of the best way to get info from TBX into Scrivener — I’ll come back to that…)
First, just a couple of points:
I may be misunderstanding something, but I think the export code for tCSSOutline3 item
needs to be tweaked very slightly. You have:
^action($HeadingDepth=$OutlineDepth-$HeadingDepth("TBXConfigNote"))^
etc
However, this scrunches the first couple of outline levels into H1:
If you change the code to:
^action($HeadingDepth=$OutlineDepth-$HeadingDepth("TBXConfigNote")+1)^
(and change the tier 2 template to use tCSSOutline3Item
) the hierarchy is respected
Sorry if I’ve misunderstood what’s going on!
Secondly, you say you can simply copy and paste into Word, but I think it’s worth pointing out that when you do that you lose a fair bit of information. In particular you lose the concept of Styles for heading etc and you’ll have to recreate them manually.
Instead, if you choose File > Export Selected Note, making sure that the extension is an html file, then you can open this file in directly in Word and then save it as .docx. The h1, h2 styles will have been converted into standard Heading 1, Heading 2 styles in Word (and will respect your formatting). This means that any further modification to the headings etc is much easier.
And that’s also where Scrivener comes in, because you can now Import and Split this document into Scrivener and you’ll get all your sections nicely imported in a hierarchy so you can work on it properly.
I came across your video while I was trying to find a way to export to Scrivener which both preserves text formatting (bold and italics and tables and bullet —but not numbered—lists) and gives a relatively easy way of splitting the document into constituent parts. You video was really helpful it understanding how it could work.
Again, forgive me if I’ve misunderstood parts of what you’re trying to do, but I thought some of this may be helpful for someone.
David