Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re(2): Creating Books and Manuals with Perl

by Arien (Pilgrim)
on Sep 10, 2002 at 10:35 UTC ( [id://196607]=note: print w/replies, xml ) Need Help??


in reply to Re: Creating Books and Manuals with Perl
in thread Creating Books and Manuals with Perl

What you're looking for is the verbatim environment. It's similar to <code>...</code> in HTML and is written like this:

\begin{verbatim} #!/usr/bin/perl for (1..10) { print "Hello, world\n"; } \end{verbatim}

The result would look like this:

#!/usr/bin/perl for (1..10) { print "Hello, world\n"; }

Also, you may find some of the tutorials here useful if you're in a rush to see if you and LaTeX get along.

— Arien

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://196607]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (7)
As of 2025-07-18 14:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.