next up previous contents index
Next: Fully restarting the program Up: General commands Previous: Pausing during output

Displaying other output

 


tex2html_wrap_inline33790 tex2html_wrap_inline33790 Syntax

BD>print : This is some text, followed by the value of this constant: %fred is (%fred) tex2html_wrap_inline33712

BD>print : This will not throw a carriage-return or line-feed $ tex2html_wrap_inline33712

tex2html_wrap_inline33806 tex2html_wrap_inline33806

The PRINT:  command is used to output information to the screen: headings, titles, general information, and various numerical values. It has a special status in [B/D] as the argument to the print: command is not parsed in the same way as most of the other [B/D] commands. In fact parsing is limited to the following exceptions.

Otherwise, redundant spaces are not removed from the text in the PRINT:  command, and the case of the text is not changed. This allows us to format text output nicely, capitalising wherever we want, and so forth.

The second form of the syntax, where the text following the command is terminated by the `$' symbol, supresses the carriage return and linefeed usually output. This allows text from different PRINT:  statements to be output on the same line, as in the following example:

BD>print : Beware the $ tex2html_wrap_inline33712

BD>if : %x | print : dog! | else : | print : ides of March! tex2html_wrap_inline33712

where tex2html_wrap_inline39272 might be some constant taking values zero or one.  


next up previous contents index
Next: Fully restarting the program Up: General commands Previous: Pausing during output

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