[glug-t] Re: Programs in LaTeX

Vijay Kumar said on Thu, Mar 11, 2004 at 05:13:57PM +0530,:

>>Hi,
>>I am a LaTeX gnubie and would like to know, how to format computer
>>programs in LaTeX. I could use the verbatim mode, but I want syntax
>>highlighting to be added, and the verbatim mode will not let me do
>>it. Is there any environment to format programs?

You can use `listings' package. A large set of programming languages
(Ada, c, c++, lisp, perl, python, make,...)  are supported. A nice
user guide is also available with that package.


~vimal

--
####[ GNU/Linux One Stanza Tip (LOST) ]#######################

Sub : Origins of GNU/Linux System [#2]               LOST #344
                                                              
  /             \        Recognise this ASCII-art ?
 ((__-^^-,-^^-__))       Want to know about the origins of
  `-_---' `---_-'        "Linux" and its use ?
   `--|o` 'o|--'
      \)  `(/    Visit:
       :o_o:     http://www.gnu.org/gnu/linux-and-gnu.html
        "-"      
####[rms (at) gnu.org]########################################

---------------------------------------------------------------
To unsubscribe send a mail to glug_t-request@xxxxxxxxxxxxx with 
'unsubscribe' as subject.

Website: http://glugt.linuxisle.com

Other related posts: