设置标题页上的日期位置

设置标题页上的日期位置

我是 LaTeX 新手,因此将很多软件包和模板复制粘贴到我的 LaTex 中。我的标题页上的年份有问题。我需要它位于部门下方而不是底部。

\documentclass[letterpaper,12pt]{article}

\usepackage{tabularx} % extra features for tabular environment
\usepackage{amsmath}  % improve math presentation
\usepackage{graphicx} % takes care of graphic including machinery
\usepackage[margin=1in,letterpaper]{geometry} % decreases margins
\usepackage[final]{hyperref} % adds hyper links inside the generated pdf file
\usepackage[numbers]{natbib} % Endnote references
\usepackage{fancyhdr}% Footer & Header 
\usepackage{lastpage}% Add last page
\linespread{1.25} %Line spread of 1,5 in word 
\usepackage{xcolor,colortbl} %colour for the tables
\usepackage{booktabs} %for table design
\usepackage{gensymb} % for degree symbol
\usepackage[toc,page]{appendix} % For appendix


\title{ \normalsize \textsc{Individual Study Activity}
        \\ [2.0cm]
        \LARGE \textbf{title of project}
        \HRule \\ [2 cm]\leavevmode\\}

\date{January 31, 2019}

\author{
        My name\\
        Student ID: XXXX\\ 
        University of Southern Denmark\\
        Department of Biochemistry and Molecular Biology\\
        \date{January 31, 2019}
        \\
        \\
        \\ 
        \\
        \\
        \small {Supervised by:\\
        \small Supervisor: XXX\\
        \small Co-supervisor: XXX}
        }

\begin{document}

\maketitle 

\end{document}

答案1

只需添加日期,无需\date命令。但使用以下命令效果更佳titlepage

\documentclass[letterpaper,12pt]{article}

\usepackage[margin=1in,letterpaper]{geometry} % decreases margins

\begin{document}

\begin{titlepage}
\centering

\textsc{Individual Study Activity}

\vspace{\stretch{1}}

{\LARGE\bfseries title of project\\}
\rule{3in}{0.4pt}

\vspace{\stretch{1}}

My name\\
Student ID: XXXX\\ 
University of Southern Denmark\\
Department of Biochemistry and Molecular Biology\\
January 31, 2019

\vspace{\stretch{1}}

{\small
Supervised by:\\
Supervisor: XXX\\
Co-supervisor: XXX}

\vspace*{\stretch{1}}

\end{titlepage}


\end{document}

enter image description here

相关内容