This is a very helpful example. Along similar lines, I was thinking it would be cool to have a document of 4clojure problems/solutions/tests. I haven't used tangle/weave yet, which would be pretty useful for that. I think it would be a great learning resource to create an org-based book of "best of" idiomatic Clojure solutions to all 4clojure (or Euler) problems and solutions. As long as you don't get too mired in what constitutes "best" :)
Btw, it would be interesting to see the resulting pdf from you Kata doc.. M. On Monday, March 4, 2013 2:25:42 PM UTC-5, Gary Johnson wrote: > > +1 for org-babel. I put together an example project solving the Potter > Kata on github several months ago, so if someone is looking for some > examples of how you might do LP with org-babel, take a look at it here: > > https://github.com/lambdatronic/org-babel-example > > Happy hacking, > ~Gary > > On Sunday, March 3, 2013 6:03:51 PM UTC-5, greg r wrote: >> >> Here's a little project I worked on: >> >> https://github.com/Greg-R/incanterchartcustom >> >> I'm just now learning git, so I hope the files are intact in the >> repository. I cloned to another machine and they appear to be OK. >> >> The Incanter chart PDF document shows what is possible with regard to >> documenting code and showing a nice export result. >> The repository also includes the source .org file. In theory, if you >> have everything set up correctly you can reproduce the >> PDF document exactly. Since it is generating PDF charts, there are lots >> of side-effects and whatever directory you are running >> in will get filled up with the chart files. I used LaTeX snippets within >> the org file to include the chart graphics in the exported tex >> file and thus the eventual PDF. >> >> I don't use C-c C-e p. This doesn't always work, and I prefer C-c C-e l >> which exports the .tex file only. I open the .tex file with >> the Texworks application which has worked really well for me for editing >> LaTeX documents. Texworks has the ability to jump between >> the PDF and the .tex file and vice-versa, which makes troubleshooting >> much easier. >> >> I did a bunch of data processing for work using org, Clojure, and >> Incanter to produce reports in PDF. I created several Leiningen projects >> to attack various aspects of the data manipulation. Then within Clojure >> code blocks in org, the various namespaces are used to process >> data at the appropriate points in the document. None of the output was >> inserted directly into the org file. That turned out to be impractical >> as some of the generated documents were hundreds of pages long. The >> Clojure/Incanter code chunks generated .tex files which were included >> in the exported output via LaTeX code blocks. Really in this case the >> org-babel system operated more as a document/code organizer than >> as a programming system. But what an organizer it is!!! I saved >> hundreds, maybe thousands of man hours of manual document generating. >> >> There were several technologies to learn to get it all to work in harmony: >> >> Clojure >> Incanter >> Emacs (24.2) (including some Elisp in the .emacs file) >> org >> babel >> Leiningen >> LaTeX >> Texworks >> nrepl (this will require some extra stuff in the .emacs file to get babel >> to work) >> >> It took a lot of work, but I think the org-babel system is really worth >> it! >> >> Regards, >> Greg >> >> On Saturday, March 2, 2013 11:52:07 PM UTC-5, Mark C wrote: >>> >>> Worked like a charm. Thanks! >>> >>> Babel is fun. I really like the idea of being able to code in multiple >>> languages in one document - and have return values from one feed another. >>> And I just found out you can include TeX too - just starting to play with >>> that. I'd love to hear more about how you use clojure and org mode together. >>> >>> Mark >>>> >>>> >>>> -- -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.