I am trying to make an array align to the center of the page.

My search for the answer was fruitless as all of the questions (that I have find) refer to the alignment of the array elements and not the array itself.

I have tried using the center environment but didn't work. Also the same happened with the command \centering that I came across (although I may have used it wrong).

So how can I center the array to the center of the page?















1 & 2\\
3 & 4

  • 1
    Remove the fleqn option? By the way, amsmath should be loaded before fontspec. – egreg Dec 29 '14 at 23:21
  • @egreg thank you for your suggestion, but that changes the position of everything and not only of the array. I want the equations to remain in the left side of the page. I know about the amsmath, you have told me that in the past and I use it always! in this case I just copied and pasted some fragments of my preamble and that's why it is loaded after fontspec. :) – Adam Dec 29 '14 at 23:25
  • But you've put the array inside equation* so fleqn says you want it flush left... – cfr Dec 29 '14 at 23:32
  • @cfr yes but the fleqn option is global so there must be a way to change only one element (the array in this instant). – Adam Dec 29 '14 at 23:35
  • @cfr also I just used the equation enviroment out of habbit, it doesn't need to be that. Check egreg's answer. :) – Adam Dec 29 '14 at 23:37

Leaving only the essential parts:



% these two packages are only for the example



\int_{0}^{x}\frac{1}{t}\,dt=\log t
1 & 2\\
3 & 4


enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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