我想更改此文档中标题上方和下方的规则,而是将标题、作者和日期信息放在一个(希望看起来很时尚)框内。任何帮助都非常感谢!
\documentclass[a4paper]{hitec}
\author{Ms Anonymous}
\date{February 14, 2016}
\title{Title of the document}
\begin{document}
\maketitle
\end{document}
答案1
在序言中修改或重新定义它。\@maketitle
例如:hitec.cls
\documentclass[a4paper]{hitec}
\usepackage{lipsum}
\makeatletter
\def\@maketitle{%
\newpage
\null
\leavevmode\setbox0=\lastbox
\hspace{-\leftmarginwidth}
{\fboxsep2em\fboxrule3pt
\fbox{\begin{minipage}{\dimexpr\fullwidth-4em-6pt}
{\Large\bfseries \@title \par}
\raggedleft
{\slshape\@author\@tcompany\par}
\vskip 1em%
{\@date}%
\end{minipage}}}}%
\makeatother
\author{Ms Anonymous}
\date{February 14, 2016}
\title{Title of the document}
\begin{document}
\maketitle
\section{Lore ipsum}\lipsum[1]
\section{Nam dui ligula}\lipsum[2]
\section{Nulla malesuada}\lipsum[3]
\end{document}