<?xml version="1.0" encoding="UTF-8"?> <rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" ><channel><title>Kai Arzheimer &#187; postscript</title> <atom:link href="http://www.kai-arzheimer.com/blog/tag/postscript/feed/" rel="self" type="application/rss+xml" /><link>http://www.kai-arzheimer.com/blog</link> <description>A political science blog</description> <lastBuildDate>Sat, 21 Jan 2012 19:06:37 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <item><title>Makefile helps with latex, too</title><link>http://www.kai-arzheimer.com/blog/makefile-helps-with-latex-too/</link> <comments>http://www.kai-arzheimer.com/blog/makefile-helps-with-latex-too/#comments</comments> <pubDate>Thu, 10 Apr 2008 10:25:54 +0000</pubDate> <dc:creator>kai</dc:creator> <category><![CDATA[Data and Methods]]></category> <category><![CDATA[My Stuff]]></category> <category><![CDATA[beamer]]></category> <category><![CDATA[eps]]></category> <category><![CDATA[latex]]></category> <category><![CDATA[make]]></category> <category><![CDATA[Makefile]]></category> <category><![CDATA[meta post]]></category> <category><![CDATA[pdf]]></category> <category><![CDATA[pdflatex]]></category> <category><![CDATA[postscript]]></category> <category><![CDATA[pstoedit]]></category> <category><![CDATA[stata]]></category><guid isPermaLink="false">http://polsci.wordpress.com/2008/04/10/makefile-helps-with-latex-too/</guid> <description><![CDATA[A couple of weeks ago, I posted an article on how make and Makefiles can help you to organise your Stata projects. If you are working in a unix environnment, you&#8217;ll already have make installed. If you work under Windows, install GNU make &#8211; it&#8217;s free, and it can make your Stata day. Rather unsurprisingly, [...]]]></description> <content:encoded><![CDATA[<p>A couple of weeks ago, I posted an article on how <em><a href="http://en.wikipedia.org/wiki/Make_%28software%29" target="_blank">make</a></em> and Makefiles can help you to organise your Stata projects. If you are working in a unix environnment, you&#8217;ll already have make installed. If you work under Windows, install GNU make &#8211; it&#8217;s free, and <a href="http://polsci.wordpress.com/2008/03/20/how-stata-and-a-makefile-can-make-your-day/" target="_blank">it can make your Stata day</a>. Rather unsurprisingly, <em>make</em> is also extremely useful if you have large or medium-sized latex project (or if you want to include tables and/or graphs produced by Stata) in a latex document. For instance, this comes handy if you have eps-Figures and use pdflatex. pdflatex produces pdf files instead of dvi files. If you produces slides with, this can save you a lot of time because you don&#8217;t have to go through the latex &#8211; dvips &#8211; ps2pdf cycle. However, pdflatex cannot read eps files: you have to convert your eps files with pstoedit to the meta post format, then use meta post to convert them to mps (which can be read by pdflatex). With this Makefile snippet, everything happens automagically:</p><p><code><br /> #New implicit rules for conversion of eps-&gt;mp-&gt;mps<br /> #Change path if you have installed pstoedit in some other place<br /> %.mp : %.eps<br /> c:\pstoedit/pstoedit.exe -f mpost  $*.eps $*.mp</code></p><p><span id="more-21"></span></p><p>%.mps: %.mp<br /> mpost $*.mp<br /> mv $*.1 $*.mps<br /> rm $*.mp</p><p>#Now specify a target</p><p>presentation.pdf: presentation.tex mytab1.tex myfig.mps</p><p>#Optional: if you want to create dataset x.eps, run x.do<br /> #Stata must be in your path<br /> %.eps : %.do<br /> \tab wstata -e do $&lt;</p><p>Now type make presentation.pdf, and make will call Stata, pstoedit, metapost and pdflatex as required. If you need more figures, just write the do-file and add a dependency.</p><div align="center">Social Bookmarks:<br /><a href="http://del.icio.us/post?url=http://polsci.wordpress.com/2008/04/11/makefile-helps-with-latex-toomakefile-helps-with-latex-too//"><img src="http://archaeoastronomy.files.wordpress.com/2007/01/delicious.png" border="0" title="Makefile helps with latex, too photo" alt="delicious Makefile helps with latex, too" /></a><a href="http://bluedot.us/Authoring.aspx?u=http://polsci.wordpress.com/2008/04/11/makefile-helps-with-latex-toomakefile-helps-with-latex-too//"><img src="http://archaeoastronomy.files.wordpress.com/2007/01/bluedot.png" border="0" title="Makefile helps with latex, too photo" alt="bluedot Makefile helps with latex, too" /></a><a href="http://www.connotea.org/add?continue=return&amp;uri=http://polsci.wordpress.com/2008/04/11/makefile-helps-with-latex-toomakefile-helps-with-latex-too//"><img src="http://archaeoastronomy.files.wordpress.com/2007/01/connotea.png" border="0" title="Makefile helps with latex, too photo" alt="connotea Makefile helps with latex, too" /></a><a href="http://digg.com/submit?phase=2&amp;url=http://polsci.wordpress.com/2008/04/11/makefile-helps-with-latex-toomakefile-helps-with-latex-too//"><img src="http://archaeoastronomy.files.wordpress.com/2007/01/digg.png" border="0" title="Makefile helps with latex, too photo" alt="digg Makefile helps with latex, too" /></a><a href="http://www.furl.net/storeIt.jsp?u=http://polsci.wordpress.com/2008/04/11/makefile-helps-with-latex-toomakefile-helps-with-latex-too//"><img src="http://archaeoastronomy.files.wordpress.com/2007/01/furl.png" border="0" title="Makefile helps with latex, too photo" alt="furl Makefile helps with latex, too" /></a><a href="http://ma.gnolia.com/beta/bookmarklet/add?url=http://polsci.wordpress.com/2008/04/11/makefile-helps-with-latex-toomakefile-helps-with-latex-too//"><img src="http://archaeoastronomy.files.wordpress.com/2007/01/magnolia.png" border="0" title="Makefile helps with latex, too photo" alt="magnolia Makefile helps with latex, too" /></a><a href="http://www.newsvine.com/_tools/seed&amp;save?u=http://polsci.wordpress.com/2008/04/11/makefile-helps-with-latex-toomakefile-helps-with-latex-too//"><img src="http://archaeoastronomy.files.wordpress.com/2007/01/newsvine.png" border="0" title="Makefile helps with latex, too photo" alt="newsvine Makefile helps with latex, too" /></a><a href="http://reddit.com/submit?url=http://polsci.wordpress.com/2008/04/11/makefile-helps-with-latex-toomakefile-helps-with-latex-too//"><img src="http://archaeoastronomy.files.wordpress.com/2007/01/reddit.png" border="0" title="Makefile helps with latex, too photo" alt="reddit Makefile helps with latex, too" /></a><a href="http://www.spurl.net/spurl.php?url=http://polsci.wordpress.com/2008/04/11/makefile-helps-with-latex-toomakefile-helps-with-latex-too//"><img src="http://archaeoastronomy.files.wordpress.com/2007/01/spurl.png" border="0" title="Makefile helps with latex, too photo" alt="spurl Makefile helps with latex, too" /></a><a href="http://www.stumbleupon.com/submit?url=http://polsci.wordpress.com/2008/04/11/makefile-helps-with-latex-toomakefile-helps-with-latex-too//"><img src="http://archaeoastronomy.files.wordpress.com/2007/02/stumbleit.gif" border="0" title="Makefile helps with latex, too photo" alt="stumbleit Makefile helps with latex, too" /></a><a href="http://www.technorati.com/cosmos/search.html?url=http://polsci.wordpress.com/2008/04/11/makefile-helps-with-latex-toomakefile-helps-with-latex-too//"><img src="http://archaeoastronomy.files.wordpress.com/2007/01/technorati.png" border="0" title="Makefile helps with latex, too photo" alt="technorati Makefile helps with latex, too" /></a><a href="http://archaeoastronomy.wordpress.com/social-linking/"><img src="http://archaeoastronomy.files.wordpress.com/2007/01/que.png" border="0" title="Makefile helps with latex, too photo" alt="que Makefile helps with latex, too" /></a></div><p>Technorati Tags: <a class="performancingtags" rel="tag" href="http://technorati.com/tag/make">make</a>, <a class="performancingtags" rel="tag" href="http://technorati.com/tag/latex">latex</a>, <a class="performancingtags" rel="tag" href="http://technorati.com/tag/Makefile">Makefile</a>, <a class="performancingtags" rel="tag" href="http://technorati.com/tag/Stata">Stata</a>, <a class="performancingtags" rel="tag" href="http://technorati.com/tag/political science">political science</a>, <a class="performancingtags" rel="tag" href="http://technorati.com/tag/political">political</a>, <a class="performancingtags" rel="tag" href="http://technorati.com/tag/science">science</a>, <a class="performancingtags" rel="tag" href="http://technorati.com/tag/meta post">meta post</a>, <a class="performancingtags" rel="tag" href="http://technorati.com/tag/pstoedit">pstoedit</a>, <a class="performancingtags" rel="tag" href="http://technorati.com/tag/postscript">postscript</a>, <a class="performancingtags" rel="tag" href="http://technorati.com/tag/eps">eps</a>, <a class="performancingtags" rel="tag" href="http://technorati.com/tag/pdf">pdf</a>, <a class="performancingtags" rel="tag" href="http://technorati.com/tag/pdflatex">pdflatex</a>, <a class="performancingtags" rel="tag" href="http://technorati.com/tag/beamer">beamer</a></p><div class="su-linkbox" id="post-21-linkbox"><div class="su-linkbox-label">Link to this post!</div><div class="su-linkbox-field"><input type="text" value="&lt;a href=&quot;http://www.kai-arzheimer.com/blog/makefile-helps-with-latex-too/&quot;&gt;Makefile helps with latex, too&lt;/a&gt;" onclick="javascript:this.select()" readonly="readonly" style="width: 100%;" /></div></div>]]></content:encoded> <wfw:commentRss>http://www.kai-arzheimer.com/blog/makefile-helps-with-latex-too/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced
Database Caching using disk: basic
Object Caching 1029/1096 objects using disk: basic

Served from: www.kai-arzheimer.com @ 2012-02-08 16:40:52 -->
