Discussion:
Use of 'code' environments for assignment PDFs
(too old to reply)
Muhammad tauqir
2011-06-12 00:49:57 UTC
Permalink
Hello,

I wanted to ask if there's a reason why the assignments do not use latex
packages like {listings} to include code?

Its easier for the person who typesets the assignments and also for us
to read.

Thanks,
_______________________________
Regards,
Muhammad Tauqir
Peter A. Buhr
2011-06-12 03:40:01 UTC
Permalink
Post by Muhammad tauqir
I wanted to ask if there's a reason why the assignments do not use latex
packages like {listings} to include code?
Its easier for the person who typesets the assignments and also for us
to read.
The package used to include code is lgrind. It is easer to use than (listing},
so you need not worry about our time, and produces output that is superior to
{listing}.

Precisely what is it about the output of the code that offends thy?
Muhammad tauqir
2011-06-12 14:47:38 UTC
Permalink
Sorry, its not that something offends me but just that the code is not
in a monospace font, so its harder to read (probably that's just me).
Post by Peter A. Buhr
Post by Muhammad tauqir
I wanted to ask if there's a reason why the assignments do not use latex
packages like {listings} to include code?
Its easier for the person who typesets the assignments and also for us
to read.
The package used to include code is lgrind. It is easer to use than (listing},
so you need not worry about our time, and produces output that is superior to
{listing}.
Precisely what is it about the output of the code that offends thy?
Peter A. Buhr
2011-06-12 20:30:09 UTC
Permalink
Post by Muhammad tauqir
Sorry, its not that something offends me but just that the code is not
in a monospace font, so its harder to read (probably that's just me).
The current setup uses variable-width san-serf for all text, with keywords in
bold and comments in italic. The exception is strings, which are in a monospace
font. The code is suppose to contrast reasonably well with the Times serf font
used for non-code text. The main problem with using a monospace font for code
is the length of line; i.e., longer lines of code run off the edge of the page
due to the wide spacing of the letters. As well, many people find monospace
fonts old fashion (and possibly hard to read ;-). I believe the last typewrite
plant in India has ceased production so the days of monospace fonts are
probably numbered. 8-)

So some effort has been made to make the code readable while allowing code to
fit on both the notes and the slides. It is impossible to please everyone's
taste when it comes to aesthetic issues like font shape. At least you know the
choices made for formatting code are not random even if you disapprove of them.

Any addition discussion on this topic should be done outside this newsgroup as
the topic is not relevant to the group.

Loading...