newgeometry 命令不起作用

newgeometry 命令不起作用

这是我的代码:

\documentclass{article}
\usepackage[utf8]{inputenc}

\usepackage[a4paper, vmargin=1in, top=1in, bottom = 1in]{geometry}
\usepackage{amsmath,amsfonts,amssymb}
\usepackage{graphicx}
\usepackage{lipsum}

\begin{document}
    %Put whatever comes before your abstract here
    \lipsum[1]
    \newpage
    
    \newgeometry{top=1in,bottom=1.75in,vmargin=1in} % or whatever only your abstract is supposed to look like
    \section{Abstract}
    \lipsum[1-2]
    \newpage
    
    \restoregeometry % restores the geometry from the preamble
    \lipsum[1-2]
\end{document}

但我不知道为什么该newgeometry命令不起作用。有人能帮我解释一下吗?

相关内容