neue Seite wird erstellt, wenn der Befehl \begin{abstract} verwendet wird

neue Seite wird erstellt, wenn der Befehl \begin{abstract} verwendet wird

Ich verwende emulateapj und versuche, eine Zusammenfassung wie folgt einzufügen:

\documentclass{emulateapj}
\setcitestyle{authoryear,round,comma} 
\begin{document}
    \begin{abstract}
        hello world!
    \end{abstract}
\maketitle
\end{document}  

Derzeit wird ein PDF mit einer leeren Seite und dann der Zusammenfassung auf der nächsten Seite erstellt, und es gibt keine Fehler oder Warnungen. Ich habe die temporären Dateien gelöscht, aber das Problem besteht weiterhin.

(der Titel wird außerdem auch auf einer neuen Seite angezeigt!)

Irgendwelche Ideen?

Antwort1

Die Klasse ist so konzipiert, dass sie das gesamte Frontmatter auf eine bestimmte Weise formatiert. Da sie nur eine Zusammenfassung enthält, kann sie die Dinge nicht wie üblich drucken. Für diese spezielle Klasse muss ein Abschnitt vorhanden sein, bevor das Format wie vorgesehen erstellt werden kann. Im folgenden Beispiel sehen Sie, wie etwas funktionieren würde:

\documentclass[11pt,a4paper]{emulateapj}

\begin{document}

\title{A \LaTeX\, Example Document}
\author{A. Author}
\date{\today}


\begin{abstract}
This is a sample document which demonstrates some of the basic features
of \LaTeX.  You can easily reformat it for different document or bibliography styles.
\end{abstract}

%Section heading
\section{Introduction}
This file is an example of how to use \LaTeX.  In principle, you only have to worry
about the text content; formatting is taken care of by the options and arguments of
the ``$\backslash$documentclass'' command (other style files are available on the Web.
In practice, however, things are not so simple.  Things like figures and bibliographies 
can go all wrong when you change styles, so expect to have to fiddle!  



\end{document}

verwandte Informationen