Text FormattingFormatting a text "cluster"

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
kawkae2
Posts: 3
Joined: Thu Jun 25, 2009 2:32 am

Formatting a text "cluster"

Post by kawkae2 »

Hi all,

I'm trying to add a string of BASIC language programming instruction into a .tex file. Is there a way to add a string of text, in this case BASIC instruction, without latex picking up on command characters? In other words, can I isolate a text cluster, so that it's manipulated collectively?

Thanks in advance,
ek

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

User avatar
frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

Formatting a text "cluster"

Post by frabjous »

Try the verbatim package and environment:

\begin{verbatim}
[verbatim text goes here]
\end{verbatim}
kawkae2
Posts: 3
Joined: Thu Jun 25, 2009 2:32 am

Re: Formatting a text "cluster"

Post by kawkae2 »

Works great, this is the command I was looking for.

Thanks much,
ek
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Formatting a text "cluster"

Post by localghost »

Just for the record. The listings package with BASIC as one of its many predefined language is the better solution.


Best regards and welcome to the board
Thorsten
Post Reply