IncChild

^do( IncChild, [sibling order] )^

Type: Macro

Purpose: Embeds a note’s child by sibling order

This is a special convenience for ^include(notename, bstSub)^ and can be used just in case the note you want to include is one of the “current” note’s children.

If no index is given, an index of 1 is assumed and the first child is used. For every index used in the “current” export, that a child is subtracted from the SmartButtons (or compiled text) that would normally be appended during export.

It is the BoxPress way to carry a collection of related notes inside a project note as children. Or use aliases, which better preserves the resources you’ve organized so well in dedicated containers. Maybe one in 10 of these children will be included; the rest are for thinking. Great—you can place them as you like by with a mere index! You are in no way committed to exporting them all. Just use the NOKIDS export option.

Hover below to reveal BoxPress code

^if($1)^^action($tmpLst1=collect_if(children,$SiblingOrder=$1,$Name))^^else^^action($tmpLst1=collect_if(children,$SiblingOrder=1,$Name))^^endIf^^text("^value($tmpLst1)^", bstTextRich)^^action($tmpStr1($tmpLst1.at(0))=$Name)^

IncChild sample

Here is the outline structure of the note you are now reading:

An easy way to modularize your work is to keep children inside of it that you can embed in any order, using IncChild.

I will now embed these children as I see fit, in any order, and the embedded ones will be removed from the SmartButtons at the end. Showing the unused children in this way is incredibly useful; and doing so lets you use export for editing and thinking. For a final export, use the NOKIDS export option to prevent this.

This is the markup that is rendered below

^do(IncChild, 4)^
^do(IncChild, 5)^
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. 
^do(IncChild, 8)^
This is text from the “current” note. Notice the seamless integration.

English follower of Paracelsus. People have the qualities of a magnet and that when two people meet, an interactive magnetic field arises.

Abstract: Based on Lewinian goal theory in general and self-completion theory in particular, four experiments examined the implications of other people taking notice of one’s identity-related behavioral intentions (e.g., the intention to read law periodicals regularly to reach the identity goal of becoming a lawyer). Identity-related behavioral intentions that had been noticed by other people were translated into action less intensively than those that had been ignored (Studies 1–3).

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

Figuring out the best way to explain something is almost always the best way to understand it yourself.

Leonard Susskind, The Theoretical Minimum: What You Need to Know to Start Doing Physics

This is text from the “current” note. Notice the seamless integration.

Sample normal_note

Sample audio_note A

Type
Sample code_note

This code note has been made for demo purposes

Scope:   This is my scope

Syntax: Arg1, Arg2, [OptionalArg3]

1936

Sample quote_note

H. P. Lovecraft. The Haunter of the Dark