From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/35305 Path: news.gmane.org!not-for-mail From: David Arnold Newsgroups: gmane.comp.tex.context Subject: Re: We have a problem --- Old file no longer compiles Date: Wed, 4 Jul 2007 12:46:08 -0700 Message-ID: References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v752.2) Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1183578474 29290 80.91.229.12 (4 Jul 2007 19:47:54 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 4 Jul 2007 19:47:54 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Jul 04 21:47:51 2007 connect(): Connection refused Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by lo.gmane.org with esmtp (Exim 4.50) id 1I6ApK-0003t2-70 for gctc-ntg-context-518@m.gmane.org; Wed, 04 Jul 2007 21:47:50 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 142BB201D8; Wed, 4 Jul 2007 21:47:49 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 15597-06-9; Wed, 4 Jul 2007 21:47:38 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 71187201D0; Wed, 4 Jul 2007 21:47:38 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 2A263201D0 for ; Wed, 4 Jul 2007 21:47:37 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 15597-06-8 for ; Wed, 4 Jul 2007 21:47:35 +0200 (CEST) Original-Received: from omta02.suddenlink.net (omta02-pub.suddenlink.net [208.180.40.74]) by ronja.ntg.nl (Postfix) with ESMTP id BE755201C3 for ; Wed, 4 Jul 2007 21:47:34 +0200 (CEST) Original-Received: from [10.0.1.3] (really [75.111.18.179]) by omta02.suddenlink.net (InterMail vM.7.05.02.00 201-2174-114-20060621) with ESMTP id <20070704194733.STN10446.omta02.suddenlink.net@[10.0.1.3]> for ; Wed, 4 Jul 2007 14:47:33 -0500 In-Reply-To: X-Mailer: Apple Mail (2.752.2) X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.9 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:35305 Archived-At: Here is another example, this time not within a block, but within an enumeration again: The source: \startproperty Let $a$ and $b$ be any numbers such that $a=b$. Then, if $c$ is any number other than zero, \placeformula[-] \startformula ac=bc.\index{equations+multiplication} \stopformula If $c$ is any number other than zero, then \placeformula[-] \startformula \frac ac=\frac bc.\index{equations+division} \stopformula \stopproperty Where property is defined: \defineframedtext[MyBox] \definemeasure[BoxWidth][\textwidth] \defineblank[BoxBlank][medium] \setupframedtexts [MyBox] [width=\measure{BoxWidth}, before={\blank[BoxBlank]}, after={\blank[BoxBlank]}, background=color, frame=no, location=middle] \setuplabeltext[property=Property] \defineenumeration [Default] [location=serried, width=broad, text=\labeltext{}, headstyle=bold, inbetween=\blank, before=\blank, after=\blank, way=bysection, sectionnumber=no, number=yes, right=.] \defineenumeration [property] [Default] [text=\labeltext{property}, before={\startMyBox[backgroundcolor=lavender]}, after=\stopMyBox, way=bysection, sectionnumber=no] And the error. Again, the \frac command seems to be the culprit. (./EquationsSection.tuo) [1.15] [MP to PDF] (./EquationsSection- mpgraph.1) [2.16] [3.17] ! Missing number, treated as zero. \relax \dogenfrac ...{\begingroup #4\endgroup #2#3\relax #5}} \mathematics #1->\relax \ifmmode #1 \else $#1$\fi l.275 \frac ac =\frac bc.\index{equations+division} ? On Jul 4, 2007, at 12:30 PM, David Arnold wrote: > Hi, > > In setting out to update our intermediate algebra textbook for the > fall semester (http://msenux.redwoods.edu/IntAlgText/), I've found > that a file that would formerly compile under a previous version of > context will no longer compile. > > Preliminaries $ ctxtools --contextversion > CtxTools | context version: 2007.06.06 09:53 (/usr/local/gwTeX/ > texmf.local/tex/context/base/context.tex) > CtxTools | context version: 2007.06.06 09:53 (/usr/local/gwTeX/ > texmf.local/tex/context/base/cont-new.tex) > > Preliminaries $ texmfstart texexec --version > TeXExec | version 6.2.0 - 1997-2006 - PRAGMA ADE/POD > > The error message I receive is: > > textblocks : reading blocks from NumberSystemsExercises.tub > (./NumberSystemsExercises.tub > textblocks : shortanswer loaded and typeset > textblocks : shortanswer loaded and processed > textblocks : shortanswer loaded and typeset > textblocks : shortanswer loaded and processed > textblocks : shortanswer loaded and typeset > textblocks : shortanswer loaded and processed > textblocks : shortanswer loaded and typeset > textblocks : shortanswer loaded and processed > textblocks : shortanswer loaded and typeset > ! Missing number, treated as zero. > > \relax > \dogenfrac ...{\begingroup #4\endgroup #2#3\relax > #5}} > \mathematics #1->\relax \ifmmode #1 > \else $#1$\fi > l.216 $ \frac{81}{125} > $ > ? > > The point in the source that seems to cause the difficulty is: > > \noindent In \in{Exercises}[ex:secqu.9]-\in[ex:secqu.16], > convert the given decimal to a fraction. > > % Exercise #9 > \beginquestion > \startquestion[ex:secqu.9] > $0.648$ > \stopquestion > \endquestion > > \beginlonganswer > \startanswer > There are three decimal places, so > $0.648=\frac{648}{1000}=\frac{81}{125}$. > \stopanswer > \endlonganswer > > \beginshortanswer > \startanswer > $\displaystyle \frac{81}{125}$ > \stopanswer > \endshortanswer > > Shortanswer and longanswer are blocks. Startanswer is an enumeration. > I've tried this in other files and gotten similar errors, which seem > to be tied to the frac command. > > Can anyone help? > ______________________________________________________________________ > _____________ > If your question is of interest to others as well, please add an > entry to the Wiki! > > maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ > ntg-context > webpage : http://www.pragma-ade.nl / http://tex.aanhet.net > archive : https://foundry.supelec.fr/projects/contextrev/ > wiki : http://contextgarden.net > ______________________________________________________________________ > _____________ ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________