<?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>Absolutely useless</title>
	<atom:link href="http://absolutelyuseless.net/feed/" rel="self" type="application/rss+xml" />
	<link>http://absolutelyuseless.net</link>
	<description>nothing useful</description>
	<lastBuildDate>Thu, 29 Sep 2011 16:15:21 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Spanning columns and rows in LaTeX</title>
		<link>http://absolutelyuseless.net/2011/09/07/spanning-columns-and-rows-i-latex/</link>
		<comments>http://absolutelyuseless.net/2011/09/07/spanning-columns-and-rows-i-latex/#comments</comments>
		<pubDate>Wed, 07 Sep 2011 18:07:48 +0000</pubDate>
		<dc:creator>bjornarg</dc:creator>
				<category><![CDATA[latex]]></category>
		<category><![CDATA[colspan]]></category>
		<category><![CDATA[multicolumn]]></category>
		<category><![CDATA[multirow]]></category>
		<category><![CDATA[rowspan]]></category>

		<guid isPermaLink="false">http://absolutelyuseless.net/?p=13</guid>
		<description><![CDATA[This article was originally from nithia.net that I decided to shut down since I had stopped developing it. However, this was a very popular article that I decided to keep. The article describes how you create table cells that spans &#8230; <a href="http://absolutelyuseless.net/2011/09/07/spanning-columns-and-rows-i-latex/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><em>This article was originally from nithia.net that I decided to shut down since I had stopped developing it. However, this was a very popular article that I decided to keep.</em></p>
<p>The article describes how you create table cells that spans columns or rows in LaTeX, the LaTeX equivalent of colspan and rowspan in HTML.</p>
<h1>Multirow</h1>
<p>To be able to do this you need a package called multirow. The commands you use to create spanning cells are <code>\multirow</code> and <code>\multicolumn</code>.</p>
<h2>\multirow usage</h2>
<p>This command accepts three arguments: The number of rows the cell should span, the width of the cell itself and the content of the cell. You give the arguments like this: <code>\multirow{number of rows}{width}{content}</code>.</p>
<p>You don&#8217;t have to set a specific width for the cell, but can let LaTeX determine a good size by passing an asterix (*) as the width argument.</p>
<p><strong>PS:</strong> When you use <code>\multirow</code> you have to make sure that you don&#8217;t fill the cells in the next rows you&#8217;re spanning with content.</p>
<h2>\multicolumn usage</h2>
<p>Like <code>\multirow</code>, <code>\multicolumn</code> takes three arguments, but they&#8217;re not quite the same. The arguments it takes are: Number of columns to span, placement of the content within the cell and the content of the cell. Use it like this: <code>\multicolumn{number of columns}{placement}{content}</code>.</p>
<pre>\begin{tabular}{|l|l|r|}
  \hline
  \multicolumn{3}{|c|}{Cell spanning three columns} \\
  \hline
  \multirow{2}{*}{Cell spanning two rows}  &amp; Cells  &amp; being \\
      &amp; spanned &amp; here \\
  \hline
\end{tabular}</pre>
<p>Note that the row after <code>\multirow</code> is used starts with a &amp;, basically leaving the first cell blank. This is necessary since the content of this cell is already covered by the \multirow command above. If the cell spanning multiple rows is not the first you will obviously have to leave an empty cell where applicable in your table.</p>
]]></content:encoded>
			<wfw:commentRss>http://absolutelyuseless.net/2011/09/07/spanning-columns-and-rows-i-latex/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

