<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>howtoTeX.com - Your LaTeX resource site</title>
	
	<link>http://www.howtotex.com</link>
	<description>Your LaTeX resource site.</description>
	<lastBuildDate>Wed, 16 May 2012 15:33:10 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/howtotex" /><feedburner:info uri="howtotex" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><item>
		<title>Five minute guide to LaTeX</title>
		<link>http://feedproxy.google.com/~r/howtotex/~3/15CpnienIAA/</link>
		<comments>http://www.howtotex.com/general/five-minute-guide-to-latex/#comments</comments>
		<pubDate>Wed, 16 May 2012 15:30:18 +0000</pubDate>
		<dc:creator>Frits</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[howto]]></category>

		<guid isPermaLink="false">http://www.howtotex.com/?p=931</guid>
		<description><![CDATA[Together with a friend of mine, I&#8217;ve written a beginners guide for LaTeX. The main goal of the guide was to keep things simple and to convince MS Word users to write proper documents with LaTeX. The result? Four pages of text, explaining the basics of LaTeX. The content of the guide is filled with examples. This, in our opinion,<div class="readmore"><a href="http://www.howtotex.com/general/five-minute-guide-to-latex/">Read more</a></div>]]></description>
			<content:encoded><![CDATA[<p>Together with a friend of mine, I&#8217;ve written a beginners guide for LaTeX. The main goal of the guide was to keep things simple and to convince MS Word users to write proper documents with LaTeX. The result? Four pages of text, explaining the basics of LaTeX. The content of the guide is filled with examples. This, in our opinion, is the best way to get familiar with the LaTeX way of typesetting.</p>
<p><span id="more-931"></span></p>
<p><result><a href="http://www.howtotex.com/download/FiveMinuteGuideToLaTeX.pdf">Five minute guide to LaTeX</a></result></p>
<h2>The guide</h2>
<p>The title of the document says it all: this is a <em>five minute guide to LaTeX</em>, a way of typesetting documents that will save time and frustration. This guide is written to get you over the fairly steep learning curve. More LaTeX guides exist, but they all drown you in information.</p>
<p>The content of this guide will teach you enough to write proper documents. Before you can start, the LaTeX system needs to be installed. A guide for Windows and Mac OS X is found <a href="http://www.howtotex.com/howto/" title="Installing LaTeX on Windows or Mac OS X" target="_blank">here</a>. To make life even easier, download <a href="http://www.howtotex.com/download/FiveMinuteGuideToLaTeX.zip" title="Five minute guide to LaTeX" target="_blank">this folder structure</a> to start LaTeXing right away.</p>
<h2>Download</h2>
<p>Download the guide in <a href="http://www.howtotex.com/download/FiveMinuteGuideToLaTeX.pdf">PDF format</a><br />
Download a <a href="http://www.howtotex.com/download/FiveMinuteGuideToLaTeX.zip">ZIP file</a>. This zip-archive contains the guide itself, together with a folder structure to help you right away.</p>
<h2>Comments?</h2>
<p>Off course, our guide will not be perfect just yet. So, any feedback is highly appreciated; leave a comment below or fill in <a href="http://www.howtotex.com/contact" target="_blank">this contact form</a>.</p>

<p><a href="http://feedads.g.doubleclick.net/~a/YcwO61spwDv_nq7gI9p1MHGWo7A/0/da"><img src="http://feedads.g.doubleclick.net/~a/YcwO61spwDv_nq7gI9p1MHGWo7A/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/YcwO61spwDv_nq7gI9p1MHGWo7A/1/da"><img src="http://feedads.g.doubleclick.net/~a/YcwO61spwDv_nq7gI9p1MHGWo7A/1/di" border="0" ismap="true"></img></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.howtotex.com/general/five-minute-guide-to-latex/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.howtotex.com/general/five-minute-guide-to-latex/</feedburner:origLink></item>
		<item>
		<title>Two column journal article template</title>
		<link>http://feedproxy.google.com/~r/howtotex/~3/aqr9YfvZ5A8/</link>
		<comments>http://www.howtotex.com/templates/two-column-journal-article-template/#comments</comments>
		<pubDate>Fri, 04 May 2012 21:10:49 +0000</pubDate>
		<dc:creator>Frits</dc:creator>
				<category><![CDATA[Templates]]></category>
		<category><![CDATA[article]]></category>
		<category><![CDATA[journal]]></category>
		<category><![CDATA[template]]></category>
		<category><![CDATA[twocolumn]]></category>

		<guid isPermaLink="false">http://www.howtotex.com/?p=914</guid>
		<description><![CDATA[Today&#8217;s LaTeX template has a two column layout, which makes it suitable for a (scientific) journal article. The section headings are changed, as well as the font of the document. Furthermore a header is added to the pages. I tried to create a clean looking article. Judge yourselves if I succeeded in doing that. The description in this post will<div class="readmore"><a href="http://www.howtotex.com/templates/two-column-journal-article-template/">Read more</a></div>]]></description>
			<content:encoded><![CDATA[<p>Today&#8217;s LaTeX template has a two column layout, which makes it suitable for a (scientific) journal article. The section headings are changed, as well as the font of the document. Furthermore a header is added to the pages. I tried to create a clean looking article. Judge yourselves if I succeeded in doing that. The description in this post will be rather short. If some things are not understood, please <a href="http://www.howtotex.com/contact/" title="Contact me" target="_blank">contact me</a>!</p>
<p><span id="more-914"></span></p>
<p><result><a href="http://www.howtotex.com/wp-content/uploads/2012/05/2col-journalpaper.screen.png" target="_blank">What you&#8217;ll be creating</a></result></p>
<h2>The preamble</h2>
<p>The preamble is pretty the much the same as all my other templates, except for some details that define this template. I will only cover those items. First the font:</p>

<div class="wp_syntax"><div class="code"><pre class="latex" style="font-family:monospace;"><span style="color: #E02020; ">\</span><span style="color: #800000;">usepackage</span><span style="color: #E02020; ">[</span><span style="color: #C08020; font-weight: normal;">sc</span><span style="color: #E02020; ">]{</span><span style="color: #2020C0; font-weight: normal;">mathpazo</span><span style="color: #E02020; ">}</span>
<span style="color: #E02020; ">\</span><span style="color: #800000;">usepackage</span><span style="color: #E02020; ">[</span><span style="color: #C08020; font-weight: normal;">T1</span><span style="color: #E02020; ">]{</span><span style="color: #2020C0; font-weight: normal;">fontenc</span><span style="color: #E02020; ">}</span>
<span style="color: #800000; font-weight: normal;">\linespread</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">1.05</span><span style="color: #E02020; ">}</span></pre></div></div>

<p>This enables the Palatino font. The <code>linespread</code> command is there to enlarge the space between lines, which is done because Palatino needs it.</p>
<p>Next, the <a href="http://ctan.org/pkg/lettrine" title="CTAN page for lettrine" target="_blank"><code>lettrine</code></a> package is used to create a <em>dropped capital</em> (a larger first character of the document):</p>

<div class="wp_syntax"><div class="code"><pre class="latex" style="font-family:monospace;"><span style="color: #E02020; ">\</span><span style="color: #800000;">usepackage</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">lettrine</span><span style="color: #E02020; ">}</span></pre></div></div>

<p>Furthermore, the <a href="http://ctan.org/pkg/abstract" title="CTAN page for abstract" target="_blank"><code>abstract</code></a> package is used to customize the <code>abstract</code> environment a bit. The packages <a href="http://ctan.org/pkg/titlesec" title="CTAN page for titlesec" target="_blank"><code>titlesec</code></a> and <a href="http://ctan.org/pkg/fancyhdr" title="CTAN page for fancyhdr" target="_blank"><code>fancyhdr</code></a> are used to alter the section headings and page headers, respectively.</p>
<h2>The content</h2>
<p>The abstract is written within the <code>abstract</code> environment. Then, the first character of the actual content is larger and really stands out. This is possible because we&#8217;ve called the <a href="http://ctan.org/pkg/lettrine" title="CTAN page for lettrine" target="_blank"><code>lettrine</code></a> package in the preamble. The drop cap  (a large letter L) is made as follows:</p>

<div class="wp_syntax"><div class="code"><pre class="latex" style="font-family:monospace;"><span style="color: #800000; font-weight: normal;">\lettrine</span><span style="color: #E02020; ">[</span><span style="color: #C08020; font-weight: normal;">nindent=0em,lines=3</span><span style="color: #E02020; ">]{</span><span style="color: #2020C0; font-weight: normal;">L</span><span style="color: #E02020; ">}</span></pre></div></div>

<p>Where between the square brackets the indentation is turned off and the number of lines the drop cap spans is set to 3.</p>
<p>One last thing to notice is the compact list. This is done with the <code>compactitem</code> environment, which came when we called the <a href="http://ctan.org/pkg/paralist" title="CTAN page for paralist" target="_blank"><code>paralist</code></a> package in the preamble. This package was actually featured before <a href="http://www.howtotex.com/packages/compact-lists-with-paralist/" title="Compact lists with paralist" target="_blank">in this post</a>.</p>
<h2>The result</h2>
<p>Download <a href="http://www.howtotex.com/download/2col-journalpaper-howtotex.pdf">PDF</a><br />
Download <a href="http://www.howtotex.com/download/2col-journalpaper-howtotex.tex">TEX</a></p>
<h2>Want more?</h2>
<p>If there are any templates you like me to add to this section, feel free to <a href="http://www.howtotex.com/contact" target="_blank">contact me</a>.</p>

<p><a href="http://feedads.g.doubleclick.net/~a/SmhFxZMz0bUegBDa4eGTsoMzys8/0/da"><img src="http://feedads.g.doubleclick.net/~a/SmhFxZMz0bUegBDa4eGTsoMzys8/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/SmhFxZMz0bUegBDa4eGTsoMzys8/1/da"><img src="http://feedads.g.doubleclick.net/~a/SmhFxZMz0bUegBDa4eGTsoMzys8/1/di" border="0" ismap="true"></img></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.howtotex.com/templates/two-column-journal-article-template/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://www.howtotex.com/templates/two-column-journal-article-template/</feedburner:origLink></item>
		<item>
		<title>Create a simple nomenclature with the longtable package</title>
		<link>http://feedproxy.google.com/~r/howtotex/~3/wXuKyPYz_eE/</link>
		<comments>http://www.howtotex.com/packages/create-a-simple-nomenclature-with-the-longtable-package/#comments</comments>
		<pubDate>Sat, 28 Apr 2012 07:20:38 +0000</pubDate>
		<dc:creator>Frits</dc:creator>
				<category><![CDATA[Packages]]></category>
		<category><![CDATA[longtable]]></category>
		<category><![CDATA[nomenclature]]></category>
		<category><![CDATA[tables]]></category>

		<guid isPermaLink="false">http://www.howtotex.com/?p=870</guid>
		<description><![CDATA[There are plenty of LaTeX packages that enable users to create a nomenclature (also called glossary or list of symbols); some make use of makeindex or xindy, others use bibtex. I think a nomenclature adds a great amount of value to theses or other large documents, but setting up a system to maintain one is a bit of a pain<div class="readmore"><a href="http://www.howtotex.com/packages/create-a-simple-nomenclature-with-the-longtable-package/">Read more</a></div>]]></description>
			<content:encoded><![CDATA[<p>There are plenty of LaTeX packages that enable users to create a nomenclature (also called glossary or list of symbols); some make use of <code>makeindex</code> or <code>xindy</code>, others use <code>bibtex</code>. I think a nomenclature adds a great amount of value to theses or other large documents, but setting up a system to maintain one is a bit of a pain (especially for beginning LaTeX users). So today a post on how to create a nomenclature, simple and fast. This one is probably interesting for beginning users only, but also for TeXers that can&#8217;t be bothered to use an additional process like <code>makeindex</code>.</p>
<p><span id="more-870"></span></p>
<h2>The longtable package</h2>
<p>The <a href="http://ctan.org/pkg/longtable" title="CTAN page for longtable" target="_blank"><code>longtable</code></a> package provides a <code>longtable</code> environment that allows to create tables spanning multiple pages. This is perfect for the use of a nomenclature:</p>
<ol>
<li>In table environments, you can align the entries. A nomenclature mostly requires two or three columns, which should be aligned!</li>
<li>For larger documents, it is likely that your nomenclature will span more than one page and the <a href="http://ctan.org/pkg/longtable" title="CTAN page for longtable" target="_blank"><code>longtable</code></a> package handles this perfectly.</li>
</ol>
<p>To include the <a href="http://ctan.org/pkg/longtable" title="CTAN page for longtable" target="_blank"><code>longtable</code></a> package in your LaTeX document, add the following line to your preamble:</p>

<div class="wp_syntax"><div class="code"><pre class="latex" style="font-family:monospace;"><span style="color: #E02020; ">\</span><span style="color: #800000;">usepackage</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">longtable</span><span style="color: #E02020; ">}</span></pre></div></div>

<h2>Setting up the nomenclature</h2>
<p>The nomenclature we will create here consists of three columns: the first for the symbol, the middle column for the unit and the last one for a description. Here&#8217;s how to implement it:</p>

<div class="wp_syntax"><div class="code"><pre class="latex" style="font-family:monospace;"><span style="color: #C00000; font-weight: normal;">\begin</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;"><span style="color: #0000D0; font-weight: normal;">longtable</span></span><span style="color: #E02020; ">}[</span><span style="color: #C08020; font-weight: normal;">l</span><span style="color: #E02020; ">]{</span><span style="color: #2020C0; font-weight: normal;">p{50pt</span><span style="color: #E02020; ">}</span> p<span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">50pt</span><span style="color: #E02020; ">}</span> p<span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">200pt</span><span style="color: #E02020; ">}}</span>
<span style="color: #E02020; ">\</span><span style="color: #800000;">textbf</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">Symbol</span><span style="color: #E02020; ">}</span>	<span style="color: #E02020; ">&amp;</span> <span style="color: #E02020; ">\</span><span style="color: #800000;">textbf</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">Units</span><span style="color: #E02020; ">}</span> <span style="color: #E02020; ">&amp;</span> <span style="color: #E02020; ">\</span><span style="color: #800000;">textbf</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">Description</span><span style="color: #E02020; ">}</span> <span style="color: #E02020; ">\\</span>
<span style="color: #8020E0; font-weight: normal;">$L$</span>	 	<span style="color: #E02020; ">&amp;</span> <span style="color: #800000; font-weight: normal;">\si</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\meter</span></span><span style="color: #E02020; ">}</span>	 <span style="color: #E02020; ">&amp;</span> Length<span style="color: #E02020; ">\\</span>
<span style="color: #8020E0; font-weight: normal;">$Ma$</span>	 	<span style="color: #E02020; ">&amp;</span> <span style="color: #8020E0; font-weight: normal;">$-$</span>		 <span style="color: #E02020; ">&amp;</span> Mach number<span style="color: #E02020; ">\\</span>
<span style="color: #8020E0; font-weight: normal;">$p$</span>	 	<span style="color: #E02020; ">&amp;</span> <span style="color: #800000; font-weight: normal;">\si</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\pascal</span></span><span style="color: #E02020; ">}</span>	 <span style="color: #E02020; ">&amp;</span> Pressure
<span style="color: #2C922C; font-style: italic;">%...</span>
<span style="color: #C00000; font-weight: normal;">\end</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;"><span style="color: #0000D0; font-weight: normal;">longtable</span></span><span style="color: #E02020; ">}</span></pre></div></div>

<p>This piece of code shouldn&#8217;t be all to hard to understand. It&#8217;s much like a <em>normal</em> <code>table</code> environment. The arguments after <code>\begin{longtable}</code> contain information about the amount of columns (3) and their widths (respectively 50pt, 50pt, and 250pt). This can of course be changed to your own needs. Also, note that the <a href="http://ctan.org/pkg/siunitx" title="CTAN page for siunitx" target="_blank"><code>siunitx</code></a> package, with the <code>\si</code> command, is used here for the units.</p>
<p>Now that the table is created, let&#8217;s put it in a separated section. Assuming your working on a large document with a class like <code>book</code> or <code>report</code> (where <code>\chapter</code> is a valid command), add a section like this:</p>

<div class="wp_syntax"><div class="code"><pre class="latex" style="font-family:monospace;"><span style="color: #E02020; ">\</span><span style="color: #800000;">chapter</span>*<span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">Nomenclature</span><span style="color: #E02020; ">}</span></pre></div></div>

<p>Suppress the section numbering, just like the table of contents, with the asterix (<code>*</code>).</p>
<p>The disadvantage of managing the nomenclature in a way as described in this post is that you&#8217;ll have to sort everything manually in order to make the list in alphabetical order. Also, with the alternatives named below you will be able to add content to the nomenclature throughout the complete document (the items will then automatically be added to the nomenclature, similar to the table of contents in LaTeX). However, it does require more time to set up and that might not be worth the trouble. Plus, I find this way more flexible in terms of styling and variance.</p>
<h2>What else?</h2>
<p>Now that you know how to set up your own simple glossary, let&#8217;s expand it a bit. For example, you might want to have different sections for different things (symbols, acronyms, greek symbols, indices and so on). For example, if you want to create a section with acronyms, consisting of a table with two columns, you might want to add this:</p>

<div class="wp_syntax"><div class="code"><pre class="latex" style="font-family:monospace;"><span style="color: #E02020; ">\</span><span style="color: #800000;">subsection</span>*<span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">Acronyms</span><span style="color: #E02020; ">}</span>
<span style="color: #C00000; font-weight: normal;">\begin</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;"><span style="color: #0000D0; font-weight: normal;">longtable</span></span><span style="color: #E02020; ">}[</span><span style="color: #C08020; font-weight: normal;">l</span><span style="color: #E02020; ">]{</span><span style="color: #2020C0; font-weight: normal;">p{50pt</span><span style="color: #E02020; ">}</span> p<span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">200pt</span><span style="color: #E02020; ">}}</span>
RAC <span style="color: #E02020; ">&amp;</span> Rear axle carrier  <span style="color: #E02020; ">\\</span>
FAC <span style="color: #E02020; ">&amp;</span> Front axle carrier <span style="color: #E02020; ">\\</span>
... <span style="color: #E02020; ">&amp;</span> ...                <span style="color: #E02020; ">\\</span>
<span style="color: #C00000; font-weight: normal;">\end</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;"><span style="color: #0000D0; font-weight: normal;">longtable</span></span><span style="color: #E02020; ">}</span></pre></div></div>

<h2>Alternatives</h2>
<p>As said before, a lot of alternatives exist for creating nomenclatures. To name a few:</p>
<ul>
<li><a href="http://ctan.org/pkg/glossaries" title="CTAN page for glossaries" target="_blank"><code>glossaries</code></a>: a glossary package that makes use of either <a href="http://ctan.org/pkg/makeindex" title="CTAN page for makeindex" target="_blank"><code>makeindex</code></a> or <a href="http://ctan.org/pkg/xindy" title="CTAN page for xindy" target="_blank"><code>xindy</code></a>.</li>
<li><a href="http://ctan.org/pkg/gloss" title="CTAN page for gloss" target="_blank"><code>gloss</code></a> makes use of bibTeX (where <code>\cite</code> is replaced by <code>\gloss</code>).</li>
<li><a href="http://ctan.org/pkg/glosstex" title="CTAN page for glosstex" target="_blank"><code>glosstex</code></a>: this package also makes use of <a href="http://ctan.org/pkg/makeindex" title="CTAN page for makeindex" target="_blank"><code>makeindex</code></a>.</li>
<li><a href="http://ctan.org/pkg/listofsymbols" title="CTAN page for listofsymbols" target="_blank"><code>listofsymbols</code></a>: This package does not make use of an additional package for the creation of the glossary and is actually quite similar to the way described here. The difference here is that you can use the <code>\newsym</code> command to add items from within the document you are writing.</li>
<li><a href="http://ctan.org/pkg/nomencl" title="CTAN page for nomencl" target="_blank"><code>nomencl</code></a> and <a href="http://ctan.org/pkg/nomentbl" title="CTAN page for nomentbl" target="_blank"><code>nomentbl</code></a>: these packages are alike, both making use of <a href="http://ctan.org/pkg/makeindex" title="CTAN page for makeindex" target="_blank"><code>makeindex</code></a></li>
</ul>

<p><a href="http://feedads.g.doubleclick.net/~a/Yf_vMV6Fmr_VDmNZQmMFwQhk_2s/0/da"><img src="http://feedads.g.doubleclick.net/~a/Yf_vMV6Fmr_VDmNZQmMFwQhk_2s/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/Yf_vMV6Fmr_VDmNZQmMFwQhk_2s/1/da"><img src="http://feedads.g.doubleclick.net/~a/Yf_vMV6Fmr_VDmNZQmMFwQhk_2s/1/di" border="0" ismap="true"></img></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.howtotex.com/packages/create-a-simple-nomenclature-with-the-longtable-package/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		<feedburner:origLink>http://www.howtotex.com/packages/create-a-simple-nomenclature-with-the-longtable-package/</feedburner:origLink></item>
		<item>
		<title>9 essential LaTeX packages everyone should use</title>
		<link>http://feedproxy.google.com/~r/howtotex/~3/14AEuB6kB4U/</link>
		<comments>http://www.howtotex.com/packages/9-essential-latex-packages-everyone-should-use/#comments</comments>
		<pubDate>Sun, 15 Apr 2012 08:22:29 +0000</pubDate>
		<dc:creator>Frits</dc:creator>
				<category><![CDATA[Packages]]></category>
		<category><![CDATA[amsmath]]></category>
		<category><![CDATA[booktabs]]></category>
		<category><![CDATA[cleveref]]></category>
		<category><![CDATA[geometry]]></category>
		<category><![CDATA[graphicx]]></category>
		<category><![CDATA[hyperref]]></category>
		<category><![CDATA[microtype]]></category>
		<category><![CDATA[nag]]></category>
		<category><![CDATA[package]]></category>
		<category><![CDATA[siunitx]]></category>

		<guid isPermaLink="false">http://www.howtotex.com/?p=838</guid>
		<description><![CDATA[Originally, I started this blog to help the very beginners of LaTeX. I have to admit that the horizon got a little wider since the day howtoTeX.com was launched and that is (in my eyes) not a bad thing. Challenges will only keep you motivated! However, today a post that is very useful for starters. In this post, I sum<div class="readmore"><a href="http://www.howtotex.com/packages/9-essential-latex-packages-everyone-should-use/">Read more</a></div>]]></description>
			<content:encoded><![CDATA[<p>Originally, I started this blog to help the very beginners of LaTeX. I have to admit that the horizon got a little wider since the day howtoTeX.com was launched and that is (in my eyes) not a bad thing. Challenges will only keep you motivated! However, today a post that is very useful for starters. In this post, I sum up 9 LaTeX packages that are absolutely obligatory for every LaTeX user. Let&#8217;s start!</p>
<p><span id="more-838"></span></p>
<p>The following packages are just listed in a random order. The first line of each section presents the way I use the package most of the time.</p>
<h2>amsmath</h2>

<div class="wp_syntax"><div class="code"><pre class="latex" style="font-family:monospace;"><span style="color: #E02020; ">\</span><span style="color: #800000;">usepackage</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">amsmath</span><span style="color: #E02020; ">}</span></pre></div></div>

<p>The <a href="http://ctan.org/pkg/amsmath" title="CTAN page for amsmath" target="_blank"><code>amsmath</code></a> package is the most important package of the AMS collection. This package introduces several improvements for math environments. For example, with <a href="http://ctan.org/pkg/amsmath" title="CTAN page for amsmath" target="_blank"><code>amsmath</code></a> comes the <code>align</code> environment. Al my <em>display equations</em> are captured in an <code>align</code> (or <code>align*</code> for unnumbered equations) environment, even if there&#8217;s nothing to align. <a href="http://www.tug.org/pracjourn/2006-4/madsen/madsen.pdf" title="Avoid eqnarray! by Lars Madsen (PracTeX 2006-4)" target="_blank">This PracTeX journal by Lars Madsen</a> encourages the use of the <a href="http://ctan.org/pkg/amsmath" title="CTAN page for amsmath" target="_blank"><code>amsmath</code></a> environments.</p>
<h2>geometry</h2>

<div class="wp_syntax"><div class="code"><pre class="latex" style="font-family:monospace;"><span style="color: #E02020; ">\</span><span style="color: #800000;">usepackage</span><span style="color: #E02020; ">[</span><span style="color: #C08020; font-weight: normal;">a4paper</span><span style="color: #E02020; ">]{</span><span style="color: #2020C0; font-weight: normal;">geometry</span><span style="color: #E02020; ">}</span></pre></div></div>

<p>To adjust the margins of pages, the <a href="http://ctan.org/pkg/geometry" title="CTAN page for geometry" target="_blank"><code>geometry</code></a> package comes in handy. The default page margins of the entire document can be altered with package options (the syntax between square brackets after <code>\usepackage</code>). I use this package most of the time to create A4 paper margins, which is done with the <code>a4paper</code> option.</p>
<p>With this package it is also possible to change the margins of one particular page <a href="http://www.howtotex.com/tips-tricks/change-margins-of-a-single-page/" title="Change margins of a single page" target="_blank">as was described in this post</a>. Another post on howtoTeX.com about the <a href="http://ctan.org/pkg/geometry" title="CTAN page for geometry" target="_blank"><code>geometry</code></a> package is about <a href="http://www.howtotex.com/tips-tricks/two-sided-latex-page-margins/" title="Two-sided LaTeX page margins" target="_blank">resetting two-sided document margins</a>.</p>
<h2>graphicx</h2>

<div class="wp_syntax"><div class="code"><pre class="latex" style="font-family:monospace;"><span style="color: #E02020; ">\</span><span style="color: #800000;">usepackage</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">graphicx</span><span style="color: #E02020; ">}</span></pre></div></div>

<p>Nothing special about the <a href="http://ctan.org/pkg/graphicx" title="CTAN page for graphicx" target="_blank"><code>graphicx</code></a> package, but it probably is the most important of all. This package introduces the <code>\includegraphics</code> command, which is needed for inserting figures.</p>
<h2>nag</h2>

<div class="wp_syntax"><div class="code"><pre class="latex" style="font-family:monospace;"><span style="color: #800000; font-weight: normal;">\RequirePackage</span><span style="color: #E02020; ">[</span><span style="color: #C08020; font-weight: normal;">l2tabu, orthodox</span><span style="color: #E02020; ">]{</span><span style="color: #2020C0; font-weight: normal;">nag</span><span style="color: #E02020; ">}</span></pre></div></div>

<p>This package deserved <a href="http://www.howtotex.com/packages/the-nag-package-warns-you-for-incorrect-latex-usage/" title="The nag package warns you for incorrect LaTeX usage" target="_blank">a post on howtoTeX.com already</a>. Actually, this package doesn&#8217;t do anything as long as your syntax is right. Load the package in the first lines of your preamble (even before the <code>\documentclass</code> command). It then checks for obsolete LaTeX packages and outdated commands. The documentation can be found <a href="http://ctan.org/pkg/nag" title="CTAN page for nag" target="_blank">here</a>.</p>
<h2>microtype</h2>

<div class="wp_syntax"><div class="code"><pre class="latex" style="font-family:monospace;"><span style="color: #E02020; ">\</span><span style="color: #800000;">usepackage</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">microtype</span><span style="color: #E02020; ">}</span></pre></div></div>

<p>The <a href="http://ctan.org/pkg/microtype" title="CTAN page for microtype" target="_blank"><code>microtype</code></a> package improves the spacing between words and letters. It does a lot more and most people won&#8217;t notice the difference. But still, the resulting document will be easier to read and looks better when <a href="http://ctan.org/pkg/microtype" title="CTAN page for microtype" target="_blank"><code>microtype</code></a> is loaded. Load this package after fonts, if any, as the package behavior is dependent on this font.</p>
<h2>siunitx</h2>

<div class="wp_syntax"><div class="code"><pre class="latex" style="font-family:monospace;"><span style="color: #E02020; ">\</span><span style="color: #800000;">usepackage</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">siunitx</span><span style="color: #E02020; ">}</span></pre></div></div>

<p>The <a href="http://ctan.org/pkg/siunitx" title="CTAN page for siunitx" target="_blank"><code>siunitx</code></a> package greatly simplifies TeXing when writing scientific documents, where units and numbers are a big part of the writing. This package adds commands like <code>\num</code> for typesetting numbers in all sorts of ways and <code>\si</code> for units. The commands I use a lot are <code>\SI</code> and <code>\SIrange</code>. For example, <code>\SI{10}{\hertz}</code> results in &#8216;<em>10Hz</em>&#8216; in text (this is especially useful to prevent typo&#8217;s; I tend to write HZ or hz a lot instead of Hz). The <code>\SIrange</code> command requires one more input variable: <code>\SIrange{10}{100}{\hertz}</code> produces &#8216;<em>10Hz to 100Hz</em>&#8216;.</p>
<p>Note that the <a href="http://ctan.org/pkg/siunitx" title="CTAN page for siunitx" target="_blank"><code>siunitx</code></a> package was already featured in <a href="http://www.howtotex.com/packages/beautiful-fractions-and-units-with-the-unit-package/" title="Beautiful fractions and units with the unit package">an earlier post on this blog</a>.</p>
<h2>cleveref</h2>

<div class="wp_syntax"><div class="code"><pre class="latex" style="font-family:monospace;"><span style="color: #E02020; ">\</span><span style="color: #800000;">usepackage</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">cleveref</span><span style="color: #E02020; ">}</span></pre></div></div>

<p>Another fascinating LaTeX package is <a href="http://ctan.org/pkg/cleveref" title="CTAN page for cleveref" target="_blank"><code>cleveref</code></a>. This package introduces the <code>\cref</code> command. When using this command to make cross-references, instead of <code>\ref</code> or <code>\eqref</code>, a word is placed in front of the reference according to the type of reference: fig. for figures, eq. for equations. Hence, another LaTeX package that simplifies the writing. The package was earlier mentioned <a href="http://www.howtotex.com/packages/automatic-clever-references-with-cleveref/" title="Automatic, clever references with cleveref" target="_blank">in this post</a>. In that post it is also shown how to change the words in front of references.</p>
<h2>hyperref</h2>

<div class="wp_syntax"><div class="code"><pre class="latex" style="font-family:monospace;"><span style="color: #E02020; ">\</span><span style="color: #800000;">usepackage</span><span style="color: #E02020; ">[</span><span style="color: #C08020; font-weight: normal;">colorlinks=false, pdfborder={<span style="color: #2020C0; font-weight: normal;">0 0 0</span>}</span><span style="color: #E02020; ">]{</span><span style="color: #2020C0; font-weight: normal;">hyperref</span><span style="color: #E02020; ">}</span></pre></div></div>

<p>The possibilities with <a href="http://ctan.org/pkg/hyperref" title="CTAN page for hyperref" target="_blank"><code>hyperref</code></a> seem to be endless. The most prominent feature of this package is the hyperlinking; when referring to a figure, the reference becomes hyperlinked such that it takes you to the corresponding figure when you click on it.<br />
Also, <a href="http://ctan.org/pkg/hyperref" title="CTAN page for hyperref" target="_blank"><code>hyperref</code></a> allows you to add PDF metadata to the compiled PDF.<br />
One last note on this package: as a rule of thumb it should be loaded at the end of the preamble, after all the other packages. A few exceptions exist, such as the <a href="http://ctan.org/pkg/cleveref" title="CTAN page for cleveref" target="_blank"><code>cleveref</code></a> package that is also mentioned in this post. Hence, <a href="http://ctan.org/pkg/cleveref" title="CTAN page for cleveref" target="_blank"><code>cleveref</code></a> should be loaded after <a href="http://ctan.org/pkg/hyperref" title="CTAN page for hyperref" target="_blank"><code>hyperref</code></a>. More exceptions are listed in <a href="http://tex.stackexchange.com/questions/1863/which-packages-should-be-loaded-after-hyperref-instead-of-before" title="Which packages should be loaded after hyperref instead of before?" target="_blank">this post on TeX.SE</a>.</p>
<h2>booktabs</h2>

<div class="wp_syntax"><div class="code"><pre class="latex" style="font-family:monospace;"><span style="color: #E02020; ">\</span><span style="color: #800000;">usepackage</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">booktabs</span><span style="color: #E02020; ">}</span></pre></div></div>

<p>The <a href="http://ctan.org/pkg/booktabs" title="CTAN page for booktabs" target="_blank"><code>booktabs</code></a> package allows you to create tables without vertical separators. These separators are just unnecessary and plain ugly. Creating a table with <a href="http://ctan.org/pkg/booktabs" title="CTAN page for booktabs" target="_blank"><code>booktabs</code></a> is however more of a pain than the normal way of creating LaTeX tables. Therefore, I dedicated a post on <a href="http://www.howtotex.com/packages/improve-your-tables-with-booktabs/" title="Improve your tables with booktabs" target="_blank">how to create nice tables with the booktabs package</a> earlier.</p>
<h2>Download</h2>
<p>A small latex file, mostly a preamble, is available for downloading <a href="http://www.howtotex.com/download/essential-packages-howtotex.tex" title="Essential LaTeX packages">here</a>. In this file, all packages from above are already included. Happy TeXing!</p>
<h2>Did I miss something?</h2>
<p>Of course, this post is a great one for discussion. I&#8217;m interested in the packages you think should be represented in this list. Leave a comment below!</p>

<p><a href="http://feedads.g.doubleclick.net/~a/LR_jqc3RFpf3BIuMlSLcia1ykJA/0/da"><img src="http://feedads.g.doubleclick.net/~a/LR_jqc3RFpf3BIuMlSLcia1ykJA/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/LR_jqc3RFpf3BIuMlSLcia1ykJA/1/da"><img src="http://feedads.g.doubleclick.net/~a/LR_jqc3RFpf3BIuMlSLcia1ykJA/1/di" border="0" ismap="true"></img></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.howtotex.com/packages/9-essential-latex-packages-everyone-should-use/feed/</wfw:commentRss>
		<slash:comments>16</slash:comments>
		<feedburner:origLink>http://www.howtotex.com/packages/9-essential-latex-packages-everyone-should-use/</feedburner:origLink></item>
		<item>
		<title>Faster LaTeX part IV: Use a precompiled preamble</title>
		<link>http://feedproxy.google.com/~r/howtotex/~3/0sUUA_087dA/</link>
		<comments>http://www.howtotex.com/tips-tricks/faster-latex-part-iv-use-a-precompiled-preamble/#comments</comments>
		<pubDate>Fri, 06 Apr 2012 08:56:01 +0000</pubDate>
		<dc:creator>Frits</dc:creator>
				<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[faster latex]]></category>
		<category><![CDATA[preamble]]></category>

		<guid isPermaLink="false">http://www.howtotex.com/?p=799</guid>
		<description><![CDATA[After the third part in this series on how to speed up the LaTeX compilation part I ran out of ideas. Fortunately, Stefan Kottwitz and Frakturfreund reminded me of one more thing: precompiled preambles. The idea is quite simple: Every time you compile a LaTeX document, it first reads all packages that are called in the preamble with the \usepackage{}<div class="readmore"><a href="http://www.howtotex.com/tips-tricks/faster-latex-part-iv-use-a-precompiled-preamble/">Read more</a></div>]]></description>
			<content:encoded><![CDATA[<p>After the <a href="http://www.howtotex.com/tips-tricks/faster-latex-part-iii-check-syntax-only/" title="Faster LaTeX part III: Check syntax only" target="_blank">third part</a> in this series on how to speed up the LaTeX compilation part I ran out of ideas. Fortunately, <a href="http://texblog.net/" target="_blank">Stefan Kottwitz</a> and <a href="http://satyr.posterous.com/" target="_blank">Frakturfreund</a> reminded me of one more thing: precompiled preambles. The idea is quite simple: Every time you compile a LaTeX document, it first reads all packages that are called in the preamble with the <code>\usepackage{}</code> command and this takes time. This process can be skipped because most of your preamble almost never changes; the so-called <em>static part</em>. In this post, <code>mylatexpackage</code> is used to create a precompiled preamble.</p>
<h2>Static and dynamic parts of a preamble</h2>
<p>First, split your preamble in a static and a dynamic part. With static part, I mean the part of the preamble that is not likely to change during the time you&#8217;re working on a certain LaTeX project. Think of: most packages, standard macros you always use, and so on. End your static preamble with an important command: <code>\endofdump</code>. The precompiled preamble will contain everything above this line.</p>
<p>In the dynamic part, stuff that might change every now and then should be put. Think of the <code>\title</code>, <code>\author</code> and <code>\date</code> commands, as well as <code>\includeonly</code> if you&#8217;ve followed <a href="http://www.howtotex.com/tips-tricks/faster-latex-part-i-compile-only-parts/" title="Faster LaTeX part I: Compile only parts" target="_blank">the first post in this series</a>. As a side note: if you&#8217;re using the <code>minitoc</code> package, include it in the dynamic part as well (<code>mylatexformat</code> doesn&#8217;t work with it).</p>
<p>So to summarize, your preamble should have the following layout:</p>

<div class="wp_syntax"><div class="code"><pre class="latex" style="font-family:monospace;"><span style="color: #2C922C; font-style: italic;">% static part</span>
...
<span style="color: #800000; font-weight: normal;">\endofdump</span>
<span style="color: #2C922C; font-style: italic;">%dynamic part</span>
...
<span style="color: #C00000; font-weight: normal;">\begin</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;"><span style="color: #0000D0; font-weight: normal;">document</span></span><span style="color: #E02020; ">}</span></pre></div></div>

<h2>How to precompile the preamble</h2>
<p>Now for the hard part. For this example we&#8217;ll be using a LaTeX file called <code>mydoc.tex</code>.<br />
One last note: I&#8217;ve tested this trick on both Mac OS X with TeXlive and Windows with MikTeX. For Linux, I guess the syntax is all the same. If not, I I hope the readers will comment the right syntax in the comments below ;-) Let&#8217;s start!</p>
<ol>
<li>Make sure you preamble as the upper mentioned distinction of static and dynamic part, separated by the <code>\endofdump</code> command.</li>
<li>Open terminal. Put <code>mydoc.tex</code> either in the root folder of your computer or navigate in the Terminal command prompt the folder containing <code>mydoc.tex</code>.</li>
<li>In Terminal, run the following command:

<div class="wp_syntax"><div class="code"><pre class="none" style="font-family:monospace;">pdftex -ini -jobname=&quot;mydoc&quot; &quot;&amp;pdflatex&quot; mylatexformat.ltx mydoc.tex</pre></div></div>

<p>You might get an LaTeX error message (File `mydoc.mtc0&#8242; not found). Ignore that by pressing <em>return</em>. Now a file called <code>mydoc.fmt</code> should be created among others. This one contains the precompiled preamble. The command <code>&#038;pdflatex</code> can be changed to <code>&#038;latex</code>, <code>&#038;xetex</code>, and so on (depending on with you&#8217;re using).</li>
<li>In order to load the <code>mydoc.fmt</code> format, add <code>%&#038;mydoc</code> to the very first line of <code>mydoc.tex</code>. Hence, it will look something like this:

<div class="wp_syntax"><div class="code"><pre class="latex" style="font-family:monospace;"><span style="color: #2C922C; font-style: italic;">%&amp;mydoc</span>
...
<span style="color: #C00000; font-weight: normal;">\begin</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;"><span style="color: #0000D0; font-weight: normal;">document</span></span><span style="color: #E02020; ">}</span></pre></div></div>

<p>Notice that the static part of the preamble is removed, as that is all stored in the <code>mydoc.fmt</code> file. So if you haven&#8217;t done this already: <strong>comment the static part of the preamble</strong> (with %, off course)!</li>
</ol>
<h2>Saved time</h2>
<p>I was interested in how much time I actually saved with this little trick, so I made a little comparison. I made two versions of <code>mydoc.tex</code>: <code>mydoc-noformat.tex</code> for the original file and <code>mydoc-format.tex</code> for the file with precompiled preamble and with the <code>%&#038;mydoc</code> line added. The files are available for downloading below.</p>
<p>Without a precompiled preamble, the process took 1.864 seconds. With the format file created, compiling <code>mydoc-format.tex</code> only took 0.531 seconds. That is more than three times as fast!!</p>
<h2>Download</h2>
<p>A ZIP archive is made, containing to <code>beamer</code> documents; one with and one without precompiled preamble. <a href="/download/mylatexformat-howtoTeX.zip">Download it here</a>. The <code>beamer</code> class was chosen to exaggerate the effect of precompiled preambles (as loading the <code>beamer</code> class requires quite some time).</p>

<p><a href="http://feedads.g.doubleclick.net/~a/u6oVtwyHXq-ifnoobZQmnP-MGxk/0/da"><img src="http://feedads.g.doubleclick.net/~a/u6oVtwyHXq-ifnoobZQmnP-MGxk/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/u6oVtwyHXq-ifnoobZQmnP-MGxk/1/da"><img src="http://feedads.g.doubleclick.net/~a/u6oVtwyHXq-ifnoobZQmnP-MGxk/1/di" border="0" ismap="true"></img></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.howtotex.com/tips-tricks/faster-latex-part-iv-use-a-precompiled-preamble/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		<feedburner:origLink>http://www.howtotex.com/tips-tricks/faster-latex-part-iv-use-a-precompiled-preamble/</feedburner:origLink></item>
		<item>
		<title>Change margins of a single page</title>
		<link>http://feedproxy.google.com/~r/howtotex/~3/wwn_WQlzjEk/</link>
		<comments>http://www.howtotex.com/tips-tricks/change-margins-of-a-single-page/#comments</comments>
		<pubDate>Fri, 30 Mar 2012 15:42:14 +0000</pubDate>
		<dc:creator>Frits</dc:creator>
				<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[geometry]]></category>
		<category><![CDATA[margins]]></category>
		<category><![CDATA[package]]></category>

		<guid isPermaLink="false">http://www.howtotex.com/?p=785</guid>
		<description><![CDATA[Once in a while I write a document with a lot of large figures in it. It then may occur that you want to change the margins of a single page in order to fit a number of figures in one page. This can be done with the geometry package (from version 5 and later) and the \newgeometry command. A<div class="readmore"><a href="http://www.howtotex.com/tips-tricks/change-margins-of-a-single-page/">Read more</a></div>]]></description>
			<content:encoded><![CDATA[<p>Once in a while I write a document with a lot of large figures in it. It then may occur that you want to change the margins of a single page in order to fit a number of figures in one page. This can be done with the <a href="http://ctan.org/pkg/geometry" title="CTAN page for geometry" target="_blank"><code>geometry</code></a> package (from version 5 and later) and the <code>\newgeometry</code> command. A lot of alternatives are available, but this one I find simplest and universal.</p>
<p><span id="more-785"></span></p>
<h2>The geometry package</h2>
<p>If you haven&#8217;t already, call the <a href="http://ctan.org/pkg/geometry" title="CTAN page for geometry" target="_blank"><code>geometry</code></a> package in the preamble:</p>

<div class="wp_syntax"><div class="code"><pre class="latex" style="font-family:monospace;"><span style="color: #E02020; ">\</span><span style="color: #800000;">usepackage</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">geometry</span><span style="color: #E02020; ">}</span></pre></div></div>

<p>By the way: I suggest you always call this package as it is one of the LaTeX essential packages in my opinion.</p>
<h2>Example</h2>
<p>I&#8217;ll give an example of the <code>\newgeometry</code> command. First, let&#8217;s say you have an initial page layout defined in you preamble:</p>

<div class="wp_syntax"><div class="code"><pre class="latex" style="font-family:monospace;"><span style="color: #E02020; ">\</span><span style="color: #800000;">usepackage</span><span style="color: #E02020; ">[</span><span style="color: #C08020; font-weight: normal;">a4paper</span><span style="color: #E02020; ">]{</span><span style="color: #2020C0; font-weight: normal;">geometry</span><span style="color: #E02020; ">}</span></pre></div></div>

<p>Note that this is purely illustrative, you do not have to chose for <code>a4paper</code>.</p>
<p>Then you stumble upon a page of which you want to adjust the margins. In you LaTeX code, go to a line that is one that page and add the following:</p>

<div class="wp_syntax"><div class="code"><pre class="latex" style="font-family:monospace;"><span style="color: #800000; font-weight: normal;">\newgeometry</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">left=3cm,bottom=0.1cm</span><span style="color: #E02020; ">}</span></pre></div></div>

<p>Hence, the page will have a left margin of 3cm and a bottom margin of 0.1cm. The right and top margins remain unchanged. </p>
<p>In order to go back to the original (<code>a4paper</code>) layout, type:</p>

<div class="wp_syntax"><div class="code"><pre class="latex" style="font-family:monospace;"><span style="color: #800000; font-weight: normal;">\restoregeometry</span></pre></div></div>

<p>Done! Easy!</p>
<h2>Alternatives</h2>
<p>A lot of alternative ways exist for adjust margins of a single page. Just to name a few of them:</p>
<ul>
<li>The <code>adjustwidth</code> macro that comes with the <a href="http://ctan.org/tex-archive/macros/latex/contrib/memoir" title="CTAN page for memoir class" target="_blank"><code>memoir</code></a> class</li>
<li>The chngpage package</li>
<li>The <a href="http://ctan.org/pkg/geometry" title="CTAN page for geometry" target="_blank"><code>geometry</code></a> package together with the <a href="http://ctan.org/pkg/gmeometric" title="CTAN page for gmeometric" target="_blank"><code>geometric</code></a> package</li>
<li>The <code>\enlargethispage</code> command if you only want to add one or two extra lines to your page</li>
</ul>
<p>However, upper mentioned alternatives require either a certain documentclass (<a href="http://ctan.org/tex-archive/macros/latex/contrib/memoir" title="CTAN page for memoir class" target="_blank"><code>memoir</code></a>) or additional packages. I find the one described in this post perfect.</p>

<p><a href="http://feedads.g.doubleclick.net/~a/VSzB9INmUF8hdbc3tF9QEpXwsi4/0/da"><img src="http://feedads.g.doubleclick.net/~a/VSzB9INmUF8hdbc3tF9QEpXwsi4/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/VSzB9INmUF8hdbc3tF9QEpXwsi4/1/da"><img src="http://feedads.g.doubleclick.net/~a/VSzB9INmUF8hdbc3tF9QEpXwsi4/1/di" border="0" ismap="true"></img></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.howtotex.com/tips-tricks/change-margins-of-a-single-page/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.howtotex.com/tips-tricks/change-margins-of-a-single-page/</feedburner:origLink></item>
		<item>
		<title>Creating a designer’s CV in LaTeX</title>
		<link>http://feedproxy.google.com/~r/howtotex/~3/qeZFtg6TL8s/</link>
		<comments>http://www.howtotex.com/templates/creating-a-designers-cv-in-latex/#comments</comments>
		<pubDate>Fri, 23 Mar 2012 13:01:44 +0000</pubDate>
		<dc:creator>Frits</dc:creator>
				<category><![CDATA[Templates]]></category>
		<category><![CDATA[cv]]></category>
		<category><![CDATA[resume]]></category>
		<category><![CDATA[template]]></category>

		<guid isPermaLink="false">http://www.howtotex.com/?p=698</guid>
		<description><![CDATA[I got some requests of people that wanted to see a LaTeX template for a curriculum vitae (CV) or resume, even after I wrote a guide to building a plain and simple LaTeX CV. Therefore I&#8217;ve decided to write another guide. This post will teach you how to get creative with LaTeX and build a designer&#8217;s CV (that&#8217;s what I<div class="readmore"><a href="http://www.howtotex.com/templates/creating-a-designers-cv-in-latex/">Read more</a></div>]]></description>
			<content:encoded><![CDATA[<p>I got some requests of people that wanted to see a LaTeX template for a curriculum vitae (CV) or resume, even after I wrote <a href="http://www.howtotex.com/general/a-guide-to-building-a-plain-and-simple-latex-cv/" title="A guide to building a plain and simple LaTeX CV" target="_blank">a guide to building a plain and simple LaTeX CV</a>. Therefore I&#8217;ve decided to write another guide. This post will teach you how to get creative with LaTeX and build a <em>designer&#8217;s CV</em> (that&#8217;s what I call it). If you just want a CV template, scroll down to find it.</p>
<p><span id="more-698"></span></p>
<p>This CV will be set up in a similar way to <a href="http://www.howtotex.com/general/a-guide-to-building-a-plain-and-simple-latex-cv/" title="A guide to building a plain and simple LaTeX CV" target="_blank">the previous one</a>. However, the big difference is that this designer&#8217;s CV makes use of a two column layout, where the left column&#8217;s width is smaller than that of the right.</p>
<p><result><a href="http://www.howtotex.com/images/designer-cv-result.png" target="_blank">What you&#8217;ll be creating</a></result></p>
<h2>Document properties and packages</h2>
<p>Probably for the first time on this blog, we will be using the memoir documentclass. The reason for this are the endless possibilities that this class offers. I do not expect you to read the full documentation of memoir, as we will only be using a small part of it. The first line of your document:</p>

<div class="wp_syntax"><div class="code"><pre class="latex" style="font-family:monospace;"><span style="color: #E02020; ">\</span><span style="color: #800000;">documentclass</span><span style="color: #E02020; ">[</span><span style="color: #C08020; font-weight: normal;">a4paper,12pt,final</span><span style="color: #E02020; ">]{</span><span style="color: #2020C0; font-weight: normal;">memoir</span><span style="color: #E02020; ">}</span></pre></div></div>

<p>Next, some design specifications are required. Add the following lines to the preamble:</p>

<div class="wp_syntax"><div class="code"><pre class="latex" style="font-family:monospace;"><span style="color: #E02020; ">\</span><span style="color: #800000;">renewcommand</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\familydefault</span></span><span style="color: #E02020; ">}{</span><span style="color: #2020C0; font-weight: normal;">bch</span><span style="color: #E02020; ">}</span>
<span style="color: #E02020; ">\</span><span style="color: #800000;">pagestyle</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">empty</span><span style="color: #E02020; ">}</span>
<span style="color: #E02020; ">\</span><span style="color: #800000;">setlength</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\parindent</span></span><span style="color: #E02020; ">}{</span><span style="color: #2020C0; font-weight: normal;">0pt</span><span style="color: #E02020; ">}</span></pre></div></div>

<p>The first line changes the document&#8217;s font to the modern looking <em>Charter</em> font. The second line tells LaTeX not to print page numbers etc. and the last line removes the indentation of paragraphs. </p>
<p>Also, quite a few package are required for this CV.</p>

<div class="wp_syntax"><div class="code"><pre class="latex" style="font-family:monospace;"><span style="color: #E02020; ">\</span><span style="color: #800000;">usepackage</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">flowfram</span><span style="color: #E02020; ">}</span>
<span style="color: #E02020; ">\</span><span style="color: #800000;">usepackage</span><span style="color: #E02020; ">[</span><span style="color: #C08020; font-weight: normal;">top=1cm,left=1cm,right=1cm,bottom=1cm</span><span style="color: #E02020; ">]{</span><span style="color: #2020C0; font-weight: normal;">geometry</span><span style="color: #E02020; ">}</span>
<span style="color: #E02020; ">\</span><span style="color: #800000;">usepackage</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">graphicx</span><span style="color: #E02020; ">}</span>
<span style="color: #E02020; ">\</span><span style="color: #800000;">usepackage</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">url</span><span style="color: #E02020; ">}</span>
<span style="color: #E02020; ">\</span><span style="color: #800000;">usepackage</span><span style="color: #E02020; ">[</span><span style="color: #C08020; font-weight: normal;">usenames,dvipsnames</span><span style="color: #E02020; ">]{</span><span style="color: #2020C0; font-weight: normal;">xcolor</span><span style="color: #E02020; ">}</span>
<span style="color: #E02020; ">\</span><span style="color: #800000;">usepackage</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">multicol</span><span style="color: #E02020; ">}</span>
	<span style="color: #E02020; ">\</span><span style="color: #800000;">setlength</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\multicolsep</span></span><span style="color: #E02020; ">}{</span><span style="color: #2020C0; font-weight: normal;">0pt</span><span style="color: #E02020; ">}</span>
<span style="color: #E02020; ">\</span><span style="color: #800000;">usepackage</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">paralist</span><span style="color: #E02020; ">}</span>
<span style="color: #E02020; ">\</span><span style="color: #800000;">usepackage</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">tikz</span><span style="color: #E02020; ">}</span></pre></div></div>

<p>Most of them should be known: geometry for layout settings, graphicx for figures, url for hyper refs and xcolor for colors. The flowfram package is the most important one, as this package allows you to create the special two column layout. The multicol and paralist packages will be used to create a two column list. Note that the latter package was also used in my post about <a href="http://www.howtotex.com/packages/compact-lists-with-paralist/" title="Compact lists with paralist" target="_blank">how to create compact lists in LaTeX</a>. Lastly, the TikZ is used to create the dotted vertical line in the template (more on that in the next section).</p>
<h2>Create column layout</h2>
<p>The unevenly spaced columns in the CV are created with the flowfram package. This package is rather complicated, so if you don&#8217;t follow what&#8217;s going on in the following I suggest you read the flowfram documentation.</p>
<p>First, two length commands will be defined:</p>

<div class="wp_syntax"><div class="code"><pre class="latex" style="font-family:monospace;"><span style="color: #E02020; ">\</span><span style="color: #800000;">setlength</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\vcolumnsep</span></span><span style="color: #E02020; ">}{</span><span style="color: #2020C0; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\baselineskip</span></span><span style="color: #E02020; ">}</span>
<span style="color: #E02020; ">\</span><span style="color: #800000;">setlength</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\columnsep</span></span><span style="color: #E02020; ">}{</span><span style="color: #2020C0; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\vcolumnsep</span></span><span style="color: #E02020; ">}</span></pre></div></div>

<p>For the frame setup we use:</p>

<div class="wp_syntax"><div class="code"><pre class="latex" style="font-family:monospace;"><span style="color: #2C922C; font-style: italic;">% left frame</span>
<span style="color: #800000; font-weight: normal;">\newflowframe</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">0.2\<span style="color: #800000;">textwidth</span></span><span style="color: #E02020; ">}{</span><span style="color: #2020C0; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\textheight</span></span><span style="color: #E02020; ">}{</span><span style="color: #2020C0; font-weight: normal;">0pt</span><span style="color: #E02020; ">}{</span><span style="color: #2020C0; font-weight: normal;">0pt</span><span style="color: #E02020; ">}[</span><span style="color: #C08020; font-weight: normal;">left</span><span style="color: #E02020; ">]</span>
	<span style="color: #800000; font-weight: normal;">\newlength</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\LeftMainSep</span></span><span style="color: #E02020; ">}</span>
	<span style="color: #E02020; ">\</span><span style="color: #800000;">setlength</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\LeftMainSep</span></span><span style="color: #E02020; ">}{</span><span style="color: #2020C0; font-weight: normal;">0.2\<span style="color: #800000;">textwidth</span></span><span style="color: #E02020; ">}</span>
	<span style="color: #800000; font-weight: normal;">\addtolength</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\LeftMainSep</span></span><span style="color: #E02020; ">}{</span><span style="color: #2020C0; font-weight: normal;">2<span style="color: #800000; font-weight: normal;">\columnsep</span></span><span style="color: #E02020; ">}</span></pre></div></div>

<p>In order to change the left column width find the two lengths that say <code>0.2\textwidth</code> and adjust them. For the right frame, we add:</p>

<div class="wp_syntax"><div class="code"><pre class="latex" style="font-family:monospace;"><span style="color: #2C922C; font-style: italic;">% right frame</span>
<span style="color: #800000; font-weight: normal;">\newflowframe</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">0.7\<span style="color: #800000;">textwidth</span></span><span style="color: #E02020; ">}{</span><span style="color: #2020C0; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\textheight</span></span><span style="color: #E02020; ">}{</span><span style="color: #2020C0; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\LeftMainSep</span></span><span style="color: #E02020; ">}{</span><span style="color: #2020C0; font-weight: normal;">0pt</span><span style="color: #E02020; ">}[</span><span style="color: #C08020; font-weight: normal;">main01</span><span style="color: #E02020; ">]</span></pre></div></div>

<p>To change this frame&#8217;s width adjust the <code>0.7\textwidth</code> length.</p>
<p>Lastly, creating the vertical line between the columns using TikZ:</p>

<div class="wp_syntax"><div class="code"><pre class="latex" style="font-family:monospace;"><span style="color: #E02020; ">\</span><span style="color: #800000;">renewcommand</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\ffvrule</span></span><span style="color: #E02020; ">}[</span><span style="color: #C08020; font-weight: normal;">3</span><span style="color: #E02020; ">]{</span><span style="color: #2C922C; font-style: italic;">%</span>
<span style="color: #E02020; ">\</span><span style="color: #800000;">hfill</span>
<span style="color: #800000; font-weight: normal;">\tikz</span><span style="color: #E02020; ">{</span><span style="color: #2C922C; font-style: italic;">%</span>
	<span style="color: #800000; font-weight: normal;">\draw</span><span style="color: #E02020; ">[</span><span style="color: #C08020; font-weight: normal;">loosely dotted,color=RoyalBlue,line width=1.5pt,yshift=-#1</span><span style="color: #E02020; ">]</span> 
	(0,0) -- (0pt,#3);<span style="color: #E02020; ">}</span><span style="color: #2C922C; font-style: italic;">%</span>
<span style="color: #E02020; ">\</span><span style="color: #800000;">hfill</span><span style="color: #E02020; ">\</span><span style="color: #800000;">mbox</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">}</span><span style="color: #E02020; ">}</span>
<span style="color: #800000; font-weight: normal;">\insertvrule</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">flow</span><span style="color: #E02020; ">}{</span><span style="color: #2020C0; font-weight: normal;">1</span><span style="color: #E02020; ">}{</span><span style="color: #2020C0; font-weight: normal;">flow</span><span style="color: #E02020; ">}{</span><span style="color: #2020C0; font-weight: normal;">2</span><span style="color: #E02020; ">}</span></pre></div></div>

<p>Now, the above might be a bit difficult to understand. No problem, because all you might want to change here is the width of the columns. </p>
<h2>Define macros (for convience)</h2>
<p>Let&#8217;s define some commands that will make typesetting the CV a lot easier. First two vertical spacing commands to make the spacing between sections and item consistent. Note that we&#8217;ve also used these commands in the previous <a href="http://www.howtotex.com/general/a-guide-to-building-a-plain-and-simple-latex-cv/" title="A guide to building a plain and simple LaTeX CV" target="_blank">CV tutorial</a>.</p>

<div class="wp_syntax"><div class="code"><pre class="latex" style="font-family:monospace;"><span style="color: #E02020; ">\</span><span style="color: #800000;">newcommand</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\Sep</span></span><span style="color: #E02020; ">}{</span><span style="color: #2020C0; font-weight: normal;">\<span style="color: #800000;">vspace</span>{1.5em</span><span style="color: #E02020; ">}}</span>
<span style="color: #E02020; ">\</span><span style="color: #800000;">newcommand</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\SmallSep</span></span><span style="color: #E02020; ">}{</span><span style="color: #2020C0; font-weight: normal;">\<span style="color: #800000;">vspace</span>{0.5em</span><span style="color: #E02020; ">}}</span></pre></div></div>

<p>We&#8217;ll also define an <strong>environment</strong> for the &#8216;About me&#8217; section:</p>

<div class="wp_syntax"><div class="code"><pre class="latex" style="font-family:monospace;"><span style="color: #E02020; ">\</span><span style="color: #800000;">newenvironment</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">AboutMe</span><span style="color: #E02020; ">}</span>
	<span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\ignorespaces</span><span style="color: #E02020; ">\</span><span style="color: #800000;">textbf</span><span style="color: #E02020; ">{\</span><span style="color: #800000;">color</span>{RoyalBlue</span><span style="color: #E02020; ">}</span> About me<span style="color: #E02020; ">}}</span>
	<span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\Sep</span><span style="color: #800000; font-weight: normal;">\ignorespacesafterend</span></span><span style="color: #E02020; ">}</span></pre></div></div>

<p>Hence this environment is called <code>AboutMe</code> and can be used with <code>\begin{AboutMe}...\end{AboutMe}</code>.</p>
<p>Two more commands are introduced to create a new section (<code>\CVSection</code>) and to create a new item/entry (<code>\CVItem</code>).</p>

<div class="wp_syntax"><div class="code"><pre class="latex" style="font-family:monospace;"><span style="color: #E02020; ">\</span><span style="color: #800000;">newcommand</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\CVSection</span></span><span style="color: #E02020; ">}[</span><span style="color: #C08020; font-weight: normal;">1</span><span style="color: #E02020; ">]</span>
	<span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\Large</span><span style="color: #E02020; ">\</span><span style="color: #800000;">textbf</span>{#1</span><span style="color: #E02020; ">}\</span><span style="color: #800000;">par</span>
	<span style="color: #800000; font-weight: normal;">\SmallSep</span><span style="color: #800000; font-weight: normal;">\normalsize</span><span style="color: #800000; font-weight: normal;">\normalfont</span><span style="color: #E02020; ">}</span>
<span style="color: #E02020; ">\</span><span style="color: #800000;">newcommand</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\CVItem</span></span><span style="color: #E02020; ">}[</span><span style="color: #C08020; font-weight: normal;">1</span><span style="color: #E02020; ">]</span>
	<span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">\<span style="color: #800000;">textbf</span><span style="color: #E02020; ">{\</span><span style="color: #800000;">color</span>{RoyalBlue</span><span style="color: #E02020; ">}</span> #1<span style="color: #E02020; ">}}</span></pre></div></div>

<p>That&#8217;s it for the preamble part!</p>
<h2>Begin document</h2>
<p>My advice now would be to open the <a href="http://www.howtotex.com/download/designers-cv-howtotex.zip">downloaded .tex file</a> and see how the left and right frames are filled with content. I&#8217;ll give a very brief explanation on what is done.</p>
<h3>Left frame</h3>
<p>The left frame consists of a figure environment for a photo of yourself, if wanted. Just remove the corresponding lines if you&#8217;d like a CV without photo. Thereafter, your name, phone and email are printed. This text is right-aligned with the <code>flushright</code> environment.</p>
<h3>Right frame</h3>
<p>The right frame is set up similar to the <a href="http://www.howtotex.com/general/a-guide-to-building-a-plain-and-simple-latex-cv/" title="A guide to building a plain and simple LaTeX CV" target="_blank">plain CV I wrote about earlier</a>. First, the previously define <code>AboutMe</code> environment is used. Thereafter, several sections are created. This all speaks for itself I hope, but if not: feel free to leave a comment!</p>
<p>One thing worth mentioning is the two column list in the template. This is done by creating a two column <em>minipage</em> with the <code>multicols</code> environment. Within this environment, a list is created with <code>compactitem</code>. This is part of the <code>paralist</code> package, which you might remember from <a href="http://www.howtotex.com/packages/compact-lists-with-paralist/" title="Compact lists with paralist" target="_blank">an earlier post</a>.</p>
<h2>The result</h2>
<p>Download <a href="http://www.howtotex.com/download/designers-cv-howtotex.pdf">PDF</a><br />
Download <a href="http://www.howtotex.com/download/designers-cv-howtotex.zip">ZIP</a>. This zip-archive contains the PDF, TEX and photo file that were used in this tutorial.</p>
<h2>Want more?</h2>
<p>If there are any templates you like me to add to this section, feel free to <a href="http://www.howtotex.com/contact" target="_blank">contact me</a>.</p>

<p><a href="http://feedads.g.doubleclick.net/~a/ysZTohuNDRBeMWkOqU6QqBE282M/0/da"><img src="http://feedads.g.doubleclick.net/~a/ysZTohuNDRBeMWkOqU6QqBE282M/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/ysZTohuNDRBeMWkOqU6QqBE282M/1/da"><img src="http://feedads.g.doubleclick.net/~a/ysZTohuNDRBeMWkOqU6QqBE282M/1/di" border="0" ismap="true"></img></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.howtotex.com/templates/creating-a-designers-cv-in-latex/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		<feedburner:origLink>http://www.howtotex.com/templates/creating-a-designers-cv-in-latex/</feedburner:origLink></item>
		<item>
		<title>The nag package warns you for incorrect LaTeX usage</title>
		<link>http://feedproxy.google.com/~r/howtotex/~3/1yfxFyCsNAc/</link>
		<comments>http://www.howtotex.com/packages/the-nag-package-warns-you-for-incorrect-latex-usage/#comments</comments>
		<pubDate>Sun, 11 Mar 2012 14:13:07 +0000</pubDate>
		<dc:creator>Frits</dc:creator>
				<category><![CDATA[Packages]]></category>
		<category><![CDATA[nag]]></category>
		<category><![CDATA[package]]></category>
		<category><![CDATA[syntax]]></category>

		<guid isPermaLink="false">http://www.howtotex.com/?p=707</guid>
		<description><![CDATA[Although (La)TeX is already more than 30 years old, it is still optimized and updated. LaTeX commands, classes and packages may therefore become obsolete or outdated. It&#8217;s no fun to keep track of all changes in LaTeX and check what package are still good to use, so the nag package does that for you. For example, the \bf, \it, etc.<div class="readmore"><a href="http://www.howtotex.com/packages/the-nag-package-warns-you-for-incorrect-latex-usage/">Read more</a></div>]]></description>
			<content:encoded><![CDATA[<p>Although (La)TeX is already more than 30 years old, it is still optimized and updated. LaTeX commands, classes and packages may therefore become obsolete or outdated. It&#8217;s no fun to keep track of all changes in LaTeX and check what package are still good to use, so <a href="http://www.ctan.org/pkg/nag" title="CTAN: nag package" target="_blank">the nag package</a> does that for you. For example, the <code>\bf</code>, <code>\it</code>, etc. commands for text formatting are obsolete and the <code>nag</code> package produces a warning when they are used. <code>Nag</code> also warns about other things mentioned in <a href="ftp://ftp.rrzn.uni-hannover.de/pub/mirror/tex-archive/info/l2tabu/english/l2tabuen.pdf" title="English l2tabu documentation" target="_blank">the l2tabu documentation</a> (Obsolete packages and commands).</p>
<p><span id="more-707"></span></p>
<h2>The nag package</h2>
<p>Let&#8217;s implement the <code>nag</code> package. This goes a little different than normal packages. In your preamble, the <strong>first</strong> line should be like this:</p>

<div class="wp_syntax"><div class="code"><pre class="latex" style="font-family:monospace;"><span style="color: #800000; font-weight: normal;">\RequirePackage</span><span style="color: #E02020; ">[</span><span style="color: #C08020; font-weight: normal;">l2tabu, orthodox</span><span style="color: #E02020; ">]{</span><span style="color: #2020C0; font-weight: normal;">nag</span><span style="color: #E02020; ">}</span></pre></div></div>

<p>Again, this should be the first line. So the package is called <em>before</em> the <code>documentclass</code> command.</p>
<h2>The l2tabu and orthodox options</h2>
<p>About the two specified options <code>l2tabu</code> and <code>orthodox</code>. The first (l2tabu) tells <code>nag</code> to check for obsolete syntax mentioned in <a href="http://www.ctan.org/pkg/l2tabu" title="CTAN: l2tabu" target="_blank">the l2tabu documentation</a>. It will also give hints on what to use instead. The second option (<code>orthodox</code>) checks the LaTeX code for syntax that is technically correct, but most likely produces an unwanted result. This is handy for novice users. Experienced LaTeX users might want to omit this option.</p>

<p><a href="http://feedads.g.doubleclick.net/~a/R6iGnq0u2w6yXR0QWKwX2a9aJkA/0/da"><img src="http://feedads.g.doubleclick.net/~a/R6iGnq0u2w6yXR0QWKwX2a9aJkA/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/R6iGnq0u2w6yXR0QWKwX2a9aJkA/1/da"><img src="http://feedads.g.doubleclick.net/~a/R6iGnq0u2w6yXR0QWKwX2a9aJkA/1/di" border="0" ismap="true"></img></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.howtotex.com/packages/the-nag-package-warns-you-for-incorrect-latex-usage/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.howtotex.com/packages/the-nag-package-warns-you-for-incorrect-latex-usage/</feedburner:origLink></item>
		<item>
		<title>Faster LaTeX part III: Check syntax only</title>
		<link>http://feedproxy.google.com/~r/howtotex/~3/K4lPO8IDdKE/</link>
		<comments>http://www.howtotex.com/tips-tricks/faster-latex-part-iii-check-syntax-only/#comments</comments>
		<pubDate>Sun, 26 Feb 2012 11:29:42 +0000</pubDate>
		<dc:creator>Frits</dc:creator>
				<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[faster latex]]></category>
		<category><![CDATA[syntaxonly]]></category>

		<guid isPermaLink="false">http://www.howtotex.com/?p=685</guid>
		<description><![CDATA[This is the third post in a series on how to speed up the process of &#8216;LaTeXing&#8217;. Part 1 was on how to make the LaTeX compilation process faster by compiling only parts of large documents and in part 2 I wrote about an external TikZ library. Today&#8217;s post is a little different. Mostly, the reason I compile my document<div class="readmore"><a href="http://www.howtotex.com/tips-tricks/faster-latex-part-iii-check-syntax-only/">Read more</a></div>]]></description>
			<content:encoded><![CDATA[<p>This is the third post in a series on how to speed up the process of &#8216;LaTeXing&#8217;. Part 1 was on how to make the LaTeX compilation process faster by <a href="http://www.howtotex.com/tips-tricks/faster-latex-part-i-compile-only-parts/" target="_blank">compiling only parts of large documents</a> and in part 2 I wrote about <a href="http://www.howtotex.com/tips-tricks/faster-latex-part-ii-external-tikz-library/" title="Faster LaTeX part II: External TikZ library" target="_blank">an external TikZ library</a>. Today&#8217;s post is a little different. Mostly, the reason I compile my document is to check if I made no syntax errors (misspelled commands, etc.). To check this, there is no need to compile the complete document. I&#8217;m talking about the <code>\syntaxonly</code> command!</p>
<p><span id="more-685"></span></p>
<h2>Syntax checking</h2>
<p>Checking the syntax only can be done with the <a href="http://www.ctan.org/pkg/syntonly" target="_blank">syntonly</a> package. This little package provides only the command <code>\syntaxonly</code> and is so small that it doesn&#8217;t even have a documentation! Add the following to your preamble:</p>

<div class="wp_syntax"><div class="code"><pre class="latex" style="font-family:monospace;"><span style="color: #E02020; ">\</span><span style="color: #800000;">usepackage</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">syntonly</span><span style="color: #E02020; ">}</span>
<span style="color: #800000; font-weight: normal;">\syntaxonly</span></pre></div></div>

<h2>Compiling the document</h2>
<p>Of course, you sometimes need to compile the complete document. To do this, simply comment the <code>\syntaxonly</code> command:</p>

<div class="wp_syntax"><div class="code"><pre class="latex" style="font-family:monospace;"><span style="color: #E02020; ">\</span><span style="color: #800000;">usepackage</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">syntonly</span><span style="color: #E02020; ">}</span>
<span style="color: #2C922C; font-style: italic;">%\syntaxonly</span></pre></div></div>

<p>That&#8217;s all!</p>

<p><a href="http://feedads.g.doubleclick.net/~a/xMh-orc2DxqVoY8kmHNzpnroXhI/0/da"><img src="http://feedads.g.doubleclick.net/~a/xMh-orc2DxqVoY8kmHNzpnroXhI/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/xMh-orc2DxqVoY8kmHNzpnroXhI/1/da"><img src="http://feedads.g.doubleclick.net/~a/xMh-orc2DxqVoY8kmHNzpnroXhI/1/di" border="0" ismap="true"></img></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.howtotex.com/tips-tricks/faster-latex-part-iii-check-syntax-only/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		<feedburner:origLink>http://www.howtotex.com/tips-tricks/faster-latex-part-iii-check-syntax-only/</feedburner:origLink></item>
		<item>
		<title>Compact lists with paralist</title>
		<link>http://feedproxy.google.com/~r/howtotex/~3/O6jO-OwLoGc/</link>
		<comments>http://www.howtotex.com/packages/compact-lists-with-paralist/#comments</comments>
		<pubDate>Sun, 12 Feb 2012 20:00:42 +0000</pubDate>
		<dc:creator>Frits</dc:creator>
				<category><![CDATA[Packages]]></category>
		<category><![CDATA[list]]></category>
		<category><![CDATA[package]]></category>

		<guid isPermaLink="false">http://www.howtotex.com/?p=665</guid>
		<description><![CDATA[The space occupied by list environments in LaTeX (itemize, enumerate, etc.) is sometimes a bit too much. For example, when you need to save space in your document or simply because you don&#8217;t like the looks of the standard list environments. In this post, the paralist package will be used to create compact lists. This will be done by elimination<div class="readmore"><a href="http://www.howtotex.com/packages/compact-lists-with-paralist/">Read more</a></div>]]></description>
			<content:encoded><![CDATA[<p>The space occupied by list environments in LaTeX (itemize, enumerate, etc.) is sometimes a bit too much. For example, when you need to save space in your document or simply because you don&#8217;t like the looks of the standard list environments. In this post, the <a href="http://ctan.org/pkg/paralist" target="_blank">paralist</a> package will be used to create compact lists. This will be done by elimination of vertical spacing and by introducing multicolumn lists (with the help of the <a href="http://ctan.org/pkg/multicol" target="_blank">multicol</a> package). In the end, you will be able to create great looking lists that do not take up an unnecessary amount of space in your document. </p>
<p><span id="more-665"></span></p>
<h2>Compact lists</h2>
<p>Let&#8217;s start by creating a compact list. In order to do so, call the <a href="http://ctan.org/pkg/paralist" target="_blank">paralist</a> package in your preamble:</p>

<div class="wp_syntax"><div class="code"><pre class="latex" style="font-family:monospace;"><span style="color: #E02020; ">\</span><span style="color: #800000;">usepackage</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">paralist</span><span style="color: #E02020; ">}</span></pre></div></div>

<p>With the <a href="http://ctan.org/pkg/paralist" target="_blank">paralist</a> package, a few new environments are introduced. The ones we will be using in this post are: compactitem and compactenum. As their name imply, the first creates a compact itemized list and the latter creates a compact numbered list. Run the following code to <a href="http://www.howtotex.com/wp-content/uploads/2012/01/compactlists-paralist.png" target="_blank">see the difference</a>:</p>

<div class="wp_syntax"><div class="code"><pre class="latex" style="font-family:monospace;"><span style="color: #E02020; ">\</span><span style="color: #800000;">documentclass</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">article</span><span style="color: #E02020; ">}</span>
<span style="color: #E02020; ">\</span><span style="color: #800000;">usepackage</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">lipsum</span><span style="color: #E02020; ">}</span>
<span style="color: #E02020; ">\</span><span style="color: #800000;">usepackage</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">paralist</span><span style="color: #E02020; ">}</span>
<span style="color: #C00000; font-weight: normal;">\begin</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;"><span style="color: #0000D0; font-weight: normal;">document</span></span><span style="color: #E02020; ">}</span>
<span style="color: #800000; font-weight: normal;">\lipsum</span><span style="color: #E02020; ">[</span><span style="color: #C08020; font-weight: normal;">1</span><span style="color: #E02020; ">]</span>
<span style="color: #C00000; font-weight: normal;">\begin</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;"><span style="color: #0000D0; font-weight: normal;">itemize</span></span><span style="color: #E02020; ">}</span>
	<span style="color: #E02020; ">\</span><span style="color: #800000;">item</span> This is entry number one
	<span style="color: #E02020; ">\</span><span style="color: #800000;">item</span> This is entry number two
<span style="color: #C00000; font-weight: normal;">\end</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;"><span style="color: #0000D0; font-weight: normal;">itemize</span></span><span style="color: #E02020; ">}</span>
<span style="color: #800000; font-weight: normal;">\lipsum</span><span style="color: #E02020; ">[</span><span style="color: #C08020; font-weight: normal;">2</span><span style="color: #E02020; ">]</span>
<span style="color: #C00000; font-weight: normal;">\begin</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;"><span style="color: #0000D0; font-weight: normal;">compactitem</span></span><span style="color: #E02020; ">}</span>
	<span style="color: #E02020; ">\</span><span style="color: #800000;">item</span> This is entry number one, compact
	<span style="color: #E02020; ">\</span><span style="color: #800000;">item</span> This is entry number two, compact
<span style="color: #C00000; font-weight: normal;">\end</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;"><span style="color: #0000D0; font-weight: normal;">compactitem</span></span><span style="color: #E02020; ">}</span>
<span style="color: #800000; font-weight: normal;">\lipsum</span><span style="color: #E02020; ">[</span><span style="color: #C08020; font-weight: normal;">3</span><span style="color: #E02020; ">]</span>
<span style="color: #C00000; font-weight: normal;">\end</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;"><span style="color: #0000D0; font-weight: normal;">document</span></span><span style="color: #E02020; ">}</span></pre></div></div>

<p>In here, the lipsum package is used to create dummy text.</p>
<h2>Multicolumn lists</h2>
<p>Let&#8217;s extend the knowledge from above to multicolumn lists. Multicolumn list can save a lot of space in your document and can look a lot nicer if the list entries are short. The idea is pretty simple: We&#8217;ll define a three column environment that contains the list environment. This can be done with the <a href="http://ctan.org/pkg/multicol" target="_blank">multicol</a> package. By default, a multicolumn environment introduces additional spacing above and underneath. To remove this, implement the following in your preamble:</p>

<div class="wp_syntax"><div class="code"><pre class="latex" style="font-family:monospace;"><span style="color: #E02020; ">\</span><span style="color: #800000;">usepackage</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">multicol</span><span style="color: #E02020; ">}</span>
	<span style="color: #E02020; ">\</span><span style="color: #800000;">setlength</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\multicolsep</span></span><span style="color: #E02020; ">}{</span><span style="color: #2020C0; font-weight: normal;">0pt</span><span style="color: #E02020; ">}</span></pre></div></div>

<p>Now, <a href="http://www.howtotex.com/wp-content/uploads/2012/01/multicolumnlist-paralist.png" target="_blank">a compact multicolumn list</a> can be created with the following code:</p>

<div class="wp_syntax"><div class="code"><pre class="latex" style="font-family:monospace;"><span style="color: #E02020; ">\</span><span style="color: #800000;">documentclass</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">article</span><span style="color: #E02020; ">}</span>
<span style="color: #E02020; ">\</span><span style="color: #800000;">usepackage</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">lipsum</span><span style="color: #E02020; ">}</span>
<span style="color: #E02020; ">\</span><span style="color: #800000;">usepackage</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">paralist</span><span style="color: #E02020; ">}</span>
<span style="color: #E02020; ">\</span><span style="color: #800000;">usepackage</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">multicol</span><span style="color: #E02020; ">}</span>
	<span style="color: #E02020; ">\</span><span style="color: #800000;">setlength</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\multicolsep</span></span><span style="color: #E02020; ">}{</span><span style="color: #2020C0; font-weight: normal;">0pt</span><span style="color: #E02020; ">}</span>
<span style="color: #C00000; font-weight: normal;">\begin</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;"><span style="color: #0000D0; font-weight: normal;">document</span></span><span style="color: #E02020; ">}</span>
<span style="color: #800000; font-weight: normal;">\lipsum</span><span style="color: #E02020; ">[</span><span style="color: #C08020; font-weight: normal;">1</span><span style="color: #E02020; ">]</span>
<span style="color: #C00000; font-weight: normal;">\begin</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;"><span style="color: #0000D0; font-weight: normal;">multicols</span></span><span style="color: #E02020; ">}{</span><span style="color: #2020C0; font-weight: normal;">3</span><span style="color: #E02020; ">}</span>
	<span style="color: #C00000; font-weight: normal;">\begin</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;"><span style="color: #0000D0; font-weight: normal;">compactitem</span></span><span style="color: #E02020; ">}</span>
		<span style="color: #E02020; ">\</span><span style="color: #800000;">item</span> One
		<span style="color: #E02020; ">\</span><span style="color: #800000;">item</span> Two
		<span style="color: #E02020; ">\</span><span style="color: #800000;">item</span> Three
		<span style="color: #E02020; ">\</span><span style="color: #800000;">item</span> Four
		<span style="color: #E02020; ">\</span><span style="color: #800000;">item</span> Five		
		<span style="color: #E02020; ">\</span><span style="color: #800000;">item</span> <span style="color: #800000; font-weight: normal;">\ldots</span>
	<span style="color: #C00000; font-weight: normal;">\end</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;"><span style="color: #0000D0; font-weight: normal;">compactitem</span></span><span style="color: #E02020; ">}</span>
<span style="color: #C00000; font-weight: normal;">\end</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;"><span style="color: #0000D0; font-weight: normal;">multicols</span></span><span style="color: #E02020; ">}</span>
<span style="color: #800000; font-weight: normal;">\lipsum</span><span style="color: #E02020; ">[</span><span style="color: #C08020; font-weight: normal;">2</span><span style="color: #E02020; ">]</span>
<span style="color: #C00000; font-weight: normal;">\end</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;"><span style="color: #0000D0; font-weight: normal;">document</span></span><span style="color: #E02020; ">}</span></pre></div></div>

<p>That&#8217;s it!</p>
<h2>Alternatives</h2>
<p>For compact list environments, the method described above is my preference. However, a lot of other options are available. As found <a href="http://tex.stackexchange.com/search?q=compact+lists" target="_blank">here</a> the popular <a href="http://ctan.org/pkg/enumitem" target="_blank">enumitem</a> package can also be used, as well as <a href="http://ctan.org/pkg/shortlst" target="_blank">shortlst</a> and <a href="http://ctan.org/pkg/mdwlist" target="_blank">mdwlist</a>.</p>

<p><a href="http://feedads.g.doubleclick.net/~a/jNLJzuDROFCcPaaoL900kQ-jtNE/0/da"><img src="http://feedads.g.doubleclick.net/~a/jNLJzuDROFCcPaaoL900kQ-jtNE/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/jNLJzuDROFCcPaaoL900kQ-jtNE/1/da"><img src="http://feedads.g.doubleclick.net/~a/jNLJzuDROFCcPaaoL900kQ-jtNE/1/di" border="0" ismap="true"></img></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.howtotex.com/packages/compact-lists-with-paralist/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.howtotex.com/packages/compact-lists-with-paralist/</feedburner:origLink></item>
	</channel>
</rss>

