我是 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}
如果您想改变某些事情,请告诉我。