You want to write an Maxima expression to a file which can be read by other application e.g. LaTeX.
Lets say the expression is
sys which contains variable
RM. You first want to replace
R_m . Be sure to load
mactex-utilities if you have matrix. Without loading this module, the
tex command generates
TeX output, not
load( "mactex-utilities" )$ sys : RM * a / b * log( 10 )$ texput( RM, "R_m")$ sysTex : tex( sys, false)$ with_stdout( "outout.txt", display( sysTex ) )$
Other methods such as
write put extra non-TeX characters in file.
I get the following in file
outout.txt after executing the above.