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

Is there a way to make every element of an array be \displaystyle? I don't want to do something like \everymath={\displaystyle} (or whatever it should be) because I want this for a particular array only. Also, one of the column specifications is p{5cm} which makes it text mode. So that column shouldn't be \displaystyle. (Or rather, the solution shouldn't choke on a text column.

Any bright ideas?

share|improve this question
up vote 17 down vote accepted

You could insert \displaystyle into the column definition, such as


Here I used syntax provided by the array package:

  • >{...} can insert commands before the array element
  • *n{...} repeats a column definition n times

So in the example we get 3 columns, where all cells have \displaystyle, and 1 paragraph column without.

share|improve this answer
I really have to learn more about the cool stuff the array package can do! – Seamus Feb 13 '12 at 15:05
When I use this inside a beamer frame it gives me errors "illegal character in array arg"... – daaxix Feb 19 at 3:27
I also get "Illegal character in array arg." – ahorn Jun 9 at 12:00
@ahorn Load the array package. – Stefan Kottwitz Jun 9 at 13:14
Thank you. Without your comment, I was considering opening a bounty. – ahorn Jun 9 at 17:31

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.