Writing complex documents (books, research) with DT3: which setup and workflow do you use?

Greetings,

I write complex documents such as books, research, (very) long form articles.
I use Ulysses, but I feel redundant, so I wonder if I can have the same features on DT3: it would reduce the cognitive load.

This is how I use Ulysses:

  1. I work on Markdown files
  2. Each chapter and subchapter is a file
  3. I can change the order of the files, and it reflects the new structure of the document
  4. With Ulysses I can export the whole document (that is made of several files), and the order of the chapters reflects the order of the files, so that I donā€™t have to copy paste each file into a new .doc file
  5. I can export the whole document in ePub, PDF and .doc

Can I do this on DT3?
How?

Another feature I use a lot on Ulysses is Statistics: here I can count the characters, words, pages of a single file (chapter) but also of the whole document (many files put together as a whole document).
Can I do this on DT3?
How?

Hope it makes sense.

Thank you!

You can use file transclusion (a MultiMarkdown feature) to display the contents of one Markdown file in another.

You cannot get statistics on transcluded content as the content isnā€™t actually part of the file. Itā€™s merely displayed. Development would have to assess the feasibility of this.

6 Likes

Thank you very much: I totally forgot that feature.
Iā€™ll have a test and see what happens if I export the master file.
As for the statistics, itā€™s something I can manage.

Youā€™re welcome :slight_smile:

DEVONtechā€™s free WordService got a statistics feature. If you select some text youā€™ll find it in the contextual menu under Services.

I use my DT extensively as a large academic research library. Thereā€™s nothing remotely as good for this ( in fact, I couldnā€™t easily live without it now). I also increasingly write short-form notes in DT, in markdown. Somewhat longer documents are also fine, and navigating these has become easier by using headers that you can click in the inspector ā€˜Table of Contentsā€™ (some third party md editors also offer this functionality, e.g. Typora). But what you are using Ulysses for (free rearranging; and exports of multiple files to one other format) isnā€™t yet available in DT (to the best of my knowledge; or perhaps it could be scripted, but thatā€™s not my forte). The power offered by Ulysses in that regard, or in my case, by writing in Scrivener, isnā€™t something Iā€™d be prepared to give up. So I donā€™t do more serious long form writing in DT (yet). There are plenty of ways in DT to manually re-arrange the order in which md files are displayed, but I think that this would quickly become unwieldy when you are dealing with a big pile of them (in chapters, or indeed, chapters split into sections split into paragraphs, as I tend to work).

Happy writing!

2 Likes

Damn, this is cool.

I mean, itā€™s obvious in hindsight but itā€™s one of those ā€œlook what this unlocksā€ features thatā€™s not obvious when just thinking of ā€œplain markdown docsā€.

1 Like

Thatā€™s why itā€™s a good idea to spend some time reading the release notes and testing new features in order to see whether they could be useful. :slight_smile:

4 Likes

Transclusion is really great! Where it gets trippy is when you try to transclude a transcluded document into a ā€œmeta-transclusionā€ā€¦ and it actually works :nerd_face: :wink:

1 Like

Oh oh oh! Thatā€™s a great idea. Nested transcluded documents.

Agreed, Iā€™ve used IA Writer in the past, and I had many files (a file per each paragraph) and used to transclude them (IA Writer has a ā€œnativeā€ feature for it).

For a long article I had nested transclusions.
Pro: moving a section up or down was as easy as copy/paste a portion of text, all just using Markdown and never going away form the keyboard.
Cons: a real pain afterwards when I had to relocate a section fro ma chapter to another one.

Having a graphical interface for it is much friendly.

Anyways, I use Ulysses only for the writing part.
I use mindmaps for brainstorming and organizing the sections.

1 Like

Iā€™ve used Scrivener in the past for the same nesting/transcluding/reorganizing, but I realized I was relying on that as a cheat for outlining, so Iā€™m trying to move away from Scrivener and simply be more deliberate in making outlines.

How about have a list of unsorted documents in a folder, and drag them into any order you want. Then use the merge documents feature to put it all together?

Itā€™s a good workaround (also replying to @lutefish ).

Because I use mindmaps as outlines, I can get rid of the need to have a structure into the folder.

Another workaround would be having a ā€œmaster documentā€ with the transclusions, that appear as a simple outline/index in the raw view.

This way changing the order of the chapters and the sections is just a matter of copying/pasting a string of text.
I donā€™t have to manage the order of the files, I can focus on the single files when I work on themā€¦

If it works (Iā€™m going to test this workflow) I can ditch Ulysses.

BTW: Ulysses is very good, but I want to have the less Apps as possible and avoid overlaps and redundancy.

1 Like

@IvanPsy Perhaps this script by @pete31 could also be useful in such a workflow.

It creates / updates a transclusion of all records contained in a group when selecting that group. So you would only need to reorder items, select the group and voilĆ ā€¦

2 Likes

Iā€™d like to throw in just a little thing: If your document does include footnotes and you are not using MultiMarkdownā€™s random/inline footnotesā€”[^footnote content]ā€”but the more common ones with footnotes anchorsā€”[^1] ā€¦ [^1]:footnote contentā€”and only with simple numbers you will have a problem with file transclusion as you have many footnote anchors with the same number.

Iā€™m a Scrivener user by the way and really happy with using it in combo with DEVONthink. Although it is a rich text app it imports Markdown with structure and footnotes intact.

I see. May I ask you whatā€™s the benefit with indexing Scrivener inside DevonThink?

You can do that, but thereā€™s no need to.

Thereā€™s a way of using Scrivener as the organiser / final compiler for your book, while keeping your research in DT3, and writing the actual words in iA Writer.

Basically, you use the External Folder Sync function in Scrivener, index that folder in DT3 (and set it up as a location in iA Writer as well if you want).

Designate the folder to use Markdown to use automatic sync and then:

  1. You can write your texts in iA Writer, where they will automatically appear in DT3

  2. When you next open Scrivener (or you sync manually), these documents will appear. You can move them around / edit them as much as you like (but make sure you use markdown syntax in Scrivener ā€“ *italics*, not italics ā€“ or theyā€™ll be lost).

  3. When you close Scrivener / sync manually, any modified documents will be updated in the external folder. Any new documents created in Scrivener will appear in the External Folder. All External Documents will be in their Scrivener Binder order.

  4. When everything is done, you use Scrivener to compile the final document, but you still have access to your entire text in DT3. (Scrivener also understands DT3 links natively).

Itā€™s worth noting that footnotes and comments will be transferred both ways Footnotes appear as {{footnotes}} in the markdown, comments as ((comments)), but as standard Scrivener comments/footnotes in Scrivener.

For example, you can use Scrivenerā€™s outlining tools (cork board/ outliner etc) to create your initial outline, then do the actual writing in iA Writer, knowing that everything will be ready to compile in the right order when needed, and that changes to the outline in Scrivener will be reflected.

NB: You donā€™t get this set up out of the box ā€“ there are quite a few options, and you will need to read the manual to get the details right, but there are a lot of advantages to this set up and if you already have Scrivener itā€™s definitely worth checking out.

HTH

8 Likes

Iā€™m experimenting with a similar indexed situation with Curio. I want to use Curio as sort of a front end corkboard for Devonthink.

How is your luck with changing absolute paths to the DT database? For instance, syncing to a laptop where your login name may not be the same?

I donā€™t really know, because I always use the same login name on my devices (though different passwords!), so the problem doesnā€™t arise.

Sorry!