Text FormattingPreserving formatting, but not font

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
colsandurz
Posts: 4
Joined: Wed Mar 04, 2009 10:35 pm

Preserving formatting, but not font

Post by colsandurz »

Hello,

I am in a situation where I need to preserve the formatting of my document. I'm using the alltt package to do this. The problem is that this package changes the font to typewriter. Is there a way to not change the font, but still preserve the formatting? Also, I tried using \verbatim and the same thing happened.

Thanks
devin

Recommended reading 2024:

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

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

josephwright
Site Moderator
Posts: 814
Joined: Tue Jul 01, 2008 2:19 pm

Re: Preserving formatting, but not font

Post by josephwright »

I assume you are after something like the listings package.
Joseph Wright
Post Reply