Including a Program Source File in LaTeX [Tip]

2009 June 8

This is a command within LaTeX that I forget constantly and I always lose the resource from where I learned about it. So, I’m documenting it here so that I can find it later on when I need it. I also figured it might help somebody else out there looking for the same thing.

\lstset{language=[ISO]C++,tabsize=3}
\lstinputlisting{Lab6.cpp}

Basically, what this little code snippit does is import a source code file and inserts it into the final document. It’s a lot easier than copy/paste and it has a lot of formatting options associated with it. Just check out the \lstset command manual or this guide here or this guide here (LaTeX wikibook). Be sure to include the listings package with this declaration before the main document: \usepackage{listings}.

Pictures from Zoo Montana [Photo Album]

2009 June 7
by SendDerek

Hello Family and Friends!

While we were in Billings, we took Qeirstyn to Zoo Montana to show her around. I don’t think I need to say it, but she absolutely loved every minute of it. She particularly loved the tiger named “Lula”. She shouted her name again and again until she would lift up her head and look. She loved seeing her. Now, every tiger she sees is Lula.

Heather’s Trip to Brockway [Photo Album]

2009 June 7
by SendDerek

Hello Family and Friends!

Here are the photos that Heather took from her trip down to Brockway. I stuck it out in Billings while she reminised and watched her cousin graduate high school. She took some great pictures. Brockway is very photogenic in a way.

Picture with Cody Before His Move to Texas [Photo]

2009 June 7
by SendDerek

Hello Family and Friends!

So, this is one of the final moments with Cody before he headed off down to Texas to join his better half. My parents got a lot more of the photos, but this is the one that came out best in my batch. Hope you’re having fun down there Cody!



Yellowstone Pictures in Route to Billings [Photo Album]

2009 June 7
by SendDerek

Hello Family and Friends!

Here are some quick pictures of our little trip up to Billings. We spent the whole week there and had a blast. We watched a couple of graduations and went snowboading a couple of times. The grandparents sure know how to spoil all of us! Thanks!