cursor movement script command
The Cursor command allows you to record cursor movement script commands intended for use in playback within the Maple Learn environment, and are invisible to operation within Maple.
Some cursor script commands are as follows:
(where n is an integer) Move to position n in the current horizontal run (starting at zero).
Cursor down (May move between math containers)
Cursor up (May move between math containers)
Move to the very end of the expression
Move to the very start of the expression
Move to the end of current horizontal run. This is not necessarily the end of the expression. With the cursor on the + in (a+b)/(c-d), ENDPOS would move to after the b
decrement position in current horizontal run. Does not obey traversal rules like Left would. Stays in current horizontal run.
increment position in current horizontal run. Does not obey traversal rules like Right would. Stays in current horizontal run.
Go up one level of nesting. E.g. from inside a sqrt sign to the surrounding expression or from the denominator of a fraction to the surrounding expression. New cursor position within the outer expression is undefined, so this should be followed by POS or similar
Find first occurrence of id in current horizontal run, starting from the left. Position cursor before that occurrence. An id is specified as an id on the MathML tag, on input. I.e. <math><mfrac><mn id=numerator>1</mn><mi>x</mi></mfrac></math>
Find first occurrence of id in current horizontal run, starting from the right. Position cursor behind that occurrence
sc ≔ Script⁡'mode'='Learn':
cv ≔ NewCanvas⁡Title,sc:
The DocumentTools[Canvas][Script][Cursor] command was introduced in Maple 2021.
For more information on Maple 2021 changes, see Updates in Maple 2021.
Download Help Document