![根据我目前的使用包集,在标题页上添加日期](https://linux22.com/image/425242/%E6%A0%B9%E6%8D%AE%E6%88%91%E7%9B%AE%E5%89%8D%E7%9A%84%E4%BD%BF%E7%94%A8%E5%8C%85%E9%9B%86%EF%BC%8C%E5%9C%A8%E6%A0%87%E9%A2%98%E9%A1%B5%E4%B8%8A%E6%B7%BB%E5%8A%A0%E6%97%A5%E6%9C%9F.png)
我是 LaTeX 的新用户,使用此排版制作了我的第一个文档。我快完成了,但在标题页上合并课程名称和日期时遇到了一个非常烦人的问题。这是我的标题页代码:
\documentclass[man]{apa7}
\usepackage[tableposition=top]{caption}
\usepackage[american]{babel}
\usepackage{adjustbox}
\usepackage{csquotes}
\usepackage{float}
\restylefloat{table}
\usepackage[tableposition=top]{caption}
\usepackage{textgreek}
\usepackage{booktabs}
\usepackage[style=apa]{biblatex}
\addbibresource{references.bib}
\title{PAPER TITLE}
\shorttitle{RUNNING HEAD}
\author{AUTHORS}
\affiliation{AFFILIATION}
\setlength\intextsep{1mm}
\begin{document}
TEXT
\end{document}
每当我尝试添加 \date 或 \text{今天的日期} 时,它要么不显示,要么会显示在右上角我的姓名和所属机构上方。我希望课程名称和日期按照 apa 7 指南显示在我姓名和所属机构下方。
答案1
这就是你所追求的吗?
\documentclass[man]{apa7}
\usepackage[tableposition=top]{caption}
\usepackage[american]{babel}
\usepackage{adjustbox}
\usepackage{csquotes}
\usepackage{float}
\restylefloat{table}
\usepackage[tableposition=top]{caption}
\usepackage{textgreek}
\usepackage{booktabs}
\usepackage[style=apa]{biblatex}
\addbibresource{references.bib}
\makeatletter
\def\maketitle{
\@ifundefined{hrm}{}{\hrm}
\check@author
\begin{center}
\vspace*{4\baselineskip}
\textbf\@title%
\ifapamodeman{%
\@ifundefined{def@noextraspace}{%
\vspace{\baselineskip}\\
}{\\}
}{%
\vspace{\baselineskip}\\
}
\@ifundefined{def@stu}{ %Professional manuscript
\@ifundefined{apaSeven@maskauthoridentity}{% BDB
\displayauthors \\
\displayaffiliations
\@ifundefined{@coursename}
{\vspace*{\baselineskip}}
{\@coursename}
\@date
\@ifundefined{@note}
{\vspace*{\baselineskip} }
{\@note}
}{% mask author identity -- show nothing in the author or author note space
}
\end{center}
\@ifundefined{apaSeven@maskauthoridentity}{
\@ifundefined{@acks}
{}
{%
\vfill%
\section{\normalfont\normalsize\textbf\acksname}
\raggedright
\setlength{\parindent}{0.5in}
\indent\@acks\par%
}
}{% mask author identity -- show nothing in the author or author note space
}}{% Student Manuscript
\displayauthors \\
\displayaffiliations
\@course \\
\@professor \\
\@duedate \\
\@ifundefined{@note}
{\vspace*{\baselineskip} }
{\@note}
\end{center}
\@ifundefined{@acks}
{}
{%
\vfill%
\section{\normalfont\normalsize\textbf\acksname}
\raggedright
\setlength{\parindent}{0.5in}
\indent\@acks\par%
}
}
\newpage
%BDB\hyphenpenalty 10000
\fussy
\@ifundefined{@abstract}{}{%
\section{\normalfont\normalsize\textbf\abstractname}% BDB
\noindent\@abstract\par% BDB
\@ifundefined{@keywords}{}{%
\setlength{\parindent}{0.5in}% BDB
\indent\textit{\keywordname:} \@keywords%
}%
\newpage
}
\@ifundefined{def@donotrepeattitle}{
\section{\protect\normalfont\textbf{\@title}}
}{}%
\raggedright%
\setlength{\parindent}{0.5in}%
}
\long\def\coursename#1{\long\def\@coursename{#1}}
\makeatother
\title{PAPER TITLE}
\shorttitle{RUNNING HEAD}
\coursename{THE COURSE}%<--Here you can change the name of the course
\author{AUTHORS}
\affiliation{AFFILIATION}
\setlength\intextsep{1mm}
\begin{document}
\maketitle
TEXT
\end{document}
如果您想改变某些事情,请告诉我。