Print (Macro Command)
Print Win1 Win2 Win3
The macro Print command will print specified EES windows and text contained with string variables to the default printer. Win1, Win2, etc. are keywords that appear on the same line as the Print command separated by one or more spaces. The allowable keywords are:
DIAG Diagram Window
EQUn Equations Window
FOR Formatted Equations WIndow
SOLn Solution WIndow
RES Residuals Window
PARn Parametric Table
LOOKn Lookup Table
ARRn Arrays Table
PLOTn Plot Window
Note: n is an integer between 1 and the number of tabs indicating the tab position. If n is not provided then n is assumed to be the currently selected tab.
In addition to the keywords, string variables, e.g. T$ can be included. A page break and font information may be provided in the string variable.
If the string variable starts with keyword \\BREAK, it will force a page break and print what follows that keyword.
If the string variable is empty, i.e.,'', it will force a line space
If the string variable includes the keyword \\FONT after the text that is to be printed, EES will look for the following font characteristics keywords after the \\FONT keyword and format the text accordingly.
BOLD ITALIC UNDERLINE
RED GREEN BLUE BLACK
n (where n is an integer indicating the font size)
Examples:
Print Diag Equ For Arr1 Par2 Look3 Plot1 Plot2
{Print the Diagram, Equations, Formatted Equations, Arrays, Parametric table (2nd tab), Lookup table (3rd tab) and the first and second Plot windows to the default printer}.
The Print macro command may be contained within a $RunMacroAfter clause.
$RunMacroAfter
{Set the default printer to be Adobe PDF. Print the Equations window and the first two Solution windows}
L$='';
T1$='The equations window follows this line. \\Font Underline'
T2$='\\Break This is my solution (2 tabs) \\FONT RED 12 Bold Underline'
PrintSetup PRINTER='Adobe PDF' Orientation=PORTRAIT Copies=1
Print L$ T1$ L$ Equ1 T2$ Sol1 Sol2
$EndMacro
See also: LatexPDF