TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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 :


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
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.



A =

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



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

Your Answer


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.