0

My document was having a blank page at the beginning. I removed it using:

\usepackage{atbegshi}% http://ctan.org/pkg/atbegshi
\AtBeginDocument{\AtBeginShipoutNext{\AtBeginShipoutDiscard}}

This code worked to remove the blank page, but the 1st page is numbered as 2. Please help!

3
  • 2
    you don't give many clues to allow someone to help. You could simply use \setcounter{page}{1} but the whole construct is probably just hiding the symptoms of an error elsewhere. LaTeX documents do not normally start with a blank page so if you are getting one it may be better to fix the code that is forcing that rather than add complicated code to remove the spurious page. Please always provide a complete small document that shows the problem. Commented Dec 20, 2021 at 11:52
  • you perhaps have something very large on the first page which force LaTeX to move it to the second page. Try with \enlargethispage{2cm} to give it more room. Commented Dec 20, 2021 at 11:54
  • As mentioned above, please write a minimal working example. See link for more details what it means. — Although a guess is graphics - Suppressing addition of blank page before figure when wrapping long JPEG image - TeX - LaTeX Stack Exchange
    – user202729
    Commented Dec 20, 2021 at 12:35

1 Answer 1

0

Well, whatever is going on in your document, you can always reset the page counter

\setcounter{page}{1}

... even though this is more like a quick fix only and doesn't tackle the root of the problem.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .