Is it possible to format a mathematica output in a way that all the fractional numbers are written first followed by other constants or functions?
Example:
output= 12/7*x + 120/17*x*y
or
output= (12*x)/7 + 120/17*x*y
which when saved in a file becomes
(12*x)/7 + (120*x*y)/17
However I was asking if the output can be formatted in the following form
12/7*x + 120/17*x*y
PS. I am wring the expression as a .m extension and running this file through a terminal. I am not using notebook .nb interface.