In LaTeX, I ran into an annoying problem. I have a tex file of about 1000 lines. I already have a few numbers, but when I try to add another shape, it delays:
! Undefined control sequence.
<argument> ... \sf@size \z@ \selectfont \@currbox
l.937 \begin{figure}[t]
If you move the shape to other parts of the file, I can get similar errors on different lines:
! Undefined control sequence.
<argument> ... \sf@size \z@ \selectfont \@currbox
l.657 \paragraph
{A Centering Algorithm}
If I comment on the figure, everything is in order.
%\begin{figure}[t]
% \caption{Example decision tree, from Reiter and Dale [2000]}
% \label{fig:relation-decision-tree}
% \centering
% \includegraphics[keepaspectratio=true]{./relation-decision-tree.eps}
%\end{figure}
If I continue only the beginning and the end, for example:
\begin{figure}%[t]
% \caption{Example decision tree, from Reiter and Dale [2000]}
% \label{fig:relation-decision-tree}
% \centering
% \includegraphics[keepaspectratio=true]{./relation-decision-tree.eps}
\end{figure}
I get:
! Undefined control sequence.
<argument> ... \sf@size \z@ \selectfont \@currbox
l.942 \end
{figure}
At first I thought that maybe LaTeX hit some limit, and I tried to play with ulimits, but that did not help. Any ideas?
I already have other drawings with graphics. my preamble looks like this:
\documentclass[acmcsur,acmnow]{acmtrans2n}
\usepackage{array}
\usepackage{lastpage}
\usepackage{pict2e}
\usepackage{amsmath}
\usepackage{varioref}
\usepackage{epsfig}
\usepackage{graphics}
\usepackage{qtree}
\usepackage{rotating}
\usepackage{tree-dvips}
\usepackage{mdwlist}
\makecompactlist{quote*}{quote}
\usepackage{verbatim}
\usepackage{ulem}