<?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:creativeCommons="http://backend.userland.com/creativeCommonsRssModule"
>

<channel>
	<title>latex | Psyops Prime</title>
	<atom:link href="https://psyopsprime.com/tag/latex/feed/" rel="self" type="application/rss+xml" />
	<link>https://psyopsprime.com</link>
	<description>An Idea Log</description>
	<lastBuildDate>Wed, 30 May 2018 14:33:02 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>
	<creativeCommons:license>https://creativecommons.org/licenses/by-nc-nd/4.0/</creativeCommons:license>
<site xmlns="com-wordpress:feed-additions:1">99640787</site>	<item>
		<title>Code Listings for Latex</title>
		<link>https://psyopsprime.com/education/code-listings-for-latex/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=code-listings-for-latex</link>
					<comments>https://psyopsprime.com/education/code-listings-for-latex/#respond</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Sun, 27 May 2018 17:02:50 +0000</pubDate>
				<category><![CDATA[Education]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[latex]]></category>
		<guid isPermaLink="false">http://psyopsprime.com/?p=1838</guid>

					<description><![CDATA[<p>I wrote an article a few days back about writing a research paper. That became too long and I had to cut it short. However,</p>
The post <a href="https://psyopsprime.com/education/code-listings-for-latex/">Code Listings for Latex</a> first appeared on <a href="https://psyopsprime.com">Psyops Prime</a>.]]></description>
										<content:encoded><![CDATA[<p style="text-align: justify;">I wrote an article a few days back about writing a research paper. That became too long and I had to cut it short. However, it turns out that in as much as it had plenty of advice, many of the things were missed. One of those things is about various kinds of codes for Latex. Here I am posting code listings for various kinds of functions in Latex.</p>
<div class="codecolorer-container latex default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;height:300px;"><div class="latex codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap;">The pseudo-code for NUAV is shown in Algorithm~<span style="color: #E02020; ">\</span><a href="http://www.golatex.de/wiki/%5Cref"><span style="color: #800000;">ref</span></a><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">alg:algo-1<span style="color: #E02020; ">}</span>.<br />
<span style="color: #C00000; font-weight: normal;">\begin</span><span style="color: #E02020; ">{</span><span style="color: #0000D0; font-weight: normal;">algorithm</span><span style="color: #E02020; ">}</span><br />
<span style="color: #E02020; ">\</span><a href="http://www.golatex.de/wiki/%5Ccaption"><span style="color: #800000;">caption</span></a><span style="color: #E02020; ">{</span>NUAV testbed<span style="color: #E02020; ">}</span><br />
<span style="color: #E02020; ">\</span><a href="http://www.golatex.de/wiki/%5Clabel"><span style="color: #800000;">label</span></a><span style="color: #E02020; ">{</span>alg:algo-1<span style="color: #E02020; ">}</span><br />
<span style="color: #C00000; font-weight: normal;">\begin</span><span style="color: #E02020; ">{</span><span style="color: #0000D0; font-weight: normal;">algorithmic</span><span style="color: #E02020; ">}</span><br />
<span style="color: #800000; font-weight: normal;">\STATE</span> <span style="color: #8020E0; font-weight: normal;">$NET <span style="color: #800000; font-weight: normal;">\gets</span> nnsetup(architecture)$</span><br />
<span style="color: #800000; font-weight: normal;">\STATE</span> <span style="color: #8020E0; font-weight: normal;">$numweights <span style="color: #800000; font-weight: normal;">\gets</span> nnnumweights(NET)$</span><br />
<span style="color: #800000; font-weight: normal;">\STATE</span> <span style="color: #8020E0; font-weight: normal;">$Population <span style="color: #800000; font-weight: normal;">\gets</span> initPop$</span><br />
<span style="color: #800000; font-weight: normal;">\FOR</span><span style="color: #E02020; ">{</span><span style="color: #8020E0; font-weight: normal;">$i=1:PopSize$</span><span style="color: #E02020; ">}</span><br />
<span style="color: #800000; font-weight: normal;">\STATE</span> <span style="color: #8020E0; font-weight: normal;">$NET <span style="color: #800000; font-weight: normal;">\gets</span> nnassignweights(NET, offspringPop(i))$</span><br />
<span style="color: #800000; font-weight: normal;">\FOR</span><span style="color: #E02020; ">{</span><span style="color: #8020E0; font-weight: normal;">$j=1:epochs$</span><span style="color: #E02020; ">}</span><br />
<span style="color: #800000; font-weight: normal;">\STATE</span> <span style="color: #8020E0; font-weight: normal;">$inputData <span style="color: #800000; font-weight: normal;">\gets</span> getFlightData$</span><br />
<span style="color: #800000; font-weight: normal;">\STATE</span> <span style="color: #8020E0; font-weight: normal;">$outputData <span style="color: #800000; font-weight: normal;">\gets</span> FeedForward(inputData)$</span><br />
<span style="color: #800000; font-weight: normal;">\STATE</span> <span style="color: #8020E0; font-weight: normal;">$sendFlightData(outputData)$</span><br />
<span style="color: #800000; font-weight: normal;">\ENDFOR</span><br />
<span style="color: #800000; font-weight: normal;">\STATE</span> <span style="color: #8020E0; font-weight: normal;">$Individual(i) <span style="color: #800000; font-weight: normal;">\gets</span> evaluateInd()$</span><br />
<span style="color: #800000; font-weight: normal;">\ENDFOR</span><br />
<span style="color: #800000; font-weight: normal;">\FOR</span><span style="color: #E02020; ">{</span><span style="color: #8020E0; font-weight: normal;">$i=1:gen$</span><span style="color: #E02020; ">}</span><br />
<span style="color: #800000; font-weight: normal;">\STATE</span> <span style="color: #8020E0; font-weight: normal;">$parents <span style="color: #800000; font-weight: normal;">\gets</span> tournamentSelection$</span><br />
<span style="color: #800000; font-weight: normal;">\STATE</span> <span style="color: #8020E0; font-weight: normal;">$childPop <span style="color: #800000; font-weight: normal;">\gets</span> geneticOperators(parents)$</span><br />
<span style="color: #800000; font-weight: normal;">\FOR</span><span style="color: #E02020; ">{</span><span style="color: #8020E0; font-weight: normal;">$j=1:PopSize$</span><span style="color: #E02020; ">}</span><br />
<span style="color: #800000; font-weight: normal;">\STATE</span> <span style="color: #8020E0; font-weight: normal;">$NET <span style="color: #800000; font-weight: normal;">\gets</span> nnassignweights(NET, childPop(j))$</span><br />
<span style="color: #800000; font-weight: normal;">\FOR</span><span style="color: #E02020; ">{</span><span style="color: #8020E0; font-weight: normal;">$k=1:epochs$</span><span style="color: #E02020; ">}</span><br />
<span style="color: #800000; font-weight: normal;">\STATE</span> <span style="color: #8020E0; font-weight: normal;">$inputData <span style="color: #800000; font-weight: normal;">\gets</span> getFlightData$</span><br />
<span style="color: #800000; font-weight: normal;">\STATE</span> <span style="color: #8020E0; font-weight: normal;">$outputData <span style="color: #800000; font-weight: normal;">\gets</span> FeedForward(inputData)$</span><br />
<span style="color: #800000; font-weight: normal;">\STATE</span> <span style="color: #8020E0; font-weight: normal;">$sendFlightData(outputData)$</span><br />
<span style="color: #800000; font-weight: normal;">\ENDFOR</span><br />
<span style="color: #800000; font-weight: normal;">\STATE</span> <span style="color: #8020E0; font-weight: normal;">$Individual(i) <span style="color: #800000; font-weight: normal;">\gets</span> evaluateInd()$</span><br />
<span style="color: #800000; font-weight: normal;">\ENDFOR</span><br />
<span style="color: #800000; font-weight: normal;">\STATE</span> <span style="color: #8020E0; font-weight: normal;">$Population <span style="color: #800000; font-weight: normal;">\gets</span> replacement(parentPop, childPop)$</span><br />
<span style="color: #800000; font-weight: normal;">\ENDFOR</span><br />
<span style="color: #C00000; font-weight: normal;">\end</span><span style="color: #E02020; ">{</span><span style="color: #0000D0; font-weight: normal;">algorithmic</span><span style="color: #E02020; ">}</span><br />
<span style="color: #C00000; font-weight: normal;">\end</span><span style="color: #E02020; ">{</span><span style="color: #0000D0; font-weight: normal;">algorithm</span></span><span style="color: #E02020; ">}</span></div></div>
<p style="text-align: justify;">You can create tables using the tabular environment. Never create a table in a different software and then save it as a figure of some sort. Always create tables using the standard fashion prescribed for latex. Here is an example snippet.</p>
<div class="codecolorer-container latex default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="latex codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap;"><span style="color: #C00000; font-weight: normal;">\begin</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;"><span style="color: #0000D0; font-weight: normal;">center</span><span style="color: #E02020; ">}</span><br />
<span style="color: #C00000; font-weight: normal;">\begin</span><span style="color: #E02020; ">{</span><span style="color: #0000D0; font-weight: normal;">tabular</span><span style="color: #E02020; ">}{</span> c c c <span style="color: #E02020; ">}</span><br />
cell1 <span style="color: #E02020; ">&amp;</span>amp; cell2 <span style="color: #E02020; ">&amp;</span>amp; cell3 <span style="color: #E02020; ">&amp;</span>#92;<br />
cell4 <span style="color: #E02020; ">&amp;</span>amp; cell5 <span style="color: #E02020; ">&amp;</span>amp; cell6 <span style="color: #E02020; ">&amp;</span>#92;<br />
cell7 <span style="color: #E02020; ">&amp;</span>amp; cell8 <span style="color: #E02020; ">&amp;</span>amp; cell9<br />
<span style="color: #C00000; font-weight: normal;">\end</span><span style="color: #E02020; ">{</span><span style="color: #0000D0; font-weight: normal;">tabular</span><span style="color: #E02020; ">}</span><br />
<span style="color: #C00000; font-weight: normal;">\end</span><span style="color: #E02020; ">{</span><span style="color: #0000D0; font-weight: normal;">center</span></span><span style="color: #E02020; ">}</span></div></div>
<p>Here is a complete tutorial for this.</p>
<blockquote class="embedly-card">
<h4><a href="https://www.sharelatex.com/learn/Tables">Tables &#8211; ShareLaTeX, Online LaTeX Editor</a></h4>
<p>A comprehensive LaTeX guide with easy to understand examples and how-tos.</p></blockquote>
<p><script async src="//cdn.embedly.com/widgets/platform.js" charset="UTF-8"></script></p>
<p>&nbsp;</p>
<p><small><a style="text-decoration: none;" title="Image inserted by the ImageInject WordPress plugin" href="http://wpinject.com/" rel="nofollow">Photo</a> by <a href="http://www.flickr.com/photos/27801648@N04/3803881099" target="_blank" rel="noopener">martingreffe</a> <a title="Attribution License" href="http://creativecommons.org/licenses/by/2.0/" target="_blank" rel="nofollow noopener"><img data-recalc-dims="1" decoding="async" src="https://i0.wp.com/psyopsprime.com/wp-content/plugins/wp-inject/images/cc.png?w=750" /></a></small></p>The post <a href="https://psyopsprime.com/education/code-listings-for-latex/">Code Listings for Latex</a> first appeared on <a href="https://psyopsprime.com">Psyops Prime</a>.]]></content:encoded>
					
					<wfw:commentRss>https://psyopsprime.com/education/code-listings-for-latex/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
				<creativeCommons:license>https://creativecommons.org/licenses/by-nc-nd/4.0/</creativeCommons:license>
<post-id xmlns="com-wordpress:feed-additions:1">1838</post-id>	</item>
	</channel>
</rss>
