出现在^和_宏之后的数字(是LaTeX的限制吗?) [英] Figures occurring after ^ and _ macros (was: LaTeX limitation?)

查看:149
本文介绍了出现在^和_宏之后的数字(是LaTeX的限制吗?)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在LaTeX中遇到了一个令人讨厌的问题.我有大约1000行的tex文件.我已经有一些数字了,但是当我尝试添加另一个数字时,它会出现以下问题:

I've hit an annoying problem in LaTeX. I've got a tex file of about 1000 lines. I've already got a few figures, but when I try to add another figure, It barfs with:

! Undefined control sequence.
<argument> ... \sf@size \z@ \selectfont \@currbox

l.937 \begin{figure}[t]

如果将图形移到文件的其他部分,则在不同的行上会出现类似的错误:

If I move the figure 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 out the figure, all is ok.

%\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 keep just the begin and end like:

\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}

我得到:

! Undefined control sequence.
<argument> ... \sf@size \z@ \selectfont \@currbox

l.942 \end
          {figure}

起初,我以为LaTeX可能已经达到了一定的极限,所以我尝试使用ulimit,但这无济于事.有什么想法吗?

At first, I thought maybe LaTeX has hit some limit, and I tried playing with the ulimits, but that didn't help. Any ideas?

我已经有了其他带有图形的图形.我的序言如下:

i've got other figures with graphics already. my preamble looks like:

\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}

我发现

推荐答案

不是说\textsuperscript有问题,而是我从

I found, not that it's a problem with \textsuperscript, but that it's with a ^ def I picked up from http://anthony.liekens.net/index.php/LaTeX/SubscriptAndSuperscriptInTextMode . The fix is to put the use of ^ in {}, as in I've put entire sections where I use lots of ^ and _ in {}. Hurrah!

这篇关于出现在^和_宏之后的数字(是LaTeX的限制吗?)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆