在 maketitle 中设置边距

在 maketitle 中设置边距

是否可以更改标题中的边距,以便它们与文档的边距相匹配?

我对 进行了以下修改\maketitle。我希望所有内容都与同一左边距对齐。

在此处输入图片描述

\documentclass[a4paper]{article}
%===============================================
% Title and author
\makeatletter
\def\@maketitle{%
  \newpage
  \vspace*{-\topskip}      % remove the initial space
   \flushleft Incomplete draft. Please do not cite or quote without premission
  \vskip 2em
  {}
  \begingroup\flushleft    % instead of \begin{center}
  \let \footnote \thanks
  \hrule height \z@        % to avoid the insertion of lineskip glue
    {\LARGE \protect\textbf{\@title} \par}%
    \vskip 1.5em
    {\large
      \lineskip .5em

        \@author
        \par}%
    \vskip 1em
    {\normalfont
      Last updated on \@date}
  \par\endgroup            % instead of \end{center}
  \vskip 1.5em             % <--- modify this to adjust the separation
}
\makeatother
%==============================================
\title{Physician Information Acquisition In a Dynamic Setting}
%\email{rud}
\author{
\large {\Large Rud Faden} \\
\textit{\normalfont University of Copenhagen} \\
\textit{{\small \href{mailto:[email protected]}{[email protected]}}}
}
\date{\today} % no date
\usepackage{hyperref}
\begin{document}
\maketitle
\abstract{Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore
et dolore magna aliqua. Ut enimad minim veniam, quis nostrud exercitation ullamco laboris
nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit
esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt
in culpa qui ocia deserunt mollit anim id est laborum.}



\section{First}
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse
cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non
proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
\end{document}

答案1

你应该使用抽象环境,而不是\abstract{...}

\begin{abstract}
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore
et dolore magna aliqua. Ut enimad minim veniam, quis nostrud exercitation ullamco laboris
nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit
esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt
in culpa qui ocia deserunt mollit anim id est laborum.
\end{abstract}

有了它,你就能

在此处输入图片描述

相关内容