Hi Mark, On Monday, February 17, 2014 12:05:24 AM UTC+1, puzzler wrote: > > I am unable to find a style file that supports clojure code in LaTeX. Can > anyone point me in the right direction? >
I always use Minted for this kind of stuff: See https://code.google.com/p/minted/ It is available in most, if not all, linux distributions. A small example for clojure follows: [...] \usepackage[section]{minted} \begin{document} [...] \begin{minted}[gobble=2, frame=single}{clj} (with-open [reader (-> "META-INF/maven/my-program/my-program/pom.properties" io/resource io/reader)] (-> (doto (java.util.Properties.) (.load reader)) (.getProperty "version"))) \end{minted} [...] \end{document} Keep in mind that pdflatex has to be invoked with -shell-escape in order to allow pygments to be called. If you use latexmk (if you don't know about it, check it out!), then you could use the following command stored in a shell script or Makefile: latexmk -pdf -pdflatex='pdflatex -shell-escape %O %S' -pvc $(REPORT).tex At least it has been immensely useful to me. -- JN -- 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.