You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

使用LaTeX apa7包:标题页不显示课程、教授及截止日期问题咨询

问题

使用LaTeX的apa7包格式化研究论文时,调用\maketitle命令后,姓名和机构能正常显示,但作业相关的课程、教授及截止日期未出现在标题页中。已查阅apa7手册,也未在网络上找到相关参考信息。按照APA格式指南,期望这些信息能显示在标题页中,请问问题出在哪里?

代码如下:

\documentclass[man,donotrepeattitle]{apa7}
\usepackage[style=apa,sortcites=true,backend=biber]{biblatex}
\addbibresource{references.bib}
\title{Natural Language Processing With GPT3:\\ More than just a cheating tool}
\shorttitle{More than just a cheating tool}
\author{Anish Goyal}
\affiliation{GSMST}
\course{American Literature and Composition}
\professor{Susan Kohanek}
\duedate{January 31, 2023}
\newcommand{\HRule}{\rule{\linewidth}{0.25mm}}
\setlength\parindent{36pt}
\begin{document}
\maketitle
\end{document}
解答

问题出在文档类选项的选择上:你当前使用的man(即manuscript,学术稿件)模式是为期刊投稿设计的,该模式不会渲染课程、教授、截止日期这类学生作业专属的字段。

要显示这些信息,需将文档类选项改为student,同时可指定作业类型(比如assignment普通作业、lab实验报告等),apa7包会自动在标题页加载你设置的课程、教授和截止日期信息。

修改后的文档类声明:

\documentclass[student,assignment,donotrepeattitle]{apa7}

完整修改后的代码示例:

\documentclass[student,assignment,donotrepeattitle]{apa7}
\usepackage[style=apa,sortcites=true,backend=biber]{biblatex}
\addbibresource{references.bib}
\title{Natural Language Processing With GPT3:\\ More than just a cheating tool}
\shorttitle{More than just a cheating tool}
\author{Anish Goyal}
\affiliation{GSMST}
\course{American Literature and Composition}
\professor{Susan Kohanek}
\duedate{January 31, 2023}
\newcommand{\HRule}{\rule{\linewidth}{0.25mm}}
\setlength\parindent{36pt}
\begin{document}
\maketitle
\end{document}

重新编译后,标题页即可显示你需要的课程、教授及截止日期信息。

内容的提问来源于stack exchange,提问作者Anish G.

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.08.03 01:00:58