Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

When trying to compile my .tex file using the latexmk -latex=xelatex command, I receive the following error:

! Bad space factor (0).
<recently read> \@savsf 

l.39 \end{seriate}

? 

Then, if I press return, the compilation process resumes with no apparent negative outcome. The output is just correct. I don't see why I get this, but the error doesn't let me streamline the compilation process.

MWE:

\documentclass[english,man]{apa6}  
\usepackage[american]{babel}  
\usepackage{csquotes}  
\usepackage[style=apa,sortcites=true,sorting=nyt,natbib=true,backend=biber]{biblatex}  
\DeclareLanguageMapping{american}{american-apa}  
\usepackage{graphics}  
\usepackage{fontspec}  
\setmainfont[Ligatures=TeX]{Times New Roman}  
\setsansfont[Ligatures=TeX]{Times New Roman}  
\setmonofont{Times New Roman}


\begin{document}

\begin{seriate}  
\item a scientific experiment,   
\item the presence of an  
\end{seriate}

\end{document}
share|improve this question
    
Thanks Werner and Boris. Here is my MWE. I haven't tried removing the packages one by one, because I am a newbie and I don't know what exactly each of them does. I guess the problem is related to the APA6 document class that redefines "Seriate", but that's just a wild guess. Thank you again in advance for your generosity and helpfulness. –  Mah Jan 16 '12 at 0:17

2 Answers 2

up vote 5 down vote accepted

The seriate environment is supposed to be used in mid paragraph. Add \leavevmode in front of it if you want to start a paragraph with it:

\leavevmode\begin{seriate}  
\item a scientific experiment,   
\item the presence of an  
\end{seriate}

On the other hand, text such as

We present
\begin{seriate}
\item a rabbit,
\item a fox,
\end{seriate}
and look at what happens

should not give problems.

share|improve this answer
    
Great, thank you egreg. –  Mah Jan 16 '12 at 0:56

It looks like you copied and pasted some code which contained "internal" LaTeX structures. This is possible and allowed, but as another layer of protection of users from themselves such code contains the symbol "@" in command names etc. To make this code work you need to precede it with \makeatletter and it is a good idea to finish it with \makeatother

\makeatletter
CODE
\makeatother
share|improve this answer
    
Thanks Werner and Boris. Here is my MWE. I haven't tried removing the packages one by one, because I am a newbie and I don't know what exactly each of them does. I guess the problem is related to the APA6 document class that redefines "Seriate", but that's just a wild guess. Thank you again in advance for your generosity and helpfulness. –  Mah Jan 16 '12 at 0:15

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.