我正在用 latex 写个人陈述。我不希望页面顶部的大边距而不是大标题占用大量空间。我只是想让布局紧凑,但仍然有标题、名称和其他必要信息的清晰间隔,因为可能会有页数限制。一个例子是 http://www.hsc.unt.edu/education/CIM/Documents/PS-Sample2_000.pdf .我想知道在哪里可以找到一些好的 latex 模板或示例?
感谢致敬!
最佳答案
我会使用 geometry
package以建立所需的边距。要获取示例文档中的边距,请尝试:
\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}
关于个人陈述的 latex 模板或示例,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1966778/