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 code for some document:











My question is: When I compile the code, it looks as if the text is centered with respect to the paper, but not to the header line, so it is does not look right. Is there a way to fix this? If so, what changes should I make to my code?

Also, apologies for the way I wrote the code above. If someome could edit it and also tell me how to write it properly (for this site) that would be great.

share|improve this question

closed as too localized by egreg, Qrrbrbirlbel, Martin Schröder, yo', Werner Jan 9 '13 at 0:17

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

try the geometry package. perhaps your margins need setting. – Nicholas Hamilton Jan 1 '13 at 18:20
With those settings the rule will be centered with respect to the page, unless you're using A4 paper for the printout. So centering with respect to the paper or the rule is just the same. – egreg Jan 1 '13 at 18:37
@egreg Does this mean I don't need to make any changes? It is just the case that it looks off centered wrt the header line? – CAF Jan 1 '13 at 18:50
Actually I am using A4 paper for the printout. What should I change? – CAF Jan 1 '13 at 18:53
@CAF \documentclass[a4paper]{article} – egreg Jan 1 '13 at 20:09