Document ClassesProblem with apa.cls: no output file generated

Information and discussion about specific document classes and how to create your own document classes.
Post Reply
jilonimus
Posts: 3
Joined: Sun Jan 03, 2010 1:14 pm

Problem with apa.cls: no output file generated

Post by jilonimus »

Hi!
I tried to convert my file from the article class into the apa.cls class. When I run latex, I get the result "0 errors, 0 warnings, 0 overfull boxes, 0 pages". I had the problem in the article class before, and it was due to the wrong positioning of the \begin{document} and \maketitle commands. In the article class, the command \begin{document} had to come before the \title command, while \maketitle had to come right after the \title command. In apa.cls this seems to be different. The structure of my code follows the instructions in the apa example file (http://www.ilsp.gr/homepages/protopapas ... amples.txt). But in my case, there is no output file created, and no error message, although I have installed the files apa.bst, apa.cls, apa.sty, apacite.dtx under C:\Program Files\texmf\tex\latex\base.
The short example is below.
Many thanks in advance! ;)
Jil

\documentclass[jou]{apa}
\usepackage{graphicx}
\newtheorem{assumption}{Assumption}
\newtheorem....
\headinglevels{four}
\title{}
\twoauthors{}{}
\twoaffiliations{}{}
\abstract{}
\acknowledgements{}
\shorttitle{}
\rightheader{}
\leftheader{}
\note{}
\begin{document}
\maketitle
\section{}
\subsection{}
\subsubsection{}
\paragraph{}
..............
\appendix
\bibliography{}
\end{document}

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

Problem with apa.cls: no output file generated

Post by frabjous »

I would have been better to post a complete compiliable example that actually shows the problem.

I had no trouble compiling the code below, which I got from yours by inserting values, removing the incomplete \newtheorem... line, and using the lipsum package for auto-generating text.

Code: Select all

\documentclass[jou]{apa}
\usepackage{graphicx}
\usepackage{lipsum} % to autogenerate text
\newtheorem{assumption}{Assumption}
\headinglevels{four}
\title{My Paper}
\twoauthors{Project leader}{Person who did all the work}
\twoaffiliations{Univ. of \LaTeX}{\LaTeX\ U.}
\abstract{Here's an abstract.}
\acknowledgements{Thanks mom!}
\shorttitle{Paper}
\rightheader{Right Header}
\leftheader{Left Header}
\note{Note}
\begin{document}
\maketitle
\section{Section}
\subsection{Subsection}
\subsubsection{Subsubsection}
\paragraph{Does anyone really use the paragraph option?}
\lipsum[1-100] % insert 100 paragraphs of meaningless Latin
\appendix
\bibliography{mybibfile}
\end{document}
Does that work for you?
jilonimus
Posts: 3
Joined: Sun Jan 03, 2010 1:14 pm

Re: Problem with apa.cls: no output file generated

Post by jilonimus »

thanks for the comment!
I tried your example, but that does not work either. I am getting the result below. Is the source of the problem maybe that I have not properly installed the required files for apa? (so far, I have stored apa.bst, apa.cls, apa.sty, apacite.dtx under C:\Program Files\texmf\tex\latex\base)
Sorry, I am not a big LaTeX specialist, but trying my best :?
Many thanks for helping me out on this!!

This is pdfeTeX, Version 3.141592-1.30.6-2.2 (MiKTeX 2.5) entering extended mode
("C:\Dokumente und Einstellungen\Jil Onimus\Eigene Dateien\Dissertation\Articles\Test.tex"
LaTeX2e <2005/12/01>
Babel <v3.8g> and hyphenation patterns for english, dumylang, nohyphenation, german, ngerman, french, loaded.
(apa.cls Document Class: apa 2008/12/09 American Psychological Association format v1.3.4
Class apa warning: Using Bibtex with apacite for citations and refereces.
("C:\Programme\Miktex 2.5\tex\latex\base\article.cls")
Document Class: article 2005/09/16 v1.4f Standard LaTeX document class
("C:\Programme\Miktex 2.5\tex\latex\base\size10.clo"))
pdflatex.exe: Host not found
I couldn't open file name `C:\Dokumente und Einstellungen\Jil Onimus\Eigene Dateien\Dissertation\Articles\Test.aux'
Couldn't find input index file C:\Dokumente und Einstellungen\Jil Onimus\Eigene Dateien\Dissertation\Articles\Test nor C:\Dokumente und Einstellungen\Jil Onimus\Eigene Dateien\Dissertation\Articles\Test.idx

LaTeX-Result: 0 error, 1 warning, 0 overfull/empty boxes, 0 page
User avatar
frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

Problem with apa.cls: no output file generated

Post by frabjous »

Can you compile anything with this system? Even this--

Code: Select all

\documentclass{article}
\begin{document}
Hello world!
\end{document}
?

In any case -- Miktex 2.5? -- that's very old. It's time to install a newer LaTeX system. If it doesn't come with the apa document class and bib style preinstalled, you'll be able to install it through the much improved and easy to use package manager. (Did MikTeX 2.5 even have a package manager?)

Upgrade to MikTeX 2.8.

I'd upgrade and see if things work then.
jilonimus
Posts: 3
Joined: Sun Jan 03, 2010 1:14 pm

Re: Problem with apa.cls: no output file generated

Post by jilonimus »

Thanks a lot. That was indeed the issue. Everything works fine now!
Post Reply