Clone the inner contents of a source

inner-clone

Use inner clone syntax to duplicate a source phrase's inner content, and insert it into the document at the designated place.

Syntax

The inner clone syntax is a dollar-sign $ followed by a source phrase identifier that is wrapped in apostrophes ' '.

$'identifier'
Inner clone syntax

A clone is a duplicate copy of the text and formatting of a source phrase. Any phrase that has an identifier may be cloned; this includes basic phrases, term-marks, and containers.

Inner clones duplicate the inner text of the source and any embedded phrases, but does not duplicate the source's semantax and attributes.

Clones are useful in technical manuscripts when the precise wording of certain terms must be carefully applied. Clones are especially useful when the final phrasing of those terms has not yet been settled. Clones are also useful when the formatting (font, italics, color, etc.) needs to be applied identically throughout the manuscript.

Examples

template {
div #sc1 {
h1 #hd1 Learning objectives
p This section of the course will teach you:
ul {
li <<i #item1 Skills and knowledge>>
}
}
}

// inner clone of a grouped phrase
section $'sc1'

// inner clone of a standard phrase
h2 $'hd1'

// inner clone of a styled phrase
ol {
li $'item1'
}
Sample inner clone usage
0

syntax > variables > inner-cloneClone the inner contents of a source

🔗 🔎