Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fails on empty maketitle field #62

Open
avidseeker opened this issue Jul 22, 2024 · 0 comments
Open

Fails on empty maketitle field #62

avidseeker opened this issue Jul 22, 2024 · 0 comments

Comments

@avidseeker
Copy link

apa7.cls warns when a variable among \title, \shorttitle, \author, \course, \professor is not set. However, it also fails showing LaTeX Error: There's no line here to end.

Class apa7 Warning: Due date not defined.


! LaTeX Error: There's no line here to end.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...

l.15 \maketitle

mwe.tex this compiles

\documentclass[stu,a4paper,12pt,nofontenc]{apa7}

\title{test}
\shorttitle{This document compiles}
\author{author}
\course{course}
\professor{professor}
\affiliation{}
\keywords{}

\begin{document}
\maketitle

Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod

\end{document}

but clearing any of these values result in the aforementioned error

\documentclass[stu,a4paper,12pt,nofontenc]{apa7}

\title{test}
\shorttitle{shorttitle}
\author{}
\course{course}
\professor{professor}
\affiliation{}
\keywords{}

\begin{documtheseent}
\maketitle

Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod

\end{document}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant