Improved typesetting with Koma Script and Syntax highlighted code segments. #30
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hello Prof Downey,
As discussed with you on the email, i have created a pull request with the updated latex file and other changes to the repository. Following are the major changes made by me. Please let me know in case you have any questions.
Updated the latex file to use the scrbook template from Koma Script. This allows improved typesetting of the Chapter and the Document headings.
Changed typesetting engine from pdflatex for the PDF output to XeTeX.
Use of listings class to typeset code examples. Related to this the code segment environment was changed from verbatim to lstlistings. I am proofreading the document to see if any of these should be changed back to verbatim. Please let me know in case you are already aware of some segments.
Replaced the deprecated \tt, \it, \sf with \texttt, \textit and \textsf to reduce the number of warnings thrown by Koma Script.
Updated the options for hyperref.
Fonts that I had used in the original PDF that I had sent to you were Myriad Pro, Minion Pro and Consolas. The PDF looked really good, but these fonts are not free, so replaced them with Linux Libertine, Linux Biolinum and Inconsolata. The rendered PDF looks decent.
Updated the Makefile for both the PDF generation as well as the HTML export using hevea. Undoing the verbatim -> lstlisting change since hevea is barfing on the lstlisting class. I tried a smaller example with lstlisting and that seemed to work fine, but for some reason a longer example doesn't work very well.
As I said earlier, please let me know in case you have questions and I would be happy to answer them. I am hopeful that these changes are useful to you.
Regards,
Vikas