Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improved typesetting with Koma Script and Syntax highlighted code segments. #30

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

vimishra
Copy link

@vimishra vimishra commented Apr 7, 2017

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.

  1. Updated the latex file to use the scrbook template from Koma Script. This allows improved typesetting of the Chapter and the Document headings.

  2. Changed typesetting engine from pdflatex for the PDF output to XeTeX.

  3. 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.

  4. Replaced the deprecated \tt, \it, \sf with \texttt, \textit and \textsf to reduce the number of warnings thrown by Koma Script.

  5. Updated the options for hyperref.

  6. 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.

  7. 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant