<?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>macouno.com &#187; HTML</title>
	<atom:link href="http://www.macouno.com/tag/html/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.macouno.com</link>
	<description>The shenanigans of Dolf J. Veenvliet</description>
	<lastBuildDate>Tue, 07 Sep 2010 12:15:09 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Making a category based menu with posts in wordpress 2.9.2</title>
		<link>http://www.macouno.com/2010/05/23/making-a-category-based-menu-with-posts-in-wordpress-2-9-2/</link>
		<comments>http://www.macouno.com/2010/05/23/making-a-category-based-menu-with-posts-in-wordpress-2-9-2/#comments</comments>
		<pubDate>Sun, 23 May 2010 09:07:32 +0000</pubDate>
		<dc:creator>Dolf Veenvliet</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[Php]]></category>
		<category><![CDATA[Web development]]></category>

		<guid isPermaLink="false">http://www.macouno.com/?p=800</guid>
		<description><![CDATA[I was not entirely happy with the way wordpress handles menus for this (my own) website. I like the idea of making all the content posts so they&#8217;re bound to a date and such. Then I&#8217;d like to see them in the menu based on the category they&#8217;re in. There are category menus, and even [...]]]></description>
			<content:encoded><![CDATA[<p>I was not entirely happy with the way wordpress handles menus for this (my own) website. I like the idea of making all the content posts so they&#8217;re bound to a date and such. Then I&#8217;d like to see them in the menu based on the category they&#8217;re in. There are category menus, and even nice folding ones, but I couldn&#8217;t find one that displays all the posts per category in a nice way.</p>
<p>So I decided to hack one in myself. It&#8217;s a very nasty hack&#8230; and I just put a bunch of code in the sidebar.php of my template. But that said&#8230; it works and I now have a menu that does what I want.</p>
<p><strong>If you&#8217;d like to use this&#8230; just remember it&#8217;s a great big bad hack and very inefficient!</strong></p>
<p>Here&#8217;s the html/php code I added to my template&#8217;s sidebar.php:</p>
<div class="code"><pre class="php"><ol><li class="li1"><div class="de1"><span class="co1">// Get the id of the current post so we can give it a &quot;current&quot; class later.</span></div></li><li class="li1"><div class="de1"><span class="re0">$postid</span> = <span class="re0">$post</span>-&gt;<span class="me1">ID</span>;</div></li><li class="li1"><div class="de1">&nbsp;</div></li><li class="li1"><div class="de1"><span class="co1">// Arguments for getting all the categories</span></div></li><li class="li1"><div class="de1"><span class="re0">$args</span> = <span class="kw3">array</span><span class="br0">&#40;</span></div></li><li class="li1"><div class="de1"><span class="st0">'show_option_all'</span> &nbsp; &nbsp;=&gt; <span class="st0">''</span>,</div></li><li class="li1"><div class="de1"><span class="st0">'orderby'</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;=&gt; <span class="st0">'name'</span>,</div></li><li class="li1"><div class="de1"><span class="st0">'order'</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;=&gt; <span class="st0">'ASC'</span>,</div></li><li class="li1"><div class="de1"><span class="st0">'show_last_update'</span> &nbsp; =&gt; <span class="nu0">0</span>,</div></li><li class="li1"><div class="de1"><span class="st0">'style'</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;=&gt; <span class="st0">'list'</span>,</div></li><li class="li1"><div class="de1"><span class="st0">'show_count'</span> &nbsp; &nbsp; &nbsp; &nbsp; =&gt; <span class="nu0">0</span>,</div></li><li class="li1"><div class="de1"><span class="st0">'hide_empty'</span> &nbsp; &nbsp; &nbsp; &nbsp; =&gt; <span class="nu0">1</span>,</div></li><li class="li1"><div class="de1"><span class="st0">'use_desc_for_title'</span> =&gt; <span class="nu0">0</span>,</div></li><li class="li1"><div class="de1"><span class="st0">'child_of'</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; =&gt; <span class="nu0">0</span>,</div></li><li class="li1"><div class="de1"><span class="st0">'feed'</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; =&gt; <span class="st0">''</span>,</div></li><li class="li1"><div class="de1"><span class="st0">'feed_type'</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;=&gt; <span class="st0">''</span>,</div></li><li class="li1"><div class="de1"><span class="st0">'feed_image'</span> &nbsp; &nbsp; &nbsp; &nbsp; =&gt; <span class="st0">''</span>,</div></li><li class="li1"><div class="de1"><span class="st0">'exclude'</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;=&gt; <span class="st0">''</span>,</div></li><li class="li1"><div class="de1"><span class="st0">'exclude_tree'</span> &nbsp; &nbsp; &nbsp; =&gt; <span class="st0">''</span>,</div></li><li class="li1"><div class="de1"><span class="st0">'include'</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;=&gt; <span class="st0">''</span>,</div></li><li class="li1"><div class="de1"><span class="st0">'hierarchical'</span> &nbsp; &nbsp; &nbsp; =&gt; <span class="kw2">true</span>,</div></li><li class="li1"><div class="de1"><span class="st0">'title_li'</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; =&gt; <span class="st0">''</span>,</div></li><li class="li1"><div class="de1"><span class="st0">'number'</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; =&gt; <span class="kw2">NULL</span>,</div></li><li class="li1"><div class="de1"><span class="st0">'echo'</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; =&gt; <span class="nu0">0</span>,</div></li><li class="li1"><div class="de1"><span class="st0">'depth'</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;=&gt; <span class="nu0">0</span>,</div></li><li class="li1"><div class="de1"><span class="st0">'current_category'</span> &nbsp; =&gt; <span class="nu0">1</span>,</div></li><li class="li1"><div class="de1"><span class="st0">'pad_counts'</span> &nbsp; &nbsp; &nbsp; &nbsp; =&gt; <span class="nu0">0</span>,</div></li><li class="li1"><div class="de1"><span class="st0">'taxonomy'</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; =&gt; <span class="st0">'category'</span> <span class="br0">&#41;</span>;</div></li><li class="li1"><div class="de1">&nbsp;</div></li><li class="li1"><div class="de1"><span class="co1">// Get all categories (in a silly html menu)</span></div></li><li class="li1"><div class="de1"><span class="re0">$catmenu</span> = wp_list_categories<span class="br0">&#40;</span> <span class="re0">$args</span> <span class="br0">&#41;</span>;</div></li><li class="li1"><div class="de1">&nbsp;</div></li><li class="li1"><div class="de1"><span class="co1">// Split the menu to get all categories sepparately</span></div></li><li class="li1"><div class="de1"><span class="re0">$cats</span> = <span class="kw3">split</span><span class="br0">&#40;</span><span class="st0">'</span></div></li><li class="li1"><div class="de1"><span class="st0">&lt;li class=&quot;cat-item cat-item-'</span>, <span class="re0">$catmenu</span><span class="br0">&#41;</span>;</div></li><li class="li1"><div class="de1">&nbsp;</div></li><li class="li1"><div class="de1"><span class="re0">$catmenu</span> = <span class="st0">''</span>;</div></li><li class="li1"><div class="de1">&nbsp;</div></li><li class="li1"><div class="de1"><span class="co1">// Loop through the categories.</span></div></li><li class="li1"><div class="de1"><span class="kw1">foreach</span><span class="br0">&#40;</span><span class="re0">$cats</span> <span class="kw1">as</span> <span class="re0">$key</span> =&gt; <span class="re0">$cat</span><span class="br0">&#41;</span><span class="br0">&#123;</span></div></li><li class="li1"><div class="de1">&nbsp;</div></li><li class="li1"><div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; <span class="re0">$current</span> = <span class="st0">''</span>;</div></li><li class="li1"><div class="de1">&nbsp;</div></li><li class="li1"><div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; <span class="co1">// Get the code and html sepparately</span></div></li><li class="li1"><div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; <span class="kw3">list</span><span class="br0">&#40;</span><span class="re0">$id</span>, <span class="re0">$code</span><span class="br0">&#41;</span> = <span class="kw3">split</span><span class="br0">&#40;</span><span class="st0">'&quot;&gt;&lt;a'</span>, <span class="re0">$cat</span><span class="br0">&#41;</span>;</div></li><li class="li1"><div class="de1">&nbsp;</div></li><li class="li1"><div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; <span class="co1">// Make sure they're there.</span></div></li><li class="li1"><div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">if</span><span class="br0">&#40;</span><span class="re0">$id</span> &amp;&amp; <span class="re0">$code</span><span class="br0">&#41;</span><span class="br0">&#123;</span></div></li><li class="li1"><div class="de1">&nbsp;</div></li><li class="li1"><div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="co1">// If this is the current category, then remove that text and remember for later</span></div></li><li class="li1"><div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">if</span><span class="br0">&#40;</span><span class="kw3">strpos</span><span class="br0">&#40;</span><span class="re0">$id</span>, <span class="st0">' current-cat'</span><span class="br0">&#41;</span> !== <span class="kw2">False</span><span class="br0">&#41;</span><span class="br0">&#123;</span></div></li><li class="li1"><div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="re0">$current</span> = <span class="st0">' current-cat'</span>;</div></li><li class="li1"><div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="re0">$id</span> = <span class="kw3">str_replace</span><span class="br0">&#40;</span><span class="st0">' current-cat'</span>, <span class="st0">''</span>, <span class="re0">$id</span><span class="br0">&#41;</span>;</div></li><li class="li1"><div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="br0">&#125;</span></div></li><li class="li1"><div class="de1">&nbsp;</div></li><li class="li1"><div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="co1">// In case we got an id... and this category doesn't have sub categories.</span></div></li><li class="li1"><div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">if</span><span class="br0">&#40;</span><span class="kw3">is_numeric</span><span class="br0">&#40;</span><span class="re0">$id</span><span class="br0">&#41;</span> &amp;&amp; <span class="kw3">strpos</span><span class="br0">&#40;</span><span class="re0">$code</span>, <span class="st0">&quot;</span></div></li><li class="li1"><div class="de1"><span class="st0">&lt;ul class='children'&gt;&quot;</span><span class="br0">&#41;</span> === <span class="kw2">False</span><span class="br0">&#41;</span><span class="br0">&#123;</span></div></li><li class="li1"><div class="de1">&nbsp;</div></li><li class="li1"><div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="co1">// Arguments for getting the categorie's posts</span></div></li><li class="li1"><div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="re0">$args</span> = <span class="kw3">array</span><span class="br0">&#40;</span></div></li><li class="li1"><div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="st0">'post_type'</span> =&gt; <span class="st0">'post'</span>,</div></li><li class="li1"><div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="st0">'post_status'</span> =&gt; <span class="st0">'published'</span>,</div></li><li class="li1"><div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="st0">'numberposts'</span> =&gt; <span class="nu0">-1</span>,</div></li><li class="li1"><div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="st0">'category'</span> =&gt; <span class="re0">$id</span></div></li><li class="li1"><div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="br0">&#41;</span>; </div></li><li class="li1"><div class="de1">&nbsp;</div></li><li class="li1"><div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="co1">// Get the posts</span></div></li><li class="li1"><div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span class="re0">$myposts</span> = get_posts<span class="br0">&#40;</span><span class="re0">$args</span><span class="br0">&#41;</span>;</div></li><li class="li1"><div class="de1">&nbsp;</div></li><li class="li1"><div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span class="co1">// If we got any posts returned</span></div></li><li class="li1"><div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span class="kw1">if</span><span class="br0">&#40;</span><span class="kw3">count</span><span class="br0">&#40;</span><span class="re0">$myposts</span><span class="br0">&#41;</span><span class="br0">&#41;</span><span class="br0">&#123;</span></div></li><li class="li1"><div class="de1">&nbsp;</div></li><li class="li1"><div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="co1">// Start a nice html post list</span></div></li><li class="li1"><div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="re0">$postlist</span> = <span class="st0">&quot;<span class="es0">\n</span>&quot;</span>.<span class="st0">'</span></div></li><li class="li1"><div class="de1"><span class="st0">&lt;ul class=&quot;posts&quot;&gt;'</span>;</div></li><li class="li1"><div class="de1">&nbsp;</div></li><li class="li1"><div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="co1">// Check east post to see if it's current and add to the html</span></div></li><li class="li1"><div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span class="kw1">foreach</span><span class="br0">&#40;</span><span class="re0">$myposts</span> <span class="kw1">as</span> <span class="re0">$post</span><span class="br0">&#41;</span> <span class="br0">&#123;</span></div></li><li class="li1"><div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="re0">$current_post</span> = <span class="st0">''</span>;</div></li><li class="li1"><div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">if</span><span class="br0">&#40;</span><span class="re0">$postid</span> == <span class="re0">$post</span>-&gt;<span class="me1">ID</span><span class="br0">&#41;</span><span class="br0">&#123;</span></div></li><li class="li1"><div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="re0">$current_post</span> = <span class="st0">' class=&quot;current-post&quot;'</span>;</div></li><li class="li1"><div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="re0">$current</span> = <span class="st0">' current-cat'</span>;</div></li><li class="li1"><div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="br0">&#125;</span></div></li><li class="li1"><div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="re0">$postlist</span> .= <span class="st0">&quot;<span class="es0">\n</span>&quot;</span>.<span class="st0">'</span></div></li><li class="li1"><div class="de1"><span class="st0">&lt;li'</span>.<span class="re0">$current_post</span>.<span class="st0">'&gt;&lt;a href=&quot;'</span>.get_permalink<span class="br0">&#40;</span><span class="re0">$post</span>-&gt;<span class="me1">ID</span><span class="br0">&#41;</span>.<span class="st0">'&quot;&gt;'</span>.<span class="re0">$post</span>-&gt;<span class="me1">post_title</span>.<span class="st0">'&lt;/a&gt;&lt;/li&gt;</span></div></li><li class="li1"><div class="de1">&nbsp;</div></li><li class="li1"><div class="de1"><span class="st0">'</span>;</div></li><li class="li1"><div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span class="br0">&#125;</span></div></li><li class="li1"><div class="de1">&nbsp;</div></li><li class="li1"><div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span class="re0">$postlist</span> .= <span class="st0">&quot;<span class="es0">\n</span>&quot;</span>.<span class="st0">'&lt;/ul&gt;</span></div></li><li class="li1"><div class="de1">&nbsp;</div></li><li class="li1"><div class="de1"><span class="st0">'</span>;</div></li><li class="li1"><div class="de1">&nbsp;</div></li><li class="li1"><div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="co1">// Add the post list to the code of the current category</span></div></li><li class="li1"><div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="re0">$code</span> = <span class="kw3">str_replace</span><span class="br0">&#40;</span><span class="st0">'&lt;/a&gt;'</span>, <span class="st0">'&lt;/a&gt;'</span>.<span class="re0">$postlist</span>, <span class="re0">$code</span><span class="br0">&#41;</span>;</div></li><li class="li1"><div class="de1">&nbsp;</div></li><li class="li1"><div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="br0">&#125;</span></div></li><li class="li1"><div class="de1">&nbsp;</div></li><li class="li1"><div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="br0">&#125;</span></div></li><li class="li1"><div class="de1">&nbsp;</div></li><li class="li1"><div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="co1">// Put everything that was split before back together</span></div></li><li class="li1"><div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="re0">$cat</span> = <span class="st0">'</span></div></li><li class="li1"><div class="de1"><span class="st0">&lt;li class=&quot;cat-item cat-item-'</span>.<span class="re0">$id</span>.<span class="re0">$current</span>.<span class="st0">'&quot;&gt;&lt;a'</span>.<span class="re0">$code</span>;</div></li><li class="li1"><div class="de1">&nbsp;</div></li><li class="li1"><div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; <span class="br0">&#125;</span></div></li><li class="li1"><div class="de1">&nbsp;</div></li><li class="li1"><div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; <span class="co1">// Add back into the complete category menu</span></div></li><li class="li1"><div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; <span class="re0">$catmenu</span> .= <span class="re0">$cat</span>;</div></li><li class="li1"><div class="de1"><span class="br0">&#125;</span></div></li><li class="li1"><div class="de1">&nbsp;</div></li><li class="li1"><div class="de1"><span class="co1">// Print out the category menu</span></div></li><li class="li1"><div class="de1"><span class="kw3">echo</span> <span class="st0">'</span></div></li><li class="li1"><div class="de1"><span class="st0">&lt;li id=&quot;menu&quot;&gt;</span></div></li><li class="li1"><div class="de1"><span class="st0">&lt;ul&gt;'</span>.<span class="re0">$catmenu</span>.<span class="st0">'&lt;/ul&gt;</span></div></li><li class="li1"><div class="de1"><span class="st0">&lt;/li&gt;</span></div></li><li class="li1"><div class="de1">&nbsp;</div></li><li class="li1"><div class="de1"><span class="st0">'</span>;</div></li></ol></pre></div><p><a href="javascript: void(0);" class="showpre">Display clean php code for copying</a></p><pre class="php">// Get the id of the current post so we can give it a "current" class later.
$postid = $post->ID;

// Arguments for getting all the categories
$args = array(
'show_option_all'    => '',
'orderby'            => 'name',
'order'              => 'ASC',
'show_last_update'   => 0,
'style'              => 'list',
'show_count'         => 0,
'hide_empty'         => 1,
'use_desc_for_title' => 0,
'child_of'           => 0,
'feed'               => '',
'feed_type'          => '',
'feed_image'         => '',
'exclude'            => '',
'exclude_tree'       => '',
'include'            => '',
'hierarchical'       => true,
'title_li'           => '',
'number'             => NULL,
'echo'               => 0,
'depth'              => 0,
'current_category'   => 1,
'pad_counts'         => 0,
'taxonomy'           => 'category' );

// Get all categories (in a silly html menu)
$catmenu = wp_list_categories( $args );

// Split the menu to get all categories sepparately
$cats = split('
<li class="cat-item cat-item-', $catmenu);

$catmenu = '';

// Loop through the categories.
foreach($cats as $key => $cat){

	$current = '';

	// Get the code and html sepparately
	list($id, $code) = split('"><a', $cat);

	// Make sure they're there.
	if($id &#038;&#038; $code){

		// If this is the current category, then remove that text and remember for later
		if(strpos($id, ' current-cat') !== False){
			$current = ' current-cat';
			$id = str_replace(' current-cat', '', $id);
		}

		// In case we got an id... and this category doesn't have sub categories.
		if(is_numeric($id) &#038;&#038; strpos($code, "
<ul class='children'>") === False){

			// Arguments for getting the categorie's posts
			$args = array(
				'post_type' => 'post',
				'post_status' => 'published',
				'numberposts' => -1,
				'category' => $id
				); 

			// Get the posts
			 $myposts = get_posts($args);

			 // If we got any posts returned
			 if(count($myposts)){

				// Start a nice html post list
				$postlist = "\n".'
<ul class="posts">';

				// Check east post to see if it's current and add to the html
				 foreach($myposts as $post) {
					$current_post = '';
					if($postid == $post->ID){
						$current_post = ' class="current-post"';
						$current = ' current-cat';
					}
					$postlist .= "\n".'
<li'.$current_post.'><a href="'.get_permalink($post->ID).'">'.$post->post_title.'</a></li>

';
				 }

				 $postlist .= "\n".'</ul>

';

				// Add the post list to the code of the current category
				$code = str_replace('</a>', '</a>'.$postlist, $code);

			}

		}

		// Put everything that was split before back together
		$cat = '
<li class="cat-item cat-item-'.$id.$current.'"><a'.$code;

	}

	// Add back into the complete category menu
	$catmenu .= $cat;
}

// Print out the category menu
echo '
<li id="menu">
<ul>'.$catmenu.'</ul>
</li>

';</pre>
<p>And here is the javascript code I added to my template&#8217;s header.php:</p>
<div class="code"><pre class="javascript"><ol><li class="li1"><div class="de1"><span class="co1">// Initialise javascript functions using jquery</span></div></li><li class="li1"><div class="de1">jQuery<span class="br0">&#40;</span>document<span class="br0">&#41;</span>.<span class="me1">ready</span><span class="br0">&#40;</span><span class="kw2">function</span><span class="br0">&#40;</span><span class="br0">&#41;</span><span class="br0">&#123;</span></div></li><li class="li1"><div class="de1">&nbsp;</div></li><li class="li1"><div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; initMenu<span class="br0">&#40;</span><span class="br0">&#41;</span>;</div></li><li class="li1"><div class="de1">&nbsp;</div></li><li class="li1"><div class="de1"><span class="br0">&#125;</span><span class="br0">&#41;</span>;</div></li><li class="li1"><div class="de1">&nbsp;</div></li><li class="li1"><div class="de1"><span class="co1">// Start the menu functionality</span></div></li><li class="li1"><div class="de1"><span class="kw2">function</span> initMenu<span class="br0">&#40;</span><span class="br0">&#41;</span><span class="br0">&#123;</span></div></li><li class="li1"><div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; <span class="co1">// Hide all the submenus by default</span></div></li><li class="li1"><div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; jQuery<span class="br0">&#40;</span><span class="st0">'#menu ul ul'</span><span class="br0">&#41;</span>.<span class="me1">hide</span><span class="br0">&#40;</span><span class="br0">&#41;</span>;</div></li><li class="li1"><div class="de1">&nbsp;</div></li><li class="li1"><div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; <span class="co1">// Find the current post and make sure all the categories it's in are also &quot;current&quot;, then show their kids.</span></div></li><li class="li1"><div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; jQuery<span class="br0">&#40;</span><span class="st0">'#menu .current-post'</span><span class="br0">&#41;</span>.<span class="me1">parents</span><span class="br0">&#40;</span><span class="st0">'li[id!=menu]'</span><span class="br0">&#41;</span>.<span class="me1">addClass</span><span class="br0">&#40;</span><span class="st0">'current-cat'</span><span class="br0">&#41;</span>.<span class="me1">children</span><span class="br0">&#40;</span><span class="st0">'ul'</span><span class="br0">&#41;</span>.<span class="me1">show</span><span class="br0">&#40;</span><span class="br0">&#41;</span>;</div></li><li class="li1"><div class="de1">&nbsp;</div></li><li class="li1"><div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; <span class="co1">// Replace the click event of all category menu items except for &quot;news&quot;</span></div></li><li class="li1"><div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; <span class="co1">// In stead make them fold down and up the sub menu</span></div></li><li class="li1"><div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; jQuery<span class="br0">&#40;</span><span class="st0">'#menu a'</span><span class="br0">&#41;</span>.<span class="me1">click</span><span class="br0">&#40;</span><span class="kw2">function</span><span class="br0">&#40;</span>event<span class="br0">&#41;</span><span class="br0">&#123;</span></div></li><li class="li1"><div class="de1">&nbsp;</div></li><li class="li1"><div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; thisItem = jQuery<span class="br0">&#40;</span><span class="kw1">this</span><span class="br0">&#41;</span>;</div></li><li class="li1"><div class="de1">&nbsp;</div></li><li class="li1"><div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; childList = thisItem.<span class="me1">siblings</span><span class="br0">&#40;</span><span class="st0">'ul'</span><span class="br0">&#41;</span>;</div></li><li class="li1"><div class="de1">&nbsp;</div></li><li class="li1"><div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">if</span><span class="br0">&#40;</span>childList.<span class="me1">length</span><span class="br0">&#41;</span><span class="br0">&#123;</span></div></li><li class="li1"><div class="de1">&nbsp;</div></li><li class="li1"><div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">if</span><span class="br0">&#40;</span>!<span class="br0">&#40;</span>thisItem.<span class="me1">html</span><span class="br0">&#40;</span><span class="br0">&#41;</span> == <span class="st0">'News'</span> &amp;&amp; childList.<span class="kw1">is</span><span class="br0">&#40;</span><span class="st0">':hidden'</span><span class="br0">&#41;</span><span class="br0">&#41;</span><span class="br0">&#41;</span><span class="br0">&#123;</span></div></li><li class="li1"><div class="de1">&nbsp;</div></li><li class="li1"><div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; event.<span class="me1">preventDefault</span><span class="br0">&#40;</span><span class="br0">&#41;</span>;</div></li><li class="li1"><div class="de1">&nbsp;</div></li><li class="li1"><div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">if</span><span class="br0">&#40;</span>childList.<span class="kw1">is</span><span class="br0">&#40;</span><span class="st0">':hidden'</span><span class="br0">&#41;</span><span class="br0">&#41;</span><span class="br0">&#123;</span></div></li><li class="li1"><div class="de1">&nbsp;</div></li><li class="li1"><div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; thisItem.<span class="me1">addClass</span><span class="br0">&#40;</span><span class="st0">'clicked'</span><span class="br0">&#41;</span>;</div></li><li class="li1"><div class="de1">&nbsp;</div></li><li class="li1"><div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; childList.<span class="me1">slideDown</span><span class="br0">&#40;</span><span class="st0">'fast'</span><span class="br0">&#41;</span>;</div></li><li class="li1"><div class="de1">&nbsp;</div></li><li class="li1"><div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; jQuery<span class="br0">&#40;</span><span class="st0">'#menu ul:visible'</span><span class="br0">&#41;</span>.<span class="me1">each</span><span class="br0">&#40;</span><span class="kw2">function</span><span class="br0">&#40;</span><span class="br0">&#41;</span><span class="br0">&#123;</span></div></li><li class="li1"><div class="de1">&nbsp;</div></li><li class="li1"><div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">if</span><span class="br0">&#40;</span>!<span class="br0">&#40;</span>jQuery<span class="br0">&#40;</span><span class="st0">'.clicked'</span>, <span class="kw1">this</span><span class="br0">&#41;</span>.<span class="me1">length</span> || jQuery<span class="br0">&#40;</span><span class="kw1">this</span><span class="br0">&#41;</span>.<span class="me1">siblings</span><span class="br0">&#40;</span><span class="st0">'.clicked'</span><span class="br0">&#41;</span>.<span class="me1">length</span><span class="br0">&#41;</span><span class="br0">&#41;</span><span class="br0">&#123;</span></div></li><li class="li1"><div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; jQuery<span class="br0">&#40;</span><span class="kw1">this</span><span class="br0">&#41;</span>.<span class="me1">slideUp</span><span class="br0">&#40;</span><span class="st0">'fast'</span><span class="br0">&#41;</span>;</div></li><li class="li1"><div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="br0">&#125;</span></div></li><li class="li1"><div class="de1">&nbsp;</div></li><li class="li1"><div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="br0">&#125;</span><span class="br0">&#41;</span>;</div></li><li class="li1"><div class="de1">&nbsp;</div></li><li class="li1"><div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; thisItem.<span class="me1">removeClass</span><span class="br0">&#40;</span><span class="st0">'clicked'</span><span class="br0">&#41;</span>;</div></li><li class="li1"><div class="de1">&nbsp;</div></li><li class="li1"><div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="br0">&#125;</span><span class="kw1">else</span><span class="br0">&#123;</span></div></li><li class="li1"><div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; childList.<span class="me1">slideUp</span><span class="br0">&#40;</span><span class="st0">'fast'</span><span class="br0">&#41;</span>;</div></li><li class="li1"><div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="br0">&#125;</span></div></li><li class="li1"><div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="br0">&#125;</span></div></li><li class="li1"><div class="de1">&nbsp;</div></li><li class="li1"><div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="br0">&#125;</span></div></li><li class="li1"><div class="de1">&nbsp;</div></li><li class="li1"><div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; <span class="br0">&#125;</span><span class="br0">&#41;</span>;</div></li><li class="li1"><div class="de1"><span class="br0">&#125;</span></div></li></ol></pre></div><p><a href="javascript: void(0);" class="showpre">Display clean javascript code for copying</a></p><pre class="javascript">// Initialise javascript functions using jquery
jQuery(document).ready(function(){

	initMenu();

});

// Start the menu functionality
function initMenu(){
	// Hide all the submenus by default
	jQuery('#menu ul ul').hide();

	// Find the current post and make sure all the categories it's in are also "current", then show their kids.
	jQuery('#menu .current-post').parents('li[id!=menu]').addClass('current-cat').children('ul').show();

	// Replace the click event of all category menu items except for "news"
	// In stead make them fold down and up the sub menu
	jQuery('#menu a').click(function(event){

		thisItem = jQuery(this);

		childList = thisItem.siblings('ul');

		if(childList.length){

			if(!(thisItem.html() == 'News' &#038;&#038; childList.is(':hidden'))){

				event.preventDefault();

				if(childList.is(':hidden')){

					thisItem.addClass('clicked');

					childList.slideDown('fast');

					jQuery('#menu ul:visible').each(function(){

						if(!(jQuery('.clicked', this).length || jQuery(this).siblings('.clicked').length)){
							jQuery(this).slideUp('fast');
						}

					});

					thisItem.removeClass('clicked');

				}else{
					childList.slideUp('fast');
				}
			}

		}

	});
}</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.macouno.com/2010/05/23/making-a-category-based-menu-with-posts-in-wordpress-2-9-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Html symbols</title>
		<link>http://www.macouno.com/2010/03/17/html-symbols/</link>
		<comments>http://www.macouno.com/2010/03/17/html-symbols/#comments</comments>
		<pubDate>Wed, 17 Mar 2010 18:40:27 +0000</pubDate>
		<dc:creator>Dolf Veenvliet</dc:creator>
				<category><![CDATA[Other]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[Web development]]></category>

		<guid isPermaLink="false">http://www.macouno.com/?p=417</guid>
		<description><![CDATA[





Character
Entity
Decimal
Hex
Rendering in Your Browser


Entity
Decimal
Hex




Latin small f with hook = function = florin
&#38;fnof;
&#38;#402;
&#38;#x192;
&#402;
&#402;
&#x192;


Greek capital letter alpha
&#38;Alpha;
&#38;#913;
&#38;#x391;
&#913;
&#913;
&#x391;


Greek capital letter beta
&#38;Beta;
&#38;#914;
&#38;#x392;
&#914;
&#914;
&#x392;


Greek capital letter gamma
&#38;Gamma;
&#38;#915;
&#38;#x393;
&#915;
&#915;
&#x393;


Greek capital letter delta
&#38;Delta;
&#38;#916;
&#38;#x394;
&#916;
&#916;
&#x394;


Greek capital letter epsilon
&#38;Epsilon;
&#38;#917;
&#38;#x395;
&#917;
&#917;
&#x395;


Greek capital letter zeta
&#38;Zeta;
&#38;#918;
&#38;#x396;
&#918;
&#918;
&#x396;


Greek capital letter eta
&#38;Eta;
&#38;#919;
&#38;#x397;
&#919;
&#919;
&#x397;


Greek capital letter theta
&#38;Theta;
&#38;#920;
&#38;#x398;
&#920;
&#920;
&#x398;


Greek capital letter iota
&#38;Iota;
&#38;#921;
&#38;#x399;
&#921;
&#921;
&#x399;


Greek capital letter kappa
&#38;Kappa;
&#38;#922;
&#38;#x39A;
&#922;
&#922;
&#x39A;


Greek capital letter lambda
&#38;Lambda;
&#38;#923;
&#38;#x39B;
&#923;
&#923;
&#x39B;


Greek capital letter mu
&#38;Mu;
&#38;#924;
&#38;#x39C;
&#924;
&#924;
&#x39C;


Greek capital letter nu
&#38;Nu;
&#38;#925;
&#38;#x39D;
&#925;
&#925;
&#x39D;


Greek capital letter xi
&#38;Xi;
&#38;#926;
&#38;#x39E;
&#926;
&#926;
&#x39E;


Greek capital [...]]]></description>
			<content:encoded><![CDATA[<table border="1" align="center" width="100%" cellspacing="0" cellpadding="5">
<colgroup>
<colgroup class=entity span=3>
<colgroup class=entity span=3>
<thead>
<tr>
<th scope="col" rowspan=2>Character</th>
<th scope="col" rowspan=2>Entity</th>
<th scope="col" rowspan=2>Decimal</th>
<th scope="col" rowspan=2>Hex</th>
<th scope="col"group colspan=3>Rendering in Your Browser</th>
</tr>
<tr>
<th scope="col">Entity</th>
<th scope="col">Decimal</th>
<th scope="col">Hex</th>
</tr>
</thead>
<tbody>
<tr>
<td scope="row">Latin small f with hook = function = florin</td>
<td>&amp;fnof;</td>
<td>&amp;#402;</td>
<td>&amp;#x192;</td>
<td>&fnof;</td>
<td>&#402;</td>
<td>&#x192;</td>
</tr>
<tr>
<td scope="row">Greek capital letter alpha</td>
<td>&amp;Alpha;</td>
<td>&amp;#913;</td>
<td>&amp;#x391;</td>
<td>&Alpha;</td>
<td>&#913;</td>
<td>&#x391;</td>
</tr>
<tr>
<td scope="row">Greek capital letter beta</td>
<td>&amp;Beta;</td>
<td>&amp;#914;</td>
<td>&amp;#x392;</td>
<td>&Beta;</td>
<td>&#914;</td>
<td>&#x392;</td>
</tr>
<tr>
<td scope="row">Greek capital letter gamma</td>
<td>&amp;Gamma;</td>
<td>&amp;#915;</td>
<td>&amp;#x393;</td>
<td>&Gamma;</td>
<td>&#915;</td>
<td>&#x393;</td>
</tr>
<tr>
<td scope="row">Greek capital letter delta</td>
<td>&amp;Delta;</td>
<td>&amp;#916;</td>
<td>&amp;#x394;</td>
<td>&Delta;</td>
<td>&#916;</td>
<td>&#x394;</td>
</tr>
<tr>
<td scope="row">Greek capital letter epsilon</td>
<td>&amp;Epsilon;</td>
<td>&amp;#917;</td>
<td>&amp;#x395;</td>
<td>&Epsilon;</td>
<td>&#917;</td>
<td>&#x395;</td>
</tr>
<tr>
<td scope="row">Greek capital letter zeta</td>
<td>&amp;Zeta;</td>
<td>&amp;#918;</td>
<td>&amp;#x396;</td>
<td>&Zeta;</td>
<td>&#918;</td>
<td>&#x396;</td>
</tr>
<tr>
<td scope="row">Greek capital letter eta</td>
<td>&amp;Eta;</td>
<td>&amp;#919;</td>
<td>&amp;#x397;</td>
<td>&Eta;</td>
<td>&#919;</td>
<td>&#x397;</td>
</tr>
<tr>
<td scope="row">Greek capital letter theta</td>
<td>&amp;Theta;</td>
<td>&amp;#920;</td>
<td>&amp;#x398;</td>
<td>&Theta;</td>
<td>&#920;</td>
<td>&#x398;</td>
</tr>
<tr>
<td scope="row">Greek capital letter iota</td>
<td>&amp;Iota;</td>
<td>&amp;#921;</td>
<td>&amp;#x399;</td>
<td>&Iota;</td>
<td>&#921;</td>
<td>&#x399;</td>
</tr>
<tr>
<td scope="row">Greek capital letter kappa</td>
<td>&amp;Kappa;</td>
<td>&amp;#922;</td>
<td>&amp;#x39A;</td>
<td>&Kappa;</td>
<td>&#922;</td>
<td>&#x39A;</td>
</tr>
<tr>
<td scope="row">Greek capital letter lambda</td>
<td>&amp;Lambda;</td>
<td>&amp;#923;</td>
<td>&amp;#x39B;</td>
<td>&Lambda;</td>
<td>&#923;</td>
<td>&#x39B;</td>
</tr>
<tr>
<td scope="row">Greek capital letter mu</td>
<td>&amp;Mu;</td>
<td>&amp;#924;</td>
<td>&amp;#x39C;</td>
<td>&Mu;</td>
<td>&#924;</td>
<td>&#x39C;</td>
</tr>
<tr>
<td scope="row">Greek capital letter nu</td>
<td>&amp;Nu;</td>
<td>&amp;#925;</td>
<td>&amp;#x39D;</td>
<td>&Nu;</td>
<td>&#925;</td>
<td>&#x39D;</td>
</tr>
<tr>
<td scope="row">Greek capital letter xi</td>
<td>&amp;Xi;</td>
<td>&amp;#926;</td>
<td>&amp;#x39E;</td>
<td>&Xi;</td>
<td>&#926;</td>
<td>&#x39E;</td>
</tr>
<tr>
<td scope="row">Greek capital letter omicron</td>
<td>&amp;Omicron;</td>
<td>&amp;#927;</td>
<td>&amp;#x39F;</td>
<td>&Omicron;</td>
<td>&#927;</td>
<td>&#x39F;</td>
</tr>
<tr>
<td scope="row">Greek capital letter pi</td>
<td>&amp;Pi;</td>
<td>&amp;#928;</td>
<td>&amp;#x3A0;</td>
<td>&Pi;</td>
<td>&#928;</td>
<td>&#x3A0;</td>
</tr>
<tr>
<td scope="row">Greek capital letter rho</td>
<td>&amp;Rho;</td>
<td>&amp;#929;</td>
<td>&amp;#x3A1;</td>
<td>&Rho;</td>
<td>&#929;</td>
<td>&#x3A1;</td>
</tr>
<tr>
<td scope="row">Greek capital letter sigma</td>
<td>&amp;Sigma;</td>
<td>&amp;#931;</td>
<td>&amp;#x3A3;</td>
<td>&Sigma;</td>
<td>&#931;</td>
<td>&#x3A3;</td>
</tr>
<tr>
<td scope="row">Greek capital letter tau</td>
<td>&amp;Tau;</td>
<td>&amp;#932;</td>
<td>&amp;#x3A4;</td>
<td>&Tau;</td>
<td>&#932;</td>
<td>&#x3A4;</td>
</tr>
<tr>
<td scope="row">Greek capital letter upsilon</td>
<td>&amp;Upsilon;</td>
<td>&amp;#933;</td>
<td>&amp;#x3A5;</td>
<td>&Upsilon;</td>
<td>&#933;</td>
<td>&#x3A5;</td>
</tr>
<tr>
<td scope="row">Greek capital letter phi</td>
<td>&amp;Phi;</td>
<td>&amp;#934;</td>
<td>&amp;#x3A6;</td>
<td>&Phi;</td>
<td>&#934;</td>
<td>&#x3A6;</td>
</tr>
<tr>
<td scope="row">Greek capital letter chi</td>
<td>&amp;Chi;</td>
<td>&amp;#935;</td>
<td>&amp;#x3A7;</td>
<td>&Chi;</td>
<td>&#935;</td>
<td>&#x3A7;</td>
</tr>
<tr>
<td scope="row">Greek capital letter psi</td>
<td>&amp;Psi;</td>
<td>&amp;#936;</td>
<td>&amp;#x3A8;</td>
<td>&Psi;</td>
<td>&#936;</td>
<td>&#x3A8;</td>
</tr>
<tr>
<td scope="row">Greek capital letter omega</td>
<td>&amp;Omega;</td>
<td>&amp;#937;</td>
<td>&amp;#x3A9;</td>
<td>&Omega;</td>
<td>&#937;</td>
<td>&#x3A9;</td>
</tr>
<tr>
<td scope="row">Greek small letter alpha</td>
<td>&amp;alpha;</td>
<td>&amp;#945;</td>
<td>&amp;#x3B1;</td>
<td>&alpha;</td>
<td>&#945;</td>
<td>&#x3B1;</td>
</tr>
<tr>
<td scope="row">Greek small letter beta</td>
<td>&amp;beta;</td>
<td>&amp;#946;</td>
<td>&amp;#x3B2;</td>
<td>&beta;</td>
<td>&#946;</td>
<td>&#x3B2;</td>
</tr>
<tr>
<td scope="row">Greek small letter gamma</td>
<td>&amp;gamma;</td>
<td>&amp;#947;</td>
<td>&amp;#x3B3;</td>
<td>&gamma;</td>
<td>&#947;</td>
<td>&#x3B3;</td>
</tr>
<tr>
<td scope="row">Greek small letter delta</td>
<td>&amp;delta;</td>
<td>&amp;#948;</td>
<td>&amp;#x3B4;</td>
<td>&delta;</td>
<td>&#948;</td>
<td>&#x3B4;</td>
</tr>
<tr>
<td scope="row">Greek small letter epsilon</td>
<td>&amp;epsilon;</td>
<td>&amp;#949;</td>
<td>&amp;#x3B5;</td>
<td>&epsilon;</td>
<td>&#949;</td>
<td>&#x3B5;</td>
</tr>
<tr>
<td scope="row">Greek small letter zeta</td>
<td>&amp;zeta;</td>
<td>&amp;#950;</td>
<td>&amp;#x3B6;</td>
<td>&zeta;</td>
<td>&#950;</td>
<td>&#x3B6;</td>
</tr>
<tr>
<td scope="row">Greek small letter eta</td>
<td>&amp;eta;</td>
<td>&amp;#951;</td>
<td>&amp;#x3B7;</td>
<td>&eta;</td>
<td>&#951;</td>
<td>&#x3B7;</td>
</tr>
<tr>
<td scope="row">Greek small letter theta</td>
<td>&amp;theta;</td>
<td>&amp;#952;</td>
<td>&amp;#x3B8;</td>
<td>&theta;</td>
<td>&#952;</td>
<td>&#x3B8;</td>
</tr>
<tr>
<td scope="row">Greek small letter iota</td>
<td>&amp;iota;</td>
<td>&amp;#953;</td>
<td>&amp;#x3B9;</td>
<td>&iota;</td>
<td>&#953;</td>
<td>&#x3B9;</td>
</tr>
<tr>
<td scope="row">Greek small letter kappa</td>
<td>&amp;kappa;</td>
<td>&amp;#954;</td>
<td>&amp;#x3BA;</td>
<td>&kappa;</td>
<td>&#954;</td>
<td>&#x3BA;</td>
</tr>
<tr>
<td scope="row">Greek small letter lambda</td>
<td>&amp;lambda;</td>
<td>&amp;#955;</td>
<td>&amp;#x3BB;</td>
<td>&lambda;</td>
<td>&#955;</td>
<td>&#x3BB;</td>
</tr>
<tr>
<td scope="row">Greek small letter mu</td>
<td>&amp;mu;</td>
<td>&amp;#956;</td>
<td>&amp;#x3BC;</td>
<td>&mu;</td>
<td>&#956;</td>
<td>&#x3BC;</td>
</tr>
<tr>
<td scope="row">Greek small letter nu</td>
<td>&amp;nu;</td>
<td>&amp;#957;</td>
<td>&amp;#x3BD;</td>
<td>&nu;</td>
<td>&#957;</td>
<td>&#x3BD;</td>
</tr>
<tr>
<td scope="row">Greek small letter xi</td>
<td>&amp;xi;</td>
<td>&amp;#958;</td>
<td>&amp;#x3BE;</td>
<td>&xi;</td>
<td>&#958;</td>
<td>&#x3BE;</td>
</tr>
<tr>
<td scope="row">Greek small letter omicron</td>
<td>&amp;omicron;</td>
<td>&amp;#959;</td>
<td>&amp;#x3BF;</td>
<td>&omicron;</td>
<td>&#959;</td>
<td>&#x3BF;</td>
</tr>
<tr>
<td scope="row">Greek small letter pi</td>
<td>&amp;pi;</td>
<td>&amp;#960;</td>
<td>&amp;#x3C0;</td>
<td>&pi;</td>
<td>&#960;</td>
<td>&#x3C0;</td>
</tr>
<tr>
<td scope="row">Greek small letter rho</td>
<td>&amp;rho;</td>
<td>&amp;#961;</td>
<td>&amp;#x3C1;</td>
<td>&rho;</td>
<td>&#961;</td>
<td>&#x3C1;</td>
</tr>
<tr>
<td scope="row">Greek small letter final sigma</td>
<td>&amp;sigmaf;</td>
<td>&amp;#962;</td>
<td>&amp;#x3C2;</td>
<td>&sigmaf;</td>
<td>&#962;</td>
<td>&#x3C2;</td>
</tr>
<tr>
<td scope="row">Greek small letter sigma</td>
<td>&amp;sigma;</td>
<td>&amp;#963;</td>
<td>&amp;#x3C3;</td>
<td>&sigma;</td>
<td>&#963;</td>
<td>&#x3C3;</td>
</tr>
<tr>
<td scope="row">Greek small letter tau</td>
<td>&amp;tau;</td>
<td>&amp;#964;</td>
<td>&amp;#x3C4;</td>
<td>&tau;</td>
<td>&#964;</td>
<td>&#x3C4;</td>
</tr>
<tr>
<td scope="row">Greek small letter upsilon</td>
<td>&amp;upsilon;</td>
<td>&amp;#965;</td>
<td>&amp;#x3C5;</td>
<td>&upsilon;</td>
<td>&#965;</td>
<td>&#x3C5;</td>
</tr>
<tr>
<td scope="row">Greek small letter phi</td>
<td>&amp;phi;</td>
<td>&amp;#966;</td>
<td>&amp;#x3C6;</td>
<td>&phi;</td>
<td>&#966;</td>
<td>&#x3C6;</td>
</tr>
<tr>
<td scope="row">Greek small letter chi</td>
<td>&amp;chi;</td>
<td>&amp;#967;</td>
<td>&amp;#x3C7;</td>
<td>&chi;</td>
<td>&#967;</td>
<td>&#x3C7;</td>
</tr>
<tr>
<td scope="row">Greek small letter psi</td>
<td>&amp;psi;</td>
<td>&amp;#968;</td>
<td>&amp;#x3C8;</td>
<td>&psi;</td>
<td>&#968;</td>
<td>&#x3C8;</td>
</tr>
<tr>
<td scope="row">Greek small letter omega</td>
<td>&amp;omega;</td>
<td>&amp;#969;</td>
<td>&amp;#x3C9;</td>
<td>&omega;</td>
<td>&#969;</td>
<td>&#x3C9;</td>
</tr>
<tr>
<td scope="row">Greek small letter theta symbol</td>
<td>&amp;thetasym;</td>
<td>&amp;#977;</td>
<td>&amp;#x3D1;</td>
<td>&thetasym;</td>
<td>&#977;</td>
<td>&#x3D1;</td>
</tr>
<tr>
<td scope="row">Greek upsilon with hook symbol</td>
<td>&amp;upsih;</td>
<td>&amp;#978;</td>
<td>&amp;#x3D2;</td>
<td>&upsih;</td>
<td>&#978;</td>
<td>&#x3D2;</td>
</tr>
<tr>
<td scope="row">Greek pi symbol</td>
<td>&amp;piv;</td>
<td>&amp;#982;</td>
<td>&amp;#x3D6;</td>
<td>&piv;</td>
<td>&#982;</td>
<td>&#x3D6;</td>
</tr>
<tr>
<td scope="row">bullet = black small circle</td>
<td>&amp;bull;</td>
<td>&amp;#8226;</td>
<td>&amp;#x2022;</td>
<td>&bull;</td>
<td>&#8226;</td>
<td>&#x2022;</td>
</tr>
<tr>
<td scope="row">horizontal ellipsis = three dot leader</td>
<td>&amp;hellip;</td>
<td>&amp;#8230;</td>
<td>&amp;#x2026;</td>
<td>&hellip;</td>
<td>&#8230;</td>
<td>&#x2026;</td>
</tr>
<tr>
<td scope="row">prime = minutes = feet</td>
<td>&amp;prime;</td>
<td>&amp;#8242;</td>
<td>&amp;#x2032;</td>
<td>&prime;</td>
<td>&#8242;</td>
<td>&#x2032;</td>
</tr>
<tr>
<td scope="row">double prime = seconds = inches</td>
<td>&amp;Prime;</td>
<td>&amp;#8243;</td>
<td>&amp;#x2033;</td>
<td>&Prime;</td>
<td>&#8243;</td>
<td>&#x2033;</td>
</tr>
<tr>
<td scope="row">overline = spacing overscore</td>
<td>&amp;oline;</td>
<td>&amp;#8254;</td>
<td>&amp;#x203E;</td>
<td>&oline;</td>
<td>&#8254;</td>
<td>&#x203E;</td>
</tr>
<tr>
<td scope="row">fraction slash</td>
<td>&amp;frasl;</td>
<td>&amp;#8260;</td>
<td>&amp;#x2044;</td>
<td>&frasl;</td>
<td>&#8260;</td>
<td>&#x2044;</td>
</tr>
<tr>
<td scope="row">script capital P = power set = Weierstrass p</td>
<td>&amp;weierp;</td>
<td>&amp;#8472;</td>
<td>&amp;#x2118;</td>
<td>&weierp;</td>
<td>&#8472;</td>
<td>&#x2118;</td>
</tr>
<tr>
<td scope="row">blackletter capital I = imaginary part</td>
<td>&amp;image;</td>
<td>&amp;#8465;</td>
<td>&amp;#x2111;</td>
<td>&image;</td>
<td>&#8465;</td>
<td>&#x2111;</td>
</tr>
<tr>
<td scope="row">blackletter capital R = real part symbol</td>
<td>&amp;real;</td>
<td>&amp;#8476;</td>
<td>&amp;#x211C;</td>
<td>&real;</td>
<td>&#8476;</td>
<td>&#x211C;</td>
</tr>
<tr>
<td scope="row">trade mark sign</td>
<td>&amp;trade;</td>
<td>&amp;#8482;</td>
<td>&amp;#x2122;</td>
<td>&trade;</td>
<td>&#8482;</td>
<td>&#x2122;</td>
</tr>
<tr>
<td scope="row">alef symbol = first transfinite cardinal</td>
<td>&amp;alefsym;</td>
<td>&amp;#8501;</td>
<td>&amp;#x2135;</td>
<td>&alefsym;</td>
<td>&#8501;</td>
<td>&#x2135;</td>
</tr>
<tr>
<td scope="row">leftwards arrow</td>
<td>&amp;larr;</td>
<td>&amp;#8592;</td>
<td>&amp;#x2190;</td>
<td>&larr;</td>
<td>&#8592;</td>
<td>&#x2190;</td>
</tr>
<tr>
<td scope="row">upwards arrow</td>
<td>&amp;uarr;</td>
<td>&amp;#8593;</td>
<td>&amp;#x2191;</td>
<td>&uarr;</td>
<td>&#8593;</td>
<td>&#x2191;</td>
</tr>
<tr>
<td scope="row">rightwards arrow</td>
<td>&amp;rarr;</td>
<td>&amp;#8594;</td>
<td>&amp;#x2192;</td>
<td>&rarr;</td>
<td>&#8594;</td>
<td>&#x2192;</td>
</tr>
<tr>
<td scope="row">downwards arrow</td>
<td>&amp;darr;</td>
<td>&amp;#8595;</td>
<td>&amp;#x2193;</td>
<td>&darr;</td>
<td>&#8595;</td>
<td>&#x2193;</td>
</tr>
<tr>
<td scope="row">left right arrow</td>
<td>&amp;harr;</td>
<td>&amp;#8596;</td>
<td>&amp;#x2194;</td>
<td>&harr;</td>
<td>&#8596;</td>
<td>&#x2194;</td>
</tr>
<tr>
<td scope="row">downwards arrow with corner leftwards = carriage return</td>
<td>&amp;crarr;</td>
<td>&amp;#8629;</td>
<td>&amp;#x21B5;</td>
<td>&crarr;</td>
<td>&#8629;</td>
<td>&#x21B5;</td>
</tr>
<tr>
<td scope="row">leftwards double arrow</td>
<td>&amp;lArr;</td>
<td>&amp;#8656;</td>
<td>&amp;#x21D0;</td>
<td>&lArr;</td>
<td>&#8656;</td>
<td>&#x21D0;</td>
</tr>
<tr>
<td scope="row">upwards double arrow</td>
<td>&amp;uArr;</td>
<td>&amp;#8657;</td>
<td>&amp;#x21D1;</td>
<td>&uArr;</td>
<td>&#8657;</td>
<td>&#x21D1;</td>
</tr>
<tr>
<td scope="row">rightwards double arrow</td>
<td>&amp;rArr;</td>
<td>&amp;#8658;</td>
<td>&amp;#x21D2;</td>
<td>&rArr;</td>
<td>&#8658;</td>
<td>&#x21D2;</td>
</tr>
<tr>
<td scope="row">downwards double arrow</td>
<td>&amp;dArr;</td>
<td>&amp;#8659;</td>
<td>&amp;#x21D3;</td>
<td>&dArr;</td>
<td>&#8659;</td>
<td>&#x21D3;</td>
</tr>
<tr>
<td scope="row">left right double arrow</td>
<td>&amp;hArr;</td>
<td>&amp;#8660;</td>
<td>&amp;#x21D4;</td>
<td>&hArr;</td>
<td>&#8660;</td>
<td>&#x21D4;</td>
</tr>
<tr>
<td scope="row">for all</td>
<td>&amp;forall;</td>
<td>&amp;#8704;</td>
<td>&amp;#x2200;</td>
<td>&forall;</td>
<td>&#8704;</td>
<td>&#x2200;</td>
</tr>
<tr>
<td scope="row">partial differential</td>
<td>&amp;part;</td>
<td>&amp;#8706;</td>
<td>&amp;#x2202;</td>
<td>&part;</td>
<td>&#8706;</td>
<td>&#x2202;</td>
</tr>
<tr>
<td scope="row">there exists</td>
<td>&amp;exist;</td>
<td>&amp;#8707;</td>
<td>&amp;#x2203;</td>
<td>&exist;</td>
<td>&#8707;</td>
<td>&#x2203;</td>
</tr>
<tr>
<td scope="row">empty set = null set = diameter</td>
<td>&amp;empty;</td>
<td>&amp;#8709;</td>
<td>&amp;#x2205;</td>
<td>&empty;</td>
<td>&#8709;</td>
<td>&#x2205;</td>
</tr>
<tr>
<td scope="row">nabla = backward difference</td>
<td>&amp;nabla;</td>
<td>&amp;#8711;</td>
<td>&amp;#x2207;</td>
<td>&nabla;</td>
<td>&#8711;</td>
<td>&#x2207;</td>
</tr>
<tr>
<td scope="row">element of</td>
<td>&amp;isin;</td>
<td>&amp;#8712;</td>
<td>&amp;#x2208;</td>
<td>&isin;</td>
<td>&#8712;</td>
<td>&#x2208;</td>
</tr>
<tr>
<td scope="row">not an element of</td>
<td>&amp;notin;</td>
<td>&amp;#8713;</td>
<td>&amp;#x2209;</td>
<td>&notin;</td>
<td>&#8713;</td>
<td>&#x2209;</td>
</tr>
<tr>
<td scope="row">contains as member</td>
<td>&amp;ni;</td>
<td>&amp;#8715;</td>
<td>&amp;#x220B;</td>
<td>&ni;</td>
<td>&#8715;</td>
<td>&#x220B;</td>
</tr>
<tr>
<td scope="row">n-ary product = product sign</td>
<td>&amp;prod;</td>
<td>&amp;#8719;</td>
<td>&amp;#x220F;</td>
<td>&prod;</td>
<td>&#8719;</td>
<td>&#x220F;</td>
</tr>
<tr>
<td scope="row">n-ary sumation</td>
<td>&amp;sum;</td>
<td>&amp;#8721;</td>
<td>&amp;#x2211;</td>
<td>&sum;</td>
<td>&#8721;</td>
<td>&#x2211;</td>
</tr>
<tr>
<td scope="row">minus sign</td>
<td>&amp;minus;</td>
<td>&amp;#8722;</td>
<td>&amp;#x2212;</td>
<td>&minus;</td>
<td>&#8722;</td>
<td>&#x2212;</td>
</tr>
<tr>
<td scope="row">asterisk operator</td>
<td>&amp;lowast;</td>
<td>&amp;#8727;</td>
<td>&amp;#x2217;</td>
<td>&lowast;</td>
<td>&#8727;</td>
<td>&#x2217;</td>
</tr>
<tr>
<td scope="row">square root = radical sign</td>
<td>&amp;radic;</td>
<td>&amp;#8730;</td>
<td>&amp;#x221A;</td>
<td>&radic;</td>
<td>&#8730;</td>
<td>&#x221A;</td>
</tr>
<tr>
<td scope="row">proportional to</td>
<td>&amp;prop;</td>
<td>&amp;#8733;</td>
<td>&amp;#x221D;</td>
<td>&prop;</td>
<td>&#8733;</td>
<td>&#x221D;</td>
</tr>
<tr>
<td scope="row">infinity</td>
<td>&amp;infin;</td>
<td>&amp;#8734;</td>
<td>&amp;#x221E;</td>
<td>&infin;</td>
<td>&#8734;</td>
<td>&#x221E;</td>
</tr>
<tr>
<td scope="row">angle</td>
<td>&amp;ang;</td>
<td>&amp;#8736;</td>
<td>&amp;#x2220;</td>
<td>&ang;</td>
<td>&#8736;</td>
<td>&#x2220;</td>
</tr>
<tr>
<td scope="row">logical and = wedge</td>
<td>&amp;and;</td>
<td>&amp;#8743;</td>
<td>&amp;#x2227;</td>
<td>&and;</td>
<td>&#8743;</td>
<td>&#x2227;</td>
</tr>
<tr>
<td scope="row">logical or = vee</td>
<td>&amp;or;</td>
<td>&amp;#8744;</td>
<td>&amp;#x2228;</td>
<td>&or;</td>
<td>&#8744;</td>
<td>&#x2228;</td>
</tr>
<tr>
<td scope="row">intersection = cap</td>
<td>&amp;cap;</td>
<td>&amp;#8745;</td>
<td>&amp;#x2229;</td>
<td>&cap;</td>
<td>&#8745;</td>
<td>&#x2229;</td>
</tr>
<tr>
<td scope="row">union = cup</td>
<td>&amp;cup;</td>
<td>&amp;#8746;</td>
<td>&amp;#x222A;</td>
<td>&cup;</td>
<td>&#8746;</td>
<td>&#x222A;</td>
</tr>
<tr>
<td scope="row">integral</td>
<td>&amp;int;</td>
<td>&amp;#8747;</td>
<td>&amp;#x222B;</td>
<td>&int;</td>
<td>&#8747;</td>
<td>&#x222B;</td>
</tr>
<tr>
<td scope="row">therefore</td>
<td>&amp;there4;</td>
<td>&amp;#8756;</td>
<td>&amp;#x2234;</td>
<td>&there4;</td>
<td>&#8756;</td>
<td>&#x2234;</td>
</tr>
<tr>
<td scope="row">tilde operator = varies with = similar to</td>
<td>&amp;sim;</td>
<td>&amp;#8764;</td>
<td>&amp;#x223C;</td>
<td>&sim;</td>
<td>&#8764;</td>
<td>&#x223C;</td>
</tr>
<tr>
<td scope="row">approximately equal to</td>
<td>&amp;cong;</td>
<td>&amp;#8773;</td>
<td>&amp;#x2245;</td>
<td>&cong;</td>
<td>&#8773;</td>
<td>&#x2245;</td>
</tr>
<tr>
<td scope="row">almost equal to = asymptotic to</td>
<td>&amp;asymp;</td>
<td>&amp;#8776;</td>
<td>&amp;#x2248;</td>
<td>&asymp;</td>
<td>&#8776;</td>
<td>&#x2248;</td>
</tr>
<tr>
<td scope="row">not equal to</td>
<td>&amp;ne;</td>
<td>&amp;#8800;</td>
<td>&amp;#x2260;</td>
<td>&ne;</td>
<td>&#8800;</td>
<td>&#x2260;</td>
</tr>
<tr>
<td scope="row">identical to</td>
<td>&amp;equiv;</td>
<td>&amp;#8801;</td>
<td>&amp;#x2261;</td>
<td>&equiv;</td>
<td>&#8801;</td>
<td>&#x2261;</td>
</tr>
<tr>
<td scope="row">less-than or equal to</td>
<td>&amp;le;</td>
<td>&amp;#8804;</td>
<td>&amp;#x2264;</td>
<td>&le;</td>
<td>&#8804;</td>
<td>&#x2264;</td>
</tr>
<tr>
<td scope="row">greater-than or equal to</td>
<td>&amp;ge;</td>
<td>&amp;#8805;</td>
<td>&amp;#x2265;</td>
<td>&ge;</td>
<td>&#8805;</td>
<td>&#x2265;</td>
</tr>
<tr>
<td scope="row">subset of</td>
<td>&amp;sub;</td>
<td>&amp;#8834;</td>
<td>&amp;#x2282;</td>
<td>&sub;</td>
<td>&#8834;</td>
<td>&#x2282;</td>
</tr>
<tr>
<td scope="row">superset of</td>
<td>&amp;sup;</td>
<td>&amp;#8835;</td>
<td>&amp;#x2283;</td>
<td>&sup;</td>
<td>&#8835;</td>
<td>&#x2283;</td>
</tr>
<tr>
<td scope="row">not a subset of</td>
<td>&amp;nsub;</td>
<td>&amp;#8836;</td>
<td>&amp;#x2284;</td>
<td>&nsub;</td>
<td>&#8836;</td>
<td>&#x2284;</td>
</tr>
<tr>
<td scope="row">subset of or equal to</td>
<td>&amp;sube;</td>
<td>&amp;#8838;</td>
<td>&amp;#x2286;</td>
<td>&sube;</td>
<td>&#8838;</td>
<td>&#x2286;</td>
</tr>
<tr>
<td scope="row">superset of or equal to</td>
<td>&amp;supe;</td>
<td>&amp;#8839;</td>
<td>&amp;#x2287;</td>
<td>&supe;</td>
<td>&#8839;</td>
<td>&#x2287;</td>
</tr>
<tr>
<td scope="row">circled plus = direct sum</td>
<td>&amp;oplus;</td>
<td>&amp;#8853;</td>
<td>&amp;#x2295;</td>
<td>&oplus;</td>
<td>&#8853;</td>
<td>&#x2295;</td>
</tr>
<tr>
<td scope="row">circled times = vector product</td>
<td>&amp;otimes;</td>
<td>&amp;#8855;</td>
<td>&amp;#x2297;</td>
<td>&otimes;</td>
<td>&#8855;</td>
<td>&#x2297;</td>
</tr>
<tr>
<td scope="row">up tack = orthogonal to = perpendicular</td>
<td>&amp;perp;</td>
<td>&amp;#8869;</td>
<td>&amp;#x22A5;</td>
<td>&perp;</td>
<td>&#8869;</td>
<td>&#x22A5;</td>
</tr>
<tr>
<td scope="row">dot operator</td>
<td>&amp;sdot;</td>
<td>&amp;#8901;</td>
<td>&amp;#x22C5;</td>
<td>&sdot;</td>
<td>&#8901;</td>
<td>&#x22C5;</td>
</tr>
<tr>
<td scope="row">left ceiling = APL upstile</td>
<td>&amp;lceil;</td>
<td>&amp;#8968;</td>
<td>&amp;#x2308;</td>
<td>&lceil;</td>
<td>&#8968;</td>
<td>&#x2308;</td>
</tr>
<tr>
<td scope="row">right ceiling</td>
<td>&amp;rceil;</td>
<td>&amp;#8969;</td>
<td>&amp;#x2309;</td>
<td>&rceil;</td>
<td>&#8969;</td>
<td>&#x2309;</td>
</tr>
<tr>
<td scope="row">left floor = APL downstile</td>
<td>&amp;lfloor;</td>
<td>&amp;#8970;</td>
<td>&amp;#x230A;</td>
<td>&lfloor;</td>
<td>&#8970;</td>
<td>&#x230A;</td>
</tr>
<tr>
<td scope="row">right floor</td>
<td>&amp;rfloor;</td>
<td>&amp;#8971;</td>
<td>&amp;#x230B;</td>
<td>&rfloor;</td>
<td>&#8971;</td>
<td>&#x230B;</td>
</tr>
<tr>
<td scope="row">left-pointing angle bracket = bra</td>
<td>&amp;lang;</td>
<td>&amp;#9001;</td>
<td>&amp;#x2329;</td>
<td>&lang;</td>
<td>&#9001;</td>
<td>&#x2329;</td>
</tr>
<tr>
<td scope="row">right-pointing angle bracket = ket</td>
<td>&amp;rang;</td>
<td>&amp;#9002;</td>
<td>&amp;#x232A;</td>
<td>&rang;</td>
<td>&#9002;</td>
<td>&#x232A;</td>
</tr>
<tr>
<td scope="row">lozenge</td>
<td>&amp;loz;</td>
<td>&amp;#9674;</td>
<td>&amp;#x25CA;</td>
<td>&loz;</td>
<td>&#9674;</td>
<td>&#x25CA;</td>
</tr>
<tr>
<td scope="row">black spade suit</td>
<td>&amp;spades;</td>
<td>&amp;#9824;</td>
<td>&amp;#x2660;</td>
<td>&spades;</td>
<td>&#9824;</td>
<td>&#x2660;</td>
</tr>
<tr>
<td scope="row">black club suit = shamrock</td>
<td>&amp;clubs;</td>
<td>&amp;#9827;</td>
<td>&amp;#x2663;</td>
<td>&clubs;</td>
<td>&#9827;</td>
<td>&#x2663;</td>
</tr>
<tr>
<td scope="row">black heart suit = valentine</td>
<td>&amp;hearts;</td>
<td>&amp;#9829;</td>
<td>&amp;#x2665;</td>
<td>&hearts;</td>
<td>&#9829;</td>
<td>&#x2665;</td>
</tr>
<tr>
<td scope="row">black diamond suit</td>
<td>&amp;diams;</td>
<td>&amp;#9830;</td>
<td>&amp;#x2666;</td>
<td>&diams;</td>
<td>&#9830;</td>
<td>&#x2666;</td>
</tr>
</tbody>
</table>
]]></content:encoded>
			<wfw:commentRss>http://www.macouno.com/2010/03/17/html-symbols/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Htaccess</title>
		<link>http://www.macouno.com/2010/03/17/htaccess/</link>
		<comments>http://www.macouno.com/2010/03/17/htaccess/#comments</comments>
		<pubDate>Wed, 17 Mar 2010 18:36:39 +0000</pubDate>
		<dc:creator>Dolf Veenvliet</dc:creator>
				<category><![CDATA[Other]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[Snippet]]></category>
		<category><![CDATA[Web development]]></category>

		<guid isPermaLink="false">http://www.macouno.com/?p=414</guid>
		<description><![CDATA[This is a very basic .htaccess file as I like to use it. It simply redirects any request to the index.php if it&#8217;s not an existing file and not an existing directory.
&#60;IfModule mod_rewrite.c&#62;&#160;RewriteEngine On &#160;RewriteCond %{REQUEST_FILENAME} !-fRewriteCond %{REQUEST_FILENAME} !-dRewriteRule ^(.*)/? /index.php?loc=$1&#160;&#60;/IfModule&#62;Display clean text code for copying&#60;IfModule mod_rewrite.c&#62;

RewriteEngine On 

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)/? /index.php?loc=$1

&#60;/IfModule&#62;

It works [...]]]></description>
			<content:encoded><![CDATA[<p>This is a very basic .htaccess file as I like to use it. It simply redirects any request to the index.php if it&#8217;s not an existing file and not an existing directory.</p>
<div class="code"><pre class="text"><ol><li class="li1"><div class="de1">&lt;IfModule mod_rewrite.c&gt;</div></li><li class="li1"><div class="de1">&nbsp;</div></li><li class="li1"><div class="de1">RewriteEngine On </div></li><li class="li1"><div class="de1">&nbsp;</div></li><li class="li1"><div class="de1">RewriteCond %{REQUEST_FILENAME} !-f</div></li><li class="li1"><div class="de1">RewriteCond %{REQUEST_FILENAME} !-d</div></li><li class="li1"><div class="de1">RewriteRule ^(.*)/? /index.php?loc=$1</div></li><li class="li1"><div class="de1">&nbsp;</div></li><li class="li1"><div class="de1">&lt;/IfModule&gt;</div></li></ol></pre></div><p><a href="javascript: void(0);" class="showpre">Display clean text code for copying</a></p><pre class="text">&lt;IfModule mod_rewrite.c&gt;

RewriteEngine On 

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)/? /index.php?loc=$1

&lt;/IfModule&gt;</pre>
<hr />
<h3>It works as follows:</h3>
<p>checks to see if mod-rewrite is enabled</p>
<p>You can add <strong>Options +FollowSymlinks</strong> on the line before <strong>RewriteEngine On<br />
</strong>It needs to be enabled for mod rewrite to actually work</p>
<p><strong>RewriteEngine On</strong><br />
Start the rewrite engine</p>
<p><strong>RewriteCond %{REQUEST_FILENAME} !-f</strong><br />
Is a condition and returns true if the requested location is not an existing file.</p>
<p><strong>RewriteCond %{REQUEST_FILENAME} !-d</strong><br />
Is a condition and returns true if the location is not an existing directory.</p>
<p><strong>RewriteRule ^(.*)/? /index.php?loc=$1</strong><br />
Does the actual redirection, basicly it takes everything from behind http://www.mysite.domain/ and puts it behind loc=<br />
So inside your index.php you can get the url as $_GET['loc']<br />
You can then use PHP to analyse what was requested.</p>
<p><strong>&lt;/IfModule&gt;<br />
</strong>The end of the rewriting.</p>
<p>There are lots of more complicated things you can do, but this is what I need more often and it does only the thing I need&#8230; which is good.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.macouno.com/2010/03/17/htaccess/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
