* We have a problem --- Old file no longer compiles
@ 2007-07-04 19:30 David Arnold
2007-07-04 19:46 ` David Arnold
0 siblings, 1 reply; 7+ messages in thread
From: David Arnold @ 2007-07-04 19:30 UTC (permalink / raw)
To: Context Mailing List List
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.
<to be read again>
\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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: We have a problem --- Old file no longer compiles
2007-07-04 19:30 We have a problem --- Old file no longer compiles David Arnold
@ 2007-07-04 19:46 ` David Arnold
2007-07-04 21:57 ` Aditya Mahajan
0 siblings, 1 reply; 7+ messages in thread
From: David Arnold @ 2007-07-04 19:46 UTC (permalink / raw)
To: mailing list for ConTeXt users
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.
<to be read again>
\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.
> <to be read again>
> \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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: We have a problem --- Old file no longer compiles
2007-07-04 19:46 ` David Arnold
@ 2007-07-04 21:57 ` Aditya Mahajan
2007-07-04 22:35 ` Aditya Mahajan
2007-07-04 22:39 ` David Arnold
0 siblings, 2 replies; 7+ messages in thread
From: Aditya Mahajan @ 2007-07-04 21:57 UTC (permalink / raw)
To: mailing list for ConTeXt users
On Wed, 4 Jul 2007, David Arnold wrote:
> Here is another example, this time not within a block, but within an
> enumeration again:
The newmat module seems to be the culprit. After loading newmat add
\unexpanded\def\frac#1#2{\mathematics{\genfrac{}{}{}\donothing{#1}{#2}}}
and it should work fine. I do not really understand why this is
failing.
Aditya
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: We have a problem --- Old file no longer compiles
2007-07-04 21:57 ` Aditya Mahajan
@ 2007-07-04 22:35 ` Aditya Mahajan
2007-07-04 22:39 ` David Arnold
1 sibling, 0 replies; 7+ messages in thread
From: Aditya Mahajan @ 2007-07-04 22:35 UTC (permalink / raw)
To: mailing list for ConTeXt users
On Wed, 4 Jul 2007, Aditya Mahajan wrote:
> On Wed, 4 Jul 2007, David Arnold wrote:
>
>> Here is another example, this time not within a block, but within an
>> enumeration again:
>
> The newmat module seems to be the culprit. After loading newmat add
>
> \unexpanded\def\frac#1#2{\mathematics{\genfrac{}{}{}\donothing{#1}{#2}}}
>
> and it should work fine. I do not really understand why this is
> failing.
Ok. The third argument of \genfrac should be {} and not \empty,
otherwise \ifx @#3@ in \genfrac evaluates to false. So, either we need
to change \ifx @#3@ to something more robust, or revert back to older
definitions of (d|t)frac.
Aditya
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: We have a problem --- Old file no longer compiles
2007-07-04 21:57 ` Aditya Mahajan
2007-07-04 22:35 ` Aditya Mahajan
@ 2007-07-04 22:39 ` David Arnold
2007-07-05 5:02 ` Aditya Mahajan
1 sibling, 1 reply; 7+ messages in thread
From: David Arnold @ 2007-07-04 22:39 UTC (permalink / raw)
To: mailing list for ConTeXt users
Aditya,
Thanks for the reply. As far as I know, we don't explicitly import
newmat in our environment files:
trunk $ grep usemodule *
bookenv-clean1-base.tex:\usemodule[math-ext]
bookenv-clean1-colors.tex:\usemodule[colors]
As you can see, we do use the module math-ext.
On Jul 4, 2007, at 2:57 PM, Aditya Mahajan wrote:
> On Wed, 4 Jul 2007, David Arnold wrote:
>
>> Here is another example, this time not within a block, but within an
>> enumeration again:
>
> The newmat module seems to be the culprit. After loading newmat add
>
> \unexpanded\def\frac#1#2{\mathematics{\genfrac{}{}{}\donothing{#1}
> {#2}}}
>
> and it should work fine. I do not really understand why this is
> failing.
>
> Aditya
> ______________________________________________________________________
> _____________
> 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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: We have a problem --- Old file no longer compiles
2007-07-04 22:39 ` David Arnold
@ 2007-07-05 5:02 ` Aditya Mahajan
2007-07-05 5:50 ` David Arnold
0 siblings, 1 reply; 7+ messages in thread
From: Aditya Mahajan @ 2007-07-05 5:02 UTC (permalink / raw)
To: mailing list for ConTeXt users
On Wed, 4 Jul 2007, David Arnold wrote:
>
> On Jul 4, 2007, at 2:57 PM, Aditya Mahajan wrote:
>
>> On Wed, 4 Jul 2007, David Arnold wrote:
>>
>>> Here is another example, this time not within a block, but within an
>>> enumeration again:
>>
>> The newmat module seems to be the culprit. After loading newmat add
>>
>> \unexpanded\def\frac#1#2{\mathematics{\genfrac{}{}{}\donothing{#1}
>> {#2}}}
>>
>> and it should work fine. I do not really understand why this is
>> failing.
>>
> Aditya,
>
> Thanks for the reply. As far as I know, we don't explicitly import
> newmat in our environment files:
>
> trunk $ grep usemodule *
> bookenv-clean1-base.tex:\usemodule[math-ext]
> bookenv-clean1-colors.tex:\usemodule[colors]
>
> As you can see, we do use the module math-ext
Firstly, you do not use to explicitly use math-ext. AFAIU, it is
included automatically. Secondly, something in your setup is including
newmat, because \dogenfrac is defined in newmat. Look into the log
file or the tui file for newmat. If newmat is not being loaded, then
something strange is happening.
Aditya
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: We have a problem --- Old file no longer compiles
2007-07-05 5:02 ` Aditya Mahajan
@ 2007-07-05 5:50 ` David Arnold
0 siblings, 0 replies; 7+ messages in thread
From: David Arnold @ 2007-07-05 5:50 UTC (permalink / raw)
To: mailing list for ConTeXt users
Yes, it is getting loaded:
system : module newmat loaded
Turns out it's not in our style files, but in the exercise file that
I am compiling:
\startcomponent NumberSystemsExercises
\project book
\product Preliminaries/PreliminariesChapter
\usemodule[newmat]
\usemodule[math-ext]
\usemodule[fig-base]
\usefigurebase[figures/figlibNumberSystemsExercises]
On Jul 4, 2007, at 10:02 PM, Aditya Mahajan wrote:
> On Wed, 4 Jul 2007, David Arnold wrote:
>>
>> On Jul 4, 2007, at 2:57 PM, Aditya Mahajan wrote:
>>
>>> On Wed, 4 Jul 2007, David Arnold wrote:
>>>
>>>> Here is another example, this time not within a block, but
>>>> within an
>>>> enumeration again:
>>>
>>> The newmat module seems to be the culprit. After loading newmat add
>>>
>>> \unexpanded\def\frac#1#2{\mathematics{\genfrac{}{}{}\donothing{#1}
>>> {#2}}}
>>>
>>> and it should work fine. I do not really understand why this is
>>> failing.
>>>
>> Aditya,
>>
>> Thanks for the reply. As far as I know, we don't explicitly import
>> newmat in our environment files:
>>
>> trunk $ grep usemodule *
>> bookenv-clean1-base.tex:\usemodule[math-ext]
>> bookenv-clean1-colors.tex:\usemodule[colors]
>>
>> As you can see, we do use the module math-ext
>
> Firstly, you do not use to explicitly use math-ext. AFAIU, it is
> included automatically. Secondly, something in your setup is including
> newmat, because \dogenfrac is defined in newmat. Look into the log
> file or the tui file for newmat. If newmat is not being loaded, then
> something strange is happening.
>
> Aditya
> ______________________________________________________________________
> _____________
> 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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2007-07-05 5:50 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-07-04 19:30 We have a problem --- Old file no longer compiles David Arnold
2007-07-04 19:46 ` David Arnold
2007-07-04 21:57 ` Aditya Mahajan
2007-07-04 22:35 ` Aditya Mahajan
2007-07-04 22:39 ` David Arnold
2007-07-05 5:02 ` Aditya Mahajan
2007-07-05 5:50 ` David Arnold
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).