<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: LaTeX: Document Creation Alternative</title>
	<atom:link href="http://scott.sherrillmix.com/blog/programmer/latex-document-creation-alternative/feed/" rel="self" type="application/rss+xml" />
	<link>http://scott.sherrillmix.com/blog/programmer/latex-document-creation-alternative/</link>
	<description>I'm a biologist not a...</description>
	<lastBuildDate>Mon, 26 Jul 2010 17:58:38 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: ScottS-M</title>
		<link>http://scott.sherrillmix.com/blog/programmer/latex-document-creation-alternative/comment-page-1/#comment-130562</link>
		<dc:creator>ScottS-M</dc:creator>
		<pubDate>Thu, 23 Apr 2009 15:20:50 +0000</pubDate>
		<guid isPermaLink="false">http://scott.sherrillmix.com/blog/programmer/latex-document-creation-alternative/#comment-130562</guid>
		<description>Did &lt;code&gt;verbatim&lt;/code&gt; work for you? A simple beamer slide might look like:

&lt;pre&gt;&lt;code&gt;\begin{frame}[fragile]
\frametitle{Some Python Code}
\begin{verbatim}
for i in range(1, 5):
  print i
else:
  print &quot;The for loop is over&quot;
\end{verbatim}
\end{frame}&lt;/code&gt;&lt;/pre&gt;

If you want to highlight within a verbatim, then you&#039;d probably want to use the &lt;code&gt;fancyvrb&lt;/code&gt; package (and the &lt;code&gt;color&lt;/code&gt; package) and do something like:
&lt;pre&gt;&lt;code&gt;\begin{frame}[fragile]
\frametitle{Some Python Code}
\newcommand\codeHighlight[1]{\textcolor[rgb]{1,0,0}{\textbf{#1}}}
\begin{Verbatim}[commandchars=\\\{\}]
\codeHighlight{for} i in range(1, 5):
  print i
else:
  print &quot;The for loop is over&quot;
\end{Verbatim}
\end{frame}&lt;/code&gt;&lt;/pre&gt;
The &lt;code&gt;Pygments&lt;/code&gt; package in Python will also output syntax highlighted latex code with something like: &lt;code&gt;pygmentize -f latex -O full test.py &gt;py.tex&lt;/code&gt;.

Hmm this ended up getting pretty long. I may have to throw this into a post this evening.</description>
		<content:encoded><![CDATA[<p>Did <code>verbatim</code> work for you? A simple beamer slide might look like:</p>
<pre><code>\begin{frame}[fragile]
\frametitle{Some Python Code}
\begin{verbatim}
for i in range(1, 5):
  print i
else:
  print &quot;The for loop is over&quot;
\end{verbatim}
\end{frame}</code></pre>
<p>If you want to highlight within a verbatim, then you&#8217;d probably want to use the <code>fancyvrb</code> package (and the <code>color</code> package) and do something like:</p>
<pre><code>\begin{frame}[fragile]
\frametitle{Some Python Code}
\newcommand\codeHighlight[1]{\textcolor[rgb]{1,0,0}{\textbf{#1}}}
\begin{Verbatim}[commandchars=\\\{\}]
\codeHighlight{for} i in range(1, 5):
  print i
else:
  print &quot;The for loop is over&quot;
\end{Verbatim}
\end{frame}</code></pre>
<p>The <code>Pygments</code> package in Python will also output syntax highlighted latex code with something like: <code>pygmentize -f latex -O full test.py &gt;py.tex</code>.</p>
<p>Hmm this ended up getting pretty long. I may have to throw this into a post this evening.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: gioby</title>
		<link>http://scott.sherrillmix.com/blog/programmer/latex-document-creation-alternative/comment-page-1/#comment-130545</link>
		<dc:creator>gioby</dc:creator>
		<pubDate>Thu, 23 Apr 2009 09:43:27 +0000</pubDate>
		<guid isPermaLink="false">http://scott.sherrillmix.com/blog/programmer/latex-document-creation-alternative/#comment-130545</guid>
		<description>Do you know of a way to include examples of python code in LaTeX? 
I find it very difficult because of how it manages the indentation.</description>
		<content:encoded><![CDATA[<p>Do you know of a way to include examples of python code in LaTeX?<br />
I find it very difficult because of how it manages the indentation.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Interesting Links (08-01-23) :: Dammit Jim!</title>
		<link>http://scott.sherrillmix.com/blog/programmer/latex-document-creation-alternative/comment-page-1/#comment-27758</link>
		<dc:creator>Interesting Links (08-01-23) :: Dammit Jim!</dc:creator>
		<pubDate>Thu, 24 Jan 2008 04:58:37 +0000</pubDate>
		<guid isPermaLink="false">http://scott.sherrillmix.com/blog/programmer/latex-document-creation-alternative/#comment-27758</guid>
		<description>[...] Knuth and LaTeXI like LaTeX so I found this bit of history about Donald Knuth coming up with the software pretty [...]</description>
		<content:encoded><![CDATA[<p>[...] Knuth and LaTeXI like LaTeX so I found this bit of history about Donald Knuth coming up with the software pretty [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>
