<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>On music, computing and math &#187; LaTeX</title>
	<atom:link href="http://pbelmans.wordpress.com/category/latex/feed/" rel="self" type="application/rss+xml" />
	<link>http://pbelmans.wordpress.com</link>
	<description>math, computational composition but mostly (La)TeX</description>
	<lastBuildDate>Fri, 03 May 2013 05:40:36 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='pbelmans.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>On music, computing and math &#187; LaTeX</title>
		<link>http://pbelmans.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://pbelmans.wordpress.com/osd.xml" title="On music, computing and math" />
	<atom:link rel='hub' href='http://pbelmans.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Open and closed immersions in tikz-cd</title>
		<link>http://pbelmans.wordpress.com/2013/03/13/open-and-closed-immersions-in-tikz-cd/</link>
		<comments>http://pbelmans.wordpress.com/2013/03/13/open-and-closed-immersions-in-tikz-cd/#comments</comments>
		<pubDate>Wed, 13 Mar 2013 21:28:36 +0000</pubDate>
		<dc:creator>pbelmans</dc:creator>
				<category><![CDATA[LaTeX]]></category>
		<category><![CDATA[math]]></category>

		<guid isPermaLink="false">http://pbelmans.wordpress.com/?p=1069</guid>
		<description><![CDATA[I don&#8217;t know whether it&#8217;s common in other parts of the world, but in France one often (or rather: always) denotes an open or closed immersion by drawing a circle or a slash on the hooked arrow. A bad impression hacked together in plain LaTeX would be and . Now to define the six functors [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pbelmans.wordpress.com&#038;blog=15229912&#038;post=1069&#038;subd=pbelmans&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>I don&#8217;t know whether it&#8217;s common in other parts of the world, but in France one often (or rather: always) denotes an open or closed immersion by drawing a circle or a slash on the hooked arrow. A bad impression hacked together in plain LaTeX would be <img src='http://s0.wp.com/latex.php?latex=%5Chookrightarrow%5C%21%5C%21%5C%21%5C%21%5C%21%5C%21%5C%21%5Ccirc&amp;bg=f9f7f5&amp;fg=444444&amp;s=0' alt='&#92;hookrightarrow&#92;!&#92;!&#92;!&#92;!&#92;!&#92;!&#92;!&#92;circ' title='&#92;hookrightarrow&#92;!&#92;!&#92;!&#92;!&#92;!&#92;!&#92;!&#92;circ' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=%5Chookrightarrow%5C%21%5C%21%5C%21%5C%21%5C%21%5C%21%5C%21%2F&amp;bg=f9f7f5&amp;fg=444444&amp;s=0' alt='&#92;hookrightarrow&#92;!&#92;!&#92;!&#92;!&#92;!&#92;!&#92;!/' title='&#92;hookrightarrow&#92;!&#92;!&#92;!&#92;!&#92;!&#92;!&#92;!/' class='latex' />.</p>
<p>Now to define the six functors formalism we have a scheme <img src='http://s0.wp.com/latex.php?latex=X&amp;bg=f9f7f5&amp;fg=444444&amp;s=0' alt='X' title='X' class='latex' />, a closed subscheme <img src='http://s0.wp.com/latex.php?latex=Z&amp;bg=f9f7f5&amp;fg=444444&amp;s=0' alt='Z' title='Z' class='latex' /> and an open subscheme <img src='http://s0.wp.com/latex.php?latex=U&amp;bg=f9f7f5&amp;fg=444444&amp;s=0' alt='U' title='U' class='latex' /> such that on the level of the underlying sets our big scheme is the disjoint union. In order to write this using <a href="http://ctan.org/pkg/tikz-cd"><code>tikz-cd</code></a>, which is an excellent package to write commutative diagrams, a bit of effort is needed. We define the appropriate arrow styles by</p>
<pre class="brush: latex; title: ; notranslate">\usetikzlibrary{decorations.markings}
\tikzset{
  closed/.style = {decoration = {markings, mark = at position 0.5 with { \node[transform shape, xscale = .8, yscale=.4] {/}; } }, postaction = {decorate} },
  open/.style = {decoration = {markings, mark = at position 0.5 with { \node[transform shape, scale = .7] {$\circ$}; } }, postaction = {decorate} }
}</pre>
<p>and then we can produce the diagram by</p>
<pre class="brush: latex; title: ; notranslate">\begin{tikzcd}
  Z \arrow[hook, closed]{r}{i} &amp; X \arrow[hookleftarrow, open]{r}{j} &amp; U
\end{tikzcd}</pre>
<p>This results in<br />
<img src="http://pbelmans.files.wordpress.com/2013/03/arrows.png?w=497" alt="" /></p>
<p>Remark that we have to write the arrow from <img src='http://s0.wp.com/latex.php?latex=U&amp;bg=f9f7f5&amp;fg=444444&amp;s=0' alt='U' title='U' class='latex' /> to <img src='http://s0.wp.com/latex.php?latex=X&amp;bg=f9f7f5&amp;fg=444444&amp;s=0' alt='X' title='X' class='latex' /> in the opposite direction, because otherwise the hook is upside down. I haven&#8217;t found a better solution for this. And it seems that in the font I&#8217;m using (the Bera family with Charter from mathdesign for mathematics) the circle is slightly above the center of the line. If one goes this far in writing a silly diagram this should be fixed too, but unfortunately I haven&#8217;t found a (clean) solution for this yet. In the default font it looks better by the way.</p>
<p>It should be possible to do this in plain math mode too, but you&#8217;ll have to create long hooked arrows etc. This is easier and more consistent I think.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/pbelmans.wordpress.com/1069/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/pbelmans.wordpress.com/1069/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pbelmans.wordpress.com&#038;blog=15229912&#038;post=1069&#038;subd=pbelmans&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://pbelmans.wordpress.com/2013/03/13/open-and-closed-immersions-in-tikz-cd/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://2.gravatar.com/avatar/bf4c56431003682b725b72668e7de35f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">pbelmans</media:title>
		</media:content>

		<media:content url="http://pbelmans.files.wordpress.com/2013/03/arrows.png" medium="image" />
	</item>
		<item>
		<title>Categories for todos</title>
		<link>http://pbelmans.wordpress.com/2013/02/04/categories-for-todos/</link>
		<comments>http://pbelmans.wordpress.com/2013/02/04/categories-for-todos/#comments</comments>
		<pubDate>Mon, 04 Feb 2013 21:08:31 +0000</pubDate>
		<dc:creator>pbelmans</dc:creator>
				<category><![CDATA[LaTeX]]></category>

		<guid isPermaLink="false">http://pbelmans.wordpress.com/?p=1015</guid>
		<description><![CDATA[It has been a while since I actively used TeX and encountered interesting issues, but as the work on my Master thesis has finally started I am again TeX&#8217;ing. It feels great! The todonotes package is a great tool if you&#8217;re as disorganized as I am, whenever I have a random idea, or don&#8217;t feel [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pbelmans.wordpress.com&#038;blog=15229912&#038;post=1015&#038;subd=pbelmans&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>It has been a while since I actively used TeX and encountered interesting issues, but as the work on my Master thesis has finally started I am again TeX&#8217;ing. It feels great!</p>
<p>The <code><a href="http://ctan.org/pkg/todonotes">todonotes</a></code> package is a great tool if you&#8217;re as disorganized as I am, whenever I have a random idea, or don&#8217;t feel like finishing something or don&#8217;t want to add the correct citation, etc. I add a <code>\todo{}</code> and postpone the work. Postponing is good.</p>
<p>And if you can postpone work in a fancy way it&#8217;s even better! So I&#8217;ve got 5 &#8220;categories&#8221; of notes, each with its own color and options. An example (click for pdf):<br />
<a href="http://pbelmans.files.wordpress.com/2013/02/todo.pdf"><img src="http://pbelmans.files.wordpress.com/2013/02/todo-example.png?w=497" alt="" /></a><br />
The interesting part is that I&#8217;m using the <code><a href="http://ctan.org/pkg/xparse">xparse</a></code> package, to have <em>optional commands</em>. So I can choose between <code>\addreference</code> and <code>\addreference{to that particular book for which I don't feel like creating a BibTeX entry right now}</code>. It&#8217;s really easy, just put</p>
<pre><code>\usepackage{xparse}

\DeclareDocumentCommand\addreference{g}{\todo[color = blue!30]{Add reference\IfNoValueF{#1}{: #1}}}
\DeclareDocumentCommand\checkthis{g}{\todo[color = red!50]{Check this\IfNoValueF{#1}{: #1}}}
\DeclareDocumentCommand\fixthis{g}{\todo[color = orange!50]{Fix this\IfNoValueF{#1}{: #1}}}
\DeclareDocumentCommand\expand{g}{\todo[color = green!50]{Expand\IfNoValueF{#1}{: #1}}}
\newcommand\removethis{\todo[color = yellow!50]{Remove this?}}
</code></pre>
<p>in your preamble when you have <code>todonotes</code> loaded. Adding the option <code>textsize = small</code> to your <code>\usepackage</code> command might be a good idea, and there is <code>colorinlistoftodos</code> if you want colored boxes in the list.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/pbelmans.wordpress.com/1015/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/pbelmans.wordpress.com/1015/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pbelmans.wordpress.com&#038;blog=15229912&#038;post=1015&#038;subd=pbelmans&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://pbelmans.wordpress.com/2013/02/04/categories-for-todos/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://2.gravatar.com/avatar/bf4c56431003682b725b72668e7de35f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">pbelmans</media:title>
		</media:content>

		<media:content url="http://pbelmans.files.wordpress.com/2013/02/todo-example.png" medium="image" />
	</item>
		<item>
		<title>Online view for the Stacks project</title>
		<link>http://pbelmans.wordpress.com/2012/12/15/online-view-for-the-stacks-project/</link>
		<comments>http://pbelmans.wordpress.com/2012/12/15/online-view-for-the-stacks-project/#comments</comments>
		<pubDate>Sat, 15 Dec 2012 21:29:52 +0000</pubDate>
		<dc:creator>pbelmans</dc:creator>
				<category><![CDATA[LaTeX]]></category>
		<category><![CDATA[math]]></category>

		<guid isPermaLink="false">http://pbelmans.wordpress.com/?p=999</guid>
		<description><![CDATA[First I am silent for exactly 3 months, now 2 blog posts in two days. But I can make the interesting announcement I promised yesterday. During the summer I created a new website for the Stacks project (my announcement, official announcement). At that moment we&#8217;ve toyed with the idea of making a full-fledged online view, [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pbelmans.wordpress.com&#038;blog=15229912&#038;post=999&#038;subd=pbelmans&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>First I am silent for exactly 3 months, now 2 blog posts in two days. But I can make the interesting announcement I promised yesterday.</p>
<p>During the summer I created a new website for the <a href="http://stacks.math.columbia.edu/">Stacks project</a> (<a href="http://pbelmans.wordpress.com/2012/07/19/a-new-website-for-the-stacks-project/">my announcement</a>, <a href="http://math.columbia.edu/~dejong/wordpress/?p=2641">official announcement</a>). At that moment we&#8217;ve toyed with the idea of making a full-fledged online view, but the lack of a good <code>xypic</code> parser made this impossible. And what would the Stacks project be without commutative diagrams? At that point <a href="https://github.com/sonoisa/XyJax">XyJax</a> was already around, but it was incapable of rendering commutative diagrams, and it was inactive. Yet a few months ago it became active again, and after a request the developer implemented commutative diagrams (thank you!).</p>
<p>Now every tag has by default the online view of a tag (code view is still available if you want). A tag&#8217;s TeX code is processed in PHP to get something that approximates the pdf, after which MathJax and XyJax are let loose to render all math. Besides that, everything is tightly linked together so if you&#8217;re viewing a section&#8217;s tag (e.g. <a href="http://stacks.math.columbia.edu/tag/06U0">stacks:tag/06U0</a>) you can:</p>
<ul>
<li>click on numbered theorems to go to their specific tag page;</li>
<li>use all cross-references between tags;</li>
<li>jump back and forth between sections.</li>
</ul>
<p>So point your browser to <a href="http://stacks.math.columbia.edu/browse">the browse page</a>, pick your favourite chapter and section, and you can start reading the Stacks project without opening any pdf&#8217;s, just by clicking around through the entire project. Don&#8217;t forget there is a powerful search functionality too.</p>
<p>If you encounter any bugs, please contact me. I am aware that it isn&#8217;t working properly in Opera at the moment.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/pbelmans.wordpress.com/999/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/pbelmans.wordpress.com/999/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pbelmans.wordpress.com&#038;blog=15229912&#038;post=999&#038;subd=pbelmans&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://pbelmans.wordpress.com/2012/12/15/online-view-for-the-stacks-project/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://2.gravatar.com/avatar/bf4c56431003682b725b72668e7de35f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">pbelmans</media:title>
		</media:content>
	</item>
		<item>
		<title>A new website for the Stacks project</title>
		<link>http://pbelmans.wordpress.com/2012/07/19/a-new-website-for-the-stacks-project/</link>
		<comments>http://pbelmans.wordpress.com/2012/07/19/a-new-website-for-the-stacks-project/#comments</comments>
		<pubDate>Thu, 19 Jul 2012 20:44:49 +0000</pubDate>
		<dc:creator>pbelmans</dc:creator>
				<category><![CDATA[computer-science]]></category>
		<category><![CDATA[LaTeX]]></category>
		<category><![CDATA[math]]></category>

		<guid isPermaLink="false">http://pbelmans.wordpress.com/?p=867</guid>
		<description><![CDATA[I am happy to announce you the new website for the Stacks project. For those of you who are not familiar the Stacks project: It is an open source textbook and reference work on algebraic stacks and the algebraic geometry needed to define them. A long time ago I wrote about the Stacks project, when [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pbelmans.wordpress.com&#038;blog=15229912&#038;post=867&#038;subd=pbelmans&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>I am happy to announce you the <a href="http://stacks.math.columbia.edu/">new website for the Stacks project</a>. For those of you who are not familiar the Stacks project:</p>
<blockquote><p>It is an open source textbook and reference work on algebraic stacks and the algebraic geometry needed to define them.</p></blockquote>
<p><a href="http://pbelmans.wordpress.com/2010/11/08/the-stacks-project/">A long time ago I wrote about the Stacks project</a>, when I just discovered it. Back then I didn&#8217;t know what a scheme is let alone a stack. And right now I still don&#8217;t know what a stack is. But as you might guess my contribution is the new website, not some chapter on those <a href="http://stacks.math.columbia.edu/chapter/64">mysterious algebraic stacks</a>.</p>
<p>First of all there is a new location: <a href="http://stacks.math.columbia.edu/" title="stacks.math.columbia.edu">stacks.math.columbia.edu</a>. All old URL&#8217;s will redirect to the new location by the way. The highlights of the new version are:</p>
<ol>
<li><a href="http://stacks.math.columbia.edu/tag">tag lookup</a>: all results are given a tag, which is a unique and permanent identifier, if someone refers to &#8220;<a href="http://stacks.math.columbia.edu/tag/03EV">tag 03EV</a>&#8221; you can look up its statement</li>
<li>comments: it is possible to discuss tags, pointing out typos, mistakes, or ask questions about it, it is possible to use Markdown and LaTeX in comments</li>
<li>browse: you can browse the project online, <a href="http://stacks.math.columbia.edu/browse">choose a chapter</a>, <a href="http://stacks.math.columbia.edu/chapter/6">look at its contents</a> and you can navigate sequentially from tag to tag on the tag lookup page</li>
<li>fulltext search: if you come across the limits of searching a pdf you can use the <a href="http://stacks.math.columbia.edu/search">fulltext search</a>, which allows searching for tags or sections containing keywords, with the option to include or exclude proofs and the use of wildcards, logical operators and whatnot</li>
</ol>
<p>There is also the <a href="http://math.columbia.edu/~dejong/wordpress/?p=2641">official announcement</a>, which already suggests the beta nature of the new website. Lots of functionality has been written, and there might (and probably will) be bugs. In case you come across one, you can either <a href="mailto:stacks.project@gmail.com">mail the Stacks project</a>, leave a comment on the official announcement or on this post.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/pbelmans.wordpress.com/867/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/pbelmans.wordpress.com/867/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pbelmans.wordpress.com&#038;blog=15229912&#038;post=867&#038;subd=pbelmans&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://pbelmans.wordpress.com/2012/07/19/a-new-website-for-the-stacks-project/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://2.gravatar.com/avatar/bf4c56431003682b725b72668e7de35f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">pbelmans</media:title>
		</media:content>
	</item>
		<item>
		<title>Why should I be using TeX for graphics?</title>
		<link>http://pbelmans.wordpress.com/2012/06/19/why-should-i-be-using-tex-for-graphics/</link>
		<comments>http://pbelmans.wordpress.com/2012/06/19/why-should-i-be-using-tex-for-graphics/#comments</comments>
		<pubDate>Tue, 19 Jun 2012 20:18:30 +0000</pubDate>
		<dc:creator>pbelmans</dc:creator>
				<category><![CDATA[LaTeX]]></category>

		<guid isPermaLink="false">http://pbelmans.wordpress.com/?p=823</guid>
		<description><![CDATA[As part of the LaTeX and Graphics contest currently active at LaTeX-Community I have written an article about my view on the current state of TeX and graphics. Maybe I will eventually crosspost it to my weblog in one form or another, but for the moment you can read it there: Why should I be [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pbelmans.wordpress.com&#038;blog=15229912&#038;post=823&#038;subd=pbelmans&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>As part of the <a href="http://latex-community.org/component/content/article/92-contests/431-gnuplot-book">LaTeX and Graphics contest</a> currently active at <a href="http://latex-community.org">LaTeX-Community</a> I have written an article about my view on the current state of TeX and graphics. Maybe I will eventually crosspost it to my weblog in one form or another, but for the moment you can read it there: <a href="http://latex-community.org/component/content/article/50-latex-graphics-figures-tables/436-graphics-tools">Why should I be using TeX for graphics?</a> Check out the others too, an overview is given at the bottom of the <a href="http://latex-community.org/component/content/article/92-contests/431-gnuplot-book">overview post</a>.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/pbelmans.wordpress.com/823/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/pbelmans.wordpress.com/823/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pbelmans.wordpress.com&#038;blog=15229912&#038;post=823&#038;subd=pbelmans&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://pbelmans.wordpress.com/2012/06/19/why-should-i-be-using-tex-for-graphics/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://2.gravatar.com/avatar/bf4c56431003682b725b72668e7de35f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">pbelmans</media:title>
		</media:content>
	</item>
		<item>
		<title>A Pygments lexer for GAP</title>
		<link>http://pbelmans.wordpress.com/2012/04/20/a-pygments-lexer-for-gap/</link>
		<comments>http://pbelmans.wordpress.com/2012/04/20/a-pygments-lexer-for-gap/#comments</comments>
		<pubDate>Fri, 20 Apr 2012 08:17:05 +0000</pubDate>
		<dc:creator>pbelmans</dc:creator>
				<category><![CDATA[computer-science]]></category>
		<category><![CDATA[LaTeX]]></category>
		<category><![CDATA[math]]></category>

		<guid isPermaLink="false">http://pbelmans.wordpress.com/?p=807</guid>
		<description><![CDATA[In case you haven&#8217;t heard of one of the most awesome LaTeX packages ever, let me introduce to you: minted. It&#8217;s a package to create listings (code snippets, preferably with highlighting, line numbering etc.), but it goes much further than the more well-known package listings. A small example: Its awesomeness comes at a cost though, [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pbelmans.wordpress.com&#038;blog=15229912&#038;post=807&#038;subd=pbelmans&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>In case you haven&#8217;t heard of one of the most awesome LaTeX packages ever, let me introduce to you: <a href="http://ctan.org/pkg/minted">minted</a>. It&#8217;s a package to create listings (code snippets, preferably with highlighting, line numbering etc.), but it goes much further than the more well-known package <a href="http://ctan.org/pkg/listings">listings</a>. A small example:<br />
<img src="http://i.stack.imgur.com/7sGrC.png" alt="" /><br />
Its awesomeness comes at a cost though, it relies heavily on an external Python program called <a href="http://pygments.org">Pygments</a>. This is a generic tool for highlighting, regardless of output format. It can produce <a href="http://pygments.org/docs/formatters/">TeX, HTML, images, &#8230;</a>. And it comes equipped with a load of <a href="http://pygments.org/languages/">supported languages</a>. And if you&#8217;ve read the title you might guess what this post is about: a language that wasn&#8217;t supported yet.</p>
<p>For a course in computational group theory I have to write a report about an implementation in <a href="http://gap-system.org">GAP</a>, and this is absolutely impossible without the best possible syntax highlighting, right? So I have entertained myself with implementing a GAP lexer. Its implementation is available at <a href="https://github.com/pbelmans/gap-pygments-lexer">github.com/pbelmans/gap-pygments-lexer</a>.</p>
<p>I have supplied an automatic installer, as the <a href="https://github.com/pbelmans/gap-pygments-lexer/blob/master/README.markdown">README</a> suggests it boils down to</p>
<ol>
<li><code>git clone git://github.com/pbelmans/gap-pygments-lexer.git</code> or download and extract the archive GitHub automatically creates at the <a href="https://github.com/pbelmans/gap-pygments-lexer/downloads">project&#8217;s Downloads page</a></li>
<li><code>cd gap-pygments-lexer</code></li>
<li><code>sudo python setup.py install</code></li>
</ol>
<p>I would like to thank <a href="https://twitter.com/#!/wimthys">Wim Thys</a> for providing me with the names of all the built-in classes and functions, using a bit of <code>sed</code> magic. </p>
<p>If you feel inspired, there are several other languages that need an implementation:</p>
<ul>
<li><a href="http://maplesoft.com">Maple</a></li>
<li><a href="http://magma.maths.usyd.edu.au/magma/">Magma</a> (but they are be <a href="http://magma.maths.usyd.edu.au/magma/extra/highlight/README.txt">working on it themselves apparently</a>)</li>
<li><a href="http://pari.math.u-bordeaux.fr/">PARI/GP</a> (this one has the most intriguing syntax of all)</li>
</ul>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/pbelmans.wordpress.com/807/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/pbelmans.wordpress.com/807/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pbelmans.wordpress.com&#038;blog=15229912&#038;post=807&#038;subd=pbelmans&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://pbelmans.wordpress.com/2012/04/20/a-pygments-lexer-for-gap/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://2.gravatar.com/avatar/bf4c56431003682b725b72668e7de35f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">pbelmans</media:title>
		</media:content>

		<media:content url="http://i.stack.imgur.com/7sGrC.png" medium="image" />
	</item>
		<item>
		<title>How to write Čech cohomology groups in LaTeX</title>
		<link>http://pbelmans.wordpress.com/2012/03/29/how-to-write-cech-cohomology-groups-in-latex/</link>
		<comments>http://pbelmans.wordpress.com/2012/03/29/how-to-write-cech-cohomology-groups-in-latex/#comments</comments>
		<pubDate>Thu, 29 Mar 2012 15:58:23 +0000</pubDate>
		<dc:creator>pbelmans</dc:creator>
				<category><![CDATA[LaTeX]]></category>

		<guid isPermaLink="false">http://pbelmans.wordpress.com/?p=791</guid>
		<description><![CDATA[Just like writing direct and inverse limits in TeX, the way to write Čech cohomology groups in TeX is something that doesn&#8217;t come up easily in Google unless you know what to look for (basically a list of math mode accents, but I am not the only person obstinately searching with the wrong keywords, right?). [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pbelmans.wordpress.com&#038;blog=15229912&#038;post=791&#038;subd=pbelmans&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>Just like <a href="http://pbelmans.wordpress.com/2010/10/02/direct-and-inverse-limit-in-latex/">writing direct and inverse limits in TeX</a>, the way to write <a href="http://en.wikipedia.org/wiki/%C4%8Cech_cohomology">Čech cohomology</a> groups in TeX is something that doesn&#8217;t come up easily in Google unless you know what to look for (basically a <a href="http://en.wikibooks.org/wiki/LaTeX/Accents#Math_mode">list of math mode accents</a>, but I am not the only person obstinately searching with the wrong keywords, right?).</p>
<p>So in text mode you write <code>\v{C}ech</code>, and in case you wish to write down the <img src='http://s0.wp.com/latex.php?latex=n&amp;bg=f9f7f5&amp;fg=444444&amp;s=0' alt='n' title='n' class='latex' />-th Čech cohomology group <img src='http://s0.wp.com/latex.php?latex=%5Ccheck%7B%5Cmathrm%7BH%7D%7D%5En%28X%2C%5Cmathcal%7BF%7D%29&amp;bg=f9f7f5&amp;fg=444444&amp;s=0' alt='&#92;check{&#92;mathrm{H}}^n(X,&#92;mathcal{F})' title='&#92;check{&#92;mathrm{H}}^n(X,&#92;mathcal{F})' class='latex' /> of a topological space <img src='http://s0.wp.com/latex.php?latex=X&amp;bg=f9f7f5&amp;fg=444444&amp;s=0' alt='X' title='X' class='latex' /> and the sheaf <img src='http://s0.wp.com/latex.php?latex=%5Cmathcal%7BF%7D&amp;bg=f9f7f5&amp;fg=444444&amp;s=0' alt='&#92;mathcal{F}' title='&#92;mathcal{F}' class='latex' /> you use <code>\check{\mathrm{H}}^n(X,\mathcal{F})</code>. Notice the use of <code>\mathrm{H}</code> for the actual (co)homology object, you could/should do this too! </p>
<p><small>Don&#8217;t shoot the nitpicky typesetting aficionado please. And consider using a macro like <code>\newcommand\HH{\mathrm{H}}</code> for easier typing. And of course <code>\newcommand\cHH{\check{\mathrm{H}}}</code>.</small></p>
<p>Let this fact be known too.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/pbelmans.wordpress.com/791/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/pbelmans.wordpress.com/791/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pbelmans.wordpress.com&#038;blog=15229912&#038;post=791&#038;subd=pbelmans&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://pbelmans.wordpress.com/2012/03/29/how-to-write-cech-cohomology-groups-in-latex/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://2.gravatar.com/avatar/bf4c56431003682b725b72668e7de35f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">pbelmans</media:title>
		</media:content>
	</item>
		<item>
		<title>A beamer theme for the University of Ghent</title>
		<link>http://pbelmans.wordpress.com/2012/02/09/a-beamer-theme-for-the-university-of-ghent/</link>
		<comments>http://pbelmans.wordpress.com/2012/02/09/a-beamer-theme-for-the-university-of-ghent/#comments</comments>
		<pubDate>Thu, 09 Feb 2012 20:10:59 +0000</pubDate>
		<dc:creator>pbelmans</dc:creator>
				<category><![CDATA[LaTeX]]></category>

		<guid isPermaLink="false">http://pbelmans.wordpress.com/?p=754</guid>
		<description><![CDATA[I have created a beamer theme for the University of Ghent (as the title already suggests), inspired by the excellent beamer theme for the University of Antwerp created by Nico Schlömer. There is already an implementation, but it doesn&#8217;t meet the style guide and it is only available out-of-the-box for the Faculty of Engineering and [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pbelmans.wordpress.com&#038;blog=15229912&#038;post=754&#038;subd=pbelmans&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>I have created a <a href="https://github.com/pbelmans/ugent-beamer">beamer theme for the University of Ghent</a> (as the title already suggests), inspired by the excellent <a href="https://github.com/nschloe/ua-beamer">beamer theme for the University of Antwerp</a> created by <a href="http://win.ua.ac.be/~nschloe/">Nico Schlömer</a>. There is already <a href="http://latex.ugent.be/node/52">an implementation</a>, but it doesn&#8217;t meet the <a href="http://www.ugent.be/nl/werken/organisatie/huisstijl">style guide</a> and it is only available out-of-the-box for the Faculty of Engineering and Architecture.</p>
<p>So I have decided to implement a UGent beamer theme myself, adhering to the style guide and following the philosophy set out by Nico. The implementation is available at GitHub, by means of the <a href="https://github.com/pbelmans/ugent-beamer/downloads">ugent-beamer project</a>. I have rewritten Nico&#8217;s documentation to match my personal view on the subject of beamer themes, the result is available as a <a href="https://github.com/downloads/pbelmans/ugent-beamer/documentation.pdf">separate download</a>. In case you wish to use the theme and you&#8217;re not that git-savvy, you can download the <a href="https://github.com/downloads/pbelmans/ugent-beamer/ugent-beamer.tar">archive</a> at the <a href="https://github.com/pbelmans/ugent-beamer/downloads">Downloads page</a>. It contains all the necessary files, including the documentation.</p>
<p>The first two slides from the example I have supplied are</p>
<p><img src="http://pbelmans.files.wordpress.com/2012/02/title-slide.png?w=497" alt="An example slide from the UGent beamer theme" /></p>
<p><img src="http://pbelmans.files.wordpress.com/2012/02/slide.png?w=497" alt="A second example slide from the UGent beamer theme" /></p>
<p>Installing beamer themes can be quite a hassle if you&#8217;re not acquainted with the inner workings of MiKTeX or TeX Live, but it should be thoroughly explained in the documentation. If anything is not clear or something is wrong, please let me know. As for now, there are still several things I would like to do with the theme in the future, they are listed at the <a href="https://github.com/pbelmans/ugent-beamer/issues">Issues page</a>.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/pbelmans.wordpress.com/754/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/pbelmans.wordpress.com/754/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pbelmans.wordpress.com&#038;blog=15229912&#038;post=754&#038;subd=pbelmans&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://pbelmans.wordpress.com/2012/02/09/a-beamer-theme-for-the-university-of-ghent/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://2.gravatar.com/avatar/bf4c56431003682b725b72668e7de35f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">pbelmans</media:title>
		</media:content>

		<media:content url="http://pbelmans.files.wordpress.com/2012/02/title-slide.png" medium="image">
			<media:title type="html">An example slide from the UGent beamer theme</media:title>
		</media:content>

		<media:content url="http://pbelmans.files.wordpress.com/2012/02/slide.png" medium="image">
			<media:title type="html">A second example slide from the UGent beamer theme</media:title>
		</media:content>
	</item>
		<item>
		<title>Changing \href{}{} to produce footnotes</title>
		<link>http://pbelmans.wordpress.com/2011/12/14/changing-href-to-produce-footnotes/</link>
		<comments>http://pbelmans.wordpress.com/2011/12/14/changing-href-to-produce-footnotes/#comments</comments>
		<pubDate>Wed, 14 Dec 2011 08:19:13 +0000</pubDate>
		<dc:creator>pbelmans</dc:creator>
				<category><![CDATA[LaTeX]]></category>

		<guid isPermaLink="false">http://pbelmans.wordpress.com/?p=719</guid>
		<description><![CDATA[While preparing a document with lots of links for both online and offline viewing, I wanted the offline (i.e. printable) version to contain fulltext hyperlinks in the footnote. So whenever LaTeX comes across a \href{http://example.org}{Example website} I want it converted to something like Example website\footnote{\url{http://example.org}}. Inspired by this answer to the related TeX.SX question I [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pbelmans.wordpress.com&#038;blog=15229912&#038;post=719&#038;subd=pbelmans&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>While preparing a document with lots of links for both online and offline viewing, I wanted the offline (i.e. printable) version to contain fulltext hyperlinks in the footnote. So whenever LaTeX comes across a <code>\href{http://example.org}{Example website}</code> I want it converted to something like <code>Example website\footnote{\url{http://example.org}}</code>. Inspired by <a href="http://tex.stackexchange.com/a/13147/210">this answer</a> to the <a href="http://tex.stackexchange.com/questions/12774/changing-hrefs-to-footnotes">related TeX.SX question</a> I came up with</p>
<pre class="brush: latex; title: ; wrap-lines: false; notranslate">
\makeatletter
\newcommand\href@footnote[2]{#2\footnote{\url{#1}}}
\DeclareRobustCommand{\href}{\hyper@normalise\href@footnote}
\makeatother
</pre>
<p>This code properly handles active characters in url&#8217;s. Which is exactly what I want :).</p>
<p>I&#8217;m not claiming any originality here, but you might find it useful.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/pbelmans.wordpress.com/719/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/pbelmans.wordpress.com/719/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pbelmans.wordpress.com&#038;blog=15229912&#038;post=719&#038;subd=pbelmans&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://pbelmans.wordpress.com/2011/12/14/changing-href-to-produce-footnotes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://2.gravatar.com/avatar/bf4c56431003682b725b72668e7de35f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">pbelmans</media:title>
		</media:content>
	</item>
		<item>
		<title>Dutch LaTeX course</title>
		<link>http://pbelmans.wordpress.com/2011/12/05/latex-course/</link>
		<comments>http://pbelmans.wordpress.com/2011/12/05/latex-course/#comments</comments>
		<pubDate>Mon, 05 Dec 2011 20:52:02 +0000</pubDate>
		<dc:creator>pbelmans</dc:creator>
				<category><![CDATA[LaTeX]]></category>

		<guid isPermaLink="false">http://pbelmans.wordpress.com/?p=711</guid>
		<description><![CDATA[Just like last year I gave a LaTeX course in Dutch, for students at the University of Antwerp. Now it&#8217;s time to share my material with the world. Remark that it is explicitly tailored at the student population: I&#8217;ve used the (non-optimal) configuration of the computers there as the starting point of my classes. And [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pbelmans.wordpress.com&#038;blog=15229912&#038;post=711&#038;subd=pbelmans&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>Just like last year I gave a LaTeX course in Dutch, for students at the University of Antwerp. Now it&#8217;s time to share my material with the world. Remark that it is explicitly tailored at the student population: I&#8217;ve used the (non-optimal) configuration of the computers there as the starting point of my classes. And as the target population consists of students at the Faculty of Sciences (and by extension the Faculty of Economy), the main focus lies on their core activities: math, code, beamer, a little bit of chemistry. A course especially written for humanities students would be an interesting thing to make, but that&#8217;s out of the question now :). The slides aren&#8217;t perfect, but I&#8217;m quite satisfied with them.</p>
<p>Anyhow, in case you want to use my material (conceived as 4 weeks of 3 hours classes each), please contact me, but otherwise you&#8217;re free to use them for your own benefit. The actual material is available at <a href="http://acmantwerp.acm.org/?page_id=158">the ACM Antwerp LaTeX course page</a> (not complete yet), the code necessary to create it is available at <a href="https://github.com/pbelmans/Dutch-LaTeX-course">github.com/pbelmans/Dutch-LaTeX-course</a> (where else&#8230;), using <code>pdflatex --shell-escape slides</code> and building several times should do the trick if you&#8217;ve got <a href="http://pygments.org">Pygment</a>s with <a href="https://github.com/pbelmans/UAStyle">correct Pygments style</a> and the <a href="https://github.com/nschloe/ua-beamer">correct beamer theme</a> installed.</p>
<p><small>I realize this post has little or no value if you don&#8217;t speak Dutch, my apologies if this applies to you.</small></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/pbelmans.wordpress.com/711/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/pbelmans.wordpress.com/711/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pbelmans.wordpress.com&#038;blog=15229912&#038;post=711&#038;subd=pbelmans&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://pbelmans.wordpress.com/2011/12/05/latex-course/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
	
		<media:content url="http://2.gravatar.com/avatar/bf4c56431003682b725b72668e7de35f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">pbelmans</media:title>
		</media:content>
	</item>
	</channel>
</rss>