One can use either "a2ps" or "trueprint" to print source codes. Today, I am going to experiment with "trueprint". A decent source code printing program should have the following requirements:
bash >> trueprint --portrait --language=cxx --intelligent-line-wrap --four-up --page-break-after-function --no-cover-sheet --output=EMMUtil_cpp.ps EMMUtil.cpp
bash >> ps2pdf EMMUtil_cpp.ps EMMUtil_cpp.pdf
bash >> rm EMMUtil_cpp.ps
Please read the man page for further explanations.
good day !!!
- Indentation is done correctly.
- Smart Spacing to avoid leaving out one-two lines of codes in previous page.
- Be able to convert to pdf or ps
- Be able to print two pages on one side
bash >> trueprint --portrait --language=cxx --intelligent-line-wrap --four-up --page-break-after-function --no-cover-sheet --output=EMMUtil_cpp.ps EMMUtil.cpp
bash >> ps2pdf EMMUtil_cpp.ps EMMUtil_cpp.pdf
bash >> rm EMMUtil_cpp.ps
Please read the man page for further explanations.
good day !!!
Comments