4 ms·
Many academic papers and books do this. For example, see the famous paper "Why Functional Programming Matters" [1]. To me, having non-monospaced font in a paper
by mavelikara 10y ago
Many academic papers and books do this. For example, see the famous paper "Why Functional Programming Matters" [1]. To me, having non-monospaced font in a paper or book is a signal that the contents are "too academic" to be of practical use. This is a very weak signal though - for example, Sally Goldman's excellent book "A Practical Guide to Data Structures and Algorithms using Java"[2] has pages and pages of useful Java code in non-monospaced font.
[1] https://www.cs.kent.ac.uk/people/staff/dat/miranda/whyfp90.pdf https://www.cs.kent.ac.uk/people/staff/dat/miranda/whyfp90.p...
[2] http://www.amazon.com/Practical-Structures-Algorithms-Chapman-Applied/dp/158488455X http://www.amazon.com/Practical-Structures-Algorithms-Chapma...
- kbenson 10y agoI think to some degree this is influenced by norms of publishing, some by the constraints of the medium (you have very limited horizontal space), and some by the authors (often) already using italics and bolding within the code for emphasis (such as in your second reference).
- copperx 10y agoStrousoup 's books always have the C++ code in promotional size.