Subdividing articles
Here are several methods for subdividing an article into smaller articles, each attached to its own node.
Method 1: Copy and delete duplicated text
An easy way to subdivide an article into, say, two child nodes is to make a copy of the node, then paste it onto itself twice, so that there are now two child nodes, each identical to the parent. Delete all the content from the parent except maybe an introduction and a table of contents, delete the lower half of the content from the first child node and the upper half of the content from the second child node. Edit as needed.
Method 2: Insert ⁄ New node from selection and cut 
This is more convenient when more than two or three subdivisions are required, particularly as you can insert prepared node captions simultaneously. Here's how to do it.
Let's assume you wish to split up an article consisting of 3 paragraphs named, appropriately, Paragraph 1, Paragraph 2 and Paragraph 3 (Fig. 1).
Fig. 1
We will move each paragraph into its own article. Begin by composing a title for each paragraph, in this case Heading 1, Heading 2 and Heading 3 (Fig. 2). It is not necessary to insert a blank line between heading and paragraph as in this example, but it is necessary for the heading to be on a new line and not part of the paragraph.
Fig. 2
Now, highlight the heading and text of the lowest section (paragraph 3) (Fig. 3). The reason for this will become apparent later.
Fig. 3
Use Tree ⁄ Insert ⁄ New node from selection and cut (see Inserting a sibling node for details) to insert a named sibling node containing the selected text, which has now disappeared from Node A (Fig. 4).
Fig. 4
We can see where it has gone if we click the new Heading 3 node (Fig. 5).
Fig. 5
Similarly, highlight (Fig. 6) and cut (Fig. 7) the heading and text of paragraph 2.
Fig. 6
Fig. 7
Repeat this for paragraph 1 (Figs. 8, 9). Now the entire article has been subdivided into a set of sibling nodes.
Fig. 8
Fig. 9
Method 3: Insert ⁄ New node from selection
This is essentially the same as Method 2 except that the text in the target article is copied, not cut.
Method 4: Drag and drop text
Simply highlight each section of the article in turn, drag it from the Article pane to the Tree pane, and drop it onto any node (the technique of dragging and dropping is described in detail in Drag-and-drop support). The node on which you drop it will become the parent node of a newly created child node with the default node title, containing the selected text in its article.
In Fig. 10 the first paragraph in Node A's article is highlighted. In Fig. 11 the selected text block has been dragged to the Tree pane and is about to be dropped onto Node A.

Fig. 10

Fig. 11
Fig. 12 shows the result after the drop. A new node with the standard default title of "(new node)" has been created. Node A is still the current node and still contains the original paragraph. In Fig. 13 we have selected the new node to see what it contains, which as we expect turns out to be a copy of the original highlighted block.

Fig. 12

Fig. 13
Holding the Alt key down while performing this action moves the selected text instead of copying it. Holding the Ctrl key down creates a sibling node above the target node. Holding the Shift key down creates a sibling node below the target node. See Drag-and-drop support.
You may well find this the easiest method, since it only requires highlighting, dragging and dropping text. There are some added advantages:
  1. The drop target can be any node, so in one step you can subdivide the article and relocate its component parts to a different subtree.
  2. This method can also be used to copy and subdivide the contents of a document in another application (such as Microsoft Word) into multiple smaller articles in a TreePad file.
  3. You can copy the same block multiple times, creating duplicate nodes if you wish, as a backup measure.
(Yet another way to achieve this external transfer, without constantly switching between TreePad and another application, is to use Automatic paste!)
The only significant disadvantage is that the new node created with each drag-and-drop is not automatically renamed, so you will have to do this separately.

  1. TreePad regards a new line (hard carriage return) as a terminator for text inserted into the node caption. This is why a node caption cannot be more than one line long, and also explains why it is necessary for the heading to be on a separate line from the paragraph text in order to avoid including the paragraph text with the node caption.
  2. Of  course, if you simply wanted the node caption to reflect the first few words of the paragraph you could dispense with a separate heading and then it would be included. Insert ⁄ New node from selection (with or without cut) moves⁄copies the selected text to both the new sibling node's caption and its article, only the node caption ends at the first hard carriage return.
Search ]     [ Previous  |  Next ]     [ Up  |  First  |  Last ]     (Article 254 of 563)

This page is created with TreePad