Random thoughts on Computer Graphics, Games, and the Universe

Wednesday, June 22, 2011

[latex] Math in algorithms

I am using the algorithmic package to add code in my latex documents. I came across the following issue: How to include math in the code? Simple solution:

\begin{lstlisting}[mathescape]

Thanks to http://stackoverflow.com/questions/2809836/latex-math-symbols-in-listings
Publié par sylefeb à l'adresse 5:25 AM No comments:
Newer Posts Older Posts Home
Subscribe to: Posts (Atom)

Blog Archive

  • ►  2012 (2)
    • ►  December (2)
  • ▼  2011 (6)
    • ►  December (1)
    • ►  September (1)
    • ▼  June (1)
      • [latex] Math in algorithms
    • ►  April (1)
    • ►  March (1)
    • ►  January (1)
  • ►  2010 (6)
    • ►  August (1)
    • ►  July (1)
    • ►  April (1)
    • ►  February (1)
    • ►  January (2)
  • ►  2009 (13)
    • ►  October (2)
    • ►  August (1)
    • ►  July (2)
    • ►  June (3)
    • ►  May (1)
    • ►  April (1)
    • ►  March (2)
    • ►  February (1)
  • ►  2008 (21)
    • ►  December (1)
    • ►  November (2)
    • ►  July (1)
    • ►  June (1)
    • ►  May (4)
    • ►  April (2)
    • ►  March (4)
    • ►  February (5)
    • ►  January (1)
  • ►  2007 (5)
    • ►  November (1)
    • ►  July (2)
    • ►  June (2)
  • ►  2006 (7)
    • ►  November (1)
    • ►  October (1)
    • ►  August (1)
    • ►  May (1)
    • ►  February (1)
    • ►  January (2)
  • ►  2005 (4)
    • ►  December (4)

Twitter

Awesome Inc. template. Powered by Blogger.