tag:blogger.com,1999:blog-582368152716771238.post4271919277463994727..comments2024-03-28T05:14:02.071-05:00Comments on The Grumpy Economist: Sargent onlineJohn H. Cochranehttp://www.blogger.com/profile/04842601651429471525noreply@blogger.comBlogger8125tag:blogger.com,1999:blog-582368152716771238.post-8498898712532465742013-09-12T14:02:27.098-05:002013-09-12T14:02:27.098-05:00Wow! Thanks for sharing these tools. Wow! Thanks for sharing these tools. John H. Cochranehttps://www.blogger.com/profile/04842601651429471525noreply@blogger.comtag:blogger.com,1999:blog-582368152716771238.post-43080774399581048172013-09-12T13:17:03.745-05:002013-09-12T13:17:03.745-05:00A really helpful tool for this kind of thing is is...A really helpful tool for this kind of thing is is pandoc:<br /><br />http://johnmacfarlane.net/pandoc/<br /><br />For R users there's a great package for creating documents like the online textbook you mention above: knitr<br /><br />http://yihui.name/knitr/<br />http://www.crcpress.com/product/isbn/9781482203530<br /><br />I find myself using knitr for pretty much everything these days, from research articles written in LaTeX to teaching material deployed online. Here's an example (math at the bottom):<br /><br />http://www.ditraglia.com/econ103/Rtutorial3.html<br /><br />The preceding example was written in RMarkdown. All the math commands are straight-up LaTeX and everything else is like a stripped down version of HTML. The R code chunks live inside the document so when you compile it the output is automatically updated and included. Best of all, the final webpage is completely self-contained: all images and other material are directly embedded so there's only one file to upload. <br /><br />Python is very cool, but for econometrics it's hard to beat R in my opinion. For those who worry that R is too slow for heavy-duty computation, I recommend the Rcpp package which makes it completely painless to include C++ code in R scripts:<br /><br /> http://dirk.eddelbuettel.com/code/rcpp.html<br /><br />along with the RcppArmadillo package for high-performance matrix algebra:<br /><br />http://dirk.eddelbuettel.com/code/rcpp.armadillo.html<br />http://arma.sourceforge.net/docs.htmlFrank DiTragliahttp://www.ditraglia.comnoreply@blogger.comtag:blogger.com,1999:blog-582368152716771238.post-6371941027301696262013-09-09T05:53:38.677-05:002013-09-09T05:53:38.677-05:00Prof. Cochrane,
Have you tried WinEdt? WinEdt is ...Prof. Cochrane,<br /><br />Have you tried WinEdt? WinEdt is a latex editor and provides a way for you to convert latex to html. I tried it once and was satisfied. To convert latex to hmtl: open WinEdt, and go to Tex -> Html -> Latex (or Tex) -> Html. I believe that many other latex editors provide such a functionality.Bihemonoreply@blogger.comtag:blogger.com,1999:blog-582368152716771238.post-47252492986946333382013-09-07T09:37:57.784-05:002013-09-07T09:37:57.784-05:00Cooler than you think: they use sphinx, which then...Cooler than you think: they use sphinx, which then outputs html, latex, or pdf as desired. Also does syntax highlighting on code snippets. <br /><br />Links:<br />* Sphinx: http://sphinx-doc.org/<br />* Example of code (look for "show source" on the right): http://johnstachurski.net/emet/index.htmlDave Backushttps://www.blogger.com/profile/11472846910681816429noreply@blogger.comtag:blogger.com,1999:blog-582368152716771238.post-81492543001449992262013-09-06T11:21:06.571-05:002013-09-06T11:21:06.571-05:00How do you translate latex or pdf directly to html...How do you translate latex or pdf directly to html? I know mathjax, and tried to use it for this blog. Alas it didn't work on mobile devices so I stopped. John H. Cochranehttps://www.blogger.com/profile/04842601651429471525noreply@blogger.comtag:blogger.com,1999:blog-582368152716771238.post-79785975080048290052013-09-06T11:14:49.252-05:002013-09-06T11:14:49.252-05:00Python is used to code up the quantitative exercis...Python is used to code up the quantitative exercises in their book.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-582368152716771238.post-53273597204262482552013-09-06T11:09:44.232-05:002013-09-06T11:09:44.232-05:00It looks like the website is all in Latex code and...It looks like the website is all in Latex code and just translated from the pdf. I'm sure there's an easy way to set that up, but I have pretty much no idea what that is. <br /><br />I read most of the pdf. I thought the python introduction was one of the better ones I've seen (mainly since it was well-written, looked good, and included some stuff I wasn't already familiar with).Johnhttps://www.blogger.com/profile/01457388998903348000noreply@blogger.comtag:blogger.com,1999:blog-582368152716771238.post-60801660031987795312013-09-06T11:08:58.948-05:002013-09-06T11:08:58.948-05:00It seems they are using MathJax (http://www.mathja...It seems they are using MathJax (http://www.mathjax.org/) to typeset equations, which simply renders the LaTeX math markup you're probably already familiar with. No need to learn python for that. Tobiashttps://www.blogger.com/profile/09171744241733471816noreply@blogger.com