<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.da.vidr.cc/~d/styles/itemcontent.css"?><rss xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0"><channel><title>da.vidr.cc</title><link>http://da.vidr.cc/</link><description /><language>en</language><lastBuildDate>Sun, 14 Mar 2010 22:04:05 -0000</lastBuildDate><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.da.vidr.cc/DavidRobertsBlog" /><feedburner:info uri="davidrobertsblog" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><geo:lat>-27.466667</geo:lat><geo:long>153.033333</geo:long><image><link>http://purl.org/david</link><url>http://purl.org/david/avatar</url><title>Avatar</title></image><item><title>LLJVM 0.2: C to JVM Bytecode Compiler
</title><link>http://feeds.da.vidr.cc/~r/DavidRobertsBlog/~3/YhT-WcJpRTM/</link><description>&lt;p&gt;LLJVM 0.2 has been released. Currently, there are 6 software packages known to work with LLJVM (7 including &lt;a href="http://sourceware.org/newlib/"&gt;newlib&lt;/a&gt;): &lt;a href="http://ijg.org/"&gt;libjpeg&lt;/a&gt;, &lt;a href="http://zlib.net/"&gt;zlib&lt;/a&gt;, &lt;a href="http://libpng.org/"&gt;libpng&lt;/a&gt;, &lt;a href="http://www.lua.org/"&gt;lua&lt;/a&gt;, &lt;a href="http://www.ccs.neu.edu/home/ramsdell/tools/datalog/"&gt;datalog&lt;/a&gt;, and several utilities (banner, morse, number, pig) from &lt;a href="http://wiki.linuxquestions.org/wiki/BSD_games"&gt;bsd-games&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;For further information, including a pre-compiled demonstration of the above packages, see the &lt;a href="http://da.vidr.cc/projects/lljvm/"&gt;project page&lt;/a&gt;.&lt;/p&gt;
</description><guid isPermaLink="false">http://da.vidr.cc/2009/12/31/lljvm-02-c-to-jvm-bytecode-compiler/</guid><feedburner:origLink>http://da.vidr.cc/2009/12/31/lljvm-02-c-to-jvm-bytecode-compiler/</feedburner:origLink></item><item><title>Open source Photosynth: PixelStruct 0.2 released
</title><link>http://feeds.da.vidr.cc/~r/DavidRobertsBlog/~3/pG7-xLPz-aQ/</link><description>&lt;p&gt;PixelStruct 0.2 has been released. This version has two main changes from the previous version. Firstly, several new transition modes are available, allowing near seamless transition between photos. Secondly, various bugs have been fixed, allowing larger image sets to be viewed, such as the following 715-image reconstruction of Notre Dame.&lt;/p&gt;
&lt;p&gt;For more information, including download links, please see the &lt;a href="http://da.vidr.cc/projects/pixelstruct/"&gt;project homepage&lt;/a&gt;.&lt;/p&gt;
&lt;div class="centred"&gt;&lt;object type="application/x-shockwave-flash" style="width:425px; height:344px;" data="http://www.youtube.com/v/VFdNQc3gVkM"&gt;
&lt;param name="movie" value="http://www.youtube.com/v/VFdNQc3gVkM" /&gt;
&lt;/object&gt;&lt;!-- http://www.tools4noobs.com/online_tools/youtube_xhtml/ --&gt;&lt;/div&gt;
</description><guid isPermaLink="false">http://da.vidr.cc/2009/09/18/open-source-photosynth-pixelstruct-02-released/</guid><feedburner:origLink>http://da.vidr.cc/2009/09/18/open-source-photosynth-pixelstruct-02-released/</feedburner:origLink></item><item><title>Converting videos to 3GP in Ubuntu Intrepid 8.10 with FFmpeg
</title><link>http://feeds.da.vidr.cc/~r/DavidRobertsBlog/~3/djq8NVml2Yw/</link><description>&lt;p&gt;The default installation of FFmpeg in Ubuntu Intrepid 8.10 doesn't support conversion to 3GP. According to &lt;a href="https://bugs.launchpad.net/medibuntu/+bug/291011/comments/1"&gt;this&lt;/a&gt;, installing ubuntu-restricted-extras should fix this, but that didn't work in my case. So, you may need to manually install the required packages: &lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;sudo aptitude install &lt;span class="se"&gt;\&lt;/span&gt;
libavcodec-unstripped-51 &lt;span class="se"&gt;\&lt;/span&gt;
libavdevice-unstripped-52 &lt;span class="se"&gt;\&lt;/span&gt;
libavformat-unstripped-52 &lt;span class="se"&gt;\&lt;/span&gt;
libavutil-unstripped-49 &lt;span class="se"&gt;\&lt;/span&gt;
libpostproc-unstripped-51 &lt;span class="se"&gt;\&lt;/span&gt;
libswscale-unstripped-0
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;Then, to convert a video, you can either go the command-line route: &lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;ffmpeg -i input.mpg &lt;span class="se"&gt;\&lt;/span&gt;
-vcodec h263 -s qcif -r 15 -b 100k &lt;span class="se"&gt;\&lt;/span&gt;
-acodec libfaac -ac 1 -ar 32000 -ab 64k &lt;span class="se"&gt;\&lt;/span&gt;
output.3gp
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;Which will convert to input.mpg to output.3gp with: &lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;H.263 video codec&lt;/li&gt;
&lt;li&gt;QCIF video resolution (176x144)&lt;/li&gt;
&lt;li&gt;15fps&lt;/li&gt;
&lt;li&gt;100 kb/s video bitrate&lt;/li&gt;
&lt;li&gt;AAC audio codec (through libfaac)&lt;/li&gt;
&lt;li&gt;1 audio channel&lt;/li&gt;
&lt;li&gt;32000 Hz audio sampling frequency&lt;/li&gt;
&lt;li&gt;64 kb/s audio bitrate&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Alternatively, if you prefer using a GUI, you can try &lt;a href="http://www.miksoft.net/mobileMediaConverter.htm"&gt;Mobile Media Converter&lt;/a&gt; (&lt;a href="http://www.miksoft.net/products/mmc_1.4.1_i386.deb"&gt;direct link to v.1.4.1 .deb&lt;/a&gt;), which seems to work pretty well, and also supports downloading videos directly from YouTube.&lt;/p&gt;
</description><guid isPermaLink="false">http://da.vidr.cc/2009/02/28/converting-videos-to-3gp-in-ubuntu-intrepid-810-with-ffmpeg/</guid><feedburner:origLink>http://da.vidr.cc/2009/02/28/converting-videos-to-3gp-in-ubuntu-intrepid-810-with-ffmpeg/</feedburner:origLink></item><item><title>Command-line scanning
</title><link>http://feeds.da.vidr.cc/~r/DavidRobertsBlog/~3/VJDY6htdPsc/</link><description>&lt;p&gt;First you need to find the ID of the required device: &lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;scanimage -L
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;Output: &lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;device `v4l:/dev/video0&amp;#39; is a Noname Acer CrystalEye webcam virtual device
device `net:linux-box.local:hpaio:/usb/Photosmart_C4100_series?serial=XXXXXXXXXXXXXX&amp;#39; is a Hewlett-Packard Photosmart_C4100_series all-in-one
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;In this case the device ID is net:linux-box.local:hpaio:/usb/Photosmart_C4100_series?serial=XXXXXXXXXXXXXX Then, for colour scanning: &lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;scanimage -d &lt;span class="s2"&gt;&amp;quot;net:linux-box.local:hpaio:/usb/Photosmart_C4100_series?serial=XXXXXXXXXXXXXX&amp;quot;&lt;/span&gt; &lt;span class="se"&gt;\&lt;/span&gt;
--mode Color --resolution 300dpi | pnmtopng - &amp;gt; image.png
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;Or for greyscale scanning: &lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;scanimage -d &lt;span class="s2"&gt;&amp;quot;net:linux-box.local:hpaio:/usb/Photosmart_C4100_series?serial=XXXXXXXXXXXXXX&amp;quot;&lt;/span&gt; &lt;span class="se"&gt;\&lt;/span&gt;
--mode Gray --resolution 300dpi | pnmtopng - &amp;gt; image.png
&lt;/pre&gt;&lt;/div&gt;
</description><guid isPermaLink="false">http://da.vidr.cc/2008/12/07/command-line-scanning/</guid><feedburner:origLink>http://da.vidr.cc/2008/12/07/command-line-scanning/</feedburner:origLink></item><item><title>Batch resizing a directory of images in Linux with ImageMagick
</title><link>http://feeds.da.vidr.cc/~r/DavidRobertsBlog/~3/110jdeDqy3Q/</link><description>&lt;p&gt;To replace all JPEGs in a directory with resized versions: &lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;mogrify -resize 720x576 *.jpg
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;Note that this will retain the aspect ratio, such that the image is scaled so it will fit inside a box of the given dimensions. To force the image to be stretched to the given dimensions instead: &lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;mogrify -resize 720x576! *.jpg
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;&lt;a href="http://www.novell.com/coolsolutions/tip/16524.html"&gt;[novell.com]&lt;/a&gt;&lt;/p&gt;
</description><guid isPermaLink="false">http://da.vidr.cc/2008/09/29/batch-resizing-a-directory-of-images-in-linux-with-imagemagick/</guid><feedburner:origLink>http://da.vidr.cc/2008/09/29/batch-resizing-a-directory-of-images-in-linux-with-imagemagick/</feedburner:origLink></item><item><title>Converting images to grayscale in Linux with ImageMagick
</title><link>http://feeds.da.vidr.cc/~r/DavidRobertsBlog/~3/nbi7ebyd8Qs/</link><description>&lt;p&gt;To convert a single image ‘image.jpg’ to a grayscale version ‘image-bw.jpg’: &lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;convert image.jpg -colorspace Gray image-bw.jpg
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;To convert an entire directory in images to grayscale: &lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;mkdir bw &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span class="k"&gt;for &lt;/span&gt;i in *.jpg; &lt;span class="k"&gt;do &lt;/span&gt;convert &lt;span class="nv"&gt;$i&lt;/span&gt; -colorspace Gray bw/&lt;span class="nv"&gt;$i&lt;/span&gt;; &lt;span class="k"&gt;done&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;The grayscale images will be placed in a subdirectory named ‘bw’. To convert something other than JPEGs, just change *.jpg to the appropriate file extension. For more information, see &lt;a href="http://imagemagick.org/Usage/color/#grayscale"&gt;here&lt;/a&gt;.&lt;/p&gt;
</description><guid isPermaLink="false">http://da.vidr.cc/2008/09/29/converting-images-to-grayscale-in-linux-with-imagemagick/</guid><feedburner:origLink>http://da.vidr.cc/2008/09/29/converting-images-to-grayscale-in-linux-with-imagemagick/</feedburner:origLink></item><item><title>Creating a glossary in LaTeX
</title><link>http://feeds.da.vidr.cc/~r/DavidRobertsBlog/~3/mVV9Dzl1KSQ/</link><description>&lt;p&gt;&lt;strong&gt;Note that this uses the deprecated ‘glossary’ package. At the moment I’m using the ‘nomencl’ package, which LyX has built-in support for.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;First, add to your preamble something like this: &lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span class="k"&gt;\usepackage&lt;/span&gt;&lt;span class="na"&gt;[style=list]&lt;/span&gt;&lt;span class="nb"&gt;{&lt;/span&gt;glossary&lt;span class="nb"&gt;}&lt;/span&gt; &lt;span class="c"&gt;% can be obtained from http://www.ctan.org/tex-archive/macros/latex/contrib/glossary/&lt;/span&gt;
&lt;span class="k"&gt;\makeglossary&lt;/span&gt;
&lt;span class="k"&gt;\newacronym&lt;/span&gt;&lt;span class="nb"&gt;{&lt;/span&gt;GNU&lt;span class="nb"&gt;}{&lt;/span&gt;GNU&amp;#39;s Not Unix&lt;span class="nb"&gt;}{&lt;/span&gt;description=&lt;span class="nb"&gt;{&lt;/span&gt;A computer operating system composed entirely of free software.&lt;span class="nb"&gt;}}&lt;/span&gt;
&lt;span class="k"&gt;\storeglosentry&lt;/span&gt;&lt;span class="nb"&gt;{&lt;/span&gt;linux&lt;span class="nb"&gt;}{&lt;/span&gt;name=&lt;span class="nb"&gt;{&lt;/span&gt;Linux&lt;span class="nb"&gt;}&lt;/span&gt;, description=&lt;span class="nb"&gt;{&lt;/span&gt;Any Unix-like computer operating system that uses the Linux kernel.&lt;span class="nb"&gt;}}&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;And add the following lines where you want the glossary to appear: &lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span class="k"&gt;\printglossary&lt;/span&gt;
&lt;span class="k"&gt;\addcontentsline&lt;/span&gt;&lt;span class="nb"&gt;{&lt;/span&gt;toc&lt;span class="nb"&gt;}{&lt;/span&gt;chapter&lt;span class="nb"&gt;}{&lt;/span&gt;Glossary&lt;span class="nb"&gt;}&lt;/span&gt; &lt;span class="c"&gt;% remove this line if you don&amp;#39;t want a table of contents entry for the glossary&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;Then, where you want to reference glossary entries: &lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span class="k"&gt;\gls&lt;/span&gt;&lt;span class="nb"&gt;{&lt;/span&gt;linux&lt;span class="nb"&gt;}&lt;/span&gt; &lt;span class="c"&gt;% displays name field of the linux entry (in this case &amp;quot;Linux&amp;quot;)&lt;/span&gt;
&lt;span class="k"&gt;\useGlosentry&lt;/span&gt;&lt;span class="nb"&gt;{&lt;/span&gt;linux&lt;span class="nb"&gt;}{&lt;/span&gt;GNU/Linux&lt;span class="nb"&gt;}&lt;/span&gt; &lt;span class="c"&gt;% displays &amp;quot;GNU/Linux&amp;quot;&lt;/span&gt;
&lt;span class="k"&gt;\GNU&lt;/span&gt; &lt;span class="c"&gt;% displays &amp;quot;GNU&amp;#39;s Not Unix (GNU)&amp;quot; the first time this is used&lt;/span&gt;
&lt;span class="k"&gt;\GNU&lt;/span&gt; &lt;span class="c"&gt;% displays &amp;quot;GNU&amp;quot; all subsequent times&lt;/span&gt;
&lt;span class="c"&gt;% NB: remember to use \GNU\ if want to retain the space after the acronym&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;To generate the glossary, run: &lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;makeindex &lt;span class="s1"&gt;&amp;#39;file.glo&amp;#39;&lt;/span&gt; -s &lt;span class="s1"&gt;&amp;#39;file.ist&amp;#39;&lt;/span&gt; -t &lt;span class="s1"&gt;&amp;#39;file.glg&amp;#39;&lt;/span&gt; -o &lt;span class="s1"&gt;&amp;#39;file.gls&amp;#39;&lt;/span&gt; &lt;span class="c"&gt;# replace &amp;#39;file&amp;#39; with the appropriate name for your files&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;If you use &lt;a href="http://kile.sourceforge.net/"&gt;Kile&lt;/a&gt;, and want to generate the glossary from the menu, first do the following: &lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Settings&lt;/li&gt;
&lt;li&gt;Configure Kile...&lt;/li&gt;
&lt;li&gt;Tools&lt;/li&gt;
&lt;li&gt;Build&lt;/li&gt;
&lt;li&gt;New Tool...&lt;/li&gt;
&lt;li&gt;MakeGlossary&lt;/li&gt;
&lt;li&gt;Next&lt;/li&gt;
&lt;li&gt;MakeIndex&lt;/li&gt;
&lt;li&gt;Finish&lt;/li&gt;
&lt;li&gt;General&lt;/li&gt;
&lt;li&gt;Command: makeindex&lt;/li&gt;
&lt;li&gt;Options: '%S.glo' -s '%S.ist' -t '%S.glg' -o '%S.gls'&lt;/li&gt;
&lt;li&gt;Advanced&lt;/li&gt;
&lt;li&gt;Source extension: glo&lt;/li&gt;
&lt;li&gt;Target extension: gls&lt;/li&gt;
&lt;li&gt;Menu&lt;/li&gt;
&lt;li&gt;Add tool to Build menu: Compile&lt;/li&gt;
&lt;li&gt;OK&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;And then to generate the glossary do Build&amp;gt;Compile&amp;gt;MakeGlossary.&lt;/p&gt;
</description><guid isPermaLink="false">http://da.vidr.cc/2008/09/29/creating-a-glossary-in-latex/</guid><feedburner:origLink>http://da.vidr.cc/2008/09/29/creating-a-glossary-in-latex/</feedburner:origLink></item><item><title>Spellchecking LaTeX documents
</title><link>http://feeds.da.vidr.cc/~r/DavidRobertsBlog/~3/r_TsQT80knI/</link><description>&lt;p&gt;To spellcheck a LaTeX document, run the following command (replacing ‘file.tex’ with the name of your document): &lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;aspell -a -t &amp;lt; &lt;span class="s1"&gt;&amp;#39;file.tex&amp;#39;&lt;/span&gt; | grep &lt;span class="s2"&gt;&amp;quot;&amp;amp;&amp;quot;&lt;/span&gt; | sort -u
&lt;/pre&gt;&lt;/div&gt;
</description><guid isPermaLink="false">http://da.vidr.cc/2008/09/29/spellchecking-latex-documents/</guid><feedburner:origLink>http://da.vidr.cc/2008/09/29/spellchecking-latex-documents/</feedburner:origLink></item><item><title>Creating flowcharts with PGF/TikZ in LaTeX
</title><link>http://feeds.da.vidr.cc/~r/DavidRobertsBlog/~3/YWIkYP9dv9M/</link><description>&lt;p&gt;First, add to your preamble: &lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span class="k"&gt;\usepackage&lt;/span&gt;&lt;span class="nb"&gt;{&lt;/span&gt;tikz&lt;span class="nb"&gt;}&lt;/span&gt;
&lt;span class="k"&gt;\usetikzlibrary&lt;/span&gt;&lt;span class="nb"&gt;{&lt;/span&gt;shapes,arrows&lt;span class="nb"&gt;}&lt;/span&gt;

&lt;span class="c"&gt;% styles for flowcharts&lt;/span&gt;
&lt;span class="k"&gt;\tikzstyle&lt;/span&gt;&lt;span class="nb"&gt;{&lt;/span&gt;decision&lt;span class="nb"&gt;}&lt;/span&gt; = [diamond, draw, text width=4.5em, text badly centered, node distance=3cm, inner sep=0pt]
&lt;span class="k"&gt;\tikzstyle&lt;/span&gt;&lt;span class="nb"&gt;{&lt;/span&gt;block&lt;span class="nb"&gt;}&lt;/span&gt; = [rectangle, draw, text width=5em, text centered, rounded corners, minimum height=4em]
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;Then, create flowcharts with something like the following: &lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span class="k"&gt;\begin&lt;/span&gt;&lt;span class="nb"&gt;{&lt;/span&gt;figure&lt;span class="nb"&gt;}&lt;/span&gt;
 &lt;span class="k"&gt;\begin&lt;/span&gt;&lt;span class="nb"&gt;{&lt;/span&gt;center&lt;span class="nb"&gt;}&lt;/span&gt;
  &lt;span class="k"&gt;\begin&lt;/span&gt;&lt;span class="nb"&gt;{&lt;/span&gt;tikzpicture&lt;span class="nb"&gt;}&lt;/span&gt;[node distance=2.5cm, auto, &amp;gt;=stealth]
   &lt;span class="c"&gt;% nodes&lt;/span&gt;
   &lt;span class="k"&gt;\node&lt;/span&gt;&lt;span class="na"&gt;[block]&lt;/span&gt; (a)                                     &lt;span class="nb"&gt;{&lt;/span&gt;A&lt;span class="nb"&gt;}&lt;/span&gt;;
   &lt;span class="k"&gt;\node&lt;/span&gt;&lt;span class="na"&gt;[block]&lt;/span&gt; (b)  [right of=a]                       &lt;span class="nb"&gt;{&lt;/span&gt;B&lt;span class="nb"&gt;}&lt;/span&gt;;
   &lt;span class="k"&gt;\node&lt;/span&gt;&lt;span class="na"&gt;[decision,text width=2.8cm]&lt;/span&gt;
                (c)  [right of=b, node distance=3.3cm]  &lt;span class="nb"&gt;{&lt;/span&gt;C?&lt;span class="nb"&gt;}&lt;/span&gt;;
   &lt;span class="k"&gt;\node&lt;/span&gt;&lt;span class="na"&gt;[block]&lt;/span&gt; (d)  [right of=c, node distance=3.6cm]  &lt;span class="nb"&gt;{&lt;/span&gt;D&lt;span class="nb"&gt;}&lt;/span&gt;;
   &lt;span class="k"&gt;\node&lt;/span&gt;&lt;span class="na"&gt;[block]&lt;/span&gt; (e)  [below of=a, node distance=4cm]    &lt;span class="nb"&gt;{&lt;/span&gt;E&lt;span class="nb"&gt;}&lt;/span&gt;;
   &lt;span class="k"&gt;\node&lt;/span&gt;&lt;span class="na"&gt;[block]&lt;/span&gt; (f)  [right of=e]                       &lt;span class="nb"&gt;{&lt;/span&gt;F&lt;span class="nb"&gt;}&lt;/span&gt;;
   &lt;span class="k"&gt;\node&lt;/span&gt;&lt;span class="na"&gt;[block]&lt;/span&gt; (g)  [right of=f]                       &lt;span class="nb"&gt;{&lt;/span&gt;G&lt;span class="nb"&gt;}&lt;/span&gt;;
   &lt;span class="k"&gt;\node&lt;/span&gt;&lt;span class="na"&gt;[block]&lt;/span&gt; (h)  [right of=g]                       &lt;span class="nb"&gt;{&lt;/span&gt;H&lt;span class="nb"&gt;}&lt;/span&gt;;

   &lt;span class="c"&gt;% edges&lt;/span&gt;
   &lt;span class="k"&gt;\draw&lt;/span&gt;&lt;span class="na"&gt;[-&amp;gt;]&lt;/span&gt; (a) -- (b);
   &lt;span class="k"&gt;\draw&lt;/span&gt;&lt;span class="na"&gt;[-&amp;gt;]&lt;/span&gt; (b) -- (c);
   &lt;span class="k"&gt;\draw&lt;/span&gt;&lt;span class="na"&gt;[-&amp;gt;]&lt;/span&gt; (c) -- node[above] &lt;span class="nb"&gt;{&lt;/span&gt;yes&lt;span class="nb"&gt;}&lt;/span&gt; (d);
   &lt;span class="k"&gt;\draw&lt;/span&gt;&lt;span class="na"&gt;[-&amp;gt;]&lt;/span&gt; (c.north) to [out=170,in=45] node[above] &lt;span class="nb"&gt;{&lt;/span&gt;no&lt;span class="nb"&gt;}&lt;/span&gt; (b.north);
   &lt;span class="k"&gt;\draw&lt;/span&gt;&lt;span class="na"&gt;[-&amp;gt;]&lt;/span&gt; (d.south) to [out=210,in=20] (e.north);
   &lt;span class="k"&gt;\draw&lt;/span&gt;&lt;span class="na"&gt;[-&amp;gt;]&lt;/span&gt; (e) -- (f);
   &lt;span class="k"&gt;\draw&lt;/span&gt;&lt;span class="na"&gt;[-&amp;gt;]&lt;/span&gt; (f) -- (g);
   &lt;span class="k"&gt;\draw&lt;/span&gt;&lt;span class="na"&gt;[-&amp;gt;]&lt;/span&gt; (g) -- (h);
  &lt;span class="k"&gt;\end&lt;/span&gt;&lt;span class="nb"&gt;{&lt;/span&gt;tikzpicture&lt;span class="nb"&gt;}&lt;/span&gt;
  &lt;span class="k"&gt;\caption&lt;/span&gt;&lt;span class="nb"&gt;{&lt;/span&gt;Flowchart&lt;span class="nb"&gt;}&lt;/span&gt;
  &lt;span class="k"&gt;\label&lt;/span&gt;&lt;span class="nb"&gt;{&lt;/span&gt;flowchart&lt;span class="nb"&gt;}&lt;/span&gt;
 &lt;span class="k"&gt;\end&lt;/span&gt;&lt;span class="nb"&gt;{&lt;/span&gt;center&lt;span class="nb"&gt;}&lt;/span&gt;
&lt;span class="k"&gt;\end&lt;/span&gt;&lt;span class="nb"&gt;{&lt;/span&gt;figure&lt;span class="nb"&gt;}&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;This will produce something like the following:&lt;/p&gt;
&lt;p&gt;&lt;img alt="Flowchart" src="http://i36.photobucket.com/albums/e36/nemti/blog/pgftikz-flowchart.png" /&gt;&lt;/p&gt;
</description><guid isPermaLink="false">http://da.vidr.cc/2008/09/29/creating-flowcharts-with-pgftikz-in-latex/</guid><feedburner:origLink>http://da.vidr.cc/2008/09/29/creating-flowcharts-with-pgftikz-in-latex/</feedburner:origLink></item><item><title>Creating slideshows with LaTeX
</title><link>http://feeds.da.vidr.cc/~r/DavidRobertsBlog/~3/8HOKsbqr0qo/</link><description>&lt;p&gt;&lt;a href="http://latex-beamer.sourceforge.net/"&gt;LaTeX Beamer&lt;/a&gt; is fantastic for this task. &lt;a href="http://heather.cs.ucdavis.edu/~matloff/beamer.html"&gt;This&lt;/a&gt; page provides a good introduction to the package. Usually, to produce the actual slideshow, you wou would begin your document with something like the following: &lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span class="k"&gt;\documentclass&lt;/span&gt;&lt;span class="nb"&gt;{&lt;/span&gt;beamer&lt;span class="nb"&gt;}&lt;/span&gt;
&lt;span class="k"&gt;\mode&lt;/span&gt;&lt;span class="nb"&gt;{&lt;/span&gt;
 &lt;span class="k"&gt;\usetheme&lt;/span&gt;&lt;span class="nb"&gt;{&lt;/span&gt;Berlin&lt;span class="nb"&gt;}&lt;/span&gt;
 &lt;span class="k"&gt;\usecolortheme&lt;/span&gt;&lt;span class="nb"&gt;{&lt;/span&gt;crane&lt;span class="nb"&gt;}&lt;/span&gt;
&lt;span class="nb"&gt;}&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;Of course, Berlin and crane can be changed to themes of your choice. A gallery of themes can be found &lt;a href="http://mike.polycat.net/gallery/beamer-themes"&gt;here&lt;/a&gt;, and examples of color themes can be found in section 17 (page 162 as of version 3.07) of the beamer manual. However, if you would like to print the slideshow as a handout (multiple slides on a single page), you can change the lines given above to: &lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span class="k"&gt;\documentclass&lt;/span&gt;&lt;span class="na"&gt;[handout]&lt;/span&gt;&lt;span class="nb"&gt;{&lt;/span&gt;beamer&lt;span class="nb"&gt;}&lt;/span&gt;
&lt;span class="k"&gt;\mode&lt;/span&gt;&lt;span class="nb"&gt;{&lt;/span&gt;
 &lt;span class="k"&gt;\usetheme&lt;/span&gt;&lt;span class="nb"&gt;{&lt;/span&gt;default&lt;span class="nb"&gt;}&lt;/span&gt;
 &lt;span class="k"&gt;\usecolortheme&lt;/span&gt;&lt;span class="nb"&gt;{&lt;/span&gt;seagull&lt;span class="nb"&gt;}&lt;/span&gt;
&lt;span class="nb"&gt;}&lt;/span&gt;
&lt;span class="k"&gt;\usepackage&lt;/span&gt;&lt;span class="nb"&gt;{&lt;/span&gt;pgfpages&lt;span class="nb"&gt;}&lt;/span&gt;
&lt;span class="k"&gt;\pgfpagesuselayout&lt;/span&gt;&lt;span class="nb"&gt;{&lt;/span&gt;4 on 1&lt;span class="nb"&gt;}&lt;/span&gt;[a4paper,landscape,border shrink=5mm]
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;And, if you would like to compress everything to an article format, use the following instead: &lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span class="k"&gt;\documentclass&lt;/span&gt;&lt;span class="nb"&gt;{&lt;/span&gt;article&lt;span class="nb"&gt;}&lt;/span&gt;
&lt;span class="k"&gt;\usepackage&lt;/span&gt;&lt;span class="nb"&gt;{&lt;/span&gt;beamerarticle&lt;span class="nb"&gt;}&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
</description><guid isPermaLink="false">http://da.vidr.cc/2008/09/29/creating-slideshows-with-latex/</guid><feedburner:origLink>http://da.vidr.cc/2008/09/29/creating-slideshows-with-latex/</feedburner:origLink></item></channel></rss>
