REDUCE 3.4, 15-Jul-91 ...
1: % TeX-REDUCE-Interface 0.50
% set GREEK asserted
% set LOWERCASE asserted
% \tolerance 10
% \hsize=150mm
(TRI)
% load tri;
global '(textest!*);
symbolic procedure texexa(code);
begin
prin2 "\TRIexa{"; prin2 textest!*;
if !*TeXindent then prin2 "}{TeXindent}{" else
if !*TeXbreak then prin2 "}{TeXBreak}{" else
if !*TeX then prin2 "TeX" else prin2 "}{---}{";
if !*TeXbreak then prin2 tolerance!* else prin2 "---";
prin2 "}{"; prin2 code; prin2 "}"; terpri()
end;
TEXEXA
algebraic procedure exa(expression,code);
begin symbolic texexa code; return expression end;
EXA
% ----------------------------------------------------------------------
% Examples from the Integrator Test File
% ----------------------------------------------------------------------
symbolic(textest!*:="Integration");
"Integration"
texsetbreak(120,1000);
% \tolerance 1000
% \hsize=120mm
on texindent;
off echo;
Quitting