Write Technical Notes with listings Package in LaTex

LaTex is an ideal tool for writing technical notes. There is even a package, named listings,  to add non-formatted text such as computer source code. This URL shows you how to use it. And, R, Python, C/C++, and Perl are all supported.

To use listing package with the beamer presentation environment of LaTex, one needs to use \begin{frame}[fragile] (note the added [fragile] option) to make it work.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s