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 want to create a table in LaTeX, and this table needs to be in typewriter font.

I have found Typesetting Tables with LaTeX, but I don't understand how to use it.

How could I do this?

share|improve this question

migrated from stackoverflow.com Sep 15 '11 at 4:18

This question came from our site for professional and enthusiast programmers.

Welcome to TeX.sx! Your question was migrated here from Stack Overflow. Please register on this site, too, and make sure that both accounts are associated with each other, otherwise you won't be able to comment on or accept answers or edit your question. – N.N. Sep 15 '11 at 19:12

If the entire content of your tables, including the caption, needs to be set in typewriter or monospaced font, the following code (to be inserted in your document's preamble) will do the font switching for you transparently:


On the other hand, if you want only the "tabular" portion of a table (but not the caption) to be typeset in typewriter font, you're probably best off (i) inserting the command \texttt{%, on a line by itself, right before the \begin{tabular}{...} line and (ii) adding a solitary closing brace, }, immediately after the \end{tabular} instruction. Happy TeXing!

share|improve this answer

Use the courier pacakge:

enter image description here

Normal font.

  table text & in courier\\
  table text & in courier\\

Normal font.
share|improve this answer
That doesn't work. When I define the precise width of a column, my compiler shows, for some reason, lots of nonexistent badboxes – user19502 Jun 30 '13 at 20:55
@user19502: Without more details it is difficult to help you. I suggest you post a new question with a fully compilable example that reproduces the problem. You can reference this answer. – Peter Grill Jun 30 '13 at 21:06

You could use this to print the table in courier:




  table text & in courier\\

Back to normal.

share|improve this answer
Or simply switch to \ttfamily. – Caramdir Sep 15 '11 at 4:25

Your Answer


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