Macro Language Reference > Macros > Text (Frame Level) > ttsplit
  
ttsplit
Description
Splits the current stream into two sections, one before and one after the text cursor position. Text after the current text cursor position is moved into a new text stream of the same type as the original.
 
Example 303. Move some text in a stream into another tag
This example moves any that appears text after the current text cursor position in the current stream into a tag called Chapter2:
ttsplit "Chapter2"
Syntax
ttsplit stream name:t mode:n?
stream name
The tag name to be given to the cut section of text when split, automatically a .Tx tag.
mode
0
Split at cursor (default)
--1
Column split: split the text from the last character of the current column
Related Links