Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I have the following bit of text that I want to show :

A =

 9    -8     7
 6    -5    -4
 3    -2     1

I want to show it exactly as it is, i.e. no formatting.

Currently it shows :

screen

I assume there is an environment that avoids any formatting but I've been unable to find it.

(I don't want to create a matrix in the math environment, because that's log that I want to show as it is.)

share|improve this question
add comment

1 Answer 1

up vote 11 down vote accepted

I would suggest that you parse the log file so that you may typeset it as a proper matrix.

Anyway, if you don't want to do any formatting you can use the environment verbatim.

\documentclass{article}

\begin{document}

\begin{verbatim}
A =

 9    -8     7
 6    -5    -4
 3    -2     1
\end{verbatim}

\end{document}

Output

share|improve this answer
    
You don't need the verbatim package for this. –  Werner Oct 12 '11 at 16:51
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.