<?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>rlazo&#039;s blog</title>
	<atom:link href="http://www.rlazo.org/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.rlazo.org</link>
	<description></description>
	<lastBuildDate>Thu, 01 Dec 2011 18:17:44 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Showing git branch in zsh</title>
		<link>http://www.rlazo.org/2011/11/28/showing-git-branch-in-zsh/</link>
		<comments>http://www.rlazo.org/2011/11/28/showing-git-branch-in-zsh/#comments</comments>
		<pubDate>Tue, 29 Nov 2011 00:02:00 +0000</pubDate>
		<dc:creator>Rodrigo</dc:creator>
				<category><![CDATA[Zsh]]></category>

		<guid isPermaLink="false">http://www.rlazo.org/?p=341</guid>
		<description><![CDATA[Lately, I&#8217;ve been working a lot with several git and mercurial repositories. Keeping track of the current state of the repo (branch + staging changes) gets boring quickly, so I decided to use zsh facilities to include that information in the prompt. The preferred way of doing it is with vcs_info, available since zsh beta, [...]]]></description>
			<content:encoded><![CDATA[<p>Lately, I&#8217;ve been working a lot with several git and mercurial repositories. Keeping track of the current state of the repo (branch + staging changes) gets boring quickly, so I decided to use zsh facilities to include that information in the prompt. The preferred way of doing it is with <a href="http://zsh.sourceforge.net/Doc/Release/User-Contributions.html#SEC273">vcs_info</a>, available since zsh beta, version 4.3.6-dev-0+20080929-1 (<a href="http://michael-prokop.at/blog/2008/12/15/mikas-advent-calendar-day-15-zsh-vcs_info/">ref</a>); older guides will use custom functions, which is unnecessary, unless you want to go beyond the basic support provided by this module.</p>
<p>My configuration includes information about staged(<code>stagedstr</code>) and unstaged(<code>unstaged</code>), displayed as &#8220;:S&#8221; and &#8220;:U&#8221; respectively:</p>
<pre class="src src-sh">autoload -Uz vcs_info
setopt promptsubst

zstyle <span style="color: #cc9393;">':vcs_info:*'</span> check-for-changes true
zstyle <span style="color: #cc9393;">':vcs_info:*'</span> stagedstr <span style="color: #cc9393;">':S'</span>
zstyle <span style="color: #cc9393;">':vcs_info:*'</span> unstagedstr <span style="color: #cc9393;">':U'</span>
zstyle <span style="color: #cc9393;">':vcs_info:*'</span> enable git hg
zstyle <span style="color: #cc9393;">':vcs_info:*'</span> actionformats \
  <span style="color: #cc9393;">'%F{5}(%f%s%F{5})%F{3}-%F{5}[%F{2}%b%F{3}%c%u|%F{1}%a%F{5}]%f '</span>
zstyle <span style="color: #cc9393;">':vcs_info:*'</span> formats       \
  <span style="color: #cc9393;">'%F{5}(%f%s%F{5})%F{3}-%F{5}[%F{2}%b%F{5}%c%u]%f '</span>

<span style="color: #f0dfaf;">precmd</span>() {
    vcs_info
}

<span style="color: #f0dfaf;">RPROMPT</span>=<span style="color: #cc9393;">'${vcs_info_msg_0_}[%T on %D]'</span></pre>
<p>And here is how it looks (<a href="http://media.rlazo.org/pics/zsh-git-screenshot.png">original</a>):</p>
<p><img src="http://media.rlazo.org/pics/zsh-git-screenshot.png" alt="http://media.rlazo.org/pics/zsh-git-screenshot.png" /></p>
<p>A few things I struggled with, basically because I didn&#8217;t read the docs:</p>
<ul>
<li>You <strong>must</strong> set <code>setopt promptsubst</code> otherwise, <code>${vcs_info_msg_0_}</code> is not going to be recognized.</li>
<li>If you use <code>%c</code> or <code>%u</code> for change tracking, you should set to true <code>check-for-changes</code> (see code).</li>
<li>Don&#8217;t forget about <code>precmd()</code></li>
</ul>
<p>Here are other examples: <a href="http://briancarper.net/blog/570/git-info-in-your-zsh-prompt">1</a>, <a href="https://github.com/gaving/dotfiles/blob/master/.zsh/theme">2</a></p>
<p>Enjoy</p>
]]></content:encoded>
			<wfw:commentRss>http://www.rlazo.org/2011/11/28/showing-git-branch-in-zsh/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>R.I.P John McCarthy</title>
		<link>http://www.rlazo.org/2011/10/24/r-i-p-john-mccarthy/</link>
		<comments>http://www.rlazo.org/2011/10/24/r-i-p-john-mccarthy/#comments</comments>
		<pubDate>Tue, 25 Oct 2011 01:17:33 +0000</pubDate>
		<dc:creator>Rodrigo</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.rlazo.org/?p=338</guid>
		<description><![CDATA[Original from http://xach.livejournal.com/296022.html]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone" title="John McCarthy" src="http://media.rlazo.org/images/jmc.jpg" alt="" width="500" height="626" /></p>
<p>Original from http://xach.livejournal.com/296022.html</p>
]]></content:encoded>
			<wfw:commentRss>http://www.rlazo.org/2011/10/24/r-i-p-john-mccarthy/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Change ediff options</title>
		<link>http://www.rlazo.org/2011/09/16/change-ediff-options/</link>
		<comments>http://www.rlazo.org/2011/09/16/change-ediff-options/#comments</comments>
		<pubDate>Sat, 17 Sep 2011 00:25:00 +0000</pubDate>
		<dc:creator>Rodrigo</dc:creator>
				<category><![CDATA[Emacs]]></category>

		<guid isPermaLink="false">http://www.rlazo.org/?p=332</guid>
		<description><![CDATA[Ediff is a great tool for diffing to files/buffers and merging changes. One thing I liked is that you can make it ignore white-space only differences. I used to do activate it every time. Finally I got to the point that I wanted to make the change permanent, so I followed EmacsWiki advice: Whitespace sensitivity [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.emacswiki.org/emacs/EdiffMode">Ediff</a> is a great tool for diffing to files/buffers and merging changes. One thing I liked is that you can make it ignore white-space only differences. I used to do activate it every time. Finally I got to the point that I wanted to make the change permanent, so I followed <a href="http://www.emacswiki.org/emacs/EdiffMode">EmacsWiki</a> advice:</p>
<p><code>Whitespace sensitivity – Include ‘-w’ in ‘ediff-diff-options’.</code></p>
<p>So, I did a quick <code>(setq...)</code> but it didn&#8217;t work. After some googling, I came across <a href="http://lists.gnu.org/archive/html/help-gnu-emacs/2006-09/msg00425.html">this message</a>. Seems like you <strong>have</strong> to make the changes using customize, otherwise it won&#8217;t work. So, if somebody else is having this problem, making the changes using customize (<code>M-x customize-group RET ediff-diff</code>) is the way to go.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.rlazo.org/2011/09/16/change-ediff-options/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Emacs eclim</title>
		<link>http://www.rlazo.org/2011/09/14/emacs-eclim/</link>
		<comments>http://www.rlazo.org/2011/09/14/emacs-eclim/#comments</comments>
		<pubDate>Wed, 14 Sep 2011 20:07:45 +0000</pubDate>
		<dc:creator>Rodrigo</dc:creator>
				<category><![CDATA[Eclim]]></category>
		<category><![CDATA[Emacs]]></category>

		<guid isPermaLink="false">http://www.rlazo.org/?p=329</guid>
		<description><![CDATA[I&#8217;ve been doing some java development lately and while Eclipse is nice and IntelliJ IDEA is a very good alternative, both are nowhere near emacs in text manipulation capabilities. On the other hand, emacs is awesome in every way except context sensitive completion and re-factoring across a project, a must for Java. From the eclipse [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been doing some java development lately and while <a href="http://eclipse.org">Eclipse</a> is nice and <a href="http://www.jetbrains.com/idea/">IntelliJ IDEA</a> is a very good alternative, both are nowhere near emacs in text manipulation capabilities. On the other hand, emacs is awesome in every way except context sensitive completion and re-factoring across a project, a must for Java.</p>
<p>From the eclipse perspective, there are plugins that simulate emacs keybindings, but I was never truly comfortable using them. Emacs is more than its keybindings. From the emacs perspective, there is the <a href="http://jdee.sourceforge.net/">Java Development Environment for Emacs</a>, or JDEE, but it doesn&#8217;t seem to be under active development; while it gained some momentum last year, their devel mailing list statistics show that only 11 messages have been send this year.</p>
<p>Then, I found <a href="http://eclim.org/">Eclim</a>, and as stated in their homepage: &#8220;The primary goal of eclim is to bring Eclipse functionality to the Vim editor. The initial goal was to provide Eclipse’s java functionality in vim, but support for various other languages… have been added and several more are planned.&#8221;</p>
<p>Basically, eclim has two parts, a java plugin that hooks into eclipse and exposes some of its functionality, and a VIM plugin. I like this approach. For a lot of people, emacs and vim are almost their natural environment, so making other tools provide extra functionality to them instead of trying to simulate the editor experience is the way to go.</p>
<p>For emacs, you have the <a href="https://github.com/senny/emacs-eclim">Emacs Eclim</a> project, hosted in github, which is the equivalent of the vim plugin. To use it, first install eclim, then download emacs-eclim from github, and finally add to you .emacs:</p>
<pre class="src src-lisp">(add-to-list 'load-path (expand-file-name <span style="color: #8b2252;">"/path/to/emacs-eclim/"</span>))
(add-to-list 'load-path (expand-file-name <span style="color: #8b2252;">"/path/to/emacs-eclim/vendor"</span>))
(<span style="color: #a020f0;">require</span> '<span style="color: #008b8b;">eclim</span>)

(setq eclim-auto-save t) <span style="color: #b22222;">;; </span><span style="color: #b22222;">very important</span>
(global-eclim-mode)</pre>
<p>And now you are ready to go. The main feature missing in emacs eclim is doc searching, but AFAIK it&#8217;s provided by eclim, so it shouldn&#8217;t be too hard to implement the emacs part. Emacs eclim is under active development.</p>
<p>As a side note, if you want to do some Android development, I deeply recommend you to use IntelliJ. It has built-in Android support and works great. A month ago I tried to setup Eclipse&#8217;s android plugin and it was extremely frustrating. So, try IntelliJ if you want to experiment a different IDE and can withstand its no so pretty interface. (They have a community edition which is OpenSource, check it <a href="http://www.jetbrains.org/pages/viewpage.action?pageId=983211">here</a>).</p>
]]></content:encoded>
			<wfw:commentRss>http://www.rlazo.org/2011/09/14/emacs-eclim/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>StumpWM: my new Window Manager</title>
		<link>http://www.rlazo.org/2011/09/10/stumpwm-my-new-window-manager/</link>
		<comments>http://www.rlazo.org/2011/09/10/stumpwm-my-new-window-manager/#comments</comments>
		<pubDate>Sat, 10 Sep 2011 13:52:00 +0000</pubDate>
		<dc:creator>Rodrigo</dc:creator>
				<category><![CDATA[Emacs]]></category>
		<category><![CDATA[Gentoo]]></category>
		<category><![CDATA[StumpWM]]></category>

		<guid isPermaLink="false">http://www.rlazo.org/?p=325</guid>
		<description><![CDATA[I used Awesome as my window manager for over two years and I really like it. It was my first &#8220;tiling&#8221; WM (although it&#8217;s described as a tiling wm, but more of a floating-tiling mix, see its features and non-features). Besides that, it was really configurable, and I mean it. Your configuration file (.config/rc.lua) may [...]]]></description>
			<content:encoded><![CDATA[<p>I used <a href="http://awesome.naquadah.org/">Awesome</a> as my window manager for over two years and I really like it. It was my first &#8220;tiling&#8221; WM (although it&#8217;s described as a tiling wm, but more of a floating-tiling mix, see its <a href="http://awesome.naquadah.org/">features and non-features</a>). Besides that, it was really configurable, and I mean it. Your configuration file (.config/rc.lua) may seem like half of the implementation of the WM, because there is defined which layouts are supported, how many tags to use, how to name them, the default keybindings, the mouse actions, etc. (<a href="https://dl-web.dropbox.com/get/Public/rc.lua?w=b333ab49">here is mine</a>). Probably, as with many WM, Awesome is too spartan for Gnome/KDE users. But again, it is for people that like minimalism. If you want to give it a try, do it, and do it for a week at least. It&#8217;s nice.</p>
<p>If it is soooo good, why did I change it? well, I had some stability issues with it for a while (which ended been problems with Xorg, so it&#8217;s not their fault). Also, there are two features I don&#8217;t like. First, while bringing lots of flexibility, the config file is usually &#8220;cluttered&#8221; with code you don&#8217;t want to see. As I said, it seems like half of the WM is written in the config file, so you have tons of code defining the default WM behaviour and, after a while, you stop feeling like you are configuring the WM and start feeling that you are patching it. Every new release was an exercise of retrofitting your changes to the new default config file, otherwise you may lose some of the new features bring by the update. Awful. Second, <a href="http://www.lua.org/">lua</a>. The config file and other parts of the WM are written in lua, which is not part of my personal preferences. I may be biased by my lack of knowledge about programming in lua, or maybe not, even <a href="http://julien.danjou.info/blog/">Julien Danjou</a>, the original author of Awesome, has <a href="http://julien.danjou.info/blog/2011.html#Why_not_Lua">ranted about it</a>.</p>
<p>So, one day I decided to try other tiling WM. I installed stumpwm, <a href="http://i3.zekjur.net/">i3</a>, <a href="http://www.nongnu.org/ratpoison/">ratpoison</a>, and <a href="http://xmonad.org/">xmonad</a>. I never got pass the first one.</p>
<p>StumpWM is not the most stable WM out there, nor the most lightweight (it requires a CL interpreter), and it has neither a large nor extremely active community (its latest stable release is from March 2010, but the repository is active so you get your code from there). Now, to the good stuff.</p>
<p>StumpWM is tiling, but has some support for floating &#8220;groups&#8221; (desktops). AFAIK, it doesn&#8217;t have the advance automatic tiling layouts of Awesome, so its window placement capabilities are more closely related to GNU Screen or Emacs Frames, but given that I usually have a single app in full-screen mode it doesn&#8217;t matter. What really make StumpWM shine is that it&#8217;s written in Common-Lisp. It&#8217;s at least as configurable as awesome while keeping your configuration file clean. Being Common-lisp, you can write a new function and it will override the previous one (not as powerful as advices in emacs, but close enough). If you don&#8217;t know lisp, learning it is very easy. Once you passed the feeling of &#8220;why there are so many parenthesis?&#8221; and get use to the prefix (+ 3 2) syntax, you will see it&#8217;s pure genius.</p>
<p>If you want to give it a try, the best way to do it is following the <a href="https://wiki.archlinux.org/index.php/Stumpwm">ArchLinux wiki</a>. Also, take a look at the awesome <a href="http://www.youtube.com/watch?v=tKt_rVO960Q">Stumpwm experience video</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.rlazo.org/2011/09/10/stumpwm-my-new-window-manager/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Problems with x11-terms/rxvt-unicode</title>
		<link>http://www.rlazo.org/2011/07/23/problems-with-x11-termsrxvt-unicode/</link>
		<comments>http://www.rlazo.org/2011/07/23/problems-with-x11-termsrxvt-unicode/#comments</comments>
		<pubDate>Sat, 23 Jul 2011 23:01:02 +0000</pubDate>
		<dc:creator>Rodrigo</dc:creator>
				<category><![CDATA[Gentoo]]></category>

		<guid isPermaLink="false">http://www.rlazo.org/?p=322</guid>
		<description><![CDATA[I had some graphical problems with urxvt, it didn&#8217;t showed some lines, and I needed to switch between workspace (so the window was refreshed) to see the content. After a long search I found a youtube video which shows (almost) exactly my problem, and a solution http://www.youtube.com/watch?v=iGy9YH9tY88 I just needed to recompile it with +truetype [...]]]></description>
			<content:encoded><![CDATA[<p>  I had some graphical problems with urxvt, it didn&#8217;t showed some   lines, and I needed to switch between workspace (so the window was   refreshed) to see the content. After a long search I found a youtube   video which shows (almost) exactly my problem, and a solution </p>
<p>   <a href="http://www.youtube.com/watch?v=iGy9YH9tY88">http://www.youtube.com/watch?v=iGy9YH9tY88</a> </p>
<p>   I just needed to recompile it with +truetype as useflag. Hope this is   useful to somebody else. </p>
]]></content:encoded>
			<wfw:commentRss>http://www.rlazo.org/2011/07/23/problems-with-x11-termsrxvt-unicode/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Programming&#8230;</title>
		<link>http://www.rlazo.org/2011/06/24/programming/</link>
		<comments>http://www.rlazo.org/2011/06/24/programming/#comments</comments>
		<pubDate>Fri, 24 Jun 2011 16:20:37 +0000</pubDate>
		<dc:creator>Rodrigo</dc:creator>
				<category><![CDATA[Misc]]></category>

		<guid isPermaLink="false">http://www.rlazo.org/?p=314</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<p style="text-align: center;"><a href="http://en.wikipedia.org/wiki/John_McCarthy_(computer_scientist)"><img class="aligncenter" title="Programming: You are doing it wrong" src="http://ipo.totfarm.com/pics/pic_12095714725013.jpg" alt="You are doing it wrong" width="473" height="710" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.rlazo.org/2011/06/24/programming/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>(sort of) Bye, Bye, Dropbox</title>
		<link>http://www.rlazo.org/2011/06/21/sort-of-bye-bye-dropbox/</link>
		<comments>http://www.rlazo.org/2011/06/21/sort-of-bye-bye-dropbox/#comments</comments>
		<pubDate>Tue, 21 Jun 2011 23:25:26 +0000</pubDate>
		<dc:creator>Rodrigo</dc:creator>
				<category><![CDATA[Misc]]></category>

		<guid isPermaLink="false">http://www.rlazo.org/?p=311</guid>
		<description><![CDATA[I use Dropbox, and I (kind of still) think it is a great service, but then I found out that they do server-side encryption, so they have access to all the data. Last Sunday they have tiny security problem which make all accounts accessible using any password. I have to admit that I do store [...]]]></description>
			<content:encoded><![CDATA[<p>I use Dropbox, and I (kind of still) think it is a great service,   but then I found out that they do server-side encryption, so they   have access to all the data. Last Sunday they have <a href="http://www.wired.com/threatlevel/2011/06/dropbox/">tiny security problem</a> which make all accounts accessible using <strong>any password</strong>.</p>
<p>I have to admit that I <strong>do</strong> store some important information there,   but I did my homework and encrypted it using pgp <strong>before</strong> uploading. Still, I&#8217;m taking the next step: I&#8217;ve switched to   <a href="https://spideroak.com/">SpiderOak</a> as my main remote storage/sync service, given that they do   client-side encryption, so my data is safe(r). My Dropbox account is   going to store anything which I have absolutely problem sharing.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.rlazo.org/2011/06/21/sort-of-bye-bye-dropbox/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Beamer handouts with notes</title>
		<link>http://www.rlazo.org/2011/05/13/beamer-handouts-with-notes/</link>
		<comments>http://www.rlazo.org/2011/05/13/beamer-handouts-with-notes/#comments</comments>
		<pubDate>Fri, 13 May 2011 23:14:17 +0000</pubDate>
		<dc:creator>Rodrigo</dc:creator>
				<category><![CDATA[Latex]]></category>

		<guid isPermaLink="false">http://www.rlazo.org/?p=308</guid>
		<description><![CDATA[This week, while working on a presentation I had to give, I wanted to create a nice handout with extra lines on one side to write some notes. I&#8217;ve seen people doing this all the time with other presentation software, so I supposed that it was possible with beamer. If you read the Beamer user [...]]]></description>
			<content:encoded><![CDATA[<p>This week, while working on a presentation I had to give, I wanted   to create a nice handout with extra lines on one side to write some   notes. I&#8217;ve seen people doing this all the time with other   presentation software, so I supposed that it was possible with   beamer.</p>
<p>If you read the <a href="http://faq.ktug.or.kr/wiki/uploads/beamer_guide.pdf">Beamer user guide (PDF)</a>, it mentions modifying the   heading to include the handout option, and to add an additional   command specify the number of pages per page:</p>
<pre class="src src-latex"><span style="color: #a020f0;">\documentclass</span>[<span style="color: #a0522d;">handout</span>]{<span style="color: #0000ff;">beamer</span>}
<span style="color: #b22222;">% </span><span style="color: #b22222;">Other packages...
</span><span style="color: #696969;">\pgfpagesuselayout</span>{2 on 1}[a4paper,border shrink=5mm]</pre>
<p>This produced a PDF with two slides per page (or more depending on   what you want), but no notes space anywhere. Some further googling   showed a <a href="http://tex.stackexchange.com/questions/4765/printing-beamer-slides">TeX StackExchange entry</a> with the solution, which pointed to   <a href="http://www.guidodiepen.nl/2009/07/creating-latex-beamer-handouts-with-notes/">this blog post</a> by Guido Diepen.</p>
<p>What you need to do is <a href="http://www.guidodiepen.nl/wp-content/uploads/2009/07/handoutWithNotes.sty">download this package</a>, and add it to your   document preamble, and then modify the pgfpagesuselayout (to include   <code>with notes</code>) command like this:</p>
<pre class="src src-latex"><span style="color: #b22222;">% </span><span style="color: #b22222;">add this package to your directory (not in CTAN!)
</span><span style="color: #b22222;">% </span><span style="color: #b22222;">download it from the link above.
</span><span style="color: #a020f0;">\usepackage</span>{<span style="color: #0000ff;">handoutWithNotes</span>}

<span style="color: #696969;">\pgfpagesuselayout</span>{2 on 1 with notes}[a4paper,border shrink=5mm]</pre>
<p>Check out the original blog post by Guido to see examples and more   options. Enjoy!</p>
<p>P.d. I forgotted to add <code>with notes</code> the first time, and I didn&#8217;t   realized that right away. So be aware in case you are as sloppy as I   am.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.rlazo.org/2011/05/13/beamer-handouts-with-notes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Beamer + Bibtex</title>
		<link>http://www.rlazo.org/2011/04/06/beamer-bibtex-2/</link>
		<comments>http://www.rlazo.org/2011/04/06/beamer-bibtex-2/#comments</comments>
		<pubDate>Thu, 07 Apr 2011 03:26:00 +0000</pubDate>
		<dc:creator>Rodrigo</dc:creator>
				<category><![CDATA[Latex]]></category>

		<guid isPermaLink="false">http://www.rlazo.org/?p=301</guid>
		<description><![CDATA[I was trying to get Beamer + Bibtex working just like I did with a regular article, just including a frame with the reference. So this is my first attempt: \begin{frame} \begin{small} \phantomsection \addcontentsline{toc}{section}{\bibname} \bibliographystyle{plain} \bibliography{bibliography} \end{small} \end{frame} \end{document} I didn&#8217;t like the size of the entries, and the fact that they only spawn a [...]]]></description>
			<content:encoded><![CDATA[<p>  I was trying to get Beamer + Bibtex working just like I did with a   regular article, just including a frame with the reference. So this   is my first attempt: </p>
<pre class="src src-latex"><span style="color: #a020f0;">\begin</span>{<span style="color: #0000ff;">frame</span>}
  <span style="color: #a020f0;">\begin</span>{<span style="color: #0000ff;">small</span>}
    <span style="color: #696969;">\phantomsection</span>
    <span style="color: #696969;">\addcontentsline</span>{toc}{section}{<span style="color: #696969;">\bibname</span>}
    <span style="color: #a020f0;">\bibliographystyle</span>{<span style="color: #0000ff;">plain</span>}
    <span style="color: #a020f0;">\bibliography</span>{<span style="color: #008b8b;">bibliography</span>}
  <span style="color: #a020f0;">\end</span>{<span style="color: #0000ff;">small</span>}
<span style="color: #a020f0;">\end</span>{<span style="color: #0000ff;">frame</span>}
<span style="color: #a020f0;">\end</span>{<span style="color: #0000ff;">document</span>}
</pre>
<p> 
<p>   I didn&#8217;t like the size of the entries, and the fact that they only   spawn a single frame, so only a few entries were visible. Some   Googling and I came with an improved solution: </p>
<pre class="src src-latex"><span style="color: #a020f0;">\begin</span>{<span style="color: #0000ff;">frame</span>}[shrink=5,allowframebreaks]
  <span style="color: #a020f0;">\begin</span>{<span style="color: #0000ff;">small</span>}
    <span style="color: #696969;">\phantomsection</span>
    <span style="color: #696969;">\addcontentsline</span>{toc}{section}{<span style="color: #696969;">\bibname</span>}
    <span style="color: #a020f0;">\bibliographystyle</span>{<span style="color: #0000ff;">plain</span>}
    <span style="color: #a020f0;">\bibliography</span>{<span style="color: #008b8b;">bibliography</span>}
  <span style="color: #a020f0;">\end</span>{<span style="color: #0000ff;">small</span>}
<span style="color: #a020f0;">\end</span>{<span style="color: #0000ff;">frame</span>}
<span style="color: #a020f0;">\end</span>{<span style="color: #0000ff;">document</span>}
</pre>
<p> 
<p>   Then I realized that the citations weren&#8217;t included in the   bibliography!. Sure, the entries were there but, which one was the   &#8220;13&#8243;? Bibtex showed some nice, and pretty useless, icons instead of   the citations. Further Googling unveiled <a href="http://tex.stackexchange.com/questions/1969/beamer-and-natbib/1971#1971">an answer</a> (may be others),   using natbib+bibtex (<a href="http://merkel.zoneo.net/Latex/natbib.php">here is a quick reference to natbib</a>): </p>
<pre class="src src-latex"><span style="color: #b22222;">% </span><span style="color: #b22222;">before </span><span style="color: #b22222;">\begin</span><span style="color: #b22222;">{document}
</span><span style="color: #a020f0;">\usepackage</span>[<span style="color: #a0522d;">square</span>]{<span style="color: #0000ff;">natbib</span>}
<span style="color: #a020f0;">\newcommand</span>{<span style="color: #0000ff;">\newblock</span>}{}
</pre>
<p> 
<p>   Enjoy. </p>
]]></content:encoded>
			<wfw:commentRss>http://www.rlazo.org/2011/04/06/beamer-bibtex-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

