2

I would like to know the difference between this:

\documentclass{article}
\usepackage[margin=1in]{geometry} 

and:

\documentclass{article}
\usepackage{geometry} 
\geometry{margin=1in}
7
  • 3
    at first glance I would assume that it gives the same output. Do you see a difference? Commented Nov 28, 2020 at 12:22
  • 1
    You haven't indicated whether or not the instruction \geometry{margin=1in} is supposed to occur in the preamble -- or whether it might occur somewhere in the body of the document. Please clarify.
    – Mico
    Commented Nov 28, 2020 at 12:34
  • @Mico Preamble to both, sorry!
    – Jovin Goh
    Commented Nov 28, 2020 at 12:41
  • 1
    @UlrikeFischer I don't see any difference either. But why these two different methods exist if they are to give the same output anyway?
    – Jovin Goh
    Commented Nov 28, 2020 at 12:42
  • 3
    this is quite common eg hyperref allows (some) options on \usepackage but has a more general \hypersetup that can be used after the package is loaded. Commented Nov 28, 2020 at 14:08

0

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.