[Tex/LaTex] a4paper, where should I declare it? In document class or geometry

best practicesgeometrypackage-optionspaper-size

I currently have an article document class and I previously changed it to include printing on A4 paper:

\documentclass[12pt, a4paper]{article}

However, I had to change my margins to meet my university requirements and the answer I received used A4 in the geometry package too.

\geometry{a4paper,margin=15mm,bindingoffset=25mm,heightrounded,}

Partially practical and partially theoretical, is there any difference to using either declaration and/or is there an effect by using both?

Best Answer

a4paper specified in document class will be passed to geometry. So there is no difference in your case if you specify the option in \documentclass{article} or \usepackage{geometry}.

However if other packages need to know document format, you need to specify a4paper in the document class.