{"id":676,"date":"2009-12-12T15:18:56","date_gmt":"2009-12-12T19:18:56","guid":{"rendered":"http:\/\/www.dr-chuck.com\/wordpress\/?p=676"},"modified":"2011-12-17T12:31:40","modified_gmt":"2011-12-17T16:31:40","slug":"learning-latex-to-remix-the-think-python-book-to-produce-python-for-informatics","status":"publish","type":"post","link":"https:\/\/www.dr-chuck.com\/csev-blog\/2009\/12\/learning-latex-to-remix-the-think-python-book-to-produce-python-for-informatics\/","title":{"rendered":"Learning LaTeX to remix the &#8220;Think Python&#8221; book to produce &#8220;Python for Informatics&#8221;"},"content":{"rendered":"<p>I am thinking seriously about adopting <a href=\"http:\/\/www.greenteapress.com\/thinkpython\/\" target=\"_new\">&#8220;Think Python&#8221;<\/a> by <a href=\"http:\/\/allendowney.com\/\" target=\"_new\">Allen B. Downey<\/a> as the SI502 textbook.  I like this book in particular because it is open and as such, I can alter it towards my ultimate goal of a book titled &#8220;Python for Informatics&#8221; which is focused on data analysis in Python.   Think Python is a good starting point and saves me from writing the basic stuff about variables, loops, etc.<\/p>\n<p>\nIt is written in LaTeX and so I need to learn LaTeX &#8211; here are my notes so far for getting LaTeX up and running under Mac OS\/X and getting the ThinkPython book to render.<\/p>\n<pre>\nInstall the MacTeX-2009 Distribution\nhttp:\/\/www.tug.org\/mactex\/2009\/\nIt needs a style file which you install in the main book directory:\nLATEX to HTML - http:\/\/hevea.inria.fr\/\ncurl -O http:\/\/hevea.inria.fr\/distri\/hevea.sty\nThen I run these commands manually since I don't\nhave make installed because it is my\nAir is always short on disk space :(\nlatex book\nmakeindex book\nlatex book\ndvips -t letter -Ppdf -o thinkpython.ps book\nopen thinkpython.ps\n<\/pre>\n<p>\nThen the issue is how to make new figures &#8211; Allen uses the classic XFig &#8211; I am looking for an alternative &#8211; I found two.<\/p>\n<p>\nI found  <a href=\"http:\/\/jpicedt.sourceforge.net\/\" target=\"_new\">jPicEdt<\/a> described on a <a href=\"http:\/\/forums.macrumors.com\/showthread.php?t=660038\" target=_new>Forum on MacRumors<\/a>.  But I simply could not figure out how to change Font size &#8211; so I kept looking.<\/p>\n<p>\nThen I found  <a href=\"http:\/\/latexdraw.sourceforge.net\/download.html\" target=\"_new\">LaTeXDraw<\/a> &#8211; and while the UI confuses me &#8211; I did figure out how to put up a text box and change the font in about 45 minutes &#8211; urrg.  So I think I can make new EPS figures if I want to add a chapter or two to the book.<\/p>\n<p>\nSo it looks like I can write text, make figures and off I go.  I might even learn to like LaTeX&#8230; Many thanks to Allen B. Downey for having a great book with a nice copyright.   Off I go remixing your stuff&#8230;  :)<\/p>\n<p>\n","protected":false},"excerpt":{"rendered":"<p>I am thinking seriously about adopting &#8220;Think Python&#8221; by Allen B. Downey as the SI502 textbook. I like this book in particular because it is open and as such, I can alter it towards my ultimate goal of a book titled &#8220;Python for Informatics&#8221; which is focused on data analysis in Python. Think Python is [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-676","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/www.dr-chuck.com\/csev-blog\/wp-json\/wp\/v2\/posts\/676","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.dr-chuck.com\/csev-blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.dr-chuck.com\/csev-blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.dr-chuck.com\/csev-blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.dr-chuck.com\/csev-blog\/wp-json\/wp\/v2\/comments?post=676"}],"version-history":[{"count":1,"href":"https:\/\/www.dr-chuck.com\/csev-blog\/wp-json\/wp\/v2\/posts\/676\/revisions"}],"predecessor-version":[{"id":2787,"href":"https:\/\/www.dr-chuck.com\/csev-blog\/wp-json\/wp\/v2\/posts\/676\/revisions\/2787"}],"wp:attachment":[{"href":"https:\/\/www.dr-chuck.com\/csev-blog\/wp-json\/wp\/v2\/media?parent=676"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.dr-chuck.com\/csev-blog\/wp-json\/wp\/v2\/categories?post=676"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.dr-chuck.com\/csev-blog\/wp-json\/wp\/v2\/tags?post=676"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}