<?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>johnjcamilleri.com &#187; LaTeX</title>
	<atom:link href="http://johnjcamilleri.com/category/latex/feed/" rel="self" type="application/rss+xml" />
	<link>http://johnjcamilleri.com</link>
	<description></description>
	<lastBuildDate>Sun, 25 Jul 2010 20:20:49 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Vertical alignment of inline images in LaTeX</title>
		<link>http://johnjcamilleri.com/2010/05/vertical-alignment-of-inline-images-in-latex/</link>
		<comments>http://johnjcamilleri.com/2010/05/vertical-alignment-of-inline-images-in-latex/#comments</comments>
		<pubDate>Sun, 09 May 2010 10:05:04 +0000</pubDate>
		<dc:creator>John</dc:creator>
				<category><![CDATA[LaTeX]]></category>
		<category><![CDATA[Useful]]></category>
		<category><![CDATA[alignments]]></category>
		<category><![CDATA[graphics]]></category>
		<category><![CDATA[images]]></category>
		<category><![CDATA[inline]]></category>
		<category><![CDATA[vertical]]></category>

		<guid isPermaLink="false">http://johnjcamilleri.com/?p=199</guid>
		<description><![CDATA[This is one of those things which isn&#8217;t so easy to find, so here&#8217;s my contribution. The Problem You&#8217;re using LaTeX, and have a small image which you want to display inline with the text (i.e. not a float). So, you use something like the following: ...indicate whether the phrase you've constructed is valid (\includegraphics{tick.png}) [...]]]></description>
			<content:encoded><![CDATA[<p>This is one of those things which isn&#8217;t so easy to find, so here&#8217;s my contribution.</p>
<h3>The Problem</h3>
<p>You&#8217;re using LaTeX, and have a small image which you want to display inline with the text (i.e. not a float). So, you use something like the following:</p>
<p><code>...indicate whether the phrase you've constructed is valid (\includegraphics{tick.png}) or not (\includegraphics{cross.png}}). To make things...</code></p>
<p>This works, but often the vertical alignment is not quite right, as shown in the images below:</p>
<div id="attachment_202" class="wp-caption alignnone" style="width: 285px"><a href="http://johnjcamilleri.com/wp-content/uploads/2010/05/nonaligned.png"><img class="size-full wp-image-202" title="Inline images, non-aligned" src="http://johnjcamilleri.com/wp-content/uploads/2010/05/nonaligned.png" alt="" width="275" height="80" /></a><p class="wp-caption-text">Inline images, non-aligned</p></div>
<div id="attachment_203" class="wp-caption alignnone" style="width: 614px"><a href="http://johnjcamilleri.com/wp-content/uploads/2010/05/nonalignedx600.png"><img class="size-full wp-image-203 " title="Inline images, non-aligned (x600)" src="http://johnjcamilleri.com/wp-content/uploads/2010/05/nonalignedx600.png" alt="" width="604" height="254" /></a><p class="wp-caption-text">Zoomed (x600)</p></div>
<h3>The Solution</h3>
<p>After some searching and experimenting, I found the best solution to be using the <code>\raisebox</code> command with a negative value, like so:</p>
<p><code>...indicate whether the phrase you've constructed is valid (<strong>\raisebox{-1mm}</strong>{\includegraphics{tick.png}<strong>}</strong>) or not (<strong>\raisebox{-1mm}</strong>{\includegraphics{cross.png}<strong>}</strong>). To make things...</code></p>
<p>The additional code is minimal and it works perfectly (as far as I can tell). Results as below:</p>
<div id="attachment_200" class="wp-caption alignnone" style="width: 285px"><a href="http://johnjcamilleri.com/wp-content/uploads/2010/05/aligned.png"><img class="size-full wp-image-200" title="Inline images, properly aligned" src="http://johnjcamilleri.com/wp-content/uploads/2010/05/aligned.png" alt="" width="275" height="80" /></a><p class="wp-caption-text">Inline images, properly aligned</p></div>
<div id="attachment_201" class="wp-caption alignnone" style="width: 614px"><a href="http://johnjcamilleri.com/wp-content/uploads/2010/05/alignedx600.png"><img class="size-full wp-image-201 " title="Inline images, properly aligned (x600)" src="http://johnjcamilleri.com/wp-content/uploads/2010/05/alignedx600.png" alt="" width="604" height="248" /></a><p class="wp-caption-text">Zoomed (x600)</p></div>
]]></content:encoded>
			<wfw:commentRss>http://johnjcamilleri.com/2010/05/vertical-alignment-of-inline-images-in-latex/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Mendeley, BibTeX and citing Website URLs</title>
		<link>http://johnjcamilleri.com/2010/05/mendeley-bibtex-cite-website-url/</link>
		<comments>http://johnjcamilleri.com/2010/05/mendeley-bibtex-cite-website-url/#comments</comments>
		<pubDate>Mon, 03 May 2010 10:57:06 +0000</pubDate>
		<dc:creator>John</dc:creator>
				<category><![CDATA[Academic]]></category>
		<category><![CDATA[LaTeX]]></category>
		<category><![CDATA[bibtex]]></category>
		<category><![CDATA[citation]]></category>
		<category><![CDATA[cite]]></category>
		<category><![CDATA[mendeley]]></category>
		<category><![CDATA[reference]]></category>
		<category><![CDATA[url]]></category>
		<category><![CDATA[website]]></category>

		<guid isPermaLink="false">http://johnjcamilleri.com/?p=189</guid>
		<description><![CDATA[The Problem Using Mendeley Desktop (&#60;3) to manage all my dissertation references, which automatically writes a BibTeX (.bib) for me which I include in my LaTeX document. So far so good. When I manually create an entry in Mendeley for a website, it creates a BibTeX entry like the following: @misc{myKey, author = {Surname, Name}, [...]]]></description>
			<content:encoded><![CDATA[<h3>The Problem</h3>
<ol>
<li>Using <a href="http://www.mendeley.com/">Mendeley Desktop</a> (&lt;3) to manage all my dissertation references, which automatically writes a BibTeX (.bib) for me which I include in my LaTeX document. So far so good.</li>
<li>When I manually create an entry in Mendeley for a website, it creates a BibTeX entry like the following:<br />
<code>@misc{myKey,<br />
author = {Surname, Name},<br />
title = {{Website Name}},<br />
url = {http://my.url.com/},<br />
year = {2010}<br />
}</code></li>
<li>That looks fair enough, but standard BibTeX/LaTeX simply ignores the <code>url</code> field in the entry&#8230; which makes the reference look rather stupid. So how can I handle websites properly?</li>
</ol>
<h3>What I hoped I would be able to find</h3>
<ol>
<li>I wish Mendeley had some more advanced options which controlled how BibTeX files were created, this would have definitely been the most ideal option, but alas no such options exist. Editing the generated .bib yourself would be pointless since Mendeley will just overwrite the file each time.</li>
<li>BibTeX itself could really do with an update in the website-citation department. I&#8217;ve seen lots of talk about new versions but can&#8217;t see where they are&#8230; Also I know there are alternative BibTeX packages which can be used, but this was something I wanted to avoid because sometimes you can&#8217;t tell what else it&#8217;s going to change in your references. For more information on the options, I recommend this link: <a title="UK List of TeX Frequently Asked Questions" href="http://www.tex.ac.uk/cgi-bin/texfaq2html?label=citeURL">URLs in BibTeX bibliographies</a></li>
</ol>
<h3>The Solution</h3>
<ol>
<li>The best solution I could come up with so far, is to simply delete these references from Mendeley and put them in your own custom .bib file. Thus, you will have the Mendeley-generated bib file (which we&#8217;ll call <code>mendeley.bib</code>) and your own custom bib file for website entries (which we&#8217;ll call <code>websites.bib</code>)</li>
<li>When writing your BibTeX website entries, be sure to use the <code>howpublised</code> field like so:<br />
<code>@misc{myKey,<br />
author = {Surname, Name},<br />
title = {{Website Name}},<br />
howpublished = {\url{http://my.url.com/}},<br />
year = {2010}<br />
}</code></li>
<li>This will get BibTeX to correctly show the URL in the bibliography entry.</li>
<li>Finally in your LaTeX document be sure to include both bib files, like so: <code>\bibliography{mendeley,websites}</code></li>
</ol>
<h3>An Alternative</h3>
<p>Actually, what I ended up doing in my dissertation is listing these &#8220;one-off&#8221; website references as <em>footnotes</em> rather than actual citations, since they&#8217;re not exactly publications. Obviously you will have to see whether this is applicable or not to you.</p>
]]></content:encoded>
			<wfw:commentRss>http://johnjcamilleri.com/2010/05/mendeley-bibtex-cite-website-url/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>LaTeX underlines in uneven positions?</title>
		<link>http://johnjcamilleri.com/2009/09/latex-underlines-in-uneven-positions/</link>
		<comments>http://johnjcamilleri.com/2009/09/latex-underlines-in-uneven-positions/#comments</comments>
		<pubDate>Tue, 22 Sep 2009 11:10:57 +0000</pubDate>
		<dc:creator>John</dc:creator>
				<category><![CDATA[LaTeX]]></category>
		<category><![CDATA[alignment]]></category>
		<category><![CDATA[position]]></category>
		<category><![CDATA[underline]]></category>
		<category><![CDATA[vertical]]></category>

		<guid isPermaLink="false">http://johnjcamilleri.com/?p=99</guid>
		<description><![CDATA[Just started using LaTeX, and it annoyed me how the vertical-alignment of the \underline{} tag is not always the same, depending on whether the text &#8216;dips downwards&#8217; or not (don&#8217;t know the correct term). Anyway I found a fix, basically use \usepackage[normalem]{ulem} in your preamble, and \uline{My Text} instead of \underline{} in your normal text. [...]]]></description>
			<content:encoded><![CDATA[<p>Just started using LaTeX, and it annoyed me how the vertical-alignment of the <tt>\underline{}</tt> tag is not always the same, depending on whether the text &#8216;dips downwards&#8217; or not (don&#8217;t know the correct term).</p>
<p>Anyway I found a fix, basically use <tt>\usepackage[normalem]{ulem}</tt> in your preamble, and <tt>\uline{My Text}</tt> instead of <tt>\underline{}</tt> in your normal text.</p>
<p>via <a href="http://www.andy-roberts.net/misc/latex/latextutorial7.html">Getting to Grips with Latex &#8211; Formatting &#8211; Latex Tutorials by Andrew Roberts @ School of Computing, University of Leeds</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://johnjcamilleri.com/2009/09/latex-underlines-in-uneven-positions/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
