Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Limit controls must follow a amth operator: proper \lim usage?

2,421 views
Skip to first unread message

kane

unread,
Jul 8, 2011, 4:30:05 AM7/8/11
to
Hi,

I have a small problem, which probably can be solved in a second, but
I didn't find useful information on the web.

I have a working math doc, but adding the following code into some
text throws the above mentioned error:

$\lim_{n \to \infty}$

I just can't figure out, why. I found two sources which both told me
to use lim in that way. Looking for the error gave me some other
possibilities, like adding \limits_{...} or using \mathop{} but using
them gives the same error.

Can somebody help me?

Lars Madsen

unread,
Jul 8, 2011, 4:37:27 AM7/8/11
to

full minimal example and a quote of the error might help

--

/daleif (remove RTFSIGNATURE from email address)

Memoir and mh bundle maintainer
LaTeX FAQ: http://www.tex.ac.uk/faq
LaTeX book: http://www.imf.au.dk/system/latex/bog/ (in Danish)
Remember to post minimal examples, see URL below
http://www.minimalbeispiel.de/mini-en.html

Enrico Gregorio

unread,
Jul 8, 2011, 4:54:28 AM7/8/11
to
kane <daum.se...@googlemail.com> wrote:

You (or the class you are using) have redefined \lim in a wrong way,
probably to get the limits under the "lim" also in in-line math mode
(which is quite dubious, from a typographical point of view).

Ciao
Enrico

kane

unread,
Jul 8, 2011, 7:25:38 AM7/8/11
to
hm, i fear it has to do with the class or some of the environments. i
solved it by just writing "lim" without preceding backslash, which is
fine, because this document is only for me anyway. I was just
wondering whether I use the lim-operator just in a wrong way.

but here are the settings i use (i copied them over from some other
source):


\documentclass[11pt]{amsart}
\usepackage{geometry} % See geometry.pdf to learn the
layout options. There are lots.
\geometry{a4paper} % ... or a4paper or a5paper
or ...
%\geometry{landscape} % Activate for for rotated page
geometry
%\usepackage[parfill]{parskip} % Activate to begin paragraphs with
an empty line rather than an indent
\usepackage{graphicx}

\usepackage{amsmath}

%symbol packages
\usepackage{amssymb}
\usepackage{nath}
\usepackage{txfonts}
\usepackage{pxfonts}

\usepackage{epstopdf}
\DeclareGraphicsRule{.tif}{png}{.png}{`convert #1 `dirname #1`/
`basename #1 .tif`.png}

\newtheorem{theorem}{Theorem}[section]
\newtheorem{lemma}[theorem]{Lemma}
\newtheorem{proposition}[theorem]{Proposition}
\newtheorem{corollary}[theorem]{Corollary}

%\newenvironment{proof}[1][Proof]{\begin{trivlist}
%\item[\hskip \labelsep {\bfseries #1}]}{\end{trivlist}}
\newenvironment{definition}[1][Definition]{\begin{trivlist}
\item[\hskip \labelsep {\bfseries #1}]}{\end{trivlist}}
\newenvironment{example}[1][Example]{\begin{trivlist}
\item[\hskip \labelsep {\bfseries #1}]}{\end{trivlist}}
\newenvironment{remark}[1][Remark]{\begin{trivlist}
\item[\hskip \labelsep {\bfseries #1}]}{\end{trivlist}}

%\newcommand{\qed}{\nobreak \ifvmode \relax \else
% \ifdim\lastskip<1.5em \hskip-\lastskip
% \hskip1.5em plus0em minus0.5em \fi \nobreak
% \vrule height0.75em width0.5em depth0.25em\fi}


\newcommand{\mE}{\mathbb{E}}
\newcommand{\mP}{\mathbb{P}}
\newcommand{\mR}{\mathbb{R}}
\newcommand{\mN}{\mathbb{N}}
\newcommand{\mZ}{\mathbb{Z}}
\newcommand{\Ra}{\Rightarrow}
\newcommand{\ra}{\rightarrow}
\newcommand{\essei}{\rBrack \,}
\newcommand{\sumton}[1]{\sum_{#1=1}^n}
\newcommand{\Wedge}{\bigwedge}


\title{personal math sheet}
\author{dps kane}
%\date{} % Activate to
display a given date or no date

\begin{document}
\maketitle


\begin{theorem}[All about Poisson random variables]

(erratic) CODE

\end{theorem}

Lars Madsen

unread,
Jul 8, 2011, 7:47:26 AM7/8/11
to
kane wrote, On 2011-07-08 13:25:
> hm, i fear it has to do with the class or some of the environments. i
> solved it by just writing "lim" without preceding backslash, which is
> fine, because this document is only for me anyway. I was just
> wondering whether I use the lim-operator just in a wrong way.
>
> but here are the settings i use (i copied them over from some other
> source):
>
It does not show the error, but this reduced version does

\documentclass[11pt]{amsart}
\usepackage{amsmath}
\usepackage{nath}

\begin{document}

$\lim_{n \to \infty}$

\end{document}

nath seems to be very offended

do you need the nath package?

Enrico Gregorio

unread,
Jul 8, 2011, 8:59:52 AM7/8/11
to
kane <daum.se...@googlemail.com> wrote:

In the log you find

Nath as of 21 March 2003
Implementing NAtural maTH notation

AmSLaTeX detected.
Do not expect too much from this combination.
Consult Nath Guide if things go bad.

The guide to Nath doesn't tell anything about this. Forget
about Nath.

Ciao
Enrico

Dan Luecking

unread,
Jul 8, 2011, 1:21:13 PM7/8/11
to
On Fri, 08 Jul 2011 13:47:26 +0200, Lars Madsen
<dal...@RTFMSIGNATUREimf.au.dk> wrote:

>kane wrote, On 2011-07-08 13:25:
>> hm, i fear it has to do with the class or some of the environments. i
>> solved it by just writing "lim" without preceding backslash, which is
>> fine, because this document is only for me anyway. I was just
>> wondering whether I use the lim-operator just in a wrong way.
>>
>> but here are the settings i use (i copied them over from some other
>> source):
>>
>It does not show the error, but this reduced version does
>
>\documentclass[11pt]{amsart}
>\usepackage{amsmath}
>\usepackage{nath}
>
>\begin{document}
>
>$\lim_{n \to \infty}$
>
>\end{document}

Still further reduced:

\documentclass{article}
\usepackage{amsmath}
\usepackage{nath}

\begin{document}

$\lim$

\end{document}

(Also $\to$ alone throws two errors.)

So, in fact, it has nothing whatsoever to do with the
limit controls. In fact, nath redefines the primitive
$-sign as well as \mathop. Either of these has the
protential to throw almost any other math package into
convulsions.

[I see that $\lim_{n\to\infty}$ at least produces the
correct output. After three errors.]


Dan
To reply by email, change LookInSig to luecking

0 new messages