geometry
パッケージを使用して、必要なマージンを確立します。サンプル ドキュメントの余白を取得するには、次のことを試してください。
\usepackage[left=1in,right=1in,top=1in,bottom=1in]{geometry}
次の要件は、表題欄を修正することでした。LaTeX は内部コマンドを使用し\@maketitle
て表題欄をフォーマットします。これは好きなように再定義できます。サンプル ドキュメントと同じタイトル ブロック スタイルを実現するには、次を使用します。
\usepackage[svgnames]{xcolor}% provides colors for text
\makeatletter% since there's an at-sign (@) in the command name
\renewcommand{\@maketitle}{%
\begin{center}
\parskip\baselineskip% skip a line between paragraphs in the title block
\parindent=0pt% don't indent paragraphs in the title block
\textcolor{red}{\bf\@title}\par
\textbf{\@author}\par
%\@date% remove the percent sign at the beginning of this line if you want the date printed
\end{center}
}
\makeatother% resets the meaning of the at-sign (@)
、\@title
、\@author
および\@date
コマンドは、タイトル、作成者、および日付を出力します。好きな書式設定コマンドを使用して、テキストを太字、異なる色などに設定できます。
上記のすべてのコマンドをドキュメントのプリアンブルに入れます。\documentclass
プリアンブルはとの間のスペース\begin{document}
です。
\documentclass{article}
% this is the preamble
% put all of the above code in here
\title{Personal Statement}
\author{Tim}
\begin{document}
\maketitle% prints the title block
Emergency medicine has always been a passion of mine\ldots
\end{document}