Symbol Dynamics® EXP®
The Scientific Word Processor
EXP 6.0 and later versions have this capability. In the Document Options dialog box, there is an option called "Print with line numbers".