我正在使用Overleaf中的以下模板> 在Overleaf中打开导入包的示例。由于某种原因,在进行编译时,每页的页边距都会交替变化。我已经包含了主文件和.sty文件中的代码。有人知道为什么页边距大小会交替变化吗?
MWE
\documentclass[a4paper,11pt]{book}
\usepackage{import}
\usepackage{example}
\begin{document}
\frontmatter
\import{./}{title.tex}
\clearpage
\thispagestyle{empty}
\tableofcontents
\mainmatter
\chapter{First chapter}
\import{sections/}{section1-1.tex}
\import{sections/}{section1-2}
\chapter{Additional chapter}
\input{sections/section2-1.tex}
\chapter{Last chapter}
\include{sections/section3-1}
\end{document}
example.sty文件
\ProvidesPackage{example}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage[latin1]{inputenc}
\usepackage[spanish, english]{babel}
\usepackage{graphicx}
\usepackage{blindtext}
\usepackage{textcomp}
\usepackage{pgfplots}
\pgfplotsset{width=10cm,compat=1.9}
%Header styles
\usepackage{fancyhdr}
\setlength{\headheight}{15pt}
\pagestyle{fancy}
\renewcommand{\chaptermark}[1]{\markboth{#1}{}}
\renewcommand{\sectionmark}[1]{\markright{#1}{}}
\fancyhf{}
\fancyhead[LE,RO]{\thepage}
\fancyhead[RE]{\textbf{\textit{\nouppercase{\leftmark}}}}
\fancyhead[LO]{\textbf{\textit{\nouppercase{\rightmark}}}}
\fancypagestyle{plain}{ %
\fancyhf{} % remove everything
\renewcommand{\headrulewidth}{0pt} % remove lines as well
\renewcommand{\footrulewidth}{0pt}}
%makes available the commands \proof, \qedsymbol and \theoremstyle
\usepackage{amsthm}
%Ruler
\newcommand{\HRule}{\rule{\linewidth}{0.5mm}}
%Lemma definition and lemma counter
\newtheorem{lemma}{Lemma}[section]
%Definition counter
\theoremstyle{definition}
\newtheorem{definition}{Definition}[section]
%Corolary counter
\newtheorem{corolary}{Corolary}[section]
%Commands for naturals, integers, topology, hull, Ball, Disc, Dimension, boundary and a few more
\newcommand{\E}{{\mathcal{E}}}
\newcommand{\F}{{\mathcal{F}}}
\newcommand{\T}{{\mathcal{T}}}
\newcommand{\Bs}{{\mathcal{B}}}
\newcommand{\R}{{\mathbb{R}}}
\newcommand{\Q}{{\mathbb{Q}}}
\newcommand{\Z}{{\mathbb{Z}}}
\newcommand{\Nt}{{\mathbb{N}}}
\newcommand{\B}{{\mathbf{B}}}
\renewcommand{\S}{{\mathbf{S}}}
\newcommand{\K}{{\mathfrak{C}}}
\newcommand{\N}{{\mathfrak{N}}}
\newcommand{\I}{{\mathbf{I}}}
\newcommand{\dime}{{\rm dim}\,}
\newcommand{\est}{{\rm Est}\,}
\newcommand{\inte}{{\rm int}\,}
\newcommand{\conv}{{\rm conv}\,}
\renewcommand{\max}{{\rm sup\,}}
\newcommand{\diam}{{\rm di\acute{a}m\,}}
\newcommand{\leyenda}[1]{\caption{{\small \textsf{#1}}}}
\renewcommand{\inf}{{\rm \acute{i}nf}\,}
%Example cenvironment
\theoremstyle{remark}
\newtheorem{examle}{Example}
%Example counter
\newcommand{\reiniciar}{\setcounter{example}{0}}