<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-2326983778973343698</id><updated>2011-09-08T11:17:40.509-07:00</updated><category term='xfig'/><category term='math'/><category term='pdf'/><category term='latex'/><category term='dia'/><title type='text'>ËricsBlög</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://thisisalsomypassw.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2326983778973343698/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://thisisalsomypassw.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Eric Böhmler</name><uri>http://www.blogger.com/profile/03626767338386196411</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_hFo0oHqsJgQ/TBaOuDZVpiI/AAAAAAAAI-g/UbFmL9MGcCg/s1600-R/AIbEiAIAAABECIL32oWM6KLhkgEiC3ZjYXJkX3Bob3RvKihhY2U1ZWFhMTVlMTkyMWU3NTMyMDIxM2QzODYwMGRmZjZhNWQ0Y2ExMAFm46ay_hj4EWftqxNZqsXeZxgetg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>2</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-2326983778973343698.post-357036607685626734</id><published>2010-12-05T08:45:00.000-08:00</published><updated>2011-03-04T15:20:11.813-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='latex'/><category scheme='http://www.blogger.com/atom/ns#' term='dia'/><category scheme='http://www.blogger.com/atom/ns#' term='pdf'/><category scheme='http://www.blogger.com/atom/ns#' term='math'/><category scheme='http://www.blogger.com/atom/ns#' term='xfig'/><title type='text'>Create diagrams with math symbols from Dia / Xfig to embed in LaTeX</title><content type='html'>Ok, here's the first reasonable post which originates from the frustrating search of how to embed diagrams in your LaTeX document. Of course there are various ways to embed vector graphics but things get tricky if you want to use math symbols in the figure. Then you need TeX to render the math stuff.&lt;br /&gt;&lt;br /&gt;What finally worked for me was to draw nice diagrams in Dia, write the labels as TeX source, export it as a .fig file and then convert it to PDF. For the last step you need Linux or maybe Cygwin for Windows. When you have a PDF you can embed it into your LaTeX document whether you're using pdflatex or latex.&lt;br /&gt;&lt;br /&gt;The short version:&lt;br /&gt;&lt;ol&gt;&lt;li&gt;&lt;span style="font-family: courier new;"&gt;$&amp;gt; &lt;/span&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;sudo apt-get install fig2ps&lt;/span&gt; &lt;/li&gt;&lt;li&gt;Write TeX - math code in your diagram, surrounded by $-signs&lt;/li&gt;&lt;li&gt;Don't use special characters like underscores in non-math labels (or escape them) &lt;/li&gt;&lt;li&gt;Export diagram from Dia to &lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;.fig&lt;/span&gt; (Xfig format)&lt;/li&gt;&lt;li&gt;&lt;span style="font-family: courier new;"&gt;$&amp;gt; fig2pdf yourDia.fig&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family: courier new;"&gt;\includegraphics{yourDia.pdf} &lt;/span&gt; &lt;/li&gt;&lt;/ol&gt;The long version:&lt;br /&gt;Step 1 - Create diagram&lt;br /&gt;As you would write formulas in TeX you have to set Dollar signs around your code. So to write the fraction 4/5 the label in Dia would be&lt;span style="font-family: courier new;"&gt; $\frac{4}{5}$&lt;/span&gt;&lt;br /&gt;Finally your diagram will look something like this. Hopefully not as ugly if "snap to grid" worked better for you ;) You can see it won't be easy to set the label to the correct position as the rendered math text will (usually) be more compact.&lt;a href="http://1.bp.blogspot.com/_hFo0oHqsJgQ/TPvKp_hohKI/AAAAAAAAJXY/IqCJQeDZWEk/s1600/step1.PNG"&gt;&lt;img alt="" border="0" id="BLOGGER_PHOTO_ID_5547250188812846242" src="http://1.bp.blogspot.com/_hFo0oHqsJgQ/TPvKp_hohKI/AAAAAAAAJXY/IqCJQeDZWEk/s320/step1.PNG" style="cursor: pointer; display: block; height: 115px; margin: 0px auto 10px; text-align: center; width: 320px;" /&gt;&lt;/a&gt;Step 2 - Export and convert&lt;br /&gt;Now export the diagram to a .fig file (Xfig format). The conversion is then done painlessly by the perl script &lt;span style="font-family: courier new;"&gt;fig2pdf &lt;/span&gt;(or &lt;span style="font-family: courier new;"&gt;fig2ps&lt;/span&gt;) which is a part of &lt;a href="http://www.texmacs.org/"&gt;TeXmacs&lt;/a&gt;. I guess you can find this in  the standard repositories of most Linux distros. For Windows Cygwin should probably work too, any feedback is welcome. In Ubuntu just apt-get the package fig2ps. There is another script which I didn't test with the same name for the same purpose from &lt;a href="http://www.few.vu.nl/%7Ewkager/fig2pdf.htm"&gt;here&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;The compilation, rendering, composition,.. (dont really care) is simply done by:&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;fig2pdf yourDia.fig&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://3.bp.blogspot.com/_hFo0oHqsJgQ/TPvWZa3sLrI/AAAAAAAAJXg/hYNZz6zwSqM/s1600/output.png"&gt;&lt;img alt="" border="0" id="BLOGGER_PHOTO_ID_5547263098234875570" src="http://3.bp.blogspot.com/_hFo0oHqsJgQ/TPvWZa3sLrI/AAAAAAAAJXg/hYNZz6zwSqM/s320/output.png" style="cursor: pointer; display: block; height: 122px; margin: 0px auto 10px; text-align: center; width: 320px;" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Be&lt;span style="font-style: italic;"&gt; careful not to use special characters like &lt;/span&gt;&lt;span style="font-style: italic;"&gt;underscores&lt;/span&gt;&lt;span style="font-style: italic;"&gt; &lt;/span&gt;in your non-math labels or TeX is gonna mess things up. The fig2pdf script will hang during compilation. I guess you could for example escape underscores and backslashes as &lt;span style="font-family: courier new;"&gt;\_&lt;/span&gt; and &lt;span style="font-family: courier new;"&gt;\\&lt;/span&gt; but I didn't try that.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2326983778973343698-357036607685626734?l=thisisalsomypassw.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://thisisalsomypassw.blogspot.com/feeds/357036607685626734/comments/default' title='Kommentare zum Post'/><link rel='replies' type='text/html' href='http://thisisalsomypassw.blogspot.com/2010/12/create-diagrams-with-math-symbols-from.html#comment-form' title='0 Kommentare'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2326983778973343698/posts/default/357036607685626734'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2326983778973343698/posts/default/357036607685626734'/><link rel='alternate' type='text/html' href='http://thisisalsomypassw.blogspot.com/2010/12/create-diagrams-with-math-symbols-from.html' title='Create diagrams with math symbols from Dia / Xfig to embed in LaTeX'/><author><name>Eric Böhmler</name><uri>http://www.blogger.com/profile/03626767338386196411</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_hFo0oHqsJgQ/TBaOuDZVpiI/AAAAAAAAI-g/UbFmL9MGcCg/s1600-R/AIbEiAIAAABECIL32oWM6KLhkgEiC3ZjYXJkX3Bob3RvKihhY2U1ZWFhMTVlMTkyMWU3NTMyMDIxM2QzODYwMGRmZjZhNWQ0Y2ExMAFm46ay_hj4EWftqxNZqsXeZxgetg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_hFo0oHqsJgQ/TPvKp_hohKI/AAAAAAAAJXY/IqCJQeDZWEk/s72-c/step1.PNG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2326983778973343698.post-7430608306014640787</id><published>2010-06-14T13:19:00.000-07:00</published><updated>2010-06-14T13:30:49.939-07:00</updated><title type='text'>Hello World</title><content type='html'>There's nothing to see here, please move along.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2326983778973343698-7430608306014640787?l=thisisalsomypassw.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://thisisalsomypassw.blogspot.com/feeds/7430608306014640787/comments/default' title='Kommentare zum Post'/><link rel='replies' type='text/html' href='http://thisisalsomypassw.blogspot.com/2010/06/hello-world.html#comment-form' title='0 Kommentare'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2326983778973343698/posts/default/7430608306014640787'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2326983778973343698/posts/default/7430608306014640787'/><link rel='alternate' type='text/html' href='http://thisisalsomypassw.blogspot.com/2010/06/hello-world.html' title='Hello World'/><author><name>Eric Böhmler</name><uri>http://www.blogger.com/profile/03626767338386196411</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_hFo0oHqsJgQ/TBaOuDZVpiI/AAAAAAAAI-g/UbFmL9MGcCg/s1600-R/AIbEiAIAAABECIL32oWM6KLhkgEiC3ZjYXJkX3Bob3RvKihhY2U1ZWFhMTVlMTkyMWU3NTMyMDIxM2QzODYwMGRmZjZhNWQ0Y2ExMAFm46ay_hj4EWftqxNZqsXeZxgetg'/></author><thr:total>0</thr:total></entry></feed>
