Whenever I print a text file with the lpr or lp commands, the words are cut off at the end of one line and continue onto the other; for example, 'understand' would be split into 'unde' at the end of line one and 'rstand' at the beginning of other. Is there a way to justify the text of a file somehow for printing ? I've tried lpr -p and -o media=a4, and fit-to-page options, but the words are still cut off.
Solutions that worked for me:
enscriptandmpageto format your text prior to passing it tolporlpr. syntax_highlight <source_file> | lpr. Shown here too: https://kb.iu.edu/d/abbp – slm Nov 30 '14 at 03:43