<?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>scripting &#8211; Matthew Petroff</title>
	<atom:link href="https://mpetroff.net/tag/scripting/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>
	</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:31:55 by W3 Total Cache
-->