next up previous contents index
Next: Partially restarting the program Up: General commands Previous: Save beliefs and data

Repeat last command

 


tex2html_wrap_inline33790 tex2html_wrap_inline33790 Syntax

BD>+ : [Arguments] tex2html_wrap_inline33712

where Arguments are arguments particular to the command being repeated.

tex2html_wrap_inline33806 tex2html_wrap_inline33806

The +:  command represents shorthand for the last command issued. For example, the sequence of commands

BD>print : This is an example: tex2html_wrap_inline33712

BD>+ : and so is this! tex2html_wrap_inline33712

BD>c : beethoven=9 tex2html_wrap_inline33712

BD>+ : mozart=41 tex2html_wrap_inline33712

has the same effect as the sequence of commands

BD>print : This is an example: tex2html_wrap_inline33712

BD>print : and so is this! tex2html_wrap_inline33712

BD>c : beethoven=9 tex2html_wrap_inline33712

BD>c : mozart=41 tex2html_wrap_inline33712

For macro development this feature is best avoided for it can lead to confusion with the arithmetic operator, and is not amenable to searching for a particular command. Note that in the command sequence

BD>if : %fred=3 | print : hello tex2html_wrap_inline33712

BD>+ : goodbye tex2html_wrap_inline33712

the repetition refers to the immediately preceding PRINT:  command only.  



David Wooff
Wed Oct 21 15:14:31 BST 1998