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

Please bear with me. I am a newbie to TEX. The following code creates page number at the top and Cont. at the bottom right of each page as you can see in the image.

But I am not sure where these come from. Please let me know which codes are responsible for these. Thanks in advance.

\usepackage[left=0.3in, right=0.3in, top=0.7in, bottom=0.7in]{geometry}


\ExamClass{Grade 8 Math}
\ExamName{Geometry of Polygon, Length and Area}



\textbf{First Name (Print):} \hrulefill \\
\textbf{Last Name (Print):}  \hrulefill }

Content here.
More content.

Page 3 of 7 at the top-right. enter image description here

Cont. at the bottom-right.

enter image description here

share|improve this question
up vote 7 down vote accepted

Those headers and footers are set up by the mathexam package. If you want to remove the header and footer, add nohdr as an option to the package, i.e. write


instead of


If you just want to remove the page numbers and the footer, you can use the features from fancyhdr, which is the package used by mathexam to set them up. Adding


to the preamble somewhere after \usepackage{mathexam} will remove the footer and the right part of the header (the page numbers).

share|improve this answer

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.