<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="wordpress/2.2.2" -->
<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/"
	>

<channel>
	<title>Minimalia</title>
	<link>http://stefano.italians.nl</link>
	<description>Stefano's blog</description>
	<pubDate>Sun, 04 Apr 2010 16:51:08 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.2.2</generator>
	<language>en</language>
			<item>
		<title>Building Skia library on Linux with Waf</title>
		<link>http://stefano.italians.nl/archives/66</link>
		<comments>http://stefano.italians.nl/archives/66#comments</comments>
		<pubDate>Sun, 14 Feb 2010 14:14:07 +0000</pubDate>
		<dc:creator>kindoblue</dc:creator>
		
		<category><![CDATA[waf]]></category>

		<category><![CDATA[skia]]></category>

		<guid isPermaLink="false">http://stefano.italians.nl/archives/66</guid>
		<description><![CDATA[I wanted to try Skia, the 2D graphic library from Google. The problem is: there's still no mature build script for linux and the samples are not compiled at all. So I patched some sources and wrote a simple build script for Waf, which in the end will build the skia library (as shared object) [...]]]></description>
			<content:encoded><![CDATA[<p>I wanted to try Skia, the 2D graphic library from Google. The problem is: there's still no mature build script for linux and the samples are not compiled at all. So I patched some sources and wrote a simple build script for Waf, which in the end will build the skia library (as shared object) and the demo executable.  </p>
<p>What is <a href="http://code.google.com/p/waf/">Waf</a>? It is a python based framework that allows you to write "configure" like scripts, without the hassle of learning autotools and m4. I will show you the basics and what it takes to write from scratch a project build script. I assume you will be using Ubuntu 9.04. </p>
<p>So, first off: check out the skia sources, using the following command:     </p>
<p><code>svn checkout http://skia.googlecode.com/svn/trunk/ skia-read-only -r 501</code></p>
<p>The revision 501 (on which I generated my patch file) will be downloaded. </p>
<p>Next, download this patch: <a href="http://stefano.italians.nl/files/skia.patch.gz">skia.patch.gz</a> and save somewhere on your system. It contains the modifications (hacks, actually) I did to have the demo compiled. After that, enter the directory <code>skia-read-only</code> and issue the command </p>
<p><code>zcat /path/to/skia.patch.gz | patch  -p1</code></p>
<p>The patches will be applied and the waf build script, <code>wscript</code>, will be added. Open it and take a look. It starts like this:</p>
<div class="igBar"><span id="lpython-5"><a href="#" onclick="javascript:showPlainTxt('python-5'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite">
<div id="python-5">
<div class="python" style="font-family: monospace;">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">#! /usr/bin/env python</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;"># -*- coding: utf-8 -*-</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">ports = <span style="color: #483d8b;">&quot;&quot;</span><span style="color: #483d8b;">&quot;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #483d8b;"> &nbsp;src/ports/SkDebug_stdio.cpp &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #483d8b;"> &nbsp;src/ports/SkGlobals_global.cpp &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #483d8b;"> &nbsp;src/ports/SkOSFile_stdio.cpp &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #483d8b;"> &nbsp;src/ports/SkThread_pthread.cpp &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #483d8b;"> &nbsp;src/ports/SkTime_Unix.cpp</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #483d8b;"> &nbsp;src/ports/SkFontHost_linux.cpp</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #483d8b;"> &nbsp;src/ports/SkFontHost_gamma_none.cpp</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #483d8b;"> &nbsp;src/ports/SkFontHost_FreeType.cpp</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #483d8b;"> &nbsp;src/ports/SkFontHost_FreeType_Subpixel.cpp</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #483d8b;"> &nbsp;src/ports/SkFontHost_tables.cpp</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #483d8b;"> &nbsp;src/ports/SkXMLParser_empty.cpp</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #483d8b;">&quot;</span><span style="color: #483d8b;">&quot;&quot;</span>.<span style="color: black;">split</span><span style="color: black;">&#40;</span><span style="color: black;">&#41;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">opts = <span style="color: #483d8b;">&quot;&quot;</span><span style="color: #483d8b;">&quot;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #483d8b;"> &nbsp;src/opts/SkBlitRow_opts_none.cpp &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #483d8b;"> &nbsp;src/opts/SkBitmapProcState_opts_none.cpp &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #483d8b;"> &nbsp;src/opts/SkUtils_opts_none.cpp &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #483d8b;">&quot;</span><span style="color: #483d8b;">&quot;&quot;</span>.<span style="color: black;">split</span><span style="color: black;">&#40;</span><span style="color: black;">&#41;</span> </div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #dc143c;">xml</span> = <span style="color: #483d8b;">&quot;&quot;</span><span style="color: #483d8b;">&quot;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #483d8b;"> &nbsp;src/xml/SkDOM.cpp</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #483d8b;"> &nbsp;src/xml/SkXMLParser.cpp</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #483d8b;"> &nbsp;src/xml/SkXMLWriter.cpp</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #483d8b;">&quot;</span><span style="color: #483d8b;">&quot;&quot;</span>.<span style="color: black;">split</span><span style="color: black;">&#40;</span><span style="color: black;">&#41;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">defines = <span style="color: #483d8b;">&quot;&quot;</span><span style="color: #483d8b;">&quot;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #483d8b;"> &nbsp;GL_GLEXT_PROTOTYPES </span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #483d8b;"> &nbsp;SK_SUPPORT_LCDTEXT </span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #483d8b;"> &nbsp;SK_CAN_USE_FLOAT </span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #483d8b;"> &nbsp;SK_SCALAR_IS_FLOAT</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #483d8b;"> &nbsp;SK_DEBUG </span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #483d8b;"> &nbsp;SK_SUPPORT_UNIT </span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #483d8b;"> &nbsp;SK_BUILD_FOR_UNIX</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #483d8b;">&quot;</span><span style="color: #483d8b;">&quot;&quot;</span>.<span style="color: black;">split</span><span style="color: black;">&#40;</span><span style="color: black;">&#41;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">includes = <span style="color: #483d8b;">&quot;&quot;</span><span style="color: #483d8b;">&quot;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #483d8b;"> &nbsp;src/core </span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #483d8b;"> &nbsp;include/config </span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #483d8b;"> &nbsp;include/core </span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #483d8b;"> &nbsp;include/effects </span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #483d8b;"> &nbsp;include/images </span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #483d8b;"> &nbsp;include/utils </span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #483d8b;"> &nbsp;include/views </span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #483d8b;"> &nbsp;include/xml </span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #483d8b;"> &nbsp;include/animator</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #483d8b;">&quot;</span><span style="color: #483d8b;">&quot;&quot;</span>.<span style="color: black;">split</span><span style="color: black;">&#40;</span><span style="color: black;">&#41;</span></div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Well, I just defined few lists. The first three: <code>ports</code>, <code>opts</code> and <code>xml</code> are the files I would like to be compiled in addition to all the other files sitting in few other subdirectories. With waf several approachs are possible: you can list all of your files to compile, or you can specify just the directories and let waf pick all the sources, or you can mix and match (as I did). Or you can put a wscript in each sub dir and create a hierarchy of wscript files, each one taking care of one piece of the build. This is what I like of waf: it does not enforce you doing only in a certain way - supposedly for your own sake - but let you decide. You may make a mess but we are adults and we don't like the maven approach. But I digress... So, take a look at the second part of the script:</p>
<div class="igBar"><span id="lpython-6"><a href="#" onclick="javascript:showPlainTxt('python-6'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite">
<div id="python-6">
<div class="python" style="font-family: monospace;">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #ff7700;font-weight:bold;">def</span> configure<span style="color: black;">&#40;</span>conf<span style="color: black;">&#41;</span>:</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp;<span style="color: #808080; font-style: italic;"># check gnu compiler</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp;conf.<span style="color: black;">check_tool</span><span style="color: black;">&#40;</span><span style="color: #483d8b;">'g++'</span><span style="color: black;">&#41;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp;<span style="color: #808080; font-style: italic;"># check freetype library</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp;conf.<span style="color: black;">check_cfg</span><span style="color: black;">&#40;</span>package=<span style="color: #483d8b;">'freetype2'</span>, atleast_version=<span style="color: #483d8b;">'6.3'</span>, uselib_store=<span style="color: #483d8b;">'freetype'</span>, args=<span style="color: #483d8b;">'--cflags --libs'</span>, mandatory=<span style="color: #ff4500;color:#800000;">1</span><span style="color: black;">&#41;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp;<span style="color: #808080; font-style: italic;"># check the sdl library</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp;conf.<span style="color: black;">check_cfg</span><span style="color: black;">&#40;</span>package=<span style="color: #483d8b;">'sdl'</span>, atleast_version=<span style="color: #483d8b;">'1.2'</span>, uselib_store=<span style="color: #483d8b;">'sdl'</span>, args=<span style="color: #483d8b;">'--cflags --libs'</span>, mandatory=<span style="color: #ff4500;color:#800000;">1</span><span style="color: black;">&#41;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp;<span style="color: #808080; font-style: italic;"># check the opengl library</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp;conf.<span style="color: black;">check_cfg</span><span style="color: black;">&#40;</span>package=<span style="color: #483d8b;">'gl'</span>, atleast_version=<span style="color: #483d8b;">'7.6'</span>, uselib_store=<span style="color: #483d8b;">'gl'</span>, args=<span style="color: #483d8b;">'--cflags --libs'</span>, mandatory=<span style="color: #ff4500;color:#800000;">1</span><span style="color: black;">&#41;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp;<span style="color: #808080; font-style: italic;"># check the png library</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp;conf.<span style="color: black;">check_cfg</span><span style="color: black;">&#40;</span>package=<span style="color: #483d8b;">'libpng'</span>, atleast_version=<span style="color: #483d8b;">'1.2.37'</span>, uselib_store=<span style="color: #483d8b;">'png'</span>, args=<span style="color: #483d8b;">'--cflags --libs'</span>, mandatory=<span style="color: #ff4500;color:#800000;">1</span><span style="color: black;">&#41;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp;<span style="color: #808080; font-style: italic;"># check libgif</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp;conf.<span style="color: black;">check</span><span style="color: black;">&#40;</span>lib=<span style="color: #483d8b;">'gif'</span>, &nbsp;uselib_store=<span style="color: #483d8b;">'gif'</span>, mandatory=<span style="color: #008000;">True</span><span style="color: black;">&#41;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp;<span style="color: #808080; font-style: italic;"># check libgif</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp;conf.<span style="color: black;">check</span><span style="color: black;">&#40;</span>lib=<span style="color: #483d8b;">'jpeg'</span>, uselib_store=<span style="color: #483d8b;">'jpeg'</span>, mandatory=<span style="color: #008000;">True</span><span style="color: black;">&#41;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp;<span style="color: #808080; font-style: italic;"># compilation flags</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp;conf.<span style="color: black;">env</span>.<span style="color: black;">CXXFLAGS</span> = <span style="color: black;">&#91;</span><span style="color: #483d8b;">'-g'</span>, <span style="color: #483d8b;">'-w'</span>, <span style="color: #483d8b;">'-msse2'</span> <span style="color: black;">&#93;</span></div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>In waf if you want to check for libraries, tools, headers and so, you define a function called <code>configure</code>. It takes one parameter, which is a sort of context constructed by waf,  exposing some functions. You call them to have waf doing the checks for you. For example, at line 4, I check if the c++ compiler is installed. At line 7, I check for the freetype library writing</p>
<pre>
conf.check_cfg(package='freetype2',
               atleast_version='6.3',
               args='--cflags --libs',
               uselib_store='freetype',
               mandatory=1)
</pre>
<p><code></code><br />
The <code>check_cfg</code> checks the libraries using the <a href="http://pkg-config.freedesktop.org">pkg-config</a> tool, so basically it instructs waf to look into the <code>PKG_CONFIG_PATH</code> list of directories, searching in this case for <code>freetype2.pc</code>. Waf will check the version of the library to see if it equal or greater than 6.3. It stores the values for <code>--cflags</code> and <code>--libs</code> in the waf cache under the key 'freetype' (the key will allow you to reference the library somewhere else in the script) and, finally, waf will abort if the library is not found, because I've marked it as mandatory.   </p>
<p>In the same way I check for other libraries at the lines 10, 13, 16. At line 19 and 22 I don't use the <code>check_cfg</code> but simply <code>check</code> because the libraries gif and jpeg are not shipped with a pkg-config file. Finally, at line 25 I just set up the compilation flags for both the skia and the executable. There are other ways to do so, and you can check the waf manual and its samples if you're curious. </p>
<p>For the build phase we have to define the function <code>build</code>. As for the <code>configure</code> fuction, the parameter passed by waf is the context. Now, in this function you should declare how your targets should be built. To do so you have to create a task generator. The task generator is able to generate the task (d'oh!) that will be performed by waf. In creating the task generator, you can specify everything about your target. Let's take a look </p>
<div class="igBar"><span id="lpython-7"><a href="#" onclick="javascript:showPlainTxt('python-7'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite">
<div id="python-7">
<div class="python" style="font-family: monospace;">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #ff7700;font-weight:bold;">def</span> build<span style="color: black;">&#40;</span>bld<span style="color: black;">&#41;</span>:</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp;<span style="color: #808080; font-style: italic;"># ========================================</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp;<span style="color: #808080; font-style: italic;"># &nbsp; &nbsp; &nbsp; Build skia library</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp;<span style="color: #808080; font-style: italic;"># ========================================</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp;obj = bld<span style="color: black;">&#40;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; features = <span style="color: #483d8b;">'cxx cshlib'</span>,</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; target = <span style="color: #483d8b;">'skia'</span>,</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; defines = defines,</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; includes = includes,</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; export_incdirs = includes,</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; uselib = <span style="color: #483d8b;">'freetype gif jpeg gl'</span> &nbsp;<span style="color: black;">&#41;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp;<span style="color: #808080; font-style: italic;"># add the files to the list of sources to compile</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp;obj.<span style="color: black;">find_sources_in_dirs</span><span style="color: black;">&#40;</span><span style="color: #483d8b;">'src/core src/effects src/utils src/images src/views src/animator src/gl'</span><span style="color: black;">&#41;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp;<span style="color: #808080; font-style: italic;"># skip the files we don't have to compile</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp;obj.<span style="color: black;">source</span>.<span style="color: black;">remove</span><span style="color: black;">&#40;</span><span style="color: #483d8b;">'src/core/SkDrawing.cpp'</span><span style="color: black;">&#41;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp;obj.<span style="color: black;">source</span>.<span style="color: black;">remove</span><span style="color: black;">&#40;</span><span style="color: #483d8b;">'src/images/SkImageDecoder_libpvjpeg.cpp'</span><span style="color: black;">&#41;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp;obj.<span style="color: black;">source</span>.<span style="color: black;">remove</span><span style="color: black;">&#40;</span><span style="color: #483d8b;">'src/images/SkImageDecoder_fpdfemb.cpp'</span><span style="color: black;">&#41;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp;obj.<span style="color: black;">source</span>.<span style="color: black;">remove</span><span style="color: black;">&#40;</span><span style="color: #483d8b;">'src/animator/SkAnimatorScript2.cpp'</span><span style="color: black;">&#41;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp;<span style="color: #808080; font-style: italic;"># add the other sources for the linux port</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp;obj.<span style="color: black;">source</span>.<span style="color: black;">extend</span><span style="color: black;">&#40;</span>ports<span style="color: black;">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp;<span style="color: #808080; font-style: italic;"># add the other optional sources</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp;obj.<span style="color: black;">source</span>.<span style="color: black;">extend</span><span style="color: black;">&#40;</span>opts<span style="color: black;">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp;<span style="color: #808080; font-style: italic;"># add the xml stuff</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp;obj.<span style="color: black;">source</span>.<span style="color: black;">extend</span><span style="color: black;">&#40;</span><span style="color: #dc143c;">xml</span><span style="color: black;">&#41;</span></div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>At line 6 I create the task generator using the shortcut offered by the context (in this case named <code>bld</code>). At line 7 I set the task generator to generate the target as shared library (<code>cshlib</code>) using c++ compiler to build it (<code>cxx</code>). At line 8 I want the library to be called "skia". At line 9 I specify the defines to use, in this case I use the list "defines" declared previously. At line 10 I set up the list of include dirs and at line 11 I instruct waf to export the same includes list. At line 12 I simply list the prerequisite libraries needed by skia. In listing the prerequisite I just use the keys chosen in the configure phase. The task generator is still not completed. At line 15 I set the generator to look into a set of directories for the sources. At line 18-21 I removed certain files from the set of sources. Finally, at line 24, 27, 30 I add other sources file to the list. Well, that's all. The generator will create a task able to compile the library.</p>
<p>For the demo executable, also within the <code>build</code> fuction, I create another task generator:</p>
<div class="igBar"><span id="lpython-8"><a href="#" onclick="javascript:showPlainTxt('python-8'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite">
<div id="python-8">
<div class="python" style="font-family: monospace;">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;"># ========================================</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp;<span style="color: #808080; font-style: italic;"># &nbsp; &nbsp; &nbsp; Build the demo application</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp;<span style="color: #808080; font-style: italic;"># ========================================</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp;exe = bld<span style="color: black;">&#40;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; features = <span style="color: #483d8b;">'cxx cprogram'</span>,</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; uselib = <span style="color: #483d8b;">'freetype sdl gl gif jpeg png'</span>,</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; uselib_local = <span style="color: #483d8b;">'skia'</span>,</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; defines = defines,</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; target = <span style="color: #483d8b;">'demo'</span><span style="color: black;">&#41;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp;exe.<span style="color: black;">find_sources_in_dirs</span><span style="color: black;">&#40;</span> <span style="color: #483d8b;">'samplecode'</span><span style="color: black;">&#41;</span> &nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp;exe.<span style="color: black;">source</span>.<span style="color: black;">append</span><span style="color: black;">&#40;</span><span style="color: #483d8b;">'src/utils/SDL/SkOSWindow_SDL.cpp'</span><span style="color: black;">&#41;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp;exe.<span style="color: black;">source</span>.<span style="color: black;">append</span><span style="color: black;">&#40;</span><span style="color: #483d8b;">'xcode/sampleapp_sdl/skia_sdl_main.cpp'</span><span style="color: black;">&#41;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; </div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp;<span style="color: #808080; font-style: italic;"># remove the samples that don't work</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp;exe.<span style="color: black;">source</span>.<span style="color: black;">remove</span><span style="color: black;">&#40;</span><span style="color: #483d8b;">'samplecode/SampleText.cpp'</span><span style="color: black;">&#41;</span> &nbsp; &nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp;exe.<span style="color: black;">source</span>.<span style="color: black;">remove</span><span style="color: black;">&#40;</span><span style="color: #483d8b;">'samplecode/SampleTypeface.cpp'</span><span style="color: black;">&#41;</span> &nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp;exe.<span style="color: black;">source</span>.<span style="color: black;">remove</span><span style="color: black;">&#40;</span><span style="color: #483d8b;">'samplecode/SampleFontScalerTest.cpp'</span><span style="color: black;">&#41;</span> &nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp;exe.<span style="color: black;">source</span>.<span style="color: black;">remove</span><span style="color: black;">&#40;</span><span style="color: #483d8b;">'samplecode/SampleGM.cpp'</span><span style="color: black;">&#41;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp;exe.<span style="color: black;">source</span>.<span style="color: black;">remove</span><span style="color: black;">&#40;</span><span style="color: #483d8b;">'samplecode/SampleTests.cpp'</span><span style="color: black;">&#41;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp;exe.<span style="color: black;">source</span>.<span style="color: black;">remove</span><span style="color: black;">&#40;</span><span style="color: #483d8b;">'samplecode/SamplePolyToPoly.cpp'</span><span style="color: black;">&#41;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp;exe.<span style="color: black;">source</span>.<span style="color: black;">remove</span><span style="color: black;">&#40;</span><span style="color: #483d8b;">'samplecode/SampleDecode.cpp'</span><span style="color: black;">&#41;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp;exe.<span style="color: black;">source</span>.<span style="color: black;">remove</span><span style="color: black;">&#40;</span><span style="color: #483d8b;">'samplecode/SampleEncode.cpp'</span><span style="color: black;">&#41;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp;exe.<span style="color: black;">source</span>.<span style="color: black;">remove</span><span style="color: black;">&#40;</span><span style="color: #483d8b;">'samplecode/SampleWarp.cpp'</span><span style="color: black;">&#41;</span></div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>It works more or less like the first generator. At line 7 I use the <code>uselib_local</code> instead of <code>uselib</code> because skia is generated by the same script and not found on the system as external dependency. Again, I add all the sources found in the <code>samplecode</code> directory and then I adjust the list cherry-picking and removing few more files.</p>
<p><strong>Time to run the script</strong></p>
<p>To run the script you need the waf engine, which is a singular file named <code>waf</code> you have to store in your project directory. So, let's grab waf here</p>
<p><a href="http://waf.googlecode.com/files/waf-1.5.11.tar.bz2">http://waf.googlecode.com/files/waf-1.5.11.tar.bz2</a></p>
<p>Explode the tar somewhere and fire the <code>./configure</code> script. If all goes well the <code>waf</code> script is generated. So, copy it into the <code>skia-read-only</code> directory. </p>
<p>Now we are ready to configure and compile skia! Enter the <code>skia-read-only</code> dir and issue the command </p>
<p><code>./waf configure</code></p>
<p>The project will be configured. Probably you will get some warnings due to the missing requirements. Here's the command to install them in one shot:</p>
<p>  <code>sudo apt-get install libgl1-mesa-dev libfreetype6-dev libsdl1.2-dev libpng12-dev libgif-dev libjpeg62-dev ttf-mscorefonts-installer</code></p>
<p>Now, again <code>./waf configure</code> and this time you should get something like that:</p>
<p><img src="http://farm3.static.flickr.com/2772/4354001647_4ef2c0de96_o_d.png" alt="waf configure" /></p>
<p>Time to compile skia library and the demo application. You just issue the following command</p>
<p><code>./waf </code></p>
<p>If you want, you can specify the number of parallel jobs to spawn. And you can enable the progress bar too:</p>
<p><code>./waf -j3 -p</code></p>
<p>You will see the compilation process rolling out.</p>
<p><img src="http://farm3.static.flickr.com/2769/4354001737_5ea058df45_o_d.png" alt="waf compile" /></p>
<p>If all goes well you will find in <code>skia-read-only/build/default</code> the <code>libskia.so</code> shared library and the <code>demo</code> executable. </p>
<p>To run the demo application, first set </p>
<p><code>export LD_LIBRARY_PATH=/path/to/skia-read-only/build/default<br />
</code></p>
<p>Then run the demo. Once it started you can switch from a view to the other using the right-arrow. Hereafter some samples</p>
<p><img src="http://farm5.static.flickr.com/4063/4355214673_d0624c1fe5_o_d.png" alt="demo0" /><br />
<img src="http://farm3.static.flickr.com/2713/4355957822_96dbb12d19_o_d.png" alt="demo1" /><br />
<img src="http://farm3.static.flickr.com/2739/4355957970_7dc18737d7_o_d.png" alt="demo2" /><br />
<img src="http://farm3.static.flickr.com/2682/4355958066_4e1b344cb3_o_d.png" alt="demo3" /><br />
<img src="http://farm5.static.flickr.com/4017/4355958268_6aae552204_o_d.png" alt="demo4" /><br />
<img src="http://farm3.static.flickr.com/2683/4355215179_2c404df0a7_o_d.png" alt="demo5" /></p>
<p>Some demos don't work perfectly, like the ones that should show a picture. The pictures are not there and the paths are hardcoded. But you can hack your way around and do some experiments. Enjoy!</p>
]]></content:encoded>
			<wfw:commentRss>http://stefano.italians.nl/archives/66/feed</wfw:commentRss>
		</item>
		<item>
		<title>Cover letter with style - part six</title>
		<link>http://stefano.italians.nl/archives/65</link>
		<comments>http://stefano.italians.nl/archives/65#comments</comments>
		<pubDate>Sat, 19 Sep 2009 20:16:25 +0000</pubDate>
		<dc:creator>kindoblue</dc:creator>
		
		<category><![CDATA[XeLaTeX]]></category>

		<category><![CDATA[tutorial]]></category>

		<category><![CDATA[LaTeX]]></category>

		<guid isPermaLink="false">http://stefano.italians.nl/archives/65</guid>
		<description><![CDATA[This is the sixth part of the tutorial Cover letter with style. You can find the fifth part here.
In this part I will show you how to add a barcode in the destination address. It's a kind of nerdy, but it will serve to illustrate how to do graphics stuff easily with XeLaTex. For the [...]]]></description>
			<content:encoded><![CDATA[<p>This is the sixth part of the tutorial <em>Cover letter with style</em>. You can find the fifth part <a href="http://stefano.italians.nl/archives/64">here</a>.</p>
<p>In this part I will show you how to add a barcode in the destination address. It's a kind of nerdy, but it will serve to illustrate how to do graphics stuff easily with XeLaTex. For the purpose, you have to install <a href="http://www.ctan.org/tex-archive/graphics/pstricks/">pstricks</a> and let Xe(La)Tex know about it. </p>
<p>Installing pstricks is very easy on ubuntu: just open a terminal and issue the command:</p>
<p><code>sudo apt-get install texlive-pstricks</code></p>
<p>Then, we need to inform Xe(La)Tex where to find the pstricks configuration file for the xdvipdfmx driver (this is the driver XeLaTex uses to output your pdf). To do so, first create a couple of directories</p>
<p><code>mkdir -p /usr/share/texmf-texlive/tex/xetex/xetex-pstricks/<br />
mkdir -p /usr/share/texmf-texlive/tex/xelatex/xetex-pstricks/</code></p>
<p>Then you need to copy this <a href="http://www.ctan.org/get/graphics/xetex-pstricks/xetex/xetex-pstricks/pstricks.con">pstricks.con</a> file in those directories. You need also to copy this <a href="http://www.ctan.org/get/graphics/pstricks/base/generic/xdvipdfmx.con">xdvipdfmx.con</a> file in </p>
<p><code>/usr/share/texmf-texlive/tex/generic/pstricks</code></p>
<p>To finish, run </p>
<p><code>sudo texhash</code></p>
<p>All this, to have graphics in your pdf's in just one go, through XeLaTex. For those who are not fully aware of the problem, <strong>I just saved you</strong> from this mess:</p>
<p><img src="http://farm3.static.flickr.com/2514/3933855817_bce6d5154f_o_d.jpg" alt="mess" /></p>
<p>Consider also that the above instructions are done once for all. <strong>After this setup, we are ready to use pstricks packages</strong>. </p>
<p>So, for drawing a barcode we can use <a href="http://www.ctan.org/pub/tex-archive/graphics/pstricks/contrib/pst-barcode/pst-barcode-doc.pdf">pst-barcode</a>. It is pretty easy to use and its documentation says it all. </p>
<p>This time, instead of changing the template file (<code>standard.lco</code>, remember?) I will change the letter itself, because the destination address is in there. So here it is the letter with the barcode added</p>
<div class="igBar"><span id="llatex-12"><a href="#" onclick="javascript:showPlainTxt('latex-12'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite">
<div id="latex-12">
<div class="latex" style="font-family: monospace;">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\documentclass</span>[<span style="color: #2222D0; font-weight: normal;">standard</span>]{<span style="color: #2222D0; font-weight: normal;">scrlttr2</span>}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\usepackage</span>{<span style="color: #2222D0; font-weight: normal;">pst-barcode</span>}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;"><span style="color: #F00000; font-weight: normal;">\begin</span></span>{<span style="color: #2222D0; font-weight: normal;">document</span>}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;"><span style="color: #F00000; font-weight: normal;">\begin</span></span>{<span style="color: #2222D0; font-weight: normal;">letter</span>}{<span style="color: #808080; font-style: italic;">%</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp;Damage Inc. --- HR Dept.\\<span style="color: #808080; font-style: italic;">%</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp;Paulus Potterstraat 134\\<span style="color: #808080; font-style: italic;">%</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp;1753KJ Amsterdam\\<span style="color: #808080; font-style: italic;">%</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #800000; font-weight: normal;">\psbarcode</span>{<span style="color: #2222D0; font-weight: normal;">1234567}{}{royalmail</span>}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">}</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\setkomavar</span>{<span style="color: #2222D0; font-weight: normal;">subject}{Cover Letter</span>}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\opening</span>{<span style="color: #2222D0; font-weight: normal;">Dear Recruiter,</span>}</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">My name is Iulius Caesar bla bla bla...</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\closing</span>{<span style="color: #2222D0; font-weight: normal;">Regards</span>}</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;"><span style="color: #F00000; font-weight: normal;">\end</span></span>{<span style="color: #2222D0; font-weight: normal;">letter</span>}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;"><span style="color: #F00000; font-weight: normal;">\end</span></span>{<span style="color: #2222D0; font-weight: normal;">document</span>}</div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>At line 3 I import the package and at line 11 I specify a royalmail barcode, coding the number 1234567 (just an example). If you typeset the document, you will obtain this </p>
<p><img src="http://farm3.static.flickr.com/2599/3935155918_a4c463861d_o_d.png" alt="bar1" /></p>
<p>Cool, isnt' it? Further, we can adjust the barcode position, specifing the optional parameters, <code>transx</code> and <code>transy</code></p>
<p><code>\psbarcode[transy=-0.2cm,transx=0.1cm]{1234567}{}{royalmail}</code></p>
<p>The result now is </p>
<p><img src="http://farm3.static.flickr.com/2550/3934373091_6b5a3dd41e_o_d.png" alt="bar2" /></p>
<p>The entire cover letter, finally, appears like that</p>
<p><img src="http://farm4.static.flickr.com/3489/3836098927_b95210d2e0_o_d.png" alt="step7" /></p>
<p>Well, it was a long journey but now we got a stylish cover letter to show off. I hope you like it. </p>
<p>I am still not done! I have to show one thing more: an alternative template you can use to completely change the look and feel of your cover letter. Keeping the template separated from the content permits us to easily swap style as changing one line only. </p>
<p>First of all, I will provide you a new template.</p>
<div class="igBar"><span id="llatex-13"><a href="#" onclick="javascript:showPlainTxt('latex-13'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite">
<div id="latex-13">
<div class="latex" style="font-family: monospace;">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\ProvidesFile</span>{<span style="color: #2222D0; font-weight: normal;">alternate.lco</span>}[<span style="color: #808080; font-style: italic;">%</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; 2002/07/09 v0.9a LaTeX2e unsupported letter-class-option]</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\usepackage</span>{<span style="color: #2222D0; font-weight: normal;">fontspec</span>}</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\usepackage</span>{<span style="color: #2222D0; font-weight: normal;">xltxtra</span>}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\usepackage</span>{<span style="color: #2222D0; font-weight: normal;">marvosym</span>}</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\usepackage</span>{<span style="color: #2222D0; font-weight: normal;">graphicx</span>}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\usepackage</span>[<span style="color: #2222D0; font-weight: normal;">dvipdfm</span>]{<span style="color: #2222D0; font-weight: normal;">geometry</span>}</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">% ==============================================</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">% &nbsp;PERSONAL DATA </span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">% ==============================================</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\setkomavar</span>{<span style="color: #2222D0; font-weight: normal;">fromname}{Iulius Caesar</span>}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\setkomavar</span>{<span style="color: #2222D0; font-weight: normal;">fromaddress}{Van Eeghenlaan 69\\1691QT Amsterdam\<span style="color: #800000; font-weight: normal;">\Nederland</span></span>}</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\setkomavar</span>{<span style="color: #2222D0; font-weight: normal;">fromphone}{+31 (0)22 7394203</span>}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\setkomavar</span>{<span style="color: #2222D0; font-weight: normal;">fromemail}{iulius@gmail.com</span>}</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\setkomavar</span>{<span style="color: #2222D0; font-weight: normal;">fromfax}{+31 (0)71 5144543</span>}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\setkomavar</span>{<span style="color: #2222D0; font-weight: normal;">fromurl}{http://stefano.italians.nl</span>}</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\setkomavar</span>{<span style="color: #2222D0; font-weight: normal;">frombank}{Postbank 9307157</span>}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\setkomavar</span>{<span style="color: #2222D0; font-weight: normal;">place}{Amsterdam</span>}</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\setkomavar</span>{<span style="color: #2222D0; font-weight: normal;">signature}{Iulius Caesar</span>}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\setkomavar</span>{<span style="color: #2222D0; font-weight: normal;">fromlogo}{<span style="color: #800000; font-weight: normal;">\includegraphics</span>[<span style="color: #2222D0; font-weight: normal;">width=3cm</span>]{sample_logo.eps}</span>}</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">% DIN standard</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">%\LoadLetterOption{DINmtext}</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">% ==============================================</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">% &nbsp;FORMATTING STUFF </span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">% ==============================================</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">% === font settings</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\defaultfontfeatures</span>{<span style="color: #2222D0; font-weight: normal;">Mapping=tex-text</span>}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\setmainfont</span> {<span style="color: #2222D0; font-weight: normal;">Adobe Garamond Pro</span>}</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\setsansfont</span> {<span style="color: #2222D0; font-weight: normal;">Gill Sans Std</span>}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">% shift the page body on the left to make room for </span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">% our data and logo</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\setlength</span>{<span style="color: #2222D0; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\oddsidemargin</span>}{<span style="color: #800000; font-weight: normal;">\useplength</span>{toaddrhpos}</span>}<span style="color: #808080; font-style: italic;">%</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\addtolength</span>{<span style="color: #2222D0; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\oddsidemargin</span>}{-1in</span>}<span style="color: #808080; font-style: italic;">%</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">% Take care that the shift stays intact even after recalculating the page</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">% layout (see Kohm &amp; Morawski 2005, section C.7)</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\l</span>@addto@macro{<span style="color: #2222D0; font-weight: normal;">\@typearea@end</span>}{<span style="color: #808080; font-style: italic;">%</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; <span style="color: #800000; font-weight: normal;">\setlength</span>{<span style="color: #2222D0; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\oddsidemargin</span>}{<span style="color: #800000; font-weight: normal;">\useplength</span>{toaddrhpos}</span>}<span style="color: #808080; font-style: italic;">%</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; <span style="color: #800000; font-weight: normal;">\addtolength</span>{<span style="color: #2222D0; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\oddsidemargin</span>}{-1in</span>}<span style="color: #808080; font-style: italic;">%</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">% setup some lenghts</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">\@setplength{<span style="color: #2222D0; font-weight: normal;">firstheadvpos}{0pt</span>}<span style="color: #808080; font-style: italic;">%</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">\@setplength{<span style="color: #2222D0; font-weight: normal;">firstheadwidth}{<span style="color: #800000; font-weight: normal;">\paperwidth</span></span>}<span style="color: #808080; font-style: italic;">%</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">\@setplength{<span style="color: #2222D0; font-weight: normal;">firstfootvpos}{<span style="color: #800000; font-weight: normal;">\paperheight</span></span>}<span style="color: #808080; font-style: italic;">%</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">\@addtoplength[<span style="color: #2222D0; font-weight: normal;">-</span>]{<span style="color: #2222D0; font-weight: normal;">firstfootvpos}{<span style="color: #800000; font-weight: normal;">\useplength</span>{toaddrvpos}</span>}<span style="color: #808080; font-style: italic;">%</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">\@addtoplength{<span style="color: #2222D0; font-weight: normal;">refvpos}{-1.5<span style="color: #800000; font-weight: normal;">\baselineskip</span></span>}<span style="color: #808080; font-style: italic;">%</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">\@newplength{<span style="color: #2222D0; font-weight: normal;">infocolwidth</span>}<span style="color: #808080; font-style: italic;">%</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">% Kohm &amp; Morawski 2005, C.7. Modifikationen (Modifications)</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\ifdim</span> <span style="color: #800000; font-weight: normal;">\textwidth</span>&lt;0.666<span style="color: #800000; font-weight: normal;">\paperwidth</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; \@setplength{<span style="color: #2222D0; font-weight: normal;">infocolwidth}{.22222<span style="color: #800000; font-weight: normal;">\paperwidth</span></span>}<span style="color: #808080; font-style: italic;">%</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\else</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; \@setplength{<span style="color: #2222D0; font-weight: normal;">infocolwidth}{0.1667<span style="color: #800000; font-weight: normal;">\paperwidth</span></span>}<span style="color: #808080; font-style: italic;">%</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\fi</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">% define new variable company</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\newkomavar</span>{<span style="color: #2222D0; font-weight: normal;">company</span>}<span style="color: #808080; font-style: italic;">%</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\setkomavar</span>{<span style="color: #2222D0; font-weight: normal;">company}{Initech</span>}</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">% fancy header for the first page</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\firsthead</span>{<span style="color: #808080; font-style: italic;">%</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; <span style="color: #800000; font-weight: normal;">\fontsize</span>{<span style="color: #2222D0; font-weight: normal;">8}{9</span>}<span style="color: #800000; font-weight: normal;">\sffamily</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; <span style="color: #800000; font-weight: normal;">\hspace</span>*{<span style="color: #2222D0; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\fill</span></span>}<span style="color: #808080; font-style: italic;">%</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; <span style="color: #800000; font-weight: normal;"><span style="color: #F00000; font-weight: normal;">\begin</span></span>{<span style="color: #2222D0; font-weight: normal;">picture</span>}(0,0)<span style="color: #808080; font-style: italic;">%</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #800000; font-weight: normal;">\put</span>(0,0){<span style="color: #2222D0; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\parbox</span>[<span style="color: #2222D0; font-weight: normal;">t</span>]{<span style="color: #800000; font-weight: normal;">\useplength</span>{infocolwidth}</span>}{<span style="color: #808080; font-style: italic;">%</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #800000; font-weight: normal;">\vspace</span>{<span style="color: #2222D0; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\useplength</span>{toaddrvpos}</span>}<span style="color: #808080; font-style: italic;">%</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #800000; font-weight: normal;">\usekomavar</span>{<span style="color: #2222D0; font-weight: normal;">fromlogo</span>}<span style="color: #808080; font-style: italic;">%</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; }<span style="color: #808080; font-style: italic;">%</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; }<span style="color: #808080; font-style: italic;">%</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #800000; font-weight: normal;">\put</span>(0,0){<span style="color: #2222D0; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\parbox</span>[<span style="color: #2222D0; font-weight: normal;">t</span>]{<span style="color: #800000; font-weight: normal;">\useplength</span>{infocolwidth}</span>}{<span style="color: #808080; font-style: italic;">%</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #800000; font-weight: normal;">\raggedright</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #800000; font-weight: normal;">\vspace</span>{<span style="color: #2222D0; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\useplength</span>{refvpos}</span>}<span style="color: #808080; font-style: italic;">%</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #800000; font-weight: normal;">\vspace</span>{<span style="color: #2222D0; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\useplength</span>{refaftervskip}</span>}<span style="color: #808080; font-style: italic;">%</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #800000; font-weight: normal;">\usekomavar</span>{<span style="color: #2222D0; font-weight: normal;">place}<span style="color: #800000; font-weight: normal;">\usekomavar</span>{placeseparator</span>}\\</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #800000; font-weight: normal;">\usekomavar</span>{<span style="color: #2222D0; font-weight: normal;">date</span>}\\[<span style="color: #2222D0; font-weight: normal;">10<span style="color: #800000; font-weight: normal;">\baselineskip</span></span>]</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #800000; font-weight: normal;">\usekomavar</span>{<span style="color: #2222D0; font-weight: normal;">fromname</span>}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #800000; font-weight: normal;">\ifkomavarempty</span>{<span style="color: #2222D0; font-weight: normal;">company}{</span>}{<span style="color: #808080; font-style: italic;">%</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \\</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #800000; font-weight: normal;">\usekomavar</span>{<span style="color: #2222D0; font-weight: normal;">company</span>}<span style="color: #808080; font-style: italic;">%</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; }\\[<span style="color: #2222D0; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\baselineskip</span></span>]</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #800000; font-weight: normal;">\usekomavar</span>{<span style="color: #2222D0; font-weight: normal;">fromaddress</span>}\\</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #800000; font-weight: normal;">\usekomavar</span>*{<span style="color: #2222D0; font-weight: normal;">fromphone}<span style="color: #800000; font-weight: normal;">\usekomavar</span>{fromphone</span>}\\</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #800000; font-weight: normal;">\usekomavar</span>*{<span style="color: #2222D0; font-weight: normal;">fromfax}<span style="color: #800000; font-weight: normal;">\usekomavar</span>{fromfax</span>}<span style="color: #808080; font-style: italic;">%</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; \\[<span style="color: #2222D0; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\baselineskip</span></span>]</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #800000; font-weight: normal;">\usekomavar</span>{<span style="color: #2222D0; font-weight: normal;">fromemail</span>}\\</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #800000; font-weight: normal;">\usekomavar</span>{<span style="color: #2222D0; font-weight: normal;">fromurl</span>}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; }<span style="color: #808080; font-style: italic;">%</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; }<span style="color: #808080; font-style: italic;">%</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; <span style="color: #800000; font-weight: normal;"><span style="color: #F00000; font-weight: normal;">\end</span></span>{<span style="color: #2222D0; font-weight: normal;">picture</span>}<span style="color: #808080; font-style: italic;">%</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; <span style="color: #800000; font-weight: normal;">\hspace</span>*{<span style="color: #2222D0; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\useplength</span>{infocolwidth}</span>}<span style="color: #808080; font-style: italic;">%</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">}<span style="color: #808080; font-style: italic;">%</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">% avoid the display of the date in the default position</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\l</span>@addto@macro\@firstheadfootfield{<span style="color: #2222D0; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\setkomavar</span>{date}{}</span>}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\endinput</span></div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>I won't explain the details. Moreover, this template was not created by me: I just copied (and somewhat simplified) the template shown in this <a href="http://www.tug.org/pracjourn/2006-3/robbers/robbers.pdf">document</a> [Replacing LATEX2# standard classes with KOMA-Script by Yuri Robbers, Markus Kohm and Rasmus Pank Roulund]. </p>
<p>Save the above template in <code>alternate.lco</code> file. Also, check the line 22, where the name of your logo should be specified. Now take your cover letter and in the first line specifiy you want to use this alternative template, like this</p>
<div class="igBar"><span id="llatex-14"><a href="#" onclick="javascript:showPlainTxt('latex-14'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite">
<div id="latex-14">
<div class="latex" style="font-family: monospace;">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\documentclass</span>[<span style="color: #2222D0; font-weight: normal;">alternate</span>]{<span style="color: #2222D0; font-weight: normal;">scrlttr2</span>}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\usepackage</span>{<span style="color: #2222D0; font-weight: normal;">pst-barcode</span>}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;"><span style="color: #F00000; font-weight: normal;">\begin</span></span>{<span style="color: #2222D0; font-weight: normal;">document</span>}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;"><span style="color: #F00000; font-weight: normal;">\begin</span></span>{<span style="color: #2222D0; font-weight: normal;">letter</span>}{<span style="color: #808080; font-style: italic;">%</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp;Damage Inc. --- HR Dept.\\<span style="color: #808080; font-style: italic;">%</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp;Paulus Potterstraat 134\\<span style="color: #808080; font-style: italic;">%</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp;1753KJ Amsterdam</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #800000; font-weight: normal;">\psbarcode</span>{<span style="color: #2222D0; font-weight: normal;">1234567}{}{royalmail</span>}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">}</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\setkomavar</span>{<span style="color: #2222D0; font-weight: normal;">subject}{Cover Letter</span>}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\opening</span>{<span style="color: #2222D0; font-weight: normal;">Dear Recruiter,</span>}</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">My name is Iulius Caesar bla bla bla...</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\closing</span>{<span style="color: #2222D0; font-weight: normal;">Regards</span>}</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;"><span style="color: #F00000; font-weight: normal;">\end</span></span>{<span style="color: #2222D0; font-weight: normal;">letter</span>}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;"><span style="color: #F00000; font-weight: normal;">\end</span></span>{<span style="color: #2222D0; font-weight: normal;">document</span>}</div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>That's all. I just changed the first line, instructing KOMA-Script to load the alternate file (no need to specify the <code>.lco</code> extension). If you typeset the document, your cover letter now will look like this</p>
<p><img src="http://farm3.static.flickr.com/2619/3836889310_0cc5f5980f_o_d.png" alt="alternate" /></p>
<p>Mind that the logo was not the one I used in the previous part. I edited it to have the outlines in stronger colors (it has to be in the foreground, this time)</p>
<p>So, I hope you enjoyed the tutorial. And I hope you can sport those cover letters in the next job application; maybe they will give you more points, who knows....</p>
<p>See you in seven years</p>
]]></content:encoded>
			<wfw:commentRss>http://stefano.italians.nl/archives/65/feed</wfw:commentRss>
		</item>
		<item>
		<title>Cover letter with style - part five</title>
		<link>http://stefano.italians.nl/archives/64</link>
		<comments>http://stefano.italians.nl/archives/64#comments</comments>
		<pubDate>Sat, 19 Sep 2009 17:02:19 +0000</pubDate>
		<dc:creator>kindoblue</dc:creator>
		
		<category><![CDATA[XeLaTeX]]></category>

		<category><![CDATA[tutorial]]></category>

		<category><![CDATA[LaTeX]]></category>

		<guid isPermaLink="false">http://stefano.italians.nl/archives/64</guid>
		<description><![CDATA[This is the fifth part of the tutorial Cover letter with style. You can find the fourth part here.
In this part I will show you how to add your logo as a watermark to your cover letter1
Ok, ready to go. Well...almost: you need a logo. For this time, I will provide one (Save link as...) [...]]]></description>
			<content:encoded><![CDATA[<p>This is the fifth part of the tutorial <em>Cover letter with style</em>. You can find the fourth part <a href="http://stefano.italians.nl/archives/63">here</a>.</p>
<p>In this part I will show you how to add your logo as a watermark to your cover letter<sup>1</sup></p>
<p>Ok, ready to go. Well...almost: you need a logo. For this time, I will provide <a href="http://stefano.italians.nl/files/sample_logo_transparent.svg">one</a> (<em>Save link as...</em>) so you can proceed with the tutorial. It is a simple vectorial image, edited with <a href="http://www.inkscape.org/">Inkscape</a>. If you don't have Inkscape installed, you already know what to do:</p>
<p><code>sudo apt-get install inkscape</code></p>
<p>Actually, if you are able to, I suggest to compile and install Inkscape from the svn sources, but it is not mandatory.</p>
<p>Another thing you need is to install a couple of fonts in a way the logo will look like as I designed. The fonts are: <a href="http://www.josbuivenga.demon.nl/diavlo.html">Diavlo</a> and <a href="http://www.josbuivenga.demon.nl/fontin.html">Fontin</a>. Designed by Jos Buivenga, they are free to use. I already explained how to install new fonts in linux, so I won't bother you further. </p>
<p>Once the fonts and Inkscape are installed, grab the svg <a href="http://stefano.italians.nl/files/sample_logo_transparent.svg">sample logo</a> I made for you. Launch Inkscape, open the file and customize a little bit. For example, you could select the name</p>
<p><img src="http://farm4.static.flickr.com/3474/3933518341_a4436ea74f_o_d.png" alt="edit" /></p>
<p>replace it and then adjust the its displacement with <code>ALT+(arrows up/down/left/right)</code> which are the keys to adjust the font tracking and kerning in Inkscape. There's a plenty of Inkscape tutorials out there, so I am confident you will come up with a decent logo for yourself. </p>
<p>For the moment, I suggest you to do just little changes and <strong>save the file as Encapsulated Postscript</strong> (.eps). Before saving, Inkscape shows you this dialog:</p>
<p><img src="http://farm3.static.flickr.com/2501/3934301202_03436d72f0_o_d.png" alt="dialog" /></p>
<p>There's only one option you should change: enable the "Convert texts to paths". What it does is converting... well, text into vectorial outlines (so font informations are then discarded) If you don't check that option, acrobat reader will consider text as text in your final pdf document. In brief, it will make the text selectable, like this</p>
<p><img src="http://farm3.static.flickr.com/2517/3934301048_b9e1ee3846_o_d.png" alt="selectable" /></p>
<p>And, in general, you don't want that happening for a background image, don't you? </p>
<p>Anyway, now you should have your beautiful logo, says <code>sample_logo_transparent.eps</code>. A little digression: for the name of my logo I used the word <em>transparent</em>, but the eps's don't really support transparency. If you go back to Inkscape and look carefully at the fill properties:</p>
<p><img src="http://farm3.static.flickr.com/2570/3933518203_a42ebd8369_o_d.png" alt="fill" /></p>
<p>you will notice that the opacity is 100% and the color of the outlines is just a light gray, giving the impression, in the final document, of transparency. At first one could think to use indeed opacity parameter and save the logo as pdf (which supports transparency) but the final result is awful.  </p>
<p><img src="http://farm4.static.flickr.com/3432/3934636446_0ffaeb1d6a_o_d.png" alt="bad" /></p>
<p>The above picture is not a screenshot gone bad, it is the actual result if you try to import the image as pdf (supporting transparency) instead of an encapsulated postscript (which doesn't support transparency, so you are forced to fake using light colors). If someone obtains better results in importing images as pdf's, let me know, please. End of digression.</p>
<p>Ok, time is come to add our picture as the page background. For the purpose I will use a tiny package called <a href="http://www.ctan.org/pub/tex-archive/macros/latex/contrib/eso-pic/eso-pic.pdf">eso-pic</a>. </p>
<div class="igBar"><span id="llatex-16"><a href="#" onclick="javascript:showPlainTxt('latex-16'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite">
<div id="latex-16">
<div class="latex" style="font-family: monospace;">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\ProvidesFile</span>{<span style="color: #2222D0; font-weight: normal;">standard.lco</span>}[<span style="color: #808080; font-style: italic;">%</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; 2002/07/09 v0.9a LaTeX2e unsupported letter-class-option]</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\usepackage</span>{<span style="color: #2222D0; font-weight: normal;">fontspec</span>}</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\usepackage</span>{<span style="color: #2222D0; font-weight: normal;">marvosym</span>}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\usepackage</span>{<span style="color: #2222D0; font-weight: normal;">eso-pic</span>}</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">% ==============================================</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">% &nbsp;PERSONAL DATA </span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">% ==============================================</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\setkomavar</span>{<span style="color: #2222D0; font-weight: normal;">fromname}{Iulius Caesar</span>}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\setkomavar</span>{<span style="color: #2222D0; font-weight: normal;">fromaddress}{Van Eeghenlaan 69\\1691QT Amsterdam\<span style="color: #800000; font-weight: normal;">\Nederland</span></span>}</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\setkomavar</span>{<span style="color: #2222D0; font-weight: normal;">fromphone}{+31 (0)22 7394203</span>}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\setkomavar</span>{<span style="color: #2222D0; font-weight: normal;">fromemail}{iulius@gmail.com</span>}</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\setkomavar</span>{<span style="color: #2222D0; font-weight: normal;">fromfax}{+31 (0)71 5144543</span>}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\setkomavar</span>{<span style="color: #2222D0; font-weight: normal;">fromurl}{http://stefano.italians.nl</span>}</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\setkomavar</span>{<span style="color: #2222D0; font-weight: normal;">frombank}{Postbank 9307157</span>}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\setkomavar</span>{<span style="color: #2222D0; font-weight: normal;">place}{Amsterdam</span>}</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\setkomavar</span>{<span style="color: #2222D0; font-weight: normal;">signature}{Iulius Caesar</span>}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">% ==============================================</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">% &nbsp;FORMATTING STUFF </span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">% ==============================================</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">% === font settings</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\defaultfontfeatures</span>{<span style="color: #2222D0; font-weight: normal;">Mapping=tex-text</span>}</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\setmainfont</span> {<span style="color: #2222D0; font-weight: normal;">Adobe Garamond Pro</span>}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\setsansfont</span> {<span style="color: #2222D0; font-weight: normal;">Gill Sans Std</span>}</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">%set the font size and leading</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\renewcommand</span>{<span style="color: #2222D0; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\normalsize</span>}{<span style="color: #800000; font-weight: normal;">\fontsize</span>{12.5}{17}<span style="color: #800000; font-weight: normal;">\selectfont</span></span>} </div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">% === header settings</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\firsthead</span>{</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp;<span style="color: #800000; font-weight: normal;">\centering</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;{<span style="color: #2222D0; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\addfontfeature</span>{LetterSpace=20.0}<span style="color: #800000; font-weight: normal;">\fontsize</span>{36}{36}<span style="color: #800000; font-weight: normal;">\selectfont</span><span style="color: #800000; font-weight: normal;">\scshape</span> <span style="color: #800000; font-weight: normal;">\usekomavar</span>{fromname}</span>}\\[<span style="color: #2222D0; font-weight: normal;">5mm</span>]</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #800000; font-weight: normal;">\fontsize</span>{<span style="color: #2222D0; font-weight: normal;">21}{21</span>}<span style="color: #800000; font-weight: normal;">\selectfont</span><span style="color: #800000; font-weight: normal;">\scshape</span> Programmer and Architect at Initech</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">}</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">% === footer settings</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\firstfoot</span>{</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; <span style="color: #800000; font-weight: normal;">\centering</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; <span style="color: #800000; font-weight: normal;">\addfontfeature</span>{<span style="color: #2222D0; font-weight: normal;">LetterSpace=20.0</span>}<span style="color: #800000; font-weight: normal;">\scshape</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; {</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; <span style="color: #800000; font-weight: normal;">\renewcommand</span>{<span style="color: #2222D0; font-weight: normal;">\\}{\ {<span style="color: #800000; font-weight: normal;">\large</span><span style="color: #800000; font-weight: normal;">\textperiodcentered</span>}\ </span>}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; <span style="color: #800000; font-weight: normal;">\usekomavar</span>{<span style="color: #2222D0; font-weight: normal;">fromaddress</span>}</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; }\\</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; {<span style="color: #2222D0; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\Large</span><span style="color: #800000; font-weight: normal;">\Letter</span>} <span style="color: #800000; font-weight: normal;">\usekomavar</span>{fromemail} \ {<span style="color: #800000; font-weight: normal;">\Large</span><span style="color: #800000; font-weight: normal;">\Telefon</span>} <span style="color: #800000; font-weight: normal;">\usekomavar</span>{fromphone</span>}</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">% === watermark settings</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\newcommand</span><span style="color: #800000; font-weight: normal;">\BackgroundPicture</span>{</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp;<span style="color: #800000; font-weight: normal;">\put</span>(0,0){</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp;<span style="color: #800000; font-weight: normal;">\parbox</span>[<span style="color: #2222D0; font-weight: normal;">b][<span style="color: #800000; font-weight: normal;">\paperheight</span></span>]{<span style="color: #2222D0; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\paperwidth</span></span>}{</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #800000; font-weight: normal;">\vfill</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #800000; font-weight: normal;">\centering</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #800000; font-weight: normal;">\includegraphics</span>[width=0.8<span style="color: #800000; font-weight: normal;">\paperwidth</span>,height=0.8<span style="color: #800000; font-weight: normal;">\paperheight</span>,<span style="color: #808080; font-style: italic;">%</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; keepaspectratio]{<span style="color: #2222D0; font-weight: normal;">sample_logo_transparent.eps</span>}<span style="color: #808080; font-style: italic;">%</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #800000; font-weight: normal;">\vfill</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp;}}}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">% the picture is centered on the page background</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\AddToShipoutPicture</span>{<span style="color: #2222D0; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\BackgroundPicture</span></span>}</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\endinput</span></div>
</li>
</ol>
</div>
</div>
</div>
<p>  </p>
<p>At line 6 I imported the package and at line 62 I added the background picture, which is defined in lines 51-59. The command <code>\BackgroundPicture</code> will put a box big as the entire page. Inside the box, the image, centered orizontally (with <code>\centering</code>) and vertically (with a pair of enclosing <code>\vfill</code>)</p>
<p>Finally! Let's run xelatex and see the result:</p>
<p><img src="http://farm3.static.flickr.com/2576/3934636724_6ab0b3e688_o_d.png" alt="step 6" /></p>
<p>Our mighty page came to life. Hope you like it. Happy experimenting. </p>
<p>Click here for the <a href="http://stefano.italians.nl/archives/65">last part</a> of the tutorial.</p>
<ol class="footnotes"><li id="footnote_0_64" class="footnote">Note that in this part of the tutorial there is nothing specific to XeLaTex, so ideally you can use these instructions to add a watermark also to plain Latex documents.</li></ol>]]></content:encoded>
			<wfw:commentRss>http://stefano.italians.nl/archives/64/feed</wfw:commentRss>
		</item>
		<item>
		<title>Cover letter with style - part four</title>
		<link>http://stefano.italians.nl/archives/63</link>
		<comments>http://stefano.italians.nl/archives/63#comments</comments>
		<pubDate>Sat, 12 Sep 2009 12:37:37 +0000</pubDate>
		<dc:creator>kindoblue</dc:creator>
		
		<category><![CDATA[XeLaTeX]]></category>

		<category><![CDATA[tutorial]]></category>

		<category><![CDATA[LaTeX]]></category>

		<guid isPermaLink="false">http://stefano.italians.nl/archives/63</guid>
		<description><![CDATA[This is the fourth part of the tutorial Cover letter with style. You can find the third part here.
After the header, I will take care of the footer. To change the default I will use the \firstfoot command. Basically it works like \firsthead, so I have nothing special to add. I will update the template [...]]]></description>
			<content:encoded><![CDATA[<p>This is the fourth part of the tutorial <em>Cover letter with style</em>. You can find the third part <a href="http://stefano.italians.nl/archives/62">here</a>.</p>
<p>After the header, I will take care of the footer. To change the default I will use the <code>\firstfoot</code> command. Basically it works like <code>\firsthead</code>, so I have nothing special to add. I will update the template with:</p>
<div class="igBar"><span id="llatex-22"><a href="#" onclick="javascript:showPlainTxt('latex-22'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite">
<div id="latex-22">
<div class="latex" style="font-family: monospace;">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\ProvidesFile</span>{<span style="color: #2222D0; font-weight: normal;">standard.lco</span>}[<span style="color: #808080; font-style: italic;">%</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; 2002/07/09 v0.9a LaTeX2e unsupported letter-class-option]</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\usepackage</span>{<span style="color: #2222D0; font-weight: normal;">fontspec</span>}</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">% ==============================================</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">% &nbsp;PERSONAL DATA </span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">% ==============================================</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\setkomavar</span>{<span style="color: #2222D0; font-weight: normal;">fromname}{Iulius Caesar</span>}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\setkomavar</span>{<span style="color: #2222D0; font-weight: normal;">fromaddress}{Van Eeghenlaan 69\\1691QT Amsterdam\<span style="color: #800000; font-weight: normal;">\Nederland</span></span>}</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\setkomavar</span>{<span style="color: #2222D0; font-weight: normal;">fromphone}{+31 (0)22 7394203</span>}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\setkomavar</span>{<span style="color: #2222D0; font-weight: normal;">fromemail}{iulius@gmail.com</span>}</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\setkomavar</span>{<span style="color: #2222D0; font-weight: normal;">fromfax}{+31 (0)71 5144543</span>}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\setkomavar</span>{<span style="color: #2222D0; font-weight: normal;">fromurl}{http://stefano.italians.nl</span>}</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\setkomavar</span>{<span style="color: #2222D0; font-weight: normal;">frombank}{Postbank 9307157</span>}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\setkomavar</span>{<span style="color: #2222D0; font-weight: normal;">place}{Amsterdam</span>}</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\setkomavar</span>{<span style="color: #2222D0; font-weight: normal;">signature}{Iulius Caesar</span>}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">% ==============================================</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">% &nbsp;FORMATTING STUFF </span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">% ==============================================</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">% === font settings</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\defaultfontfeatures</span>{<span style="color: #2222D0; font-weight: normal;">Mapping=tex-text</span>}</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\setmainfont</span> {<span style="color: #2222D0; font-weight: normal;">Adobe Garamond Pro</span>}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\setsansfont</span> {<span style="color: #2222D0; font-weight: normal;">Gill Sans Std</span>}</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">%set the font size and leading</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\renewcommand</span>{<span style="color: #2222D0; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\normalsize</span>}{<span style="color: #800000; font-weight: normal;">\fontsize</span>{12.5}{17}<span style="color: #800000; font-weight: normal;">\selectfont</span></span>} </div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">% === header settings</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\firsthead</span>{</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp;<span style="color: #800000; font-weight: normal;">\centering</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;{<span style="color: #2222D0; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\addfontfeature</span>{LetterSpace=20.0}<span style="color: #800000; font-weight: normal;">\fontsize</span>{36}{36}<span style="color: #800000; font-weight: normal;">\selectfont</span><span style="color: #800000; font-weight: normal;">\scshape</span> <span style="color: #800000; font-weight: normal;">\usekomavar</span>{fromname}</span>}\\[<span style="color: #2222D0; font-weight: normal;">5mm</span>]</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #800000; font-weight: normal;">\fontsize</span>{<span style="color: #2222D0; font-weight: normal;">21}{21</span>}<span style="color: #800000; font-weight: normal;">\selectfont</span><span style="color: #800000; font-weight: normal;">\scshape</span> Programmer and Architect at Initech</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">}</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">% === footer settings</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\firstfoot</span>{</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; <span style="color: #800000; font-weight: normal;">\centering</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #800000; font-weight: normal;">\usekomavar</span>{<span style="color: #2222D0; font-weight: normal;">fromaddress</span>} \\</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #800000; font-weight: normal;">\usekomavar</span>{<span style="color: #2222D0; font-weight: normal;">fromemail} <span style="color: #800000; font-weight: normal;">\usekomavar</span>{fromphone</span>}</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\endinput</span></div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>At line 39 I've declared my new footer. I wanted the material in the footer to be centered (line 40) and I've read the content of the variable <code>fromaddress</code> and used it as the first line, then the break line (<code>\\</code>) and then the email and phone (also read from the corresponding variables). The result is the following:</p>
<p><img src="http://farm4.static.flickr.com/3528/3912243574_dd267000fd_o_d.png" alt="footer one" /> </p>
<p>There's a problem with the way I declared the <code>fromaddress</code>: to have KOMA-Script rendering my address on three lines, I used the break line command (<code>\\</code>) but now I would like a one-liner address in the footer. I could declare yet another variable, this time avoiding to put the line breaks, but it will be an ugly duplication. Instead, I will use <code>\renewcommand{}{}</code>. As first parameter it takes the command to be redefined and as second parameter you declare the new material to use instead. Well, let's proceed:</p>
<div class="igBar"><span id="llatex-23"><a href="#" onclick="javascript:showPlainTxt('latex-23'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite">
<div id="latex-23">
<div class="latex" style="font-family: monospace;">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\ProvidesFile</span>{<span style="color: #2222D0; font-weight: normal;">standard.lco</span>}[<span style="color: #808080; font-style: italic;">%</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; 2002/07/09 v0.9a LaTeX2e unsupported letter-class-option]</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\usepackage</span>{<span style="color: #2222D0; font-weight: normal;">fontspec</span>}</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">% ==============================================</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">% &nbsp;PERSONAL DATA </span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">% ==============================================</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\setkomavar</span>{<span style="color: #2222D0; font-weight: normal;">fromname}{Iulius Caesar</span>}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\setkomavar</span>{<span style="color: #2222D0; font-weight: normal;">fromaddress}{Van Eeghenlaan 69\\1691QT Amsterdam\<span style="color: #800000; font-weight: normal;">\Nederland</span></span>}</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\setkomavar</span>{<span style="color: #2222D0; font-weight: normal;">fromphone}{+31 (0)22 7394203</span>}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\setkomavar</span>{<span style="color: #2222D0; font-weight: normal;">fromemail}{iulius@gmail.com</span>}</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\setkomavar</span>{<span style="color: #2222D0; font-weight: normal;">fromfax}{+31 (0)71 5144543</span>}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\setkomavar</span>{<span style="color: #2222D0; font-weight: normal;">fromurl}{http://stefano.italians.nl</span>}</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\setkomavar</span>{<span style="color: #2222D0; font-weight: normal;">frombank}{Postbank 9307157</span>}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\setkomavar</span>{<span style="color: #2222D0; font-weight: normal;">place}{Amsterdam</span>}</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\setkomavar</span>{<span style="color: #2222D0; font-weight: normal;">signature}{Iulius Caesar</span>}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">% ==============================================</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">% &nbsp;FORMATTING STUFF </span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">% ==============================================</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">% === font settings</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\defaultfontfeatures</span>{<span style="color: #2222D0; font-weight: normal;">Mapping=tex-text</span>}</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\setmainfont</span> {<span style="color: #2222D0; font-weight: normal;">Adobe Garamond Pro</span>}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\setsansfont</span> {<span style="color: #2222D0; font-weight: normal;">Gill Sans Std</span>}</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">%set the font size and leading</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\renewcommand</span>{<span style="color: #2222D0; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\normalsize</span>}{<span style="color: #800000; font-weight: normal;">\fontsize</span>{12.5}{17}<span style="color: #800000; font-weight: normal;">\selectfont</span></span>} </div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">% === header settings</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\firsthead</span>{</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp;<span style="color: #800000; font-weight: normal;">\centering</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;{<span style="color: #2222D0; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\addfontfeature</span>{LetterSpace=20.0}<span style="color: #800000; font-weight: normal;">\fontsize</span>{36}{36}<span style="color: #800000; font-weight: normal;">\selectfont</span><span style="color: #800000; font-weight: normal;">\scshape</span> <span style="color: #800000; font-weight: normal;">\usekomavar</span>{fromname}</span>}\\[<span style="color: #2222D0; font-weight: normal;">5mm</span>]</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #800000; font-weight: normal;">\fontsize</span>{<span style="color: #2222D0; font-weight: normal;">21}{21</span>}<span style="color: #800000; font-weight: normal;">\selectfont</span><span style="color: #800000; font-weight: normal;">\scshape</span> Programmer and Architect at Initech</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">}</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">% === footer settings</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\firstfoot</span>{</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; <span style="color: #800000; font-weight: normal;">\centering</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; {</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; <span style="color: #800000; font-weight: normal;">\renewcommand</span>{<span style="color: #2222D0; font-weight: normal;">\\}{<span style="color: #800000; font-weight: normal;">\textperiodcentered</span></span>}</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; <span style="color: #800000; font-weight: normal;">\usekomavar</span>{<span style="color: #2222D0; font-weight: normal;">fromaddress</span>}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; }\\</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #800000; font-weight: normal;">\usekomavar</span>{<span style="color: #2222D0; font-weight: normal;">fromemail} <span style="color: #800000; font-weight: normal;">\usekomavar</span>{fromphone</span>}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">}</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\endinput</span></div>
</li>
</ol>
</div>
</div>
</div>
<p>  </p>
<p>First of all, I enclose the first line in curly braces (line 41 and 44). In this way the effect of <code>\renewcommand</code> will remain local and will not affect the entire document. At line 42 I redefine the meaning of the <code>\\</code> command, specifying it has to be replaced by a dot. That's all. Let's look at the result </p>
<p><img src="http://farm3.static.flickr.com/2541/3912266806_4ab19caf05_o_d.png" alt="footer two" /></p>
<p>So, only for the first line in the footer, the line breaks in my address were replaced by a dot. Now just enlarge the dots and add some space before and after them:</p>
<div class="igBar"><span id="llatex-24"><a href="#" onclick="javascript:showPlainTxt('latex-24'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite">
<div id="latex-24">
<div class="latex" style="font-family: monospace;">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\ProvidesFile</span>{<span style="color: #2222D0; font-weight: normal;">standard.lco</span>}[<span style="color: #808080; font-style: italic;">%</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; 2002/07/09 v0.9a LaTeX2e unsupported letter-class-option]</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\usepackage</span>{<span style="color: #2222D0; font-weight: normal;">fontspec</span>}</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">% ==============================================</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">% &nbsp;PERSONAL DATA </span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">% ==============================================</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\setkomavar</span>{<span style="color: #2222D0; font-weight: normal;">fromname}{Iulius Caesar</span>}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\setkomavar</span>{<span style="color: #2222D0; font-weight: normal;">fromaddress}{Van Eeghenlaan 69\\1691QT Amsterdam\<span style="color: #800000; font-weight: normal;">\Nederland</span></span>}</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\setkomavar</span>{<span style="color: #2222D0; font-weight: normal;">fromphone}{+31 (0)22 7394203</span>}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\setkomavar</span>{<span style="color: #2222D0; font-weight: normal;">fromemail}{iulius@gmail.com</span>}</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\setkomavar</span>{<span style="color: #2222D0; font-weight: normal;">fromfax}{+31 (0)71 5144543</span>}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\setkomavar</span>{<span style="color: #2222D0; font-weight: normal;">fromurl}{http://stefano.italians.nl</span>}</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\setkomavar</span>{<span style="color: #2222D0; font-weight: normal;">frombank}{Postbank 9307157</span>}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\setkomavar</span>{<span style="color: #2222D0; font-weight: normal;">place}{Amsterdam</span>}</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\setkomavar</span>{<span style="color: #2222D0; font-weight: normal;">signature}{Iulius Caesar</span>}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">% ==============================================</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">% &nbsp;FORMATTING STUFF </span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">% ==============================================</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">% === font settings</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\defaultfontfeatures</span>{<span style="color: #2222D0; font-weight: normal;">Mapping=tex-text</span>}</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\setmainfont</span> {<span style="color: #2222D0; font-weight: normal;">Adobe Garamond Pro</span>}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\setsansfont</span> {<span style="color: #2222D0; font-weight: normal;">Gill Sans Std</span>}</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">%set the font size and leading</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\renewcommand</span>{<span style="color: #2222D0; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\normalsize</span>}{<span style="color: #800000; font-weight: normal;">\fontsize</span>{12.5}{17}<span style="color: #800000; font-weight: normal;">\selectfont</span></span>} </div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">% === header settings</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\firsthead</span>{</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp;<span style="color: #800000; font-weight: normal;">\centering</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;{<span style="color: #2222D0; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\addfontfeature</span>{LetterSpace=20.0}<span style="color: #800000; font-weight: normal;">\fontsize</span>{36}{36}<span style="color: #800000; font-weight: normal;">\selectfont</span><span style="color: #800000; font-weight: normal;">\scshape</span> <span style="color: #800000; font-weight: normal;">\usekomavar</span>{fromname}</span>}\\[<span style="color: #2222D0; font-weight: normal;">5mm</span>]</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #800000; font-weight: normal;">\fontsize</span>{<span style="color: #2222D0; font-weight: normal;">21}{21</span>}<span style="color: #800000; font-weight: normal;">\selectfont</span><span style="color: #800000; font-weight: normal;">\scshape</span> Programmer and Architect at Initech</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">}</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">% === footer settings</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\firstfoot</span>{</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; <span style="color: #800000; font-weight: normal;">\centering</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; {</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; <span style="color: #800000; font-weight: normal;">\renewcommand</span>{<span style="color: #2222D0; font-weight: normal;">\\}{\ {<span style="color: #800000; font-weight: normal;">\large</span><span style="color: #800000; font-weight: normal;">\textperiodcentered</span>}\ </span>}</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; <span style="color: #800000; font-weight: normal;">\usekomavar</span>{<span style="color: #2222D0; font-weight: normal;">fromaddress</span>}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; }\\</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #800000; font-weight: normal;">\usekomavar</span>{<span style="color: #2222D0; font-weight: normal;">fromemail} <span style="color: #800000; font-weight: normal;">\usekomavar</span>{fromphone</span>}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">}</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\endinput</span></div>
</li>
</ol>
</div>
</div>
</div>
<p>  </p>
<p>Look carefully at line 42. First of all, I used the escaped space (a backslash followed by a white space) to instruct TeX to put literally two spaces around the dot. Without escaping the spaces, TeX will happily swallow them. Secondly, I applied the <code>\large</code> modifier to the dot character and I enclosed in curly braces (otherwise the trailing space would be enlarged too). The result will be the following</p>
<p><img src="http://farm3.static.flickr.com/2438/3911509253_1b84d443a8_o_d.png" alt="footer three" /></p>
<p>Nice, we have our address on one line now. It's time to take care of the second line. For the email and the phone contacts, I will use a couple of symbols from the <code>marvosym</code> package. The template so becomes:</p>
<div class="igBar"><span id="llatex-25"><a href="#" onclick="javascript:showPlainTxt('latex-25'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite">
<div id="latex-25">
<div class="latex" style="font-family: monospace;">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\ProvidesFile</span>{<span style="color: #2222D0; font-weight: normal;">standard.lco</span>}[<span style="color: #808080; font-style: italic;">%</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; 2002/07/09 v0.9a LaTeX2e unsupported letter-class-option]</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\usepackage</span>{<span style="color: #2222D0; font-weight: normal;">fontspec</span>}</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\usepackage</span>{<span style="color: #2222D0; font-weight: normal;">marvosym</span>}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">% ==============================================</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">% &nbsp;PERSONAL DATA </span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">% ==============================================</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\setkomavar</span>{<span style="color: #2222D0; font-weight: normal;">fromname}{Iulius Caesar</span>}</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\setkomavar</span>{<span style="color: #2222D0; font-weight: normal;">fromaddress}{Van Eeghenlaan 69\\1691QT Amsterdam\<span style="color: #800000; font-weight: normal;">\Nederland</span></span>}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\setkomavar</span>{<span style="color: #2222D0; font-weight: normal;">fromphone}{+31 (0)22 7394203</span>}</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\setkomavar</span>{<span style="color: #2222D0; font-weight: normal;">fromemail}{iulius@gmail.com</span>}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\setkomavar</span>{<span style="color: #2222D0; font-weight: normal;">fromfax}{+31 (0)71 5144543</span>}</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\setkomavar</span>{<span style="color: #2222D0; font-weight: normal;">fromurl}{http://stefano.italians.nl</span>}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\setkomavar</span>{<span style="color: #2222D0; font-weight: normal;">frombank}{Postbank 9307157</span>}</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\setkomavar</span>{<span style="color: #2222D0; font-weight: normal;">place}{Amsterdam</span>}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\setkomavar</span>{<span style="color: #2222D0; font-weight: normal;">signature}{Iulius Caesar</span>}</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">% ==============================================</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">% &nbsp;FORMATTING STUFF </span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">% ==============================================</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">% === font settings</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\defaultfontfeatures</span>{<span style="color: #2222D0; font-weight: normal;">Mapping=tex-text</span>}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\setmainfont</span> {<span style="color: #2222D0; font-weight: normal;">Adobe Garamond Pro</span>}</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\setsansfont</span> {<span style="color: #2222D0; font-weight: normal;">Gill Sans Std</span>}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">%set the font size and leading</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\renewcommand</span>{<span style="color: #2222D0; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\normalsize</span>}{<span style="color: #800000; font-weight: normal;">\fontsize</span>{12.5}{17}<span style="color: #800000; font-weight: normal;">\selectfont</span></span>} </div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">% === header settings</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\firsthead</span>{</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp;<span style="color: #800000; font-weight: normal;">\centering</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;{<span style="color: #2222D0; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\addfontfeature</span>{LetterSpace=20.0}<span style="color: #800000; font-weight: normal;">\fontsize</span>{36}{36}<span style="color: #800000; font-weight: normal;">\selectfont</span><span style="color: #800000; font-weight: normal;">\scshape</span> <span style="color: #800000; font-weight: normal;">\usekomavar</span>{fromname}</span>}\\[<span style="color: #2222D0; font-weight: normal;">5mm</span>]</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #800000; font-weight: normal;">\fontsize</span>{<span style="color: #2222D0; font-weight: normal;">21}{21</span>}<span style="color: #800000; font-weight: normal;">\selectfont</span><span style="color: #800000; font-weight: normal;">\scshape</span> Programmer and Architect at Initech</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">% === footer settings</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\firstfoot</span>{</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; <span style="color: #800000; font-weight: normal;">\centering</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; {</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; <span style="color: #800000; font-weight: normal;">\renewcommand</span>{<span style="color: #2222D0; font-weight: normal;">\\}{\ {<span style="color: #800000; font-weight: normal;">\large</span><span style="color: #800000; font-weight: normal;">\textperiodcentered</span>}\ </span>}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; <span style="color: #800000; font-weight: normal;">\usekomavar</span>{<span style="color: #2222D0; font-weight: normal;">fromaddress</span>}</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; }\\</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; {<span style="color: #2222D0; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\Large</span><span style="color: #800000; font-weight: normal;">\Letter</span>} <span style="color: #800000; font-weight: normal;">\usekomavar</span>{fromemail} \ {<span style="color: #800000; font-weight: normal;">\Large</span><span style="color: #800000; font-weight: normal;">\Telefon</span>} <span style="color: #800000; font-weight: normal;">\usekomavar</span>{fromphone</span>}</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\endinput</span></div>
</li>
</ol>
</div>
</div>
</div>
<p> </p>
<p>At line 5 I included the <code>marvosym</code> package; the rest is happening at line 46. Nothing special: I used the enlarged version of the symbols <code>\Letter</code> and <code>\Telefon</code>. I also used an escaped space to keep the email address separated from the telephone number. </p>
<p><img src="http://farm3.static.flickr.com/2431/3911532937_3effe9afa3_o_d.png" alt="footer four" /></p>
<p>Now, the final touch: I will letterspace the entire footer and use the small caps. So, here it is:</p>
<div class="igBar"><span id="llatex-26"><a href="#" onclick="javascript:showPlainTxt('latex-26'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite">
<div id="latex-26">
<div class="latex" style="font-family: monospace;">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\ProvidesFile</span>{<span style="color: #2222D0; font-weight: normal;">standard.lco</span>}[<span style="color: #808080; font-style: italic;">%</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; 2002/07/09 v0.9a LaTeX2e unsupported letter-class-option]</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\usepackage</span>{<span style="color: #2222D0; font-weight: normal;">fontspec</span>}</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\usepackage</span>{<span style="color: #2222D0; font-weight: normal;">marvosym</span>}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">% ==============================================</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">% &nbsp;PERSONAL DATA </span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">% ==============================================</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\setkomavar</span>{<span style="color: #2222D0; font-weight: normal;">fromname}{Iulius Caesar</span>}</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\setkomavar</span>{<span style="color: #2222D0; font-weight: normal;">fromaddress}{Van Eeghenlaan 69\\1691QT Amsterdam\<span style="color: #800000; font-weight: normal;">\Nederland</span></span>}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\setkomavar</span>{<span style="color: #2222D0; font-weight: normal;">fromphone}{+31 (0)22 7394203</span>}</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\setkomavar</span>{<span style="color: #2222D0; font-weight: normal;">fromemail}{iulius@gmail.com</span>}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\setkomavar</span>{<span style="color: #2222D0; font-weight: normal;">fromfax}{+31 (0)71 5144543</span>}</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\setkomavar</span>{<span style="color: #2222D0; font-weight: normal;">fromurl}{http://stefano.italians.nl</span>}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\setkomavar</span>{<span style="color: #2222D0; font-weight: normal;">frombank}{Postbank 9307157</span>}</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\setkomavar</span>{<span style="color: #2222D0; font-weight: normal;">place}{Amsterdam</span>}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\setkomavar</span>{<span style="color: #2222D0; font-weight: normal;">signature}{Iulius Caesar</span>}</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">% ==============================================</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">% &nbsp;FORMATTING STUFF </span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">% ==============================================</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">% === font settings</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\defaultfontfeatures</span>{<span style="color: #2222D0; font-weight: normal;">Mapping=tex-text</span>}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\setmainfont</span> {<span style="color: #2222D0; font-weight: normal;">Adobe Garamond Pro</span>}</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\setsansfont</span> {<span style="color: #2222D0; font-weight: normal;">Gill Sans Std</span>}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">%set the font size and leading</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\renewcommand</span>{<span style="color: #2222D0; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\normalsize</span>}{<span style="color: #800000; font-weight: normal;">\fontsize</span>{12.5}{17}<span style="color: #800000; font-weight: normal;">\selectfont</span></span>} </div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">% === header settings</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\firsthead</span>{</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp;<span style="color: #800000; font-weight: normal;">\centering</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;{<span style="color: #2222D0; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\addfontfeature</span>{LetterSpace=20.0}<span style="color: #800000; font-weight: normal;">\fontsize</span>{36}{36}<span style="color: #800000; font-weight: normal;">\selectfont</span><span style="color: #800000; font-weight: normal;">\scshape</span> <span style="color: #800000; font-weight: normal;">\usekomavar</span>{fromname}</span>}\\[<span style="color: #2222D0; font-weight: normal;">5mm</span>]</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #800000; font-weight: normal;">\fontsize</span>{<span style="color: #2222D0; font-weight: normal;">21}{21</span>}<span style="color: #800000; font-weight: normal;">\selectfont</span><span style="color: #800000; font-weight: normal;">\scshape</span> Programmer and Architect at Initech</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">% === footer settings</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\firstfoot</span>{</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; <span style="color: #800000; font-weight: normal;">\centering</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; <span style="color: #800000; font-weight: normal;">\addfontfeature</span>{<span style="color: #2222D0; font-weight: normal;">LetterSpace=20.0</span>}<span style="color: #800000; font-weight: normal;">\scshape</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; {</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; <span style="color: #800000; font-weight: normal;">\renewcommand</span>{<span style="color: #2222D0; font-weight: normal;">\\}{\ {<span style="color: #800000; font-weight: normal;">\large</span><span style="color: #800000; font-weight: normal;">\textperiodcentered</span>}\ </span>}</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; <span style="color: #800000; font-weight: normal;">\usekomavar</span>{<span style="color: #2222D0; font-weight: normal;">fromaddress</span>}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; }\\</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; {<span style="color: #2222D0; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\Large</span><span style="color: #800000; font-weight: normal;">\Letter</span>} <span style="color: #800000; font-weight: normal;">\usekomavar</span>{fromemail} \ {<span style="color: #800000; font-weight: normal;">\Large</span><span style="color: #800000; font-weight: normal;">\Telefon</span>} <span style="color: #800000; font-weight: normal;">\usekomavar</span>{fromphone</span>}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\endinput</span></div>
</li>
</ol>
</div>
</div>
</div>
<p> </p>
<p>Basically I just added the line 42. The result?</p>
<p><img src="http://farm4.static.flickr.com/3434/3912352214_2b51faf784_o_d.png" alt="footer six" /></p>
<p>Quite a long journey for a fucking footer, but we're done and I hope you will like the final result so far. Please mind that the above screenshot was made smaller in respect of the others. To see the footer in respect of the entire page, here it is the last picture</p>
<p><img src="http://farm4.static.flickr.com/3551/3836098803_1a85453dd9_o_d.png" alt="step five" /></p>
<p>I think it is already quite a good letter, but in the <a href="http://stefano.italians.nl/archives/64">next part</a> we will watermark our logo.</p>
]]></content:encoded>
			<wfw:commentRss>http://stefano.italians.nl/archives/63/feed</wfw:commentRss>
		</item>
		<item>
		<title>Cover letter with style - part three</title>
		<link>http://stefano.italians.nl/archives/62</link>
		<comments>http://stefano.italians.nl/archives/62#comments</comments>
		<pubDate>Sun, 30 Aug 2009 16:24:29 +0000</pubDate>
		<dc:creator>kindoblue</dc:creator>
		
		<category><![CDATA[XeLaTeX]]></category>

		<category><![CDATA[tutorial]]></category>

		<category><![CDATA[LaTeX]]></category>

		<guid isPermaLink="false">http://stefano.italians.nl/archives/62</guid>
		<description><![CDATA[This is the third part of the tutorial Cover letter with style. You can find the second part here.
It's time to setup a custom header for our cover letter. I usually put my name and my current job title in the header, accordingly to my big ego. In KOMA-Script, there are several ways to define [...]]]></description>
			<content:encoded><![CDATA[<p>This is the third part of the tutorial <em>Cover letter with style</em>. You can find the second part <a href="http://stefano.italians.nl/archives/61">here</a>.</p>
<p>It's time to setup a custom header for our cover letter. I usually put my name and my current job title in the header, accordingly to my big ego. In KOMA-Script, there are several ways to define your own header; each one offers an increasing degree of freedom but also an increasing complication in use. Luckily enough, for our purposes, we can use the easiest.</p>
<p>So, the simplest way to change your header is by the <code>\firsthead</code> command. That will set the custom header just for the first page of the document. But we're talking about a cover letter: don't even think to make it longer than a page. Enough said, I will modify the template now</p>
<div class="igBar"><span id="llatex-30"><a href="#" onclick="javascript:showPlainTxt('latex-30'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite">
<div id="latex-30">
<div class="latex" style="font-family: monospace;">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\ProvidesFile</span>{<span style="color: #2222D0; font-weight: normal;">standard.lco</span>}[<span style="color: #808080; font-style: italic;">%</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; 2002/07/09 v0.9a LaTeX2e unsupported letter-class-option]</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\usepackage</span>{<span style="color: #2222D0; font-weight: normal;">fontspec</span>}</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">% ==============================================</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">% &nbsp;PERSONAL DATA </span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">% ==============================================</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\setkomavar</span>{<span style="color: #2222D0; font-weight: normal;">fromname}{Iulius Caesar</span>}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\setkomavar</span>{<span style="color: #2222D0; font-weight: normal;">fromaddress}{Van Eeghenlaan 69\\1691QT Amsterdam\<span style="color: #800000; font-weight: normal;">\Nederland</span></span>}</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\setkomavar</span>{<span style="color: #2222D0; font-weight: normal;">fromphone}{+31 (0)22 7394203</span>}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\setkomavar</span>{<span style="color: #2222D0; font-weight: normal;">fromemail}{iulius@gmail.com</span>}</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\setkomavar</span>{<span style="color: #2222D0; font-weight: normal;">fromfax}{+31 (0)71 5144543</span>}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\setkomavar</span>{<span style="color: #2222D0; font-weight: normal;">fromurl}{http://stefano.italians.nl</span>}</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\setkomavar</span>{<span style="color: #2222D0; font-weight: normal;">frombank}{Postbank 9307157</span>}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\setkomavar</span>{<span style="color: #2222D0; font-weight: normal;">place}{Amsterdam</span>}</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\setkomavar</span>{<span style="color: #2222D0; font-weight: normal;">signature}{Iulius Caesar</span>}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">% ==============================================</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">% &nbsp;FORMATTING STUFF </span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">% ==============================================</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">% === font settings</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\defaultfontfeatures</span>{<span style="color: #2222D0; font-weight: normal;">Mapping=tex-text</span>}</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\setmainfont</span> {<span style="color: #2222D0; font-weight: normal;">Adobe Garamond Pro</span>}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\setsansfont</span> {<span style="color: #2222D0; font-weight: normal;">Gill Sans Std</span>}</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">%set the font size and leading</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\renewcommand</span>{<span style="color: #2222D0; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\normalsize</span>}{<span style="color: #800000; font-weight: normal;">\fontsize</span>{12.5}{17}<span style="color: #800000; font-weight: normal;">\selectfont</span></span>} </div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\firsthead</span>{</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp;<span style="color: #800000; font-weight: normal;">\centering</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #800000; font-weight: normal;">\usekomavar</span>{<span style="color: #2222D0; font-weight: normal;">fromname</span>}\\</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Programmer and Architect at Initech</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\endinput</span></div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>So, I have specified the following: the header shall be centered and will be comprised of two lines (the <code>\\</code> is the latex command to break the line). The first line will be our name. I didn't write it directly because it is already set at line 9. Instead, I used <code>\usekomavar</code> to lookup the <code>fromname</code> variable. Here I am adhering to the D-FRY principle: <em>don't fucking repeat yourself</em>. The second line is the job title. You can choose to define a variable as well, if you plan to use the job title more than once in your letter. </p>
<p>Now, render the letter again, to see the result </p>
<p><img src="http://farm4.static.flickr.com/3543/3871235410_88fd92b33a_o_d.png" alt="header one" /></p>
<p>Well, it sucks. I will increase the font size, and use the small caps version.  </p>
<div class="igBar"><span id="llatex-31"><a href="#" onclick="javascript:showPlainTxt('latex-31'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite">
<div id="latex-31">
<div class="latex" style="font-family: monospace;">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\ProvidesFile</span>{<span style="color: #2222D0; font-weight: normal;">standard.lco</span>}[<span style="color: #808080; font-style: italic;">%</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; 2002/07/09 v0.9a LaTeX2e unsupported letter-class-option]</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\usepackage</span>{<span style="color: #2222D0; font-weight: normal;">fontspec</span>}</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">% ==============================================</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">% &nbsp;PERSONAL DATA </span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">% ==============================================</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\setkomavar</span>{<span style="color: #2222D0; font-weight: normal;">fromname}{Iulius Caesar</span>}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\setkomavar</span>{<span style="color: #2222D0; font-weight: normal;">fromaddress}{Van Eeghenlaan 69\\1691QT Amsterdam\<span style="color: #800000; font-weight: normal;">\Nederland</span></span>}</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\setkomavar</span>{<span style="color: #2222D0; font-weight: normal;">fromphone}{+31 (0)22 7394203</span>}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\setkomavar</span>{<span style="color: #2222D0; font-weight: normal;">fromemail}{iulius@gmail.com</span>}</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\setkomavar</span>{<span style="color: #2222D0; font-weight: normal;">fromfax}{+31 (0)71 5144543</span>}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\setkomavar</span>{<span style="color: #2222D0; font-weight: normal;">fromurl}{http://stefano.italians.nl</span>}</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\setkomavar</span>{<span style="color: #2222D0; font-weight: normal;">frombank}{Postbank 9307157</span>}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\setkomavar</span>{<span style="color: #2222D0; font-weight: normal;">place}{Amsterdam</span>}</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\setkomavar</span>{<span style="color: #2222D0; font-weight: normal;">signature}{Iulius Caesar</span>}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">% ==============================================</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">% &nbsp;FORMATTING STUFF </span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">% ==============================================</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">% === font settings</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\defaultfontfeatures</span>{<span style="color: #2222D0; font-weight: normal;">Mapping=tex-text</span>}</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\setmainfont</span> {<span style="color: #2222D0; font-weight: normal;">Adobe Garamond Pro</span>}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\setsansfont</span> {<span style="color: #2222D0; font-weight: normal;">Gill Sans Std</span>}</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">%set the font size and leading</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\renewcommand</span>{<span style="color: #2222D0; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\normalsize</span>}{<span style="color: #800000; font-weight: normal;">\fontsize</span>{12.5}{17}<span style="color: #800000; font-weight: normal;">\selectfont</span></span>} </div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\firsthead</span>{</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp;<span style="color: #800000; font-weight: normal;">\centering</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #800000; font-weight: normal;">\fontsize</span>{<span style="color: #2222D0; font-weight: normal;">36}{36}<span style="color: #800000; font-weight: normal;">\selectfont</span><span style="color: #800000; font-weight: normal;">\scshape</span> <span style="color: #800000; font-weight: normal;">\usekomavar</span>{fromname</span>}\\</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #800000; font-weight: normal;">\fontsize</span>{<span style="color: #2222D0; font-weight: normal;">21}{21</span>}<span style="color: #800000; font-weight: normal;">\selectfont</span><span style="color: #800000; font-weight: normal;">\scshape</span> Programmer and Architect at Initech</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\endinput</span></div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Now the header looks like this</p>
<p><img src="http://farm3.static.flickr.com/2422/3871235208_23c2811565_o_d.png" alt="header two" /></p>
<p>Much better. But I'm still not quite happy. So, I will increase the letter spacing, just for the first line. I will change the so called "feature" <code>LetterSpace</code>. </p>
<div class="igBar"><span id="llatex-32"><a href="#" onclick="javascript:showPlainTxt('latex-32'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite">
<div id="latex-32">
<div class="latex" style="font-family: monospace;">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\ProvidesFile</span>{<span style="color: #2222D0; font-weight: normal;">standard.lco</span>}[<span style="color: #808080; font-style: italic;">%</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; 2002/07/09 v0.9a LaTeX2e unsupported letter-class-option]</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\usepackage</span>{<span style="color: #2222D0; font-weight: normal;">fontspec</span>}</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">% ==============================================</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">% &nbsp;PERSONAL DATA </span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">% ==============================================</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\setkomavar</span>{<span style="color: #2222D0; font-weight: normal;">fromname}{Iulius Caesar</span>}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\setkomavar</span>{<span style="color: #2222D0; font-weight: normal;">fromaddress}{Van Eeghenlaan 69\\1691QT Amsterdam\<span style="color: #800000; font-weight: normal;">\Nederland</span></span>}</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\setkomavar</span>{<span style="color: #2222D0; font-weight: normal;">fromphone}{+31 (0)22 7394203</span>}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\setkomavar</span>{<span style="color: #2222D0; font-weight: normal;">fromemail}{iulius@gmail.com</span>}</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\setkomavar</span>{<span style="color: #2222D0; font-weight: normal;">fromfax}{+31 (0)71 5144543</span>}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\setkomavar</span>{<span style="color: #2222D0; font-weight: normal;">fromurl}{http://stefano.italians.nl</span>}</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\setkomavar</span>{<span style="color: #2222D0; font-weight: normal;">frombank}{Postbank 9307157</span>}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\setkomavar</span>{<span style="color: #2222D0; font-weight: normal;">place}{Amsterdam</span>}</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\setkomavar</span>{<span style="color: #2222D0; font-weight: normal;">signature}{Iulius Caesar</span>}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">% ==============================================</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">% &nbsp;FORMATTING STUFF </span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">% ==============================================</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">% === font settings</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\defaultfontfeatures</span>{<span style="color: #2222D0; font-weight: normal;">Mapping=tex-text</span>}</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\setmainfont</span> {<span style="color: #2222D0; font-weight: normal;">Adobe Garamond Pro</span>}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\setsansfont</span> {<span style="color: #2222D0; font-weight: normal;">Gill Sans Std</span>}</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">%set the font size and leading</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\renewcommand</span>{<span style="color: #2222D0; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\normalsize</span>}{<span style="color: #800000; font-weight: normal;">\fontsize</span>{12.5}{17}<span style="color: #800000; font-weight: normal;">\selectfont</span></span>} </div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\firsthead</span>{</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp;<span style="color: #800000; font-weight: normal;">\centering</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;{<span style="color: #2222D0; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\addfontfeature</span>{LetterSpace=20.0}<span style="color: #800000; font-weight: normal;">\fontsize</span>{36}{36}<span style="color: #800000; font-weight: normal;">\selectfont</span><span style="color: #800000; font-weight: normal;">\scshape</span> <span style="color: #800000; font-weight: normal;">\usekomavar</span>{fromname}</span>}\\[<span style="color: #2222D0; font-weight: normal;">5mm</span>]</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #800000; font-weight: normal;">\fontsize</span>{<span style="color: #2222D0; font-weight: normal;">21}{21</span>}<span style="color: #800000; font-weight: normal;">\selectfont</span><span style="color: #800000; font-weight: normal;">\scshape</span> Programmer and Architect at Initech</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\endinput</span></div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>I used the command <code>\addfontfeature</code> to set the <code>LetterSpace</code> feature equal to 20. To find the right factor, I just did some experiments. Mind the use of a pair of <code>{}</code> to enclose the entire first line. In this way the change of letter spacing is local to the first line and don't apply to the second line. I also set up half centimeter of space between the lines, with the command <code>\\[put your vertical distance here]</p>
<p></code>So, render again the letter and see the result:</p>
<p><img src="http://farm4.static.flickr.com/3441/3871264088_d582126265_o_d.png" alt="header three" /></p>
<p>Well, now take a look at the entire page so far</p>
<p><img src="http://farm3.static.flickr.com/2514/3836889086_b8297107c7_o_d.png" alt="step 4 completed" /></p>
<p>Perfect. In the <a href="http://stefano.italians.nl/archives/63">next part</a> I will show how to setup up the footer and then we will be ready for the watermarks, logo and barcode...</p>
]]></content:encoded>
			<wfw:commentRss>http://stefano.italians.nl/archives/62/feed</wfw:commentRss>
		</item>
		<item>
		<title>Cover letter with style - part two</title>
		<link>http://stefano.italians.nl/archives/61</link>
		<comments>http://stefano.italians.nl/archives/61#comments</comments>
		<pubDate>Sat, 29 Aug 2009 20:19:07 +0000</pubDate>
		<dc:creator>kindoblue</dc:creator>
		
		<category><![CDATA[XeLaTeX]]></category>

		<category><![CDATA[tutorial]]></category>

		<category><![CDATA[LaTeX]]></category>

		<guid isPermaLink="false">http://stefano.italians.nl/archives/61</guid>
		<description><![CDATA[This is the second part of the tutorial Cover letter with style. You can find the first part here. 
In this second part, we will change the default fonts using fontspec. Forget importing Postscript fonts, classifying them under the NFSS1 and other crazy stuff: fontspec is able to load opentype fonts and select them very [...]]]></description>
			<content:encoded><![CDATA[<p>This is the second part of the tutorial <em>Cover letter with style</em>. You can find the first part <a href="http://stefano.italians.nl/archives/55">here</a>. </p>
<p>In this second part, we will change the default fonts using <strong>fontspec</strong>. Forget importing Postscript fonts, classifying them under the NFSS<sup>1</sup> and other crazy stuff: fontspec is able to load opentype fonts and select them very easily. You have just to install the fonts on your system. For example, I bought Garamond e Gill Sans fonts from Adobe and I'm using Ubuntu, so I copied the <code>*.otf</code> files somewhere under the </p>
<p><code>/usr/share/fonts</code></p>
<p>and then I updated the font cache with this command</p>
<p><code>sudo fc-cache -fv</code></p>
<p>Last thing you will need is to take note of the exact name of the font family, to be able to select it. For that, after having installed the <code>lcdf-typetools</code> ubuntu package, you can do something like</p>
<p><code>otfinfo -i  /usr/share/fonts/AGaramondPro-Regular.otf  | grep Family</code></p>
<p>Ok, after those few steps I have installed the fonts and discovered their family name, say, "Adobe Garamond Pro" and "Gill Sans Std". Now  just change the template (remember, <code>standard.lco</code>) as this:</p>
<div class="igBar"><span id="llatex-35"><a href="#" onclick="javascript:showPlainTxt('latex-35'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite">
<div id="latex-35">
<div class="latex" style="font-family: monospace;">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\ProvidesFile</span>{<span style="color: #2222D0; font-weight: normal;">standard.lco</span>}[<span style="color: #808080; font-style: italic;">%</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; 2002/07/09 v0.9a LaTeX2e unsupported letter-class-option]</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\usepackage</span>{<span style="color: #2222D0; font-weight: normal;">fontspec</span>}</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">% ==============================================</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">% &nbsp;PERSONAL DATA </span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">% ==============================================</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\setkomavar</span>{<span style="color: #2222D0; font-weight: normal;">fromname}{Iulius Caesar</span>}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\setkomavar</span>{<span style="color: #2222D0; font-weight: normal;">fromaddress}{Van Eeghenlaan 69\\1691QT Amsterdam\<span style="color: #800000; font-weight: normal;">\Nederland</span></span>}</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\setkomavar</span>{<span style="color: #2222D0; font-weight: normal;">fromphone}{+31 (0)22 7394203</span>}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\setkomavar</span>{<span style="color: #2222D0; font-weight: normal;">fromemail}{iulius@gmail.com</span>}</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\setkomavar</span>{<span style="color: #2222D0; font-weight: normal;">fromfax}{+31 (0)71 5144543</span>}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\setkomavar</span>{<span style="color: #2222D0; font-weight: normal;">fromurl}{http://stefano.italians.nl</span>}</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\setkomavar</span>{<span style="color: #2222D0; font-weight: normal;">frombank}{Postbank 9307157</span>}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\setkomavar</span>{<span style="color: #2222D0; font-weight: normal;">place}{Amsterdam</span>}</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\setkomavar</span>{<span style="color: #2222D0; font-weight: normal;">signature}{Iulius Caesar</span>}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">% ==============================================</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">% &nbsp;FORMATTING STUFF </span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">% ==============================================</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">% === font settings</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\defaultfontfeatures</span>{<span style="color: #2222D0; font-weight: normal;">Mapping=tex-text</span>}</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\setmainfont</span> {<span style="color: #2222D0; font-weight: normal;">Adobe Garamond Pro</span>}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\setsansfont</span> {<span style="color: #2222D0; font-weight: normal;">Gill Sans Std</span>}</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\endinput</span></div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>At line 4 I just imported the fontspec package. At line 24 I am instructing fontspec to add the ligatures TeX needs.<sup>2</sup> At line 25  I set the main font and at line 26 I set the font to be used in case a sans serif one if needed.</p>
<p>Another important thing to set up, usually, is the font size and the lead. To do so, just add one more line: </p>
<div class="igBar"><span id="llatex-36"><a href="#" onclick="javascript:showPlainTxt('latex-36'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite">
<div id="latex-36">
<div class="latex" style="font-family: monospace;">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\ProvidesFile</span>{<span style="color: #2222D0; font-weight: normal;">standard.lco</span>}[<span style="color: #808080; font-style: italic;">%</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; 2002/07/09 v0.9a LaTeX2e unsupported letter-class-option]</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\usepackage</span>{<span style="color: #2222D0; font-weight: normal;">fontspec</span>}</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">% ==============================================</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">% &nbsp;PERSONAL DATA </span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">% ==============================================</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\setkomavar</span>{<span style="color: #2222D0; font-weight: normal;">fromname}{Iulius Caesar</span>}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\setkomavar</span>{<span style="color: #2222D0; font-weight: normal;">fromaddress}{Van Eeghenlaan 69\\1691QT Amsterdam\<span style="color: #800000; font-weight: normal;">\Nederland</span></span>}</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\setkomavar</span>{<span style="color: #2222D0; font-weight: normal;">fromphone}{+31 (0)22 7394203</span>}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\setkomavar</span>{<span style="color: #2222D0; font-weight: normal;">fromemail}{iulius@gmail.com</span>}</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\setkomavar</span>{<span style="color: #2222D0; font-weight: normal;">fromfax}{+31 (0)71 5144543</span>}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\setkomavar</span>{<span style="color: #2222D0; font-weight: normal;">fromurl}{http://stefano.italians.nl</span>}</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\setkomavar</span>{<span style="color: #2222D0; font-weight: normal;">frombank}{Postbank 9307157</span>}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\setkomavar</span>{<span style="color: #2222D0; font-weight: normal;">place}{Amsterdam</span>}</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\setkomavar</span>{<span style="color: #2222D0; font-weight: normal;">signature}{Iulius Caesar</span>}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">% ==============================================</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">% &nbsp;FORMATTING STUFF </span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">% ==============================================</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">% === font settings</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\defaultfontfeatures</span>{<span style="color: #2222D0; font-weight: normal;">Mapping=tex-text</span>}</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\setmainfont</span> {<span style="color: #2222D0; font-weight: normal;">Adobe Garamond Pro</span>}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\setsansfont</span> {<span style="color: #2222D0; font-weight: normal;">Gill Sans Std</span>}</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">%set the font size and leading</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\renewcommand</span>{<span style="color: #2222D0; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\normalsize</span>}{<span style="color: #800000; font-weight: normal;">\fontsize</span>{12.5}{17}<span style="color: #800000; font-weight: normal;">\selectfont</span></span>} </div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\endinput</span></div>
</li>
</ol>
</div>
</div>
</div>
<p> </p>
<p>I just added the line 29, plain old Latex directive, to redefine the <code>\normalsize</code> macro<sup>3</sup>. In this way I can specify the height of the font and the space in point between the lines. The values one should use really depend on so many factors... but this is not a course on basic typography. </p>
<p>Ok, time to generate our cover letter again. To appreciate the differences, I first show the old version:</p>
<p><img src="http://farm4.static.flickr.com/3498/3867305979_725890f6ce_o.png" alt="default font" /></p>
<p>And now with the professional fonts</p>
<p><img src="http://farm3.static.flickr.com/2559/3867306081_b33bc90552_o.png" alt="professional font" /> </p>
<p>Can you see the difference? I hope so. Note also the sender address: it has to be rendered in a smaller size, so KOMA-Script used the sans serif font because more legible; that's why we also specified a suitable family for sans serif font in our template. </p>
<p>For more information, examples and so on, I urge you to read the <a href="ftp://ftp.dante.de/tex-archive/macros/xetex/latex/fontspec/fontspec.pdf">fontspec</a> documentation, to get ready for the third part of the tutorial.</p>
<p>That's all folks. Now you can proceed to the <a href="http://stefano.italians.nl/archives/62">third part</a>.</p>
<ol class="footnotes"><li id="footnote_0_61" class="footnote">New Font  Selection Scheme</li><li id="footnote_1_61" class="footnote">Commercial fonts usually lacks ligatures like "--" (n-dash) and "---" (m-dash) but with this line TeX will still find them</li><li id="footnote_2_61" class="footnote">There are other methods</li></ol>]]></content:encoded>
			<wfw:commentRss>http://stefano.italians.nl/archives/61/feed</wfw:commentRss>
		</item>
		<item>
		<title>Cover letter with style - part one</title>
		<link>http://stefano.italians.nl/archives/55</link>
		<comments>http://stefano.italians.nl/archives/55#comments</comments>
		<pubDate>Fri, 21 Aug 2009 14:28:39 +0000</pubDate>
		<dc:creator>kindoblue</dc:creator>
		
		<category><![CDATA[XeLaTeX]]></category>

		<category><![CDATA[tutorial]]></category>

		<category><![CDATA[LaTeX]]></category>

		<guid isPermaLink="false">http://stefano.italians.nl/archives/55</guid>
		<description><![CDATA[Time flies and almost one year went by without me writing the 5th part of Your Curriculum in LaTeX series. You know what? I grew tired of the tutorial: you can figure out the rest1
Instead, I decided to start a new tutorial, this time illustrating a way to obtain a stylish cover letter with XeTeX [...]]]></description>
			<content:encoded><![CDATA[<p>Time flies and almost one year went by without me writing the 5th part of <em>Your Curriculum in LaTeX</em> series. You know what? I grew tired of the tutorial: you can figure out the rest<sup>1</sup></p>
<p>Instead, I decided to start a new tutorial, this time illustrating a way to obtain a stylish cover letter with <a href="http://scripts.sil.org/cms/scripts/page.php?site_id=nrsi&#038;id=XeTeX">XeTeX</a> (and XeLaTeX), which enables the easy use of OpenType fonts (through the <a href="ftp://ftp.dante.de/tex-archive/macros/xetex/latex/fontspec/fontspec.pdf">fontspec</a> package) and support for Unicode text (no need of escape extended characters anymore). Also, as in the other tutorial, <a href="http://ftp.gwdg.de/pub/ctan/macros/latex/contrib/koma-script/scrguien.pdf">KOMA-Script</a> will be used. </p>
<p>The cover letter is the first thing they will read; possibly its form is as much important as its content. Even if you don't agree, a fancy letter doesn't do any harm, doesn't it? For example, what about a letter like this<sup>2</sup></p>
<p><img src="http://farm4.static.flickr.com/3489/3836098927_b95210d2e0_o.png" alt="Sample letter one" /></p>
<p>Strong header, contact data in footer, logo as watermark. Even a barcode to pimp the destination address! Ok, the barcode is a little bit too nerdy, but it will give me the chance to show how easy is to use <a href="http://en.wikipedia.org/wiki/PSTricks">PSTricks</a> from inside XeLaTex. </p>
<p>In this tutorial I will also show how to separate the content of your letters from the style, so you can swap the latter really easily, to obtain something completely different, like this for example:</p>
<p><img src="http://farm3.static.flickr.com/2619/3836889310_0cc5f5980f_o.png" alt="Sample letter two" /></p>
<p>Ok, let's start. I assume you dutifully installed XeTeX, XeLaTeX, KOMA-Script and you are ready to follow me. Ready?</p>
<p>Create a .tex file and past the skeleton of the cover letter into it:</p>
<div class="igBar"><span id="llatex-40"><a href="#" onclick="javascript:showPlainTxt('latex-40'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite">
<div id="latex-40">
<div class="latex" style="font-family: monospace;">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\documentclass</span>{<span style="color: #2222D0; font-weight: normal;">scrlttr2</span>}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;"><span style="color: #F00000; font-weight: normal;">\begin</span></span>{<span style="color: #2222D0; font-weight: normal;">document</span>}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;"><span style="color: #F00000; font-weight: normal;">\begin</span></span>{<span style="color: #2222D0; font-weight: normal;">letter</span>}{<span style="color: #808080; font-style: italic;">%</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp;Damage Inc. --- HR Dept.\\<span style="color: #808080; font-style: italic;">%</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp;Paulus Potterstraat 134\\<span style="color: #808080; font-style: italic;">%</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp;1753KJ Amsterdam</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\setkomavar</span>{<span style="color: #2222D0; font-weight: normal;">subject}{Cover Letter</span>}</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\opening</span>{<span style="color: #2222D0; font-weight: normal;">Dear Recruiter,</span>}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">My name is Iulius Caesar bla bla bla...</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\closing</span>{<span style="color: #2222D0; font-weight: normal;">Regards</span>}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;"><span style="color: #F00000; font-weight: normal;">\end</span></span>{<span style="color: #2222D0; font-weight: normal;">letter</span>}</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;"><span style="color: #F00000; font-weight: normal;">\end</span></span>{<span style="color: #2222D0; font-weight: normal;">document</span>}</div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>At line 1 you are instructing XeLaTeX to load the letter class from KOMA-Script, which will format a nice letter for you. At lines 6,7,8 the destination address is specified. At line 13 the body of the letter. The other parts should be trivial to understand. Basically this is a template for any kind of letter you will write. Nothing difficult indeed. If you process this with XeLaTeX you will get:</p>
<p><img src="http://farm3.static.flickr.com/2444/3836098581_170a1e0229_o_d.png" alt="barebone letter" /></p>
<p>Effortlessly we obtained a nice formatted letter. KOMA-Script even added three little dashes on the left border: they are guides to fold the letter with precision. The only thing is missing is the sender address. I could have added the KOMA instructions to set the sender address directly into the tex file, but there's a better method.</p>
<p>The letter document class defined by KOMA-Script support the loading of a setting/style file. In this file, with extension .lco, you can store things like your data (used to compose the sender address) or whatever latex instruction, to change the style for example. In this way the .tex will contain just the letter text and nothing else. This is handy for two reason: 1) you don't have to type your data for each letter you write; 2) you may have more .lco files that you can use to change altogether the look &#038; feel. </p>
<p>So, create a file and call it standard.lco. Stick your data in it, like this:</p>
<div class="igBar"><span id="llatex-41"><a href="#" onclick="javascript:showPlainTxt('latex-41'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite">
<div id="latex-41">
<div class="latex" style="font-family: monospace;">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\ProvidesFile</span>{<span style="color: #2222D0; font-weight: normal;">standard.lco</span>}[<span style="color: #808080; font-style: italic;">%</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; 2002/07/09 v0.9a LaTeX2e unsupported letter-class-option]</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">% ==============================================</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">% &nbsp;PERSONAL DATA </span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">% ==============================================</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\setkomavar</span>{<span style="color: #2222D0; font-weight: normal;">fromname}{Iulius Caesar</span>}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\setkomavar</span>{<span style="color: #2222D0; font-weight: normal;">fromaddress}{Van Eeghenlaan 69\\1691QT Amsterdam\<span style="color: #800000; font-weight: normal;">\Nederland</span></span>}</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\setkomavar</span>{<span style="color: #2222D0; font-weight: normal;">fromphone}{+31 (0)22 7394203</span>}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\setkomavar</span>{<span style="color: #2222D0; font-weight: normal;">fromemail}{iulius@gmail.com</span>}</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\setkomavar</span>{<span style="color: #2222D0; font-weight: normal;">fromfax}{+31 (0)71 5144543</span>}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\setkomavar</span>{<span style="color: #2222D0; font-weight: normal;">fromurl}{http://stefano.italians.nl</span>}</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\setkomavar</span>{<span style="color: #2222D0; font-weight: normal;">frombank}{Postbank 9307157</span>}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\setkomavar</span>{<span style="color: #2222D0; font-weight: normal;">place}{Amsterdam</span>}</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\setkomavar</span>{<span style="color: #2222D0; font-weight: normal;">signature}{Iulius Caesar</span>}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\endinput</span></div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Change accordingly your .tex file (containing the text of the letter) to instruct KOMA-Script to load the standard.lco file:</p>
<div class="igBar"><span id="llatex-42"><a href="#" onclick="javascript:showPlainTxt('latex-42'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite">
<div id="latex-42">
<div class="latex" style="font-family: monospace;">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\documentclass</span>[<span style="color: #2222D0; font-weight: normal;">standard</span>]{<span style="color: #2222D0; font-weight: normal;">scrlttr2</span>}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;"><span style="color: #F00000; font-weight: normal;">\begin</span></span>{<span style="color: #2222D0; font-weight: normal;">document</span>}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;"><span style="color: #F00000; font-weight: normal;">\begin</span></span>{<span style="color: #2222D0; font-weight: normal;">letter</span>}{<span style="color: #808080; font-style: italic;">%</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp;Damage Inc. --- HR Dept.\\<span style="color: #808080; font-style: italic;">%</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp;Paulus Potterstraat 134\\<span style="color: #808080; font-style: italic;">%</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp;1753KJ Amsterdam</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\setkomavar</span>{<span style="color: #2222D0; font-weight: normal;">subject}{Cover Letter</span>}</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\opening</span>{<span style="color: #2222D0; font-weight: normal;">Dear Recruiter,</span>}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">My name is Iulius Caesar bla bla bla...</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\closing</span>{<span style="color: #2222D0; font-weight: normal;">Regards</span>}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;"><span style="color: #F00000; font-weight: normal;">\end</span></span>{<span style="color: #2222D0; font-weight: normal;">letter</span>}</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;"><span style="color: #F00000; font-weight: normal;">\end</span></span>{<span style="color: #2222D0; font-weight: normal;">document</span>}</div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>I've changed just the first line. Urge yourself to run XeLaTeX to see the results:</p>
<p><img src="http://farm3.static.flickr.com/2490/3836888960_e6f64521d6_o_d.png" alt="barebone letter with sender address" /></p>
<p>The sender address now appears where it is supposed to be. You will notice that KOMA-Script will also add the one-liner version, meant to pop up from the transparent window of the envelope - if any - together with the destination address. </p>
<p>Well, that's all for the first part. There's still lot to explain so please proceed to the <a href="http://stefano.italians.nl/archives/61">second part</a>. </p>
<ol class="footnotes"><li id="footnote_0_55" class="footnote">Oh, gentlemen, do you know, perhaps I consider myself an intelligent man, only because all my life I have been able neither to begin nor to finish anything [Dostoevskij - Notes From The Underground]</li><li id="footnote_1_55" class="footnote">The content is completely fictitious and doesn't necessarily reflect my views</li></ol>]]></content:encoded>
			<wfw:commentRss>http://stefano.italians.nl/archives/55/feed</wfw:commentRss>
		</item>
		<item>
		<title>Your curriculum in LaTeX - part four</title>
		<link>http://stefano.italians.nl/archives/50</link>
		<comments>http://stefano.italians.nl/archives/50#comments</comments>
		<pubDate>Sun, 19 Oct 2008 14:32:18 +0000</pubDate>
		<dc:creator>kindoblue</dc:creator>
		
		<category><![CDATA[tutorial]]></category>

		<category><![CDATA[LaTeX]]></category>

		<guid isPermaLink="false">http://stefano.italians.nl/archives/50</guid>
		<description><![CDATA[This is the fourth part of the tutorial. You can find here the third part.
In the first part we took care of the title of the resume; in the second part we organized the sections, using an appropriate style; finally, in the third part, we formatted the footer, as a container for our contact data. [...]]]></description>
			<content:encoded><![CDATA[<p>This is the fourth part of the tutorial. You can find here the <a href="http://stefano.italians.nl/archives/26">third</a> part.</p>
<p>In the first part we took care of the title of the resume; in the second part we organized the sections, using an appropriate style; finally, in the third part, we formatted the footer, as a container for our contact data. Now it's time to tackle the <em>Experiences</em> entries, the place where to display infos about our past and current employments. The entries will look like the following</p>
<div style="text-align: center;height:3em;"></div>
<div style="text-align: center;"><img src="http://stefano.italians.nl/wp-content/uploads/2008/10/entryerased.png" alt="job entry" style="border:none;" /></div>
<p>For more clarity, the following picture shows the used grid</p>
<div style="text-align: center;"><img src="http://stefano.italians.nl/wp-content/uploads/2008/10/grid.png" alt="grid" /></div>
<p>It is basically a table, with two columns. The first one is 2cm wide and the second spans for the remaining space of the table. The total width of the table is slightly less than the width of the page body width (i.e. the page width minus the margins width.)<br />
To achieve this, we will use the tabularx environment, which is able calculate automatically the column size depending on the total width of the table. The general form of the environment is the following:</p>
<p><code>\begin{tabularx}{<em>width</em>}{<em>preamble</em>}<br />
<em>[... table data ...]</em><br />
\end{tabularx}</code></p>
<p>The width parameter is the total length of the table, whereas the preamble is used for the column specifications. For each column in the table we can use a symbol in the preamble to specify which kind of column we want. For example, to indicate that a column should have the width automatically calculated, we have to use the “X” symbol in the preamble. So, the code</p>
<p><code>\begin{tabularx}{5cm}{XX}<br />
<em>[... table data ...]</em><br />
\end{tabularx}</code></p>
<p>will define a table 5cm wide featuring two columns, both with an automatic width (in this case each column will be 2.5cm wide.)  Among the preamble options, we can use the “p” symbol, followed by a width specification, to force a column to that width. So we could write something like that</p>
<p><code>\begin{tabularx}{5cm}{p{2cm}X}<br />
<em>[... table data ...]</em><br />
\end{tabularx}</code></p>
<p>In this case the table will be 5cm wide, with the first column spanning for 2cm and the second column automatically adjusted. There's a lot of options one could specify in the preamble, so I suggest to read the tabularx document to become aware of all the possibilities.<br />
The data enclosed in the environment will be formatted as a table. To specify rows and columns the symbols &amp; and \\ has to be used. For example the following</p>
<p><code>\begin{tabularx}{5cm}{p{2cm}X}<br />
Name &amp; Stefano \\<br />
Surname &amp; Kindoblue \\<br />
City &amp; Amsterdam<br />
\end{tabularx}<br />
</code></p>
<p>will generate this table:</p>
<div style="text-align: center"><img src="http://stefano.italians.nl/wp-content/uploads/2008/10/sampletable.png" alt="sample table" /></div>
<p>Back to our requirements: we need to define a table wide, say, 97% of the page body width. To calculate that length we can use the latex command \linewidth, which represents the length of a line of text in the document (nota a \textwidth) I think we are pretty much done. The following code will create the desired table</p>
<p><code>\begin{tabularx}{0.97\linewidth}{p{2cm}X}<br />
<em>[... table data ...]</em><br />
\end{tabularx}</code></p>
<p>Finally we can write our first entry in the <em>Experiences</em> section.</p>
<div class="igBar"><span id="llatex-46"><a href="#" onclick="javascript:showPlainTxt('latex-46'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite">
<div id="latex-46">
<div class="latex" style="font-family: monospace;">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\documentclass</span>[<span style="color: #2222D0; font-weight: normal;">a4paper, oneside, final</span>]{<span style="color: #2222D0; font-weight: normal;">scrartcl</span>}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\usepackage</span>{<span style="color: #2222D0; font-weight: normal;">soul</span>}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\usepackage</span>{<span style="color: #2222D0; font-weight: normal;">scrpage2</span>}</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\usepackage</span>{<span style="color: #2222D0; font-weight: normal;">titlesec</span>}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\usepackage</span>{<span style="color: #2222D0; font-weight: normal;">marvosym</span>}</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\usepackage</span>{<span style="color: #2222D0; font-weight: normal;">tabularx</span>}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\titleformat</span>{<span style="color: #2222D0; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\section</span>}{<span style="color: #800000; font-weight: normal;">\large</span><span style="color: #800000; font-weight: normal;">\scshape</span><span style="color: #800000; font-weight: normal;">\raggedright</span>}{}{0em}{</span>}[<span style="color: #2222D0; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\titlerule</span></span>]</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\pagestyle</span>{<span style="color: #2222D0; font-weight: normal;">scrheadings</span>}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\renewcommand</span>{<span style="color: #2222D0; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\headfont</span>}{<span style="color: #800000; font-weight: normal;">\normalfont</span><span style="color: #800000; font-weight: normal;">\rmfamily</span><span style="color: #800000; font-weight: normal;">\scshape</span></span>}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">% add the symbols for email and phone contact data</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\cofoot</span>{<span style="color: #2222D0; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\so</span>{Liefdestraat, 7 - 1234LI, Amsterdam, Nederland</span>}\\</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\so</span>{<span style="color: #2222D0; font-weight: normal;"> {<span style="color: #800000; font-weight: normal;">\Large</span><span style="color: #800000; font-weight: normal;">\Letter</span>} jeff@gmail.com \ {<span style="color: #800000; font-weight: normal;">\Large</span><span style="color: #800000; font-weight: normal;">\Telefon</span>} +31 (0)6 12345678}</span>}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;"><span style="color: #F00000; font-weight: normal;">\begin</span></span>{<span style="color: #2222D0; font-weight: normal;">document</span>}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;"><span style="color: #F00000; font-weight: normal;">\begin</span></span>{<span style="color: #2222D0; font-weight: normal;">center</span>}</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\textsc</span>{<span style="color: #2222D0; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\Huge</span>{<span style="color: #800000; font-weight: normal;">\so</span>{Iulius Caesar}}</span>}</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\section</span>{<span style="color: #2222D0; font-weight: normal;">Experiences</span>}</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;"><span style="color: #F00000; font-weight: normal;">\begin</span></span>{<span style="color: #2222D0; font-weight: normal;">tabularx}{0.97<span style="color: #800000; font-weight: normal;">\linewidth</span>}{p{2cm}X</span>}</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">Period &nbsp; &nbsp; &amp; August 2004 --- September 2006\\</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">Employer &nbsp; &amp; Layer BV <span style="color: #800000; font-weight: normal;">\hfill</span> Amsterdam, The Netherlands\\</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">Job Title &nbsp;&amp; J2EE Analyst programmer\\</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">Languages &nbsp;&amp; J2EE\\</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&amp; Non eram nescius, Brute, cum, quae summis ingeniis exquisitaque doctrina philosophi Graeco sermone tractavissent, ea Latinis litteris mandaremus, fore ut hic noster labor in varias reprehensiones incurreret.</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;"><span style="color: #F00000; font-weight: normal;">\end</span></span>{<span style="color: #2222D0; font-weight: normal;">tabularx</span>}</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\section</span>{<span style="color: #2222D0; font-weight: normal;">Skills</span>}</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\section</span>{<span style="color: #2222D0; font-weight: normal;">Education</span>}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\section</span>{<span style="color: #2222D0; font-weight: normal;">Publications</span>}</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\section</span>{<span style="color: #2222D0; font-weight: normal;">Personal Info</span>}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\section</span>{<span style="color: #2222D0; font-weight: normal;">Languages</span>}</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\section</span>{<span style="color: #2222D0; font-weight: normal;">Interests</span>}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;"><span style="color: #F00000; font-weight: normal;">\end</span></span>{<span style="color: #2222D0; font-weight: normal;">center</span>}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;"><span style="color: #F00000; font-weight: normal;">\end</span></span>{<span style="color: #2222D0; font-weight: normal;">document</span>}</div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Note the use of <code>\hfill</code> command, to push the “<em>Amsterdam, The Netherlands</em>” apart from the company name. The result will be this:<br />
<img src="http://stefano.italians.nl/wp-content/uploads/2008/10/table1.png" alt="table version 1" /><br />
Nice. Now we need to format the first column, which should be ragged left and in small caps. To do so, we need to modify the preamble. Remember the symbols used to specify the column type? If we prefix those symbols with something like that</p>
<p><strong>&gt;{decl}</strong></p>
<p>Then the decl will be put directly in front of the entry of the column. The decl can be a sequence of Latex commands, that will act on the column matter. We can write something like that:</p>
<p><code>\begin{tabularx}{0.97\linewidth}{&gt;{\raggedleft\scshape}p{2cm}X}<br />
<em>[... table data ...]</em><br />
\end{tabularx}</code></p>
<p>What we just did is to declare the text ragged left and small caps enabled for the first column. Let's go back to our curriculum and modify accordingly. I will also make bold some parts:</p>
<div class="igBar"><span id="llatex-47"><a href="#" onclick="javascript:showPlainTxt('latex-47'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite">
<div id="latex-47">
<div class="latex" style="font-family: monospace;">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\documentclass</span>[<span style="color: #2222D0; font-weight: normal;">a4paper, oneside, final</span>]{<span style="color: #2222D0; font-weight: normal;">scrartcl</span>}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\usepackage</span>{<span style="color: #2222D0; font-weight: normal;">soul</span>}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\usepackage</span>{<span style="color: #2222D0; font-weight: normal;">scrpage2</span>}</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\usepackage</span>{<span style="color: #2222D0; font-weight: normal;">titlesec</span>}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\usepackage</span>{<span style="color: #2222D0; font-weight: normal;">marvosym</span>}</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\usepackage</span>{<span style="color: #2222D0; font-weight: normal;">tabularx</span>}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\titleformat</span>{<span style="color: #2222D0; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\section</span>}{<span style="color: #800000; font-weight: normal;">\large</span><span style="color: #800000; font-weight: normal;">\scshape</span><span style="color: #800000; font-weight: normal;">\raggedright</span>}{}{0em}{</span>}[<span style="color: #2222D0; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\titlerule</span></span>]</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\pagestyle</span>{<span style="color: #2222D0; font-weight: normal;">scrheadings</span>}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\renewcommand</span>{<span style="color: #2222D0; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\headfont</span>}{<span style="color: #800000; font-weight: normal;">\normalfont</span><span style="color: #800000; font-weight: normal;">\rmfamily</span><span style="color: #800000; font-weight: normal;">\scshape</span></span>}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">% add the symbols for email and phone contact data</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\cofoot</span>{<span style="color: #2222D0; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\so</span>{Liefdestraat, 7 - 1234LI, Amsterdam, Nederland</span>}\\</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\so</span>{<span style="color: #2222D0; font-weight: normal;"> {<span style="color: #800000; font-weight: normal;">\Large</span><span style="color: #800000; font-weight: normal;">\Letter</span>} jeff@gmail.com \ {<span style="color: #800000; font-weight: normal;">\Large</span><span style="color: #800000; font-weight: normal;">\Telefon</span>} +31 (0)6 12345678}</span>}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;"><span style="color: #F00000; font-weight: normal;">\begin</span></span>{<span style="color: #2222D0; font-weight: normal;">document</span>}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;"><span style="color: #F00000; font-weight: normal;">\begin</span></span>{<span style="color: #2222D0; font-weight: normal;">center</span>}</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\textsc</span>{<span style="color: #2222D0; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\Huge</span>{<span style="color: #800000; font-weight: normal;">\so</span>{Iulius Caesar}}</span>}</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\section</span>{<span style="color: #2222D0; font-weight: normal;">Experiences</span>}</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;"><span style="color: #F00000; font-weight: normal;">\begin</span></span>{<span style="color: #2222D0; font-weight: normal;">tabularx}{0.97<span style="color: #800000; font-weight: normal;">\linewidth</span>}{&gt;{<span style="color: #800000; font-weight: normal;">\raggedleft</span><span style="color: #800000; font-weight: normal;">\scshape</span>}p{2cm}X</span>}</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">Period &nbsp; &nbsp; &amp; <span style="color: #800000; font-weight: normal;">\textbf</span>{<span style="color: #2222D0; font-weight: normal;">August 2004 --- September 2006</span>}\\</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">Employer &nbsp; &amp; <span style="color: #800000; font-weight: normal;">\textbf</span>{<span style="color: #2222D0; font-weight: normal;">Layer BV <span style="color: #800000; font-weight: normal;">\hfill</span> Amsterdam, The Netherlands</span>}\\</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">Job Title &nbsp;&amp; <span style="color: #800000; font-weight: normal;">\textbf</span>{<span style="color: #2222D0; font-weight: normal;">J2EE Analyst programmer</span>}\\</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">Languages &nbsp;&amp; J2EE\\</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&amp; Non eram nescius, Brute, cum, quae summis ingeniis exquisitaque doctrina philosophi Graeco sermone tractavissent, ea Latinis litteris mandaremus, fore ut hic noster labor in varias reprehensiones incurreret.</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;"><span style="color: #F00000; font-weight: normal;">\end</span></span>{<span style="color: #2222D0; font-weight: normal;">tabularx</span>}</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\section</span>{<span style="color: #2222D0; font-weight: normal;">Skills</span>}</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\section</span>{<span style="color: #2222D0; font-weight: normal;">Education</span>}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\section</span>{<span style="color: #2222D0; font-weight: normal;">Publications</span>}</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\section</span>{<span style="color: #2222D0; font-weight: normal;">Personal Info</span>}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\section</span>{<span style="color: #2222D0; font-weight: normal;">Languages</span>}</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\section</span>{<span style="color: #2222D0; font-weight: normal;">Interests</span>}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;"><span style="color: #F00000; font-weight: normal;">\end</span></span>{<span style="color: #2222D0; font-weight: normal;">center</span>}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;"><span style="color: #F00000; font-weight: normal;">\end</span></span>{<span style="color: #2222D0; font-weight: normal;">document</span>}</div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>The result is the following:<br />
<img src="http://stefano.italians.nl/wp-content/uploads/2008/10/table2.png" alt="table version 2" /><br />
To highlight the salient data of the employment entry in respect of the job description, we can use a gray background for the first four rows of the table. The colortbl package provides several commands to colorize backgrounds in tables. For example, the command</p>
<p><code>\rowcolor[gray]{.90}</code></p>
<p>set the background color to 90% gray for a given row. We can define a custom command to be used as a shortcut, in this way</p>
<p><code>\newcommand{\gray}{\rowcolor[gray]{.90}}</code></p>
<p>Now in our resume, for the first four rows of the table we can use the command <code>\gray</code>. But don't forget to include the colortbl package!</p>
<div class="igBar"><span id="llatex-48"><a href="#" onclick="javascript:showPlainTxt('latex-48'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite">
<div id="latex-48">
<div class="latex" style="font-family: monospace;">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\documentclass</span>[<span style="color: #2222D0; font-weight: normal;">a4paper, oneside, final</span>]{<span style="color: #2222D0; font-weight: normal;">scrartcl</span>}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\usepackage</span>{<span style="color: #2222D0; font-weight: normal;">soul</span>}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\usepackage</span>{<span style="color: #2222D0; font-weight: normal;">scrpage2</span>}</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\usepackage</span>{<span style="color: #2222D0; font-weight: normal;">titlesec</span>}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\usepackage</span>{<span style="color: #2222D0; font-weight: normal;">marvosym</span>}</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\usepackage</span>{<span style="color: #2222D0; font-weight: normal;">tabularx,colortbl</span>}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\titleformat</span>{<span style="color: #2222D0; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\section</span>}{<span style="color: #800000; font-weight: normal;">\large</span><span style="color: #800000; font-weight: normal;">\scshape</span><span style="color: #800000; font-weight: normal;">\raggedright</span>}{}{0em}{</span>}[<span style="color: #2222D0; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\titlerule</span></span>]</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\pagestyle</span>{<span style="color: #2222D0; font-weight: normal;">scrheadings</span>}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\renewcommand</span>{<span style="color: #2222D0; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\headfont</span>}{<span style="color: #800000; font-weight: normal;">\normalfont</span><span style="color: #800000; font-weight: normal;">\rmfamily</span><span style="color: #800000; font-weight: normal;">\scshape</span></span>}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">% add the symbols for email and phone contact data</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\cofoot</span>{<span style="color: #2222D0; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\so</span>{Liefdestraat, 7 - 1234LI, Amsterdam, Nederland</span>}\\</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\so</span>{<span style="color: #2222D0; font-weight: normal;"> {<span style="color: #800000; font-weight: normal;">\Large</span><span style="color: #800000; font-weight: normal;">\Letter</span>} jeff@gmail.com \ {<span style="color: #800000; font-weight: normal;">\Large</span><span style="color: #800000; font-weight: normal;">\Telefon</span>} +31 (0)6 12345678}</span>}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;"><span style="color: #F00000; font-weight: normal;">\begin</span></span>{<span style="color: #2222D0; font-weight: normal;">document</span>}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;"><span style="color: #F00000; font-weight: normal;">\begin</span></span>{<span style="color: #2222D0; font-weight: normal;">center</span>}</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\textsc</span>{<span style="color: #2222D0; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\Huge</span>{<span style="color: #800000; font-weight: normal;">\so</span>{Iulius Caesar}}</span>}</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\section</span>{<span style="color: #2222D0; font-weight: normal;">Experiences</span>}</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\newcommand</span>{<span style="color: #2222D0; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\gray</span>}{<span style="color: #800000; font-weight: normal;">\rowcolor</span>[<span style="color: #2222D0; font-weight: normal;">gray</span>]{.90}</span>}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;"><span style="color: #F00000; font-weight: normal;">\begin</span></span>{<span style="color: #2222D0; font-weight: normal;">tabularx}{0.97<span style="color: #800000; font-weight: normal;">\linewidth</span>}{&gt;{<span style="color: #800000; font-weight: normal;">\raggedleft</span><span style="color: #800000; font-weight: normal;">\scshape</span>}p{2cm}X</span>}</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\gray</span> Period &nbsp; &nbsp;&amp; <span style="color: #800000; font-weight: normal;">\textbf</span>{<span style="color: #2222D0; font-weight: normal;">August 2004 --- September 2006</span>}\\</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\gray</span> Employer &nbsp;&amp; <span style="color: #800000; font-weight: normal;">\textbf</span>{<span style="color: #2222D0; font-weight: normal;">Layer BV</span>} <span style="color: #800000; font-weight: normal;">\hfill</span> Amsterdam, The Netherlands\\</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\gray</span> Job Title &amp; <span style="color: #800000; font-weight: normal;">\textbf</span>{<span style="color: #2222D0; font-weight: normal;">J2EE Analyst programmer</span>}\\</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\gray</span> Languages &amp; J2EE\\</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp;&amp; Non eram nescius, Brute, cum, quae summis ingeniis exquisitaque doctrina philosophi Graeco sermone tractavissent, ea Latinis litteris mandaremus, fore ut hic noster labor in varias reprehensiones incurreret.</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;"><span style="color: #F00000; font-weight: normal;">\end</span></span>{<span style="color: #2222D0; font-weight: normal;">tabularx</span>}</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\section</span>{<span style="color: #2222D0; font-weight: normal;">Skills</span>}</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\section</span>{<span style="color: #2222D0; font-weight: normal;">Education</span>}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\section</span>{<span style="color: #2222D0; font-weight: normal;">Publications</span>}</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\section</span>{<span style="color: #2222D0; font-weight: normal;">Personal Info</span>}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\section</span>{<span style="color: #2222D0; font-weight: normal;">Languages</span>}</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\section</span>{<span style="color: #2222D0; font-weight: normal;">Interests</span>}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;"><span style="color: #F00000; font-weight: normal;">\end</span></span>{<span style="color: #2222D0; font-weight: normal;">center</span>}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;"><span style="color: #F00000; font-weight: normal;">\end</span></span>{<span style="color: #2222D0; font-weight: normal;">document</span>}</div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Finally we obtain something like this:<br />
<img src="http://stefano.italians.nl/wp-content/uploads/2008/10/table3.png" alt="table version 3" /><br />
Sweet, isn't it? We are able to define a table for our job entries, with style (at least, in my humble opinion). Only problem is there's a lot of boilerplate code to repeat for each job entry we would like to add to our document. So in the next part of the tutorial I will show how to define a custom environment that will  format once for all of our job entries, regardless their number. Along the road there will be room also for some refinements.</p>
<p>See you in 7 seven years, then.</p>
]]></content:encoded>
			<wfw:commentRss>http://stefano.italians.nl/archives/50/feed</wfw:commentRss>
		</item>
		<item>
		<title>Your curriculum in LaTeX - part three</title>
		<link>http://stefano.italians.nl/archives/26</link>
		<comments>http://stefano.italians.nl/archives/26#comments</comments>
		<pubDate>Sun, 13 Apr 2008 11:27:41 +0000</pubDate>
		<dc:creator>kindoblue</dc:creator>
		
		<category><![CDATA[tutorial]]></category>

		<category><![CDATA[LaTeX]]></category>

		<guid isPermaLink="false">http://stefano.italians.nl/archives/26</guid>
		<description><![CDATA[This is the third part of the tutorial. You can find here the second part.
In the first part of the tutorial we took care of the title of the resume; in the second part we organized the sections, using an appropriate style. Now it's time to properly format the pages and add a decent footer. [...]]]></description>
			<content:encoded><![CDATA[<p>This is the third part of the tutorial. You can find <a href="http://stefano.italians.nl/archives/14">here</a> the second part.</p>
<p>In the first part of the tutorial we took care of the title of the resume; in the second part we organized the sections, using an appropriate style. Now it's time to properly format the pages and add a decent footer. To do so, I installed and used <a href="http://www.ctan.org/tex-archive/macros/latex/contrib/koma-script/">KOMA-Script</a>. It is a powerful bundle of LaTeX classes and packages and, as stated in its guide: <em>its primary purpose is to provide more-flexible alternatives to the standard classes</em>. It includes the <em>scrpage2 </em>package to customise the document page header and footer, improved and enhanced successor of <em>scrpage</em>.</p>
<p>So, let's change the <code>\documentclass</code> to use KOMA. Also, include the package <em>scrpage2</em>:</p>
<div class="igBar"><span id="llatex-54"><a href="#" onclick="javascript:showPlainTxt('latex-54'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite">
<div id="latex-54">
<div class="latex" style="font-family: monospace;">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\documentclass</span>[<span style="color: #2222D0; font-weight: normal;">a4paper, oneside, final</span>]{<span style="color: #2222D0; font-weight: normal;">scrartcl</span>}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\usepackage</span>{<span style="color: #2222D0; font-weight: normal;">soul</span>}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\usepackage</span>{<span style="color: #2222D0; font-weight: normal;">scrpage2</span>}</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\usepackage</span>{<span style="color: #2222D0; font-weight: normal;">titlesec</span>}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\titleformat</span>{<span style="color: #2222D0; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\section</span>}{<span style="color: #800000; font-weight: normal;">\large</span><span style="color: #800000; font-weight: normal;">\scshape</span><span style="color: #800000; font-weight: normal;">\raggedright</span>}{}{0em}{</span>}[<span style="color: #2222D0; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\titlerule</span></span>]</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;"><span style="color: #F00000; font-weight: normal;">\begin</span></span>{<span style="color: #2222D0; font-weight: normal;">document</span>}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;"><span style="color: #F00000; font-weight: normal;">\begin</span></span>{<span style="color: #2222D0; font-weight: normal;">center</span>}</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\textsc</span>{<span style="color: #2222D0; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\Huge</span>{<span style="color: #800000; font-weight: normal;">\so</span>{Iulius Caesar}}</span>}</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\section</span>{<span style="color: #2222D0; font-weight: normal;">Experiences</span>}</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\section</span>{<span style="color: #2222D0; font-weight: normal;">Skills</span>}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\section</span>{<span style="color: #2222D0; font-weight: normal;">Education</span>}</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\section</span>{<span style="color: #2222D0; font-weight: normal;">Publications</span>}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\section</span>{<span style="color: #2222D0; font-weight: normal;">Personal Info</span>}</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\section</span>{<span style="color: #2222D0; font-weight: normal;">Languages</span>}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\section</span>{<span style="color: #2222D0; font-weight: normal;">Interests</span>}</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;"><span style="color: #F00000; font-weight: normal;">\end</span></span>{<span style="color: #2222D0; font-weight: normal;">center</span>}</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;"><span style="color: #F00000; font-weight: normal;">\end</span></span>{<span style="color: #2222D0; font-weight: normal;">document</span>}</div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>As you can see from the result page, the are some adjustments regarding the margins.</p>
<div style="text-align: center"><img src="http://stefano.italians.nl/wp-content/uploads/2008/04/eleven.png" alt="The page with KOMA class" /></div>
<p>Still, no big differences. So, we proceed to set the footer to replace the page numbers in the bottom of the page with something more appropriate for a resume: the contact data. To do so, we will use the commands <code>\pagestyle{scrheadings}</code> and <code>\cofoot</code>. In this way:</p>
<div class="igBar"><span id="llatex-55"><a href="#" onclick="javascript:showPlainTxt('latex-55'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite">
<div id="latex-55">
<div class="latex" style="font-family: monospace;">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\documentclass</span>[<span style="color: #2222D0; font-weight: normal;">a4paper, oneside, final</span>]{<span style="color: #2222D0; font-weight: normal;">scrartcl</span>}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\usepackage</span>{<span style="color: #2222D0; font-weight: normal;">soul</span>}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\usepackage</span>{<span style="color: #2222D0; font-weight: normal;">scrpage2</span>}</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\usepackage</span>{<span style="color: #2222D0; font-weight: normal;">titlesec</span>}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\titleformat</span>{<span style="color: #2222D0; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\section</span>}{<span style="color: #800000; font-weight: normal;">\large</span><span style="color: #800000; font-weight: normal;">\scshape</span><span style="color: #800000; font-weight: normal;">\raggedright</span>}{}{0em}{</span>}[<span style="color: #2222D0; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\titlerule</span></span>]</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">% enable customized headers and footers</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\pagestyle</span>{<span style="color: #2222D0; font-weight: normal;">scrheadings</span>}</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">% define footer</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\cofoot</span>{Liefdestraat, 7 - 1234LI, Amsterdam, Nederland\\</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">jeff@gmail.com \ &nbsp;+31 (0)6 12345678}</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;"><span style="color: #F00000; font-weight: normal;">\begin</span></span>{<span style="color: #2222D0; font-weight: normal;">document</span>}</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;"><span style="color: #F00000; font-weight: normal;">\begin</span></span>{<span style="color: #2222D0; font-weight: normal;">center</span>}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\textsc</span>{<span style="color: #2222D0; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\Huge</span>{<span style="color: #800000; font-weight: normal;">\so</span>{Iulius Caesar}}</span>}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\section</span>{<span style="color: #2222D0; font-weight: normal;">Experiences</span>}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\section</span>{<span style="color: #2222D0; font-weight: normal;">Skills</span>}</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\section</span>{<span style="color: #2222D0; font-weight: normal;">Education</span>}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\section</span>{<span style="color: #2222D0; font-weight: normal;">Publications</span>}</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\section</span>{<span style="color: #2222D0; font-weight: normal;">Personal Info</span>}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\section</span>{<span style="color: #2222D0; font-weight: normal;">Languages</span>}</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\section</span>{<span style="color: #2222D0; font-weight: normal;">Interests</span>}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;"><span style="color: #F00000; font-weight: normal;">\end</span></span>{<span style="color: #2222D0; font-weight: normal;">center</span>}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;"><span style="color: #F00000; font-weight: normal;">\end</span></span>{<span style="color: #2222D0; font-weight: normal;">document</span>}</div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Take a look at the result page:</p>
<div style="text-align: center"><img src="http://stefano.italians.nl/wp-content/uploads/2008/04/twelve.png" alt="The page with the customized footer" /></div>
<p>Let's focus on the footer, because the default appearance is not enough.</p>
<div style="text-align: center"><img src="http://stefano.italians.nl/wp-content/uploads/2008/04/thirteen.png" alt="The zoomed footer" /></div>
<p>The first thing to do is to change the font shape of the footer, redefining the command <code>\headfont</code>, so the latex code becomes:</p>
<div class="igBar"><span id="llatex-56"><a href="#" onclick="javascript:showPlainTxt('latex-56'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite">
<div id="latex-56">
<div class="latex" style="font-family: monospace;">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\documentclass</span>[<span style="color: #2222D0; font-weight: normal;">a4paper, oneside, final</span>]{<span style="color: #2222D0; font-weight: normal;">scrartcl</span>}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\usepackage</span>{<span style="color: #2222D0; font-weight: normal;">soul</span>}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\usepackage</span>{<span style="color: #2222D0; font-weight: normal;">scrpage2</span>}</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\usepackage</span>{<span style="color: #2222D0; font-weight: normal;">titlesec</span>}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\titleformat</span>{<span style="color: #2222D0; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\section</span>}{<span style="color: #800000; font-weight: normal;">\large</span><span style="color: #800000; font-weight: normal;">\scshape</span><span style="color: #800000; font-weight: normal;">\raggedright</span>}{}{0em}{</span>}[<span style="color: #2222D0; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\titlerule</span></span>]</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\pagestyle</span>{<span style="color: #2222D0; font-weight: normal;">scrheadings</span>}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">% specify the font family for headers and footers</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\renewcommand</span>{<span style="color: #2222D0; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\headfont</span>}{<span style="color: #800000; font-weight: normal;">\normalfont</span><span style="color: #800000; font-weight: normal;">\rmfamily</span><span style="color: #800000; font-weight: normal;">\scshape</span></span>}</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\cofoot</span>{Liefdestraat, 7 - 1234LI, Amsterdam, Nederland\\</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">jeff@gmail.com \ &nbsp;+31 (0)6 12345678}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;"><span style="color: #F00000; font-weight: normal;">\begin</span></span>{<span style="color: #2222D0; font-weight: normal;">document</span>}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;"><span style="color: #F00000; font-weight: normal;">\begin</span></span>{<span style="color: #2222D0; font-weight: normal;">center</span>}</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\textsc</span>{<span style="color: #2222D0; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\Huge</span>{<span style="color: #800000; font-weight: normal;">\so</span>{Iulius Caesar}}</span>}</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\section</span>{<span style="color: #2222D0; font-weight: normal;">Experiences</span>}</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\section</span>{<span style="color: #2222D0; font-weight: normal;">Skills</span>}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\section</span>{<span style="color: #2222D0; font-weight: normal;">Education</span>}</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\section</span>{<span style="color: #2222D0; font-weight: normal;">Publications</span>}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\section</span>{<span style="color: #2222D0; font-weight: normal;">Personal Info</span>}</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\section</span>{<span style="color: #2222D0; font-weight: normal;">Languages</span>}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\section</span>{<span style="color: #2222D0; font-weight: normal;">Interests</span>}</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;"><span style="color: #F00000; font-weight: normal;">\end</span></span>{<span style="color: #2222D0; font-weight: normal;">center</span>}</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;"><span style="color: #F00000; font-weight: normal;">\end</span></span>{<span style="color: #2222D0; font-weight: normal;">document</span>}</div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>The footer now looks like the following:</p>
<div style="text-align: center"><img src="http://stefano.italians.nl/wp-content/uploads/2008/04/fourteen.png" alt="The footer with changed font shape" /></div>
<p>As we did with other important pieces of this document, we can use the command <code>\so</code> from the <a href="http://www.ctan.org/tex-archive/macros/latex/contrib/soul/">Soul</a> package, in this way:</p>
<div class="igBar"><span id="llatex-57"><a href="#" onclick="javascript:showPlainTxt('latex-57'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite">
<div id="latex-57">
<div class="latex" style="font-family: monospace;">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\documentclass</span>[<span style="color: #2222D0; font-weight: normal;">a4paper, oneside, final</span>]{<span style="color: #2222D0; font-weight: normal;">scrartcl</span>}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\usepackage</span>{<span style="color: #2222D0; font-weight: normal;">soul</span>}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\usepackage</span>{<span style="color: #2222D0; font-weight: normal;">scrpage2</span>}</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\usepackage</span>{<span style="color: #2222D0; font-weight: normal;">titlesec</span>}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\titleformat</span>{<span style="color: #2222D0; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\section</span>}{<span style="color: #800000; font-weight: normal;">\large</span><span style="color: #800000; font-weight: normal;">\scshape</span><span style="color: #800000; font-weight: normal;">\raggedright</span>}{}{0em}{</span>}[<span style="color: #2222D0; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\titlerule</span></span>]</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\pagestyle</span>{<span style="color: #2222D0; font-weight: normal;">scrheadings</span>}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\renewcommand</span>{<span style="color: #2222D0; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\headfont</span>}{<span style="color: #800000; font-weight: normal;">\normalfont</span><span style="color: #800000; font-weight: normal;">\rmfamily</span><span style="color: #800000; font-weight: normal;">\scshape</span></span>}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">% the so command to expand the text</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\cofoot</span>{<span style="color: #2222D0; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\so</span>{Liefdestraat, 7 - 1234LI, Amsterdam, Nederland</span>}\\</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\so</span>{<span style="color: #2222D0; font-weight: normal;">jeff@gmail.com \ &nbsp;+31 (0)6 12345678}</span>}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;"><span style="color: #F00000; font-weight: normal;">\begin</span></span>{<span style="color: #2222D0; font-weight: normal;">document</span>}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;"><span style="color: #F00000; font-weight: normal;">\begin</span></span>{<span style="color: #2222D0; font-weight: normal;">center</span>}</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\textsc</span>{<span style="color: #2222D0; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\Huge</span>{<span style="color: #800000; font-weight: normal;">\so</span>{Iulius Caesar}}</span>}</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\section</span>{<span style="color: #2222D0; font-weight: normal;">Experiences</span>}</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\section</span>{<span style="color: #2222D0; font-weight: normal;">Skills</span>}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\section</span>{<span style="color: #2222D0; font-weight: normal;">Education</span>}</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\section</span>{<span style="color: #2222D0; font-weight: normal;">Publications</span>}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\section</span>{<span style="color: #2222D0; font-weight: normal;">Personal Info</span>}</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\section</span>{<span style="color: #2222D0; font-weight: normal;">Languages</span>}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\section</span>{<span style="color: #2222D0; font-weight: normal;">Interests</span>}</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;"><span style="color: #F00000; font-weight: normal;">\end</span></span>{<span style="color: #2222D0; font-weight: normal;">center</span>}</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;"><span style="color: #F00000; font-weight: normal;">\end</span></span>{<span style="color: #2222D0; font-weight: normal;">document</span>}</div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>The result is now much better:</p>
<div style="text-align: center"><img src="http://stefano.italians.nl/wp-content/uploads/2008/04/fifteen.png" alt="The footer with more spaces" /></div>
<p>And now, the final touch! Go, grab and install the <a href="http://www.ctan.org/tex-archive/fonts/psfonts/marvosym/">Marvosym</a> package. It contains fonts with a lot of symbols<sup>1</sup>. The idea is to specify the symbols for email and phone contact data, to provide visual hints.<br />
To do so, we will use the command <code>\Letter</code> and <code>\Telefon</code>. Also, to increase the size of the symbols, we will use the <code>\Large</code> modifier, all enclosed in curly brakets (to limit the scope of the command, otherwise also the text will be enlarged.)<br />
So, the latex code becomes:</p>
<div class="igBar"><span id="llatex-58"><a href="#" onclick="javascript:showPlainTxt('latex-58'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite">
<div id="latex-58">
<div class="latex" style="font-family: monospace;">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\documentclass</span>[<span style="color: #2222D0; font-weight: normal;">a4paper, oneside, final</span>]{<span style="color: #2222D0; font-weight: normal;">scrartcl</span>}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\usepackage</span>{<span style="color: #2222D0; font-weight: normal;">soul</span>}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\usepackage</span>{<span style="color: #2222D0; font-weight: normal;">scrpage2</span>}</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\usepackage</span>{<span style="color: #2222D0; font-weight: normal;">titlesec</span>}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\usepackage</span>{<span style="color: #2222D0; font-weight: normal;">marvosym</span>}</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\titleformat</span>{<span style="color: #2222D0; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\section</span>}{<span style="color: #800000; font-weight: normal;">\large</span><span style="color: #800000; font-weight: normal;">\scshape</span><span style="color: #800000; font-weight: normal;">\raggedright</span>}{}{0em}{</span>}[<span style="color: #2222D0; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\titlerule</span></span>]</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\pagestyle</span>{<span style="color: #2222D0; font-weight: normal;">scrheadings</span>}</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\renewcommand</span>{<span style="color: #2222D0; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\headfont</span>}{<span style="color: #800000; font-weight: normal;">\normalfont</span><span style="color: #800000; font-weight: normal;">\rmfamily</span><span style="color: #800000; font-weight: normal;">\scshape</span></span>}</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">% add the symbols for email and phone contact data</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\cofoot</span>{<span style="color: #2222D0; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\so</span>{Liefdestraat, 7 - 1234LI, Amsterdam, Nederland</span>}\\</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\so</span>{<span style="color: #2222D0; font-weight: normal;"> {<span style="color: #800000; font-weight: normal;">\Large</span><span style="color: #800000; font-weight: normal;">\Letter</span>} jeff@gmail.com \ {<span style="color: #800000; font-weight: normal;">\Large</span><span style="color: #800000; font-weight: normal;">\Telefon</span>} +31 (0)6 12345678}</span>}</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;"><span style="color: #F00000; font-weight: normal;">\begin</span></span>{<span style="color: #2222D0; font-weight: normal;">document</span>}</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;"><span style="color: #F00000; font-weight: normal;">\begin</span></span>{<span style="color: #2222D0; font-weight: normal;">center</span>}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\textsc</span>{<span style="color: #2222D0; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\Huge</span>{<span style="color: #800000; font-weight: normal;">\so</span>{Iulius Caesar}}</span>}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\section</span>{<span style="color: #2222D0; font-weight: normal;">Experiences</span>}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\section</span>{<span style="color: #2222D0; font-weight: normal;">Skills</span>}</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\section</span>{<span style="color: #2222D0; font-weight: normal;">Education</span>}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\section</span>{<span style="color: #2222D0; font-weight: normal;">Publications</span>}</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\section</span>{<span style="color: #2222D0; font-weight: normal;">Personal Info</span>}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\section</span>{<span style="color: #2222D0; font-weight: normal;">Languages</span>}</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\section</span>{<span style="color: #2222D0; font-weight: normal;">Interests</span>}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;"><span style="color: #F00000; font-weight: normal;">\end</span></span>{<span style="color: #2222D0; font-weight: normal;">center</span>}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;"><span style="color: #F00000; font-weight: normal;">\end</span></span>{<span style="color: #2222D0; font-weight: normal;">document</span>}</div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>The result is the following:</p>
<div style="text-align: center"><img src="http://stefano.italians.nl/wp-content/uploads/2008/04/sixteen.png" alt="The footer with the symbols" /></div>
<p>To recap, in this part of the tutorial we adjusted the page format using <em>KOMA-Script</em>, then we added and customized the footer. The following picture shows the steps we took in the customization:</p>
<div style="text-align: center"><img src="http://stefano.italians.nl/wp-content/uploads/2008/04/footercomparison.png" alt="The footer comparison" /></div>
<p>That's all folks. See you in seven years for the fourth part.</p>
<ol class="footnotes"><li id="footnote_0_26" class="footnote">Take a look at the Marvosym documentation to discover which symbols are available and how to specify them in your document</li></ol>]]></content:encoded>
			<wfw:commentRss>http://stefano.italians.nl/archives/26/feed</wfw:commentRss>
		</item>
		<item>
		<title>Your curriculum in LaTeX - part two</title>
		<link>http://stefano.italians.nl/archives/14</link>
		<comments>http://stefano.italians.nl/archives/14#comments</comments>
		<pubDate>Sat, 10 Nov 2007 12:59:15 +0000</pubDate>
		<dc:creator>kindoblue</dc:creator>
		
		<category><![CDATA[tutorial]]></category>

		<category><![CDATA[LaTeX]]></category>

		<guid isPermaLink="false">http://stefano.italians.nl/archives/14</guid>
		<description><![CDATA[This is the second part of the tutorial. You can find here the first part.
Now it's time to add the section headers. We will use the command \section, in this way:
PLAIN TEXT





\documentclass{article}


&#160;


\includepackage{soul}


&#160;


\begin{document}


&#160;


\begin{center}


&#160;


\textsc{\so{\Huge{Iulius Caesar}}}


&#160;


% hereafter we specify the section


% of our resume


\section{Experiences}


\section{Skills}


\section{Education}


\section{Publications}


\section{Personal Info}


\section{Languages}


\section{Interests}


&#160;


\end{center}


&#160;


\end{document}






The result is like this:

The section headers can be improved with a little bit [...]]]></description>
			<content:encoded><![CDATA[<p>This is the second part of the tutorial. You can find <a href="http://stefano.italians.nl/archives/5">here</a> the first part.</p>
<p>Now it's time to add the section headers. We will use the command <code>\section</code>, in this way:</p>
<div class="igBar"><span id="llatex-61"><a href="#" onclick="javascript:showPlainTxt('latex-61'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite">
<div id="latex-61">
<div class="latex" style="font-family: monospace;">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\documentclass</span>{<span style="color: #2222D0; font-weight: normal;">article</span>}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\includepackage</span>{<span style="color: #2222D0; font-weight: normal;">soul</span>}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;"><span style="color: #F00000; font-weight: normal;">\begin</span></span>{<span style="color: #2222D0; font-weight: normal;">document</span>}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;"><span style="color: #F00000; font-weight: normal;">\begin</span></span>{<span style="color: #2222D0; font-weight: normal;">center</span>}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\textsc</span>{<span style="color: #2222D0; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\so</span>{<span style="color: #800000; font-weight: normal;">\Huge</span>{Iulius Caesar}}</span>}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">% hereafter we specify the section</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">% of our resume</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\section</span>{<span style="color: #2222D0; font-weight: normal;">Experiences</span>}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\section</span>{<span style="color: #2222D0; font-weight: normal;">Skills</span>}</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\section</span>{<span style="color: #2222D0; font-weight: normal;">Education</span>}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\section</span>{<span style="color: #2222D0; font-weight: normal;">Publications</span>}</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\section</span>{<span style="color: #2222D0; font-weight: normal;">Personal Info</span>}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\section</span>{<span style="color: #2222D0; font-weight: normal;">Languages</span>}</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\section</span>{<span style="color: #2222D0; font-weight: normal;">Interests</span>}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;"><span style="color: #F00000; font-weight: normal;">\end</span></span>{<span style="color: #2222D0; font-weight: normal;">center</span>}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;"><span style="color: #F00000; font-weight: normal;">\end</span></span>{<span style="color: #2222D0; font-weight: normal;">document</span>}</div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>The result is like this:</p>
<div style="text-align: center"><img src="http://stefano.italians.nl/wp-content/uploads/2007/11/six.png" /></div>
<p align="justify">The section headers can be improved with a little bit of personality. So, instead of living with the standard format for the section header, we will customize it. The package <a href="http://www.ctan.org/tex-archive/macros/latex/contrib/titlesec/">titlesec</a> is offering several macro to cope with personalization of titles and headers. Install it and load in the preamble, so we can use the <code>\titleformat</code> command</p>
<p><font face="courier new,courier">\titleformat{<em>command</em>}[<em>shape</em>]{<em>format</em>}{<em>label</em>}{<em>sep</em>}{<em>before</em>}[<em>after</em>]  </font></p>
<p>It takes 7 parameters. The ones in curly braces are mandatory; the others, optional.</p>
<ul>
<li>The first parameter, <em>command</em>, is used to specify which sectioning command has to be redefined. In our case, we want to change the format of the sections, so we will use the value <code>\section</code></li>
<li>The second parameter is to specify the <em>shape</em> of the sectioning command. For the possible values, see the <a href="http://www.ctan.org/tex-archive/macros/latex/contrib/titlesec/titlesec.pdf">titlesec manual</a>. In our case, we are happy with the default shape.</li>
<li>The third parameter is the most important. Here we can specify the <em>format</em> for the entire title.</li>
<li>The fourth parameter is the <em>label</em>. It is some text that appears in the title. In the previous image, the labels for the section are the running numbers.</li>
<li>The fifth parameter is the <em>sep</em>arator between the label and the title.</li>
<li>The last two parameters can contains LaTeX code that will appears before and after the title material.</li>
</ul>
<p>So, to begin with, let's eliminate the numbers in front of the section titles, by using the following declaration</p>
<p><font face="courier new,courier">\titleformat{<em>\section</em>}{}{}{0em}{}</font></p>
<p>As first parameter, we specify the sectioning command whose format has to be redefined; in our case: <code>\section</code>. The shape parameter is not passed, because we are happy with the default value and it is not mandatory. The third parameter, the format, we leave empty for the moment. Now the forth parameter, the label. We said we want to get rid of the numbers, so we leave the parameter out. Regarding the fifth parameter, we have to specify a length for the separation between label (null) and the title. The sixth parameter also will be left empty. The seventh parameter is not specified because is not mandatory.</p>
<p>So our code will look like the following:</p>
<div class="igBar"><span id="llatex-62"><a href="#" onclick="javascript:showPlainTxt('latex-62'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite">
<div id="latex-62">
<div class="latex" style="font-family: monospace;">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\documentclass</span>{<span style="color: #2222D0; font-weight: normal;">article</span>}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\usepackage</span>{<span style="color: #2222D0; font-weight: normal;">soul</span>}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\usepackage</span>{<span style="color: #2222D0; font-weight: normal;">titlesec</span>}</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">% this is a global declaration that</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">% will change the appearance of</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">% the section command</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\titleformat</span>{<span style="color: #2222D0; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\section</span>}{}{}{0em}{</span>}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;"><span style="color: #F00000; font-weight: normal;">\begin</span></span>{<span style="color: #2222D0; font-weight: normal;">document</span>}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;"><span style="color: #F00000; font-weight: normal;">\begin</span></span>{<span style="color: #2222D0; font-weight: normal;">center</span>}</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\textsc</span>{<span style="color: #2222D0; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\Huge</span>{<span style="color: #800000; font-weight: normal;">\so</span>{Iulius Caesar}}</span>}</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\section</span>{<span style="color: #2222D0; font-weight: normal;">Experiences</span>}</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\section</span>{<span style="color: #2222D0; font-weight: normal;">Skills</span>}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\section</span>{<span style="color: #2222D0; font-weight: normal;">Education</span>}</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\section</span>{<span style="color: #2222D0; font-weight: normal;">Publications</span>}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\section</span>{<span style="color: #2222D0; font-weight: normal;">Personal Info</span>}</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\section</span>{<span style="color: #2222D0; font-weight: normal;">Languages</span>}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\section</span>{<span style="color: #2222D0; font-weight: normal;">Interests</span>}</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;"><span style="color: #F00000; font-weight: normal;">\end</span></span>{<span style="color: #2222D0; font-weight: normal;">center</span>}</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #800000; font-weight: normal;"><span style="color: #F00000; font-weight: normal;">\end</span></span>{<span style="color: #2222D0; font-weight: normal;">document</span>}</div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>The section titles now become like this:</p>
<div style="text-align: center"><img src="http://stefano.italians.nl/wp-content/uploads/2007/11/seven.png" /></div>
<p>Now it's time to play with the format parameter. To begin with, I would say to increase the font size and use the small caps. After all, those strings are the labels of the sections, so we have to add some emphasis. It's easy to do, just use the commands <code>\large\scshape</code> in the format. So our declaration will be</p>
<p><font face="courier new,courier">\titleformat{<em>\section</em>}{\large\scshape}{}{0em}{}</font></p>
<p>The result is the following:</p>
<div style="text-align: center"><img src="http://stefano.italians.nl/wp-content/uploads/2007/11/eight.png" /></div>
<p>You may notice something strange: the title "Personal Info" is typeset as justified. Whatever is the reason, we can specify our titles has to be ragged on the right. So we can change the format to:</p>
<p><font face="courier new,courier">\titleformat{<em>\section</em>}{\large\scshape\<strong>raggedright</strong>}{}{0em}{}</font></p>
<p>Let's take a look now:</p>
<div style="text-align: center"><img src="http://stefano.italians.nl/wp-content/uploads/2007/11/nine.png" /></div>
<p>As final touch, we can add a separator line. To do so we should add the command <code>\titlerule</code> after each title. If you remember, the last two parameters of the <code>\titleformat</code> are meant to specify materials that goes <em>before</em> and <em>after</em>, respectively, the titles. The definition now becomes:</p>
<p><font face="courier new,courier">\titleformat{<em>\section</em>}{\large\scshape\raggedright}{}{0em}{}[<strong>\titlerule</strong>]</font></p>
<p>We just specified the last parameter, in a way that a title rule will be appended (after) the titles. The parameter is not mandatory, so when it appears, has to be wrapped in square braces and not in curly ones. The result is the following:</p>
<div style="text-align: center"><img src="http://stefano.italians.nl/wp-content/uploads/2007/11/ten.png" /></div>
<p>I think we are pretty much done with the section titles. Hereafter I show how their look changed along the tutorial:</p>
<div style="text-align: center"><img src="http://stefano.italians.nl/wp-content/uploads/2007/11/sections.png" /></div>
<p>For the third part, see you in seven years.</p>
]]></content:encoded>
			<wfw:commentRss>http://stefano.italians.nl/archives/14/feed</wfw:commentRss>
		</item>
	</channel>
</rss>
