<?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>LaTeX &#8211; Matthew Petroff</title>
	<atom:link href="https://mpetroff.net/tag/latex/feed/" rel="self" type="application/rss+xml" />
	<link>https://mpetroff.net</link>
	<description>mpetroff.net</description>
	<lastBuildDate>Wed, 30 Nov 2016 02:06:30 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	
	<item>
		<title>Automated Document Creation and Typesetting with LaTeX</title>
		<link>https://mpetroff.net/2015/06/automated-document-creation-and-typesetting-with-latex/</link>
					<comments>https://mpetroff.net/2015/06/automated-document-creation-and-typesetting-with-latex/#respond</comments>
		
		<dc:creator><![CDATA[Matthew Petroff]]></dc:creator>
		<pubDate>Tue, 30 Jun 2015 21:41:36 +0000</pubDate>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[forms]]></category>
		<category><![CDATA[LaTeX]]></category>
		<category><![CDATA[scripting]]></category>
		<guid isPermaLink="false">http://mpetroff.net/?p=1903</guid>

					<description><![CDATA[Creating a new document class file and then using this class is usually considered the &#8220;correct&#8221; way to typeset a form or other document generated with data in . However, there&#8217;s also the quick-and-dirty method of creating a regular document &#8230; <a href="https://mpetroff.net/2015/06/automated-document-creation-and-typesetting-with-latex/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
										<content:encoded><![CDATA[<p><span class="dropcap">C</span>reating a new document <a href="http://www.latex-community.org/know-how/latex/54-latex-document-classes/342-writing-a-latex-class-file-to-produce-a-form">class file</a> and then using this class is usually considered the &#8220;correct&#8221; way to typeset a form or other document generated with data in <img src='https://s0.wp.com/latex.php?latex=%5CLaTeX&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\LaTeX' title='\LaTeX' class='latex' />. However, there&#8217;s also the quick-and-dirty method of creating a regular <img src='https://s0.wp.com/latex.php?latex=%5CLaTeX&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\LaTeX' title='\LaTeX' class='latex' /> document every time in a script using some sort of string concatenation and then typesetting this, which also has its merits. When a class file is used, the class describes the document look and structure; a new <img src='https://s0.wp.com/latex.php?latex=%5CLaTeX&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\LaTeX' title='\LaTeX' class='latex' /> document still needs to be created each time to define the data. Not writing a class file and placing the document look and structure typesetting code directly in the generation script isn&#8217;t as clean as the class method as it mixes styling with data, but it does make some things easier. The quick-and-dirty approach doesn&#8217;t require knowing the additional <img src='https://s0.wp.com/latex.php?latex=%5CLaTeX&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\LaTeX' title='\LaTeX' class='latex' /> language features needed for creating a class, using only what would use in a normal document. In particular, it is useful for automatically generating documents that change in structure based on the input data or other more complicated logic. This can obviously all be implemented as a <img src='https://s0.wp.com/latex.php?latex=%5CLaTeX&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\LaTeX' title='\LaTeX' class='latex' /> class since <img src='https://s0.wp.com/latex.php?latex=%5CTeX&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\TeX' title='\TeX' class='latex' /> is a Turing-complete language, but general purpose scripting languages such as Python are easier to use for this, particularly since most programmers use them much more often than they create complicated <img src='https://s0.wp.com/latex.php?latex=%5CLaTeX&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\LaTeX' title='\LaTeX' class='latex' /> classes. The quick-and-dirty approach trades the class method&#8217;s cleaner design for ease of script creation. However, if the form will ever be created by hand, the class method is definitely superior.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://mpetroff.net/2015/06/automated-document-creation-and-typesetting-with-latex/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Another Beamer Theme Matrix</title>
		<link>https://mpetroff.net/2014/11/another-beamer-theme-matrix/</link>
					<comments>https://mpetroff.net/2014/11/another-beamer-theme-matrix/#respond</comments>
		
		<dc:creator><![CDATA[Matthew Petroff]]></dc:creator>
		<pubDate>Sat, 29 Nov 2014 03:00:11 +0000</pubDate>
				<category><![CDATA[Miscellaneous]]></category>
		<category><![CDATA[Beamer]]></category>
		<category><![CDATA[LaTeX]]></category>
		<category><![CDATA[matrix]]></category>
		<category><![CDATA[theme]]></category>
		<guid isPermaLink="false">http://mpetroff.net/?p=1659</guid>

					<description><![CDATA[The Beamer package for creating presentation slides has hundreds of styles available between all of the combinations of its included themes and color themes. Therefore, it is helpful to be able to look through all the possibilities in order to &#8230; <a href="https://mpetroff.net/2014/11/another-beamer-theme-matrix/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
										<content:encoded><![CDATA[<p><span class="dropcap">T</span>he <a href="https://bitbucket.org/rivanvx/beamer">Beamer</a> <img src='https://s0.wp.com/latex.php?latex=%5CLaTeX&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\LaTeX' title='\LaTeX' class='latex' /> package for creating presentation slides has hundreds of styles available between all of the combinations of its included themes and color themes. Therefore, it is helpful to be able to look through all the possibilities in order to choose a style. A resource for this exists, the <a href="http://www.hartwork.org/beamer-theme-matrix/">Beamer Theme Matrix</a>; however, its load times lead much to be desired, particularly on a slower Internet connection. It uses two separate images for each combination, causing the browser to make over 800 requests to the server. This, combined with a page size of approximately 6.6MB, causes page load times in excess of 10 seconds on a fast connection and over a minute on a slow one. To remedy this, I created <a href="/files/beamer-theme-matrix/">Another Beamer Theme Matrix</a>. The page is less than 1MB and causes the browser to make fewer than 40 requests to the server, resulting in load times of under a second on a fast connection and under 10 seconds on a slow one, an order of magnitude improvement. This is accomplished by combining the thumbnails for each color theme of a particular theme into a single PNG sprite, which is then reduced to 8-bit color using <a href="http://pngquant.org/">pngquant</a> and further optimized using <a href="http://optipng.sourceforge.net/">OptiPNG</a>. To further increase usability of the matrix, small bits of JavaScript were used to always keep the row and column labels visible, a lightbox was added for viewing the full-size previews, and a welcome and help screen was added that explains the matrix and how to use values from the matrix in a <img src='https://s0.wp.com/latex.php?latex=%5CLaTeX&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\LaTeX' title='\LaTeX' class='latex' /> document.</p>
<p><a title="Another Beamer Theme Matrix" href="https://cdn0.mpetroff.net/wp-content/uploads/2014/11/another-beamer-theme-matrix.png" data-sbox="1659"><img decoding="async" class="aligncenter size-full wp-image-1667" src="https://cdn0.mpetroff.net/wp-content/uploads/2014/11/another-beamer-theme-matrix.png" alt="Another Beamer Theme Matrix" width="640" height="480" srcset="https://cdn0.mpetroff.net/wp-content/uploads/2014/11/another-beamer-theme-matrix.png 640w, https://cdn0.mpetroff.net/wp-content/uploads/2014/11/another-beamer-theme-matrix-300x225.png 300w" sizes="(max-width: 640px) 100vw, 640px" /></a></p>
<p>Another Beamer Theme Matrix&#8217;s source code is available under an <a href="https://github.com/mpetroff/beamer-theme-matrix/blob/master/COPYING">MIT license</a> on <a href="https://github.com/mpetroff/beamer-theme-matrix">GitHub</a>. While inspired by the existing Beamer Theme Matrix, it is a complete rewrite in Python.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://mpetroff.net/2014/11/another-beamer-theme-matrix/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>

<!--
Performance optimized by W3 Total Cache. Learn more: https://www.boldgrid.com/w3-total-cache/?utm_source=w3tc&utm_medium=footer_comment&utm_campaign=free_plugin

Page Caching using Disk: Enhanced 
Content Delivery Network via Amazon Web Services: CloudFront: cdn0.mpetroff.net
Minified using Disk

Served from: mpetroff.net @ 2026-03-31 01:37:19 by W3 Total Cache
-->