<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>howtoTeX.com - Your LaTeX resource site</title>
	<atom:link href="http://www.howtotex.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.howtotex.com</link>
	<description>Your LaTeX resource site.</description>
	<lastBuildDate>Tue, 14 May 2013 10:55:07 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
		<item>
		<title>How to create table cells of multiple rows in LaTeX</title>
		<link>http://www.howtotex.com/tips-tricks/how-to-create-table-cells-of-multiple-rows-in-latex/</link>
		<comments>http://www.howtotex.com/tips-tricks/how-to-create-table-cells-of-multiple-rows-in-latex/#comments</comments>
		<pubDate>Tue, 14 May 2013 10:55:07 +0000</pubDate>
		<dc:creator>Frits</dc:creator>
				<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[floats]]></category>
		<category><![CDATA[tables]]></category>

		<guid isPermaLink="false">http://www.howtotex.com/?p=1128</guid>
		<description><![CDATA[You may have encountered the problem where you wanted to merge multiple cells in a table column. Especially in the table headers (the leftmost column), this is not unthinkable. In this post, a simple way to realize this is described. We will be using the multirow package to do this. What you&#8217;ll be creating Preamble In the preamble, make sure<div class="readmore"><a href="http://www.howtotex.com/tips-tricks/how-to-create-table-cells-of-multiple-rows-in-latex/">Read more</a></div>]]></description>
				<content:encoded><![CDATA[<p>You may have encountered the problem where you wanted to merge multiple cells in a table column. Especially in the table headers (the leftmost column), this is not unthinkable. In this post, a simple way to realize this is described. We will be using the <a href="http://ctan.org/pkg/multirow" title="CTAN page for multirow" target="_blank"><code>multirow</code></a> package to do this. </p>
<p><span id="more-1128"></span></p>
<h2>What you&#8217;ll be creating</h2>
<p><a href="http://www.howtotex.com/wp-content/uploads/2013/05/multirowsintable.png"><img src="http://www.howtotex.com/wp-content/uploads/2013/05/multirowsintable-300x129.png" alt="multirowsintable 300x129 How to create table cells of multiple rows in LaTeX" width="300" height="129" class="aligncenter size-medium wp-image-1163" title="How to create table cells of multiple rows in LaTeX" /></a></p>
<h2>Preamble</h2>
<p>In the preamble, make sure the following to packages are called:</p>

<div class="wp_syntax"><table><tr><td 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 style="color: #E02020; ">}</span>
<span style="color: #E02020; ">\</span><span style="color: #800000;">usepackage</span>{multirow</span><span style="color: #E02020; ">}</span></pre></td></tr></table></div>

<p>The <a href="http://ctan.org/pkg/booktabs" title="CTAN page for booktabs" target="_blank"><code>booktabs</code></a> package is needed to typeset good looking tables. I&#8217;ve written <a href="http://www.howtotex.com/packages/improve-your-tables-with-booktabs/" title="Improve your tables with booktabs">a post on the booktabs package earlier</a>. The <a href="http://ctan.org/pkg/multirow" title="CTAN page for multirow" target="_blank"><code>multirow</code></a> package is needed to create cells spanning multiple rows in your LaTeX tables. </p>
<h2>Document</h2>
<p>I&#8217;ve created a simple 3-column table to illustrate the method by using the <code>multirow</code> command that comes with the <a href="http://ctan.org/pkg/multirow" title="CTAN page for multirow" target="_blank"><code>multirow</code></a> package:</p>

<div class="wp_syntax"><table><tr><td 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;">table</span></span><span style="color: #E02020; ">}</span>
	<span style="color: #E02020; ">\</span><span style="color: #800000;">centering</span><span style="color: #2C922C; font-style: italic;">%</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;">tabular</span><span style="color: #E02020; ">}{</span>lll<span style="color: #E02020; ">}</span>
	<span style="color: #800000; font-weight: normal;">\toprule</span>
	First 	<span style="color: #E02020; ">&amp;</span> Second 		<span style="color: #E02020; ">&amp;</span> Third <span style="color: #E02020; ">\\</span>
	<span style="color: #800000; font-weight: normal;">\midrule</span>
	1 	<span style="color: #E02020; ">&amp;</span> 			<span style="color: #E02020; ">&amp;</span> <span style="color: #800000; font-weight: normal;">\multirow</span><span style="color: #E02020; ">{</span>2<span style="color: #E02020; ">}{</span>80pt<span style="color: #E02020; ">}{</span>AB<span style="color: #E02020; ">}</span> <span style="color: #E02020; ">\\</span>
	2 	<span style="color: #E02020; ">&amp;</span> 			<span style="color: #E02020; ">&amp;</span> 	<span style="color: #E02020; ">\\</span>
	3 	<span style="color: #E02020; ">&amp;</span> <span style="color: #800000; font-weight: normal;">\multirow</span><span style="color: #E02020; ">{</span>-3<span style="color: #E02020; ">}{</span>*<span style="color: #E02020; ">}{</span>123<span style="color: #E02020; ">}</span> <span style="color: #E02020; ">&amp;</span> C     <span style="color: #E02020; ">\\</span>
	<span style="color: #800000; font-weight: normal;">\bottomrule</span>
	<span style="color: #C00000; font-weight: normal;">\end</span><span style="color: #E02020; ">{</span><span style="color: #0000D0; font-weight: normal;">tabular</span><span style="color: #E02020; ">}</span>
<span style="color: #C00000; font-weight: normal;">\end</span><span style="color: #E02020; ">{</span><span style="color: #0000D0; font-weight: normal;">table</span></span><span style="color: #E02020; ">}</span></pre></td></tr></table></div>

<p>The <code>multirow</code> command is defined as follows:</p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="latex" style="font-family:monospace;"><span style="color: #800000; font-weight: normal;">\multirow</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">nrows}{width}{content</span><span style="color: #E02020; ">}</span></pre></td></tr></table></div>

<ul>
<li><strong>nrows</strong>: number of rows to be spanned.</li>
<li><strong>width</strong>: width of the <em>content</em>.</li>
<li><strong>content</strong>: the text that will be printed</li>
<p>Note that this number may be positive or negative, as illustrated in the example. In the second column, <code>-3</code> was used in the last rows. This means that the third row and the 2 previous rows are merged. In the rightmost column, <code>nrows</code> was set to 2 on row 1. This merges the first and second row.<br />
The <code>width</code> may be set to either a length measure or an asterix (<code>*</code>). The latter needs to be used to set the contents&#8217; natural width.</p>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.howtotex.com/tips-tricks/how-to-create-table-cells-of-multiple-rows-in-latex/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>12 great resources for getting started with LaTeX</title>
		<link>http://www.howtotex.com/general/12-great-resources-for-getting-started-with-latex/</link>
		<comments>http://www.howtotex.com/general/12-great-resources-for-getting-started-with-latex/#comments</comments>
		<pubDate>Wed, 24 Apr 2013 14:48:46 +0000</pubDate>
		<dc:creator>Frits</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[latex]]></category>
		<category><![CDATA[resources]]></category>

		<guid isPermaLink="false">http://www.howtotex.com/?p=1111</guid>
		<description><![CDATA[After writing a five minute guide to LaTeX, I&#8217;d like to summarize some of the best resources for LaTeX beginners. When performing a Google search, you&#8217;ll find way too much information. Knowing what resources to use is key for a successful start with LaTeX and this post will help you with that. The obvious Without being too arrogant, I&#8217;d like<div class="readmore"><a href="http://www.howtotex.com/general/12-great-resources-for-getting-started-with-latex/">Read more</a></div>]]></description>
				<content:encoded><![CDATA[<p>After writing a <a href="http://www.howtotex.com/general/five-minute-guide-to-latex/" title="Five minute guide to LaTeX" target="_blank">five minute guide to LaTeX</a>, I&#8217;d like to summarize some of the best resources for LaTeX beginners. When performing a Google search, you&#8217;ll find way too much information. Knowing what resources to use is key for a successful start with LaTeX and this post will help you with that.<br />
<span id="more-1111"></span></p>
<h2>The obvious</h2>
<p>Without being too arrogant, I&#8217;d like to point out the main goal of this blog is helping beginners to get started with LaTeX. That is also why I&#8217;ve written <a href="http://www.howtotex.com/general/five-minute-guide-to-latex/" title="Five minute guide to LaTeX" target="_blank">a quick guide</a> and quite a few beginner-level posts. Note that some posts on this blog are actually more advanced, so don&#8217;t be scared by some of the content.</p>
<ul>
<li><a href="http://www.howtotex.com/general/five-minute-guide-to-latex/" title="Five minute guide to LaTeX" target="_blank">The five minute guide to LaTeX</a></li>
</ul>
<h2>Online communities</h2>
<p>Probably the best way to get your questions answered is using forums. My favorite one, and also the best for beginners, is <a href="http://www.latex-community.org/" title="LaTeX Community" target="_blank">LaTeX Communtity</a>. For more sophisticated answers, <a href="http://tex.stackexchange.com/" title="TeX StackExchange" target="_blank">TeX.SE</a> is very good.</p>
<ul>
<li><a href="http://www.latex-community.org/" title="LaTeX Community" target="_blank">LaTeX Communtity</a>: Very good and helpful for beginners</li>
<li><a href="http://tex.stackexchange.com/" title="TeX StackExchange" target="_blank">TeX StackExchange</a>: Focus is on more advanced topics</li>
</ul>
<h2>Tutorials and guides</h2>
<p>Probably the most used and most searched for document on getting started with LaTeX is &#8220;<a href="http://tobi.oetiker.ch/lshort/lshort.pdf" title="The Not So Short Introduction to LaTeX2e" target="_blank">The Not So Short Introduction to LaTeX2ε</a>&#8220;. Although this guide includes just about anything you want to know about LaTeX, I do not recommend this one. It will absolutely overwhelm you with all the possibilities in LaTeX, while a beginner should just learn how to create a simple document. All the rest will follow.<br />
Having this in mind, a guide that covers only the very basics that I really like is Andy Roberts&#8217; website on <a href="http://www.andy-roberts.net/writing/latex" title="Getting grips with LaTeX" target="_blank">getting grips with LaTeX</a>. His site contains basic and illustrative tutorials.<br />
Lastly, I also really like the <a href="http://en.wikibooks.org/wiki/LaTeX" title="LaTeX Wikibooks" target="_blank">Wikibooks pages on LaTeX</a>. They contain a lot of information, especially covering the basics of LaTeX.</p>
<ul>
<li><a href="http://tobi.oetiker.ch/lshort/lshort.pdf" title="The Not So Short Introduction to LaTeX2e" target="_blank">The Not So Short Introduction to LaTeX2ε</a>: This is probably too much for a LaTeX beginner</li>
<li><a href="http://www.andy-roberts.net/writing/latex" title="Getting grips with LaTeX" target="_blank">Getting grips with LaTeX</a>: A collection of very basic tutorials</li>
<li><a href="http://en.wikibooks.org/wiki/LaTeX" title="LaTeX Wikibooks" target="_blank">Wikibooks pages on LaTeX</a>: A very nice overview on a wide variety of topics</li>
</ul>
<h2>LaTeX installation</h2>
<p>Before following any tutorial on LaTeX, you&#8217;d want to install it on you computer ;-) Unfortunately, most short guides for beginners don&#8217;t cover this subject. It is often found a bit scary or something. However, installing LaTeX is not difficult at all. I&#8217;ve written tutorials on how to install LaTeX on <a href="http://www.howtotex.com/howto/installing-latex-on-windows/" title="Installing LaTeX on Windows" target="_blank">Windows</a> and on <a href="http://www.howtotex.com/howto/installing-latex-on-mac-os-x/" title="Installing LaTeX on Mac OS X" target="_blank">OS X</a>. I&#8217;m not experienced with LaTeX on Linux, but I&#8217;ve been told that <a href="http://linuxandfriends.com/2009/10/06/install-latex-in-ubuntu-linux/" title="Installing LaTeX on Ubuntu Linux" target="_blank">this</a> is a good tutorial for that.</p>
<ul>
<li><a href="http://www.howtotex.com/howto/installing-latex-on-windows/" title="Installing LaTeX on Windows" target="_blank">Installing LaTeX on Windows</a></li>
<li><a href="http://www.howtotex.com/howto/installing-latex-on-mac-os-x/" title="Installing LaTeX on Mac OS X" target="_blank">Installing LaTeX on Mac OS X</a></li>
<li><a href="http://linuxandfriends.com/2009/10/06/install-latex-in-ubuntu-linux/" title="Installing LaTeX on Ubuntu Linux" target="_blank">Installing LaTeX on Ubuntu Linux</a></li>
</ul>
<h2>Miscellaneous</h2>
<p>Last but not least, I&#8217;d like to point out three resources that should be bookmarked in your browser. You&#8217;ll likely be using these resources A LOT when using LaTeX. The first one is the <a href="http://www.stdout.org/~winston/latex/" title="LaTeX cheat sheet" target="_blank">LaTeX cheat sheet</a>; a two-pages document containing all important LaTeX commands (and even a bit more). Secondly, two resources on symbols in LaTeX. So many different (math) symbols exist that I will definitely never learn them by heart. Fortunately, I don&#8217;t have to because of <a href="http://ftp.snt.utwente.nl/pub/software/tex/info/symbols/comprehensive/symbols-a4.pdf" title="Comprehensive LaTeX symbol list" target="_blank">The Comprehensive LaTeX Symbol List</a> and <a href="http://detexify.kirelabs.org/classify.html" title="Detexify" target="_blank">Detexify</a>. The first is a very large document containing a lot, if not all, symbols and their commands. Detexify is a great little web tool that allows you to draw a symbol and it will automatically search for the corresponding command.</p>
<ul>
<li><a href="http://www.stdout.org/~winston/latex/" title="LaTeX cheat sheet" target="_blank">LaTeX cheat sheet</a></li>
<li><a href="http://ftp.snt.utwente.nl/pub/software/tex/info/symbols/comprehensive/symbols-a4.pdf" title="Comprehensive LaTeX symbol list" target="_blank">The Comprehensive LaTeX Symbol List</a></li>
<li><a href="http://detexify.kirelabs.org/classify.html" title="Detexify" target="_blank">Detexify</a></li>
</ul>
<h2>Update: more resources</h2>
<p>I forgot to mention (at least) one important resource: <a href="https://www.writelatex.com/" title="writeLaTeX.com" target="_blank">writeLaTeX.com</a>. This is my favorite LaTeX web compiler, as already highlighted in <a href="http://www.howtotex.com/general/update-new-way-of-answering-questions/" title="Update: New way of answering questions" target="_blank">a previous post</a>. </p>
<ul>
<li><a href="https://www.writelatex.com/" title="writeLaTeX.com" target="_blank">writeLaTeX.com</a></li>
</ul>
<h2>More resources?</h2>
<p>If you&#8217;re new to this site, you might not know that there actually is a section containing <strong>a lot</strong> of (La)TeX resources; <a href="http://latex.howtotex.com" title="LaTeX resources on howtoTeX.com" target="_blank">latex.howtotex.com</a>. Have a look there to find many, many more.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.howtotex.com/general/12-great-resources-for-getting-started-with-latex/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Highlighting in TikZ plots</title>
		<link>http://www.howtotex.com/tips-tricks/highlighting-in-tikz-plots/</link>
		<comments>http://www.howtotex.com/tips-tricks/highlighting-in-tikz-plots/#comments</comments>
		<pubDate>Tue, 26 Mar 2013 07:47:07 +0000</pubDate>
		<dc:creator>Frits</dc:creator>
				<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[color]]></category>
		<category><![CDATA[figures]]></category>
		<category><![CDATA[graphicx]]></category>
		<category><![CDATA[MATLAB]]></category>
		<category><![CDATA[TikZ]]></category>

		<guid isPermaLink="false">http://www.howtotex.com/?p=1086</guid>
		<description><![CDATA[Elaborating plotted data and drawing conclusions from them in a (scientific) report can be cumbersome and often takes way too many words than necessary. Following the old saying &#8216;a picture is worth a thousand words&#8216;, this post describes how to highlight certain areas in a TikZ plot. You&#8217;ll be able to adjust the color of the highlighted area, its layer<div class="readmore"><a href="http://www.howtotex.com/tips-tricks/highlighting-in-tikz-plots/">Read more</a></div>]]></description>
				<content:encoded><![CDATA[<p>Elaborating plotted data and drawing conclusions from them in a (scientific) report can be cumbersome and often takes way too many words than necessary. Following the old saying &#8216;<em>a picture is worth a thousand words</em>&#8216;, this post describes how to highlight certain areas in a TikZ plot. You&#8217;ll be able to adjust the color of the highlighted area, its layer depth and range. I find this to be a very elegant and clear way of elaborating plots in reports.</p>
<p><span id="more-1086"></span><br />
The idea of this post came from this <a href="http://tex.stackexchange.com/questions/103302/pgfplots-highlighting-filling-an-area-in-a-data-file" target="_blank">question on TeX.SE</a>, and part of the solution is obtained using <a href="http://tex.stackexchange.com/questions/20425/z-level-in-tikz/20426#20426" target="_blank">this answer on TeX.SE</a>.</p>
<p><result><a href="http://www.howtotex.com/images/highlighttikz.png" target="_blank">What you&#8217;ll be creating</a></result></p>
<h2>The example</h2>
<p>The example we will be working on will be as simple as possible; a sine function:</p>
<p><img src="http://www.howtotex.com/images/highlighttikz-nohighlight.png" alt="highlighttikz nohighlight Highlighting in TikZ plots"  title="Highlighting in TikZ plots" /></p>
<p>The image is created with the following code:</p>

<div class="wp_syntax"><table><tr><td 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>
&nbsp;
<span style="color: #2C922C; font-style: italic;">% load the required package(s)</span>
<span style="color: #E02020; ">\</span><span style="color: #800000;">usepackage</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">pgfplots<span style="color: #E02020; ">}</span>
<span style="color: #800000; font-weight: normal;">\pgfplotsset</span>{compat=newest</span><span style="color: #E02020; ">}</span> <span style="color: #2C922C; font-style: italic;">% necessary for new features</span>
&nbsp;
<span style="color: #2C922C; font-style: italic;">% begin document</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: #2C922C; font-style: italic;">% create a TikZ picture</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;">tikzpicture</span><span style="color: #E02020; ">}</span>
<span style="color: #C00000; font-weight: normal;">\begin</span><span style="color: #E02020; ">{</span><span style="color: #0000D0; font-weight: normal;">axis</span><span style="color: #E02020; ">}[</span><span style="color: #C08020; font-weight: normal;">
    set layers,
    domain=0:10,
    grid=both
</span><span style="color: #E02020; ">]</span>
<span style="color: #800000; font-weight: normal;">\addplot</span>+<span style="color: #E02020; ">[</span><span style="color: #C08020; font-weight: normal;">no marks</span><span style="color: #E02020; ">]</span> <span style="color: #E02020; ">{</span>sin(deg(x))<span style="color: #E02020; ">}</span>;
&nbsp;
<span style="color: #C00000; font-weight: normal;">\end</span><span style="color: #E02020; ">{</span><span style="color: #0000D0; font-weight: normal;">axis</span><span style="color: #E02020; ">}</span>
<span style="color: #C00000; font-weight: normal;">\end</span><span style="color: #E02020; ">{</span><span style="color: #0000D0; font-weight: normal;">tikzpicture</span></span><span style="color: #E02020; ">}</span>
<span style="color: #2C922C; font-style: italic;">% close document</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></td></tr></table></div>

<p>This piece of code won&#8217;t be explained any further. It is just a very minimal document that plots a sine function (sin(x), x=1:10) using TikZ.</p>
<h2>Highlighting</h2>
<p>In order to give a thorough illustration, I&#8217;ll highlight three areas in the sine plot that was described above. The choice for multiple highlighted areas is done in order to illustrate some of the functions you can play with. See the highlighted plot below:</p>
<p><img src="http://www.howtotex.com/images/highlighttikz.png" alt="highlighttikz Highlighting in TikZ plots"  title="Highlighting in TikZ plots" /></p>
<p>This TikZ image is created with the following lines of code:</p>

<div class="wp_syntax"><table><tr><td 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>
&nbsp;
<span style="color: #2C922C; font-style: italic;">% load the required package(s)</span>
<span style="color: #E02020; ">\</span><span style="color: #800000;">usepackage</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">pgfplots<span style="color: #E02020; ">}</span>
<span style="color: #800000; font-weight: normal;">\pgfplotsset</span>{compat=newest</span><span style="color: #E02020; ">}</span> <span style="color: #2C922C; font-style: italic;">% necessary for new features</span>
&nbsp;
<span style="color: #2C922C; font-style: italic;">% code to enable highlighting</span>
<span style="color: #800000; font-weight: normal;">\pgfkeys</span><span style="color: #E02020; ">{</span><span style="color: #2C922C; font-style: italic;">%</span>
  /tikz/on layer/.code=<span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">
    <span style="color: #800000; font-weight: normal;">\pgfonlayer</span><span style="color: #E02020; ">{</span>#1<span style="color: #E02020; ">}</span><span style="color: #800000; font-weight: normal;">\begingroup</span>
    <span style="color: #800000; font-weight: normal;">\aftergroup</span><span style="color: #800000; font-weight: normal;">\endpgfonlayer</span>
    <span style="color: #800000; font-weight: normal;">\aftergroup</span><span style="color: #800000; font-weight: normal;">\endgroup</span>
  <span style="color: #E02020; ">}</span>
<span style="color: #E02020; ">}</span>
&nbsp;
<span style="color: #800000; font-weight: normal;">\pgfplotsset</span><span style="color: #E02020; ">{</span>
    highlight/.code args=<span style="color: #E02020; ">{</span>#1:#2<span style="color: #E02020; ">}{</span>
        <span style="color: #800000; font-weight: normal;">\fill</span> <span style="color: #E02020; ">[</span><span style="color: #C08020; font-weight: normal;">every highlight</span><span style="color: #E02020; ">]</span> (<span style="color: #E02020; ">{</span>axis cs:#1,0<span style="color: #E02020; ">}</span>|-<span style="color: #E02020; ">{</span>rel axis cs:0,0<span style="color: #E02020; ">}</span>) rectangle (<span style="color: #E02020; ">{</span>axis cs:#2,0<span style="color: #E02020; ">}</span>|-<span style="color: #E02020; ">{</span>rel axis cs:0,1<span style="color: #E02020; ">}</span>);
    <span style="color: #E02020; ">}</span>,
    /tikz/every highlight/.style=<span style="color: #E02020; ">{</span>
        on layer=<span style="color: #800000; font-weight: normal;">\pgfkeysvalueof</span>{/pgfplots/highlight layer</span><span style="color: #E02020; ">}</span>,
        blue!20	<span style="color: #2C922C; font-style: italic;">% default color of highlighted area</span>
    <span style="color: #E02020; ">}</span>,
    /tikz/highlight style/.style=<span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">
        /tikz/every highlight/.append style=#1
    </span><span style="color: #E02020; ">}</span>,
    highlight layer/.initial=axis background	<span style="color: #2C922C; font-style: italic;">% default depth</span>
<span style="color: #E02020; ">}</span>
<span style="color: #2C922C; font-style: italic;">% end code to enable highlighting</span>
&nbsp;
<span style="color: #2C922C; font-style: italic;">% begin document</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: #2C922C; font-style: italic;">% create a TikZ picture</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;">tikzpicture</span><span style="color: #E02020; ">}</span>
<span style="color: #C00000; font-weight: normal;">\begin</span><span style="color: #E02020; ">{</span><span style="color: #0000D0; font-weight: normal;">axis</span></span><span style="color: #E02020; ">}[</span><span style="color: #C08020; font-weight: normal;">
    set layers,
    domain=0:10,
    grid=both
</span><span style="color: #E02020; ">]</span>
<span style="color: #800000; font-weight: normal;">\addplot</span>+<span style="color: #E02020; ">[</span><span style="color: #2C922C; font-style: italic;">%</span>
	no marks,
	<span style="color: #2C922C; font-style: italic;">% first highlighted area (in blue by default) </span>
	highlight=0:2, 				<span style="color: #2C922C; font-style: italic;">% range</span>
	<span style="color: #2C922C; font-style: italic;">% second highlighted area (color changed to red) 	</span>
	highlight style=<span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">red!20</span><span style="color: #E02020; ">}</span>,	<span style="color: #2C922C; font-style: italic;">% color</span>
	highlight layer=axis ticks,	<span style="color: #2C922C; font-style: italic;">% depth</span>
	highlight=6:8,				<span style="color: #2C922C; font-style: italic;">% range</span>
	<span style="color: #2C922C; font-style: italic;">% first highlighted area (color changed to green) 	</span>
	highlight style=<span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">green!20</span><span style="color: #E02020; ">}</span>,	<span style="color: #2C922C; font-style: italic;">% color</span>
	highlight layer=axis foreground,	<span style="color: #2C922C; font-style: italic;">% depth</span>
	highlight=7:7.5				<span style="color: #2C922C; font-style: italic;">% range	</span>
	<span style="color: #E02020; ">]</span> 
	<span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">sin(deg(x))<span style="color: #E02020; ">}</span>;
<span style="color: #C00000; font-weight: normal;">\end</span><span style="color: #E02020; ">{</span><span style="color: #0000D0; font-weight: normal;">axis</span><span style="color: #E02020; ">}</span>
<span style="color: #C00000; font-weight: normal;">\end</span><span style="color: #E02020; ">{</span><span style="color: #0000D0; font-weight: normal;">tikzpicture</span></span><span style="color: #E02020; ">}</span>
<span style="color: #2C922C; font-style: italic;">% close document</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></td></tr></table></div>

<p>Now, the important parts of this code are commented but nonetheless I&#8217;ll be discussing the color, layer depth and range a bit more.</p>
<h2>Color</h2>
<p>Color of the highlighted area is blue!20 by default, as defined in the preamble of the document. When having multiple highlighted areas, you might want to give each area a different color. To do this, specify <code>highlight style={...}</code> within the <code>tikzpicture</code> environment (as an argument of <code>addplot+</code>).<br />
In the example above I&#8217;ve highlighted three areas: one with the default color (<code>blue!20</code>) and two of a different color (<code>red!20</code> and <code>green!20</code>).</p>
<h2>Layer depth</h2>
<p>The layer depth is the layer on wich the highlight is printed. In most cases, it is best to add a layer in the very background (this is also set by default). Change the layer depth with <code>highlight layer=...</code>, default value is &#8216;axis background&#8217;. The sequence is layer depth is:<br />
<code>axis background</code>, <code>main</code>, <code>axis grid</code>, <code>axis ticks</code>, <code>axis lines</code>, <code>axis tick labels</code>, <code>axis descriptions</code>, <code>axis foreground</code>.<br />
The three highlighted areas in the example above illustrate the effect of the layer depth. The green area&#8217;s depth is set to <code>axis ticks</code> and it can be seen that that area is printed on top of the grid (which is the deepest layer). The red area is printed on the very top layer.</p>
<h2>Range</h2>
<p>Determine the range of the highlighted area by specifying <code>highlight=...</code>. Note that this one is necessary to actually print the area (the color and layer depth described above are not). All options concerning color/style and layer depth should be specified before this command.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.howtotex.com/tips-tricks/highlighting-in-tikz-plots/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Update: New way of answering questions</title>
		<link>http://www.howtotex.com/general/update-new-way-of-answering-questions/</link>
		<comments>http://www.howtotex.com/general/update-new-way-of-answering-questions/#comments</comments>
		<pubDate>Mon, 25 Feb 2013 20:30:22 +0000</pubDate>
		<dc:creator>Frits</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[editor]]></category>
		<category><![CDATA[online]]></category>
		<category><![CDATA[writeLaTeX]]></category>

		<guid isPermaLink="false">http://www.howtotex.com/?p=1063</guid>
		<description><![CDATA[This blog is getting more and more popular and therefore more and more comments are being posted. In order to help everyone as quick as possible, with answers that are easy to understand, I&#8217;ll use writeLaTeX.com to answer questions. Since this way of answering question is a probably new to you, this post will help you with the basics. Quite<div class="readmore"><a href="http://www.howtotex.com/general/update-new-way-of-answering-questions/">Read more</a></div>]]></description>
				<content:encoded><![CDATA[<p>This blog is getting more and more popular and therefore more and more comments are being posted. In order to help everyone as quick as possible, with answers that are easy to understand, I&#8217;ll use <a title="https://www.writelatex.com/" href="https://www.writelatex.com/" target="_blank">writeLaTeX.com</a> to answer questions. Since this way of answering question is a probably new to you, this post will help you with the basics. </p>
<p>Quite a few online LaTeX editors exist. My personal favorite is <a title="https://www.writelatex.com/" href="https://www.writelatex.com/" target="_blank">writeLaTeX.com</a>. Feel free to visit the website and read everything about it. Also, since it&#8217;s free I highly recommend signing up.</p>
<h2>My answer</h2>
<p>If you comment on a post with a question about a bug in your LaTeX code or something similar, I&#8217;ll try to fix your code and illustrate the outcome by sharing a link to a writeLaTeX online document.</p>
<p>So, let&#8217;s assume someone asks how to write &#8216;Hello world!&#8217; in LaTeX (Note: this might not be a very realistic question ;-) ). To answer this question as clear as possible, I&#8217;ll illustrate it right away in a working LaTeX document. This document is made online with writeLaTeX and the link is shared with the person that asks the question, and with everyone else that is interested. Here&#8217;s what I&#8217;ll reply:</p>
<blockquote><p><a href="https://www.writelatex.com/74935jbhbbk" title="answer on writeLaTeX.com" target="_blank">View my answer on writeLaTeX.com</a></p></blockquote>
<h2>Restoring the original answer</h2>
<p>Everyone is able to edit shared documents on writeLaTeX.com. This is in most cases very advantageous, but it also means that everyone is able to edit my original answer. Fortunately, writeLaTeX.com has version control implemented and I&#8217;ll always save my original answer such that anyone is able to restore the document. Here&#8217;s how to do that.</p>
<ol>
<li>Go to &#8216;history&#8217; in the menu bar of the writeLaTeX.com interface.</li>
<li>Find the original version, which is in this case saved as &#8216;ORIGINAL by howtoTeX.com&#8217;, and click on &#8216;restore&#8217;.
</li>
</ol>
<p>The image below illustrates these steps.</p>
<p><a href="http://www.howtotex.com/wp-content/uploads/2013/02/writeLaTeX-versioncontrol.png"><img src="http://www.howtotex.com/wp-content/uploads/2013/02/writeLaTeX-versioncontrol-300x108.png" alt="writeLaTeX versioncontrol 300x108 Update: New way of answering questions" width="300" height="108" class="aligncenter size-medium wp-image-1067" title="Update: New way of answering questions" /></a></p>
<h2>Feedback</h2>
<p>Please let me know if this new system of answering questions is working for you. I think my answers will be more clear if I use writeLaTeX.com as described in this post, but if you disagree please say so. For any writeLaTeX related questions or feedback, you can also contact its founders directly via <a href="https://www.writelatex.com/contact" title="https://www.writelatex.com/contact" target="_blank">https://www.writelatex.com/contact</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.howtotex.com/general/update-new-way-of-answering-questions/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Template: bilingual document</title>
		<link>http://www.howtotex.com/templates/template-bilingual-document/</link>
		<comments>http://www.howtotex.com/templates/template-bilingual-document/#comments</comments>
		<pubDate>Thu, 19 Jul 2012 18:54:19 +0000</pubDate>
		<dc:creator>Frits</dc:creator>
				<category><![CDATA[Templates]]></category>
		<category><![CDATA[article]]></category>
		<category><![CDATA[babel]]></category>
		<category><![CDATA[bilingual]]></category>

		<guid isPermaLink="false">http://www.howtotex.com/?p=991</guid>
		<description><![CDATA[Recently I received an email with the question for a bilingual document. I never had to write a bilingual document before, and the challenge was there. What I create is a two column document in which two languages can be used: one in the left column and one in the right column. I tried to keep things as simple and<div class="readmore"><a href="http://www.howtotex.com/templates/template-bilingual-document/">Read more</a></div>]]></description>
				<content:encoded><![CDATA[<p>Recently I received an email with the question for a bilingual document. I never had to write a bilingual document before, and the challenge was there. What I create is a two column document in which two languages can be used: one in the left column and one in the right column. I tried to keep things as simple and clean looking as possible.</p>
<p><span id="more-991"></span></p>
<p>The template makes use of the <code>article documentclass</code>. Two packages are important: <a href="http://ctan.org/pkg/babel" title="CTAN page for babel" target="_blank"><code>babel</code></a> and <a href="http://ctan.org/pkg/parallel" title="CTAN page for parallel" target="_blank"><code>parallel</code></a>. The first is used to select the languages for the main content and the second package is needed to create the two column layout.</p>
<h2>The babel package</h2>
<p>The <a href="http://ctan.org/pkg/babel" title="CTAN page for babel" target="_blank"><code>babel</code></a> package should be well-known to you. In this template, it is called as follows:</p>

<div class="wp_syntax"><table><tr><td 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;">english,german</span><span style="color: #E02020; ">]{</span><span style="color: #2020C0; font-weight: normal;">babel</span><span style="color: #E02020; ">}</span></pre></td></tr></table></div>

<p>Hence, the english en german languages are loaded. In the main content of the template, the languages are selected with the <code>selectlanguage</code> command. For example, the english language is selected with</p>

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

<h2>The parallel package</h2>
<p>The <a href="http://ctan.org/pkg/parallel" title="CTAN page for parallel" target="_blank"><code>parallel</code></a> package is used to create a two column layout, where each columns contains text in a different language. For english in the left and german in the right column, we do:</p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="latex" style="font-family:monospace;">	<span style="color: #800000; font-weight: normal;">\selectlanguage</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">english<span style="color: #E02020; ">}</span>
<span style="color: #800000; font-weight: normal;">\ParallelLText</span><span style="color: #E02020; ">{\</span><span style="color: #800000;">blindtext</span><span style="color: #E02020; ">}</span>
	<span style="color: #800000; font-weight: normal;">\selectlanguage</span><span style="color: #E02020; ">{</span>german<span style="color: #E02020; ">}</span>
<span style="color: #800000; font-weight: normal;">\ParallelRText</span><span style="color: #E02020; ">{\</span><span style="color: #800000;">blindtext</span></span><span style="color: #E02020; ">}</span></pre></td></tr></table></div>

<p>The <a href="http://ctan.org/pkg/parallel" title="CTAN page for parallel" target="_blank"><code>parallel</code></a> package also makes sure that, when a paragraph in one language is shorter than the other, the next paragraph begins at the same line for both languages. In order to say to LaTeX that a paragraph is ended, we type</p>

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

<h2>Line numbering</h2>
<p>As a final decoration, line numbering is added to the document. This is done because I often see it in bilingual documents. It is achieved with the <a href="http://ctan.org/pkg/lineno" title="CTAN page for lineno" target="_blank"><code>lineno</code></a> package. In the preamble, after <code>\usepackage{lineno}</code>, add <code>\linenumbers</code>.</p>
<h2>Download</h2>
<p>Download <a href="http://www.howtotex.com/download/bilingual-howtotex.pdf">PDF</a><br />
Download <a href="http://www.howtotex.com/download/bilingual-howtotex.tex">TEX</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.howtotex.com/templates/template-bilingual-document/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>How to add Bibliography (and more) to Table of Contents</title>
		<link>http://www.howtotex.com/packages/how-to-add-bibliography-and-more-to-table-of-contents/</link>
		<comments>http://www.howtotex.com/packages/how-to-add-bibliography-and-more-to-table-of-contents/#comments</comments>
		<pubDate>Wed, 04 Jul 2012 14:39:32 +0000</pubDate>
		<dc:creator>Frits</dc:creator>
				<category><![CDATA[Packages]]></category>
		<category><![CDATA[bibliography]]></category>
		<category><![CDATA[list of figures]]></category>
		<category><![CDATA[list of tables]]></category>
		<category><![CDATA[package]]></category>
		<category><![CDATA[table of contents]]></category>

		<guid isPermaLink="false">http://www.howtotex.com/?p=983</guid>
		<description><![CDATA[I often wonder why the bibliography of LaTeX documents is not shown in the Table of Contents by defaults. Happily enough, I wasn&#8217;t the only one wondering this. That is why the tocbibind package was created. This package allows one to add the bibliography to the ToC. But wait, there more! Usage The usage is extremely simple. Add the following<div class="readmore"><a href="http://www.howtotex.com/packages/how-to-add-bibliography-and-more-to-table-of-contents/">Read more</a></div>]]></description>
				<content:encoded><![CDATA[<p>I often wonder why the bibliography of LaTeX documents is not shown in the Table of Contents by defaults. Happily enough, I wasn&#8217;t the only one wondering this. That is why the <a href="http://ctan.org/pkg/tocbibind" title="CTAN page for tocbibind" target="_blank"><code>tocbibind</code></a> package was created. This package allows one to add the bibliography to the ToC. But wait, there more!</p>
<p><span id="more-983"></span></p>
<h2>Usage</h2>
<p>The usage is extremely simple. Add the following to the preamble:</p>

<div class="wp_syntax"><table><tr><td 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;">tocbibind</span><span style="color: #E02020; ">}</span></pre></td></tr></table></div>

<p>THis, by default, includes a number of things to the table of contents: the Table of Contents itself, the List of Figures, the List of Tables, the Bibliography and the Index. If you want to exclude one of these, add the following package options:</p>
<ul>
<li><code>notbib</code> to remove the Bibliography</li>
<li><code>notindex</code> to remove the Index</li>
<li><code>nottoc</code> to remove the Table of Contents</li>
<li><code>notlof</code> to remove the List of Figures</li>
<li><code>notlot</code> to remove the List of Tables</li>
</ul>
<p>For example, to suppress the inclusion of the List of Figures:</p>

<div class="wp_syntax"><table><tr><td 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;">notlof</span><span style="color: #E02020; ">]{</span><span style="color: #2020C0; font-weight: normal;">tocbibind</span><span style="color: #E02020; ">}</span></pre></td></tr></table></div>

<h2>More</h2>
<p>More options are described in the <a href="http://mirror.ctan.org/macros/latex/contrib/tocbibind/tocbibind.pdf" title="tocbibind documentation on CTAN" target="_blank">package documentation</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.howtotex.com/packages/how-to-add-bibliography-and-more-to-table-of-contents/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Template: title page for a book</title>
		<link>http://www.howtotex.com/templates/template-title-page-for-a-book/</link>
		<comments>http://www.howtotex.com/templates/template-title-page-for-a-book/#comments</comments>
		<pubDate>Wed, 27 Jun 2012 21:30:28 +0000</pubDate>
		<dc:creator>Frits</dc:creator>
				<category><![CDATA[Templates]]></category>
		<category><![CDATA[template]]></category>
		<category><![CDATA[titlepage]]></category>

		<guid isPermaLink="false">http://www.howtotex.com/?p=976</guid>
		<description><![CDATA[I created a clean looking title page that can be used for a book (with multiple authors). I won&#8217;t be writing a lot on this template, as I&#8217;ve added comments to the TeX code of the template. If something is unclear, feel free to ask! I&#8217;ve used the article class and the changed the standard font to Times (using the<div class="readmore"><a href="http://www.howtotex.com/templates/template-title-page-for-a-book/">Read more</a></div>]]></description>
				<content:encoded><![CDATA[<p>I created a clean looking title page that can be used for a book (with multiple authors). I won&#8217;t be writing a lot on this template, as I&#8217;ve added comments to the TeX code of the template. If something is unclear, feel free to ask!</p>
<p><span id="more-976"></span></p>
<p>I&#8217;ve used the <code>article</code> class and the changed the standard font to Times (using the <a href="http://ctan.org/pkg/mathptmx" title="CTAN page for mathptmx" target="_blank"><code>mathptmx</code></a> package). Furthermore, the <a href="http://ctan.org/pkg/multicol" title="CTAN page for multicol" target="_blank"><code>multicol</code></a> package is used to create the two column layouts that displays the authors.</p>
<h2>Download</h2>
<p>Download <a href="http://www.howtotex.com/download/book-titlepage-howtotex.pdf">PDF</a><br />
Download <a href="http://www.howtotex.com/download/book-titlepage-howtotex.tex">TEX</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.howtotex.com/templates/template-title-page-for-a-book/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Graphics related posts on LaTeX community</title>
		<link>http://www.howtotex.com/other/graphics-related-posts-on-latex-community/</link>
		<comments>http://www.howtotex.com/other/graphics-related-posts-on-latex-community/#comments</comments>
		<pubDate>Thu, 21 Jun 2012 17:31:51 +0000</pubDate>
		<dc:creator>Frits</dc:creator>
				<category><![CDATA[Other]]></category>
		<category><![CDATA[graphics]]></category>

		<guid isPermaLink="false">http://www.howtotex.com/?p=972</guid>
		<description><![CDATA[You probably know the largest LaTeX community on the web: LaTeX-community.org by Sven Wiegand and Stefan Kottwitz. There is a large forum there, where a lot of questions are answered every day (also by me). Recently they started a contest, which can be found here. In short, it was asked to write a post about graphics in LaTeX. The result?<div class="readmore"><a href="http://www.howtotex.com/other/graphics-related-posts-on-latex-community/">Read more</a></div>]]></description>
				<content:encoded><![CDATA[<p>You probably know the largest LaTeX community on the web: <a href="http://www.latex-community.org/" title="LaTeX community" target="_blank">LaTeX-community.org</a> by Sven Wiegand and Stefan Kottwitz. There is a large forum there, where a lot of questions are answered every day (also by me). Recently they started a contest, which can be found <a href="http://www.latex-community.org/component/content/article/92-contests/431-gnuplot-book" title="Graphics contest on LaTeX Community" target="_blank">here</a>. In short, it was asked to write a post about graphics in LaTeX. The result? Quite a lot of quality articles. </p>
<p><span id="more-972"></span></p>
<p>I also contributed my part: <a href="http://www.latex-community.org/component/content/article/50-latex-graphics-figures-tables/439-matlab2tikz" title=" Overcoming some flaws with graphics created using matlab2tikz" target="_blank">an article about matlab2tikz</a>. </p>
<p>I wrote this post to inform you about these articles, enjoy!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.howtotex.com/other/graphics-related-posts-on-latex-community/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Reset footnotes counter every page</title>
		<link>http://www.howtotex.com/packages/reset-the-footnotes-counter-every-page/</link>
		<comments>http://www.howtotex.com/packages/reset-the-footnotes-counter-every-page/#comments</comments>
		<pubDate>Thu, 14 Jun 2012 20:31:42 +0000</pubDate>
		<dc:creator>Frits</dc:creator>
				<category><![CDATA[Packages]]></category>
		<category><![CDATA[footnotes]]></category>

		<guid isPermaLink="false">http://www.howtotex.com/?p=964</guid>
		<description><![CDATA[A previous post on this blog explained how to make sure footnotes are placed underneath floats (which is not a standard in LaTeX). This post is written for another trick with footnotes: resetting the footnote counter for every new page. The way this will be done is by making use of the pfnote package, although numerous alternatives exist. The pfnote<div class="readmore"><a href="http://www.howtotex.com/packages/reset-the-footnotes-counter-every-page/">Read more</a></div>]]></description>
				<content:encoded><![CDATA[<p>A previous post on this blog explained <a href="http://www.howtotex.com/packages/float-control-part-3-no-more-floats-underneath-footnotes/" title="Float control part 3: Floats underneath footnotes" target="_blank">how to make sure footnotes are placed underneath floats</a> (which is not a standard in LaTeX). This post is written for another trick with footnotes: resetting the footnote counter for every new page. The way this will be done is by making use of the <a href="http://ctan.org/pkg/pfnote" title="CTAN page for pfnote" target="_blank"><code>pfnote</code></a> package, although numerous alternatives exist.</p>
<p><span id="more-964"></span></p>
<h2>The pfnote package</h2>
<p>Call the package in your preamble with the following line:</p>

<div class="wp_syntax"><table><tr><td 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;">pfnote</span><span style="color: #E02020; ">}</span></pre></td></tr></table></div>

<p>That&#8217;s all!</p>
<h2>Example</h2>
<p>Take a look at the <a href="ftp://ftp.mpi-sb.mpg.de/pub/tex/mirror/ftp.dante.de/pub/tex/macros/latex/contrib/yafoot/yafoot-man.pdf" title="CTAN page for pfnote" target="_blank"><code>pfnote</code></a> documentation, or actually the <code>yafoot</code> documentation as <code>pfnote</code> is part of this bundle. This document uses the package, which is noticeable by the footnotes at every page.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.howtotex.com/packages/reset-the-footnotes-counter-every-page/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Manage your labels with the showkeys package</title>
		<link>http://www.howtotex.com/packages/manage-your-labels-with-the-showkeys-package/</link>
		<comments>http://www.howtotex.com/packages/manage-your-labels-with-the-showkeys-package/#comments</comments>
		<pubDate>Tue, 05 Jun 2012 14:28:45 +0000</pubDate>
		<dc:creator>Frits</dc:creator>
				<category><![CDATA[Packages]]></category>
		<category><![CDATA[label]]></category>
		<category><![CDATA[package]]></category>
		<category><![CDATA[ref]]></category>

		<guid isPermaLink="false">http://www.howtotex.com/?p=944</guid>
		<description><![CDATA[Here&#8217;s another LaTeX trick that might come in handy. With the showkeys package, the labels you&#8217;ve defined are printed in the margins of the document. This way you have a perfect overview of which label is defined where and how they are called. The package affects the following commands: label, ref, pageref, cite and bibitem. An example Let&#8217;s start with<div class="readmore"><a href="http://www.howtotex.com/packages/manage-your-labels-with-the-showkeys-package/">Read more</a></div>]]></description>
				<content:encoded><![CDATA[<p>Here&#8217;s another LaTeX trick that might come in handy. With the <a href="http://ctan.org/pkg/showkeys" title="CTAN page for showkeys" target="_blank"><code>showkeys</code></a> package, the labels you&#8217;ve defined are printed in the margins of the document. This way you have a perfect overview of which label is defined where and how they are called. The package affects the following commands: <code>label</code>, <code>ref</code>, <code>pageref</code>, <code>cite</code> and <code>bibitem</code>.</p>
<p><span id="more-944"></span></p>
<h2>An example</h2>
<p>Let&#8217;s start with an example. Since we will be working with cross-reference, <a href="http://www.howtotex.com/packages/9-essential-latex-packages-everyone-should-use/" title="9 essential LaTeX packages everyone should use" target="_blank">the essential</a> <a href="http://ctan.org/pkg/cleveref" title="CTAN page for cleveref" target="_blank"><code>cleveref</code></a> package will also be used.</p>

<div class="wp_syntax"><table><tr><td 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;"><span style="color: #E02020; ">]{</span><span style="color: #2020C0; font-weight: normal;">article<span style="color: #E02020; ">}</span>
&nbsp;
<span style="color: #E02020; ">\</span><span style="color: #800000;">usepackage</span>[</span><span style="color: #E02020; ">]{</span>showkeys<span style="color: #E02020; ">}</span>
<span style="color: #E02020; ">\</span><span style="color: #800000;">usepackage</span><span style="color: #E02020; ">{</span>cleveref<span style="color: #E02020; ">}</span>
&nbsp;
<span style="color: #C00000; font-weight: normal;">\begin</span><span style="color: #E02020; ">{</span><span style="color: #0000D0; font-weight: normal;">document</span><span style="color: #E02020; ">}</span>
<span style="color: #E02020; ">\</span><span style="color: #800000;">section</span><span style="color: #E02020; ">{</span>First section<span style="color: #E02020; ">}\</span><span style="color: #800000;">label</span><span style="color: #E02020; ">{</span>sec:first<span style="color: #E02020; ">}</span>
&nbsp;
<span style="color: #C00000; font-weight: normal;">\begin</span><span style="color: #E02020; ">{</span><span style="color: #0000D0; font-weight: normal;">equation</span><span style="color: #E02020; ">}</span><span style="color: #8020E0; font-weight: normal;">\<span style="color: #800000;">label</span>{eq:einstein}
	e = mc^{2}
</span><span style="color: #C00000; font-weight: normal;">\end</span><span style="color: #E02020; ">{</span><span style="color: #0000D0; font-weight: normal;">equation</span><span style="color: #E02020; ">}</span>
&nbsp;
In <span style="color: #800000; font-weight: normal;">\cref</span><span style="color: #E02020; ">{</span>sec:first<span style="color: #E02020; ">}</span> on page <span style="color: #800000; font-weight: normal;">\pageref</span><span style="color: #E02020; ">{</span>sec:first<span style="color: #E02020; ">}</span> we 
find the famous Einstein equation (<span style="color: #800000; font-weight: normal;">\cref</span><span style="color: #E02020; ">{</span>eq:einstein<span style="color: #E02020; ">}</span>).
<span style="color: #C00000; font-weight: normal;">\end</span><span style="color: #E02020; ">{</span><span style="color: #0000D0; font-weight: normal;">document</span></span><span style="color: #E02020; ">}</span></pre></td></tr></table></div>

<p>This shouldn&#8217;t be all to hard to understand. A <code>section</code> is created and labelled, as well as an equation. Then, cross-references are made to these labels. The empty square brackets in <code>\usepackage[]{showkeys}</code> are there because we will be discussing some of the package options later. For now, create a LaTeX document just like this and notice that the labels are printed in the page margins. You should be seeing <strong>this</strong>.</p>
<h2>Package options</h2>
<p>By default, the <em>label keys</em> are shown in the margin. In order to suppress them, add the <code>final</code> option:</p>

<div class="wp_syntax"><table><tr><td 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;">final</span><span style="color: #E02020; ">]{</span><span style="color: #2020C0; font-weight: normal;">showkeys</span><span style="color: #E02020; ">}</span></pre></td></tr></table></div>

<p>The options <code>notref</code> and <code>notcite</code> stop the package from redefining the normal cross-references and citations, respectively.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.howtotex.com/packages/manage-your-labels-with-the-showkeys-package/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
