Help : Unknown references
Hi, I am getting unknown references when I use \startformula \startalign[n=3] .... Some math ...... \stopalign \stopformula in conjunction with \placeformula[eqn1] \startformula .... math .. \stopformula See \in[eqn1] .... <----------- unknown reference It has something to do with the formulanumber not set, I know, but how do I fix this in the above ?? Thanks for your help and time WN
On Tue, 21 Mar 2006, WN wrote:
Hi,
I am getting unknown references when I use \startformula \startalign[n=3] .... Some math ...... \stopalign \stopformula in conjunction with \placeformula[eqn1] \startformula .... math .. \stopformula See \in[eqn1] .... <----------- unknown reference
It has something to do with the formulanumber not set, I know, but how do I fix this in the above ??
Which context version are you using? The following compiles correctly on live.contextgarden.net \starttext \startformula \startalign[n=3] \NC a \NC b \NC d \NR \NC a \NC b \NC d \NR \stopalign \stopformula in conjunction with \placeformula[eqn1] \startformula a = b \stopformula See \in[eqn1] \unknown \stoptext See if this works for you. Aditya
Hi, I think I am using the latest context version
texexec --version TeXExec 5.4.3 - ConTeXt / PRAGMA ADE 1997-2005
texexec : TeXExec 5.4.3 - ConTeXt / PRAGMA ADE 1997-2005 texutil : TeXUtil 9.0.1 - ConTeXt / PRAGMA ADE 1992-2006 tex : pdfeTeX, 3.141592-1.30.6-2.2 (Web2C 7.5.5) * context : ver: 2006.03.20 10:19 cont-en : ver: 2006.03.20 10:19 fmt: 2006.3.21 mes: english* When I compile your code, it works. However my code , which I think, is similar, doesn't work. I cannot see any difference in the setup. I must be doing something basically wrong ??? Here is an excerpt from my code */\def\mathrm/*#1{ {*/\rm/* #1}} */\def\done/*#1#2{ */\frac/*{ */\mathrm/*{d} #1}{*/\mathrm/*{d} */\mathrm/*{#2}} } */\def\dtwo/*#1#2{ */\frac/*{*/\mathrm/*{d}^{2} #1}{*/\mathrm/*{d} */\mathrm/*{#2}^{2}} } */\starttext/* Als op het tijdstip *$t_{0}$* plaats *$**\vec**{r}_{0}$* en snelheid *$v_{0}$* zijn gegeven, dan kan de plaats *$**\vec**{r}$* van een deeltje op ieder tijdstip worden berekend met de vergelijkingen */\placeformula/*[eqn1] */\startformula/* */\startalign/*[n=3] */\vec/*{v} & = & */\done/*{*/\vec/*{r}}{t} */\quad/* */\quad/* */\vec/*{r} - */\vec/*{r}_{0} = */\int/*_{t_{0}}^{t} */\vec/*{v} */\:/* dt */\\/* */\stopalign/* */\stopformula/* */\placeformula/*[eqn2] */\startformula/* */\startalign/*[n=3] */\vec/*{a} & = & */\done/*{*/\vec/*{v}}{t} */\quad/* */\quad/* */\vec/*{v} - */\vec/*{v}_{0} = */\int/*_{t_{0}}^{t} */\vec/*{a} */\:/* dt */\\/* */\stopalign/* */\stopformula/* Voor *$**\vec**{a}$* constant volgt uit */\in/*[eqn2] */\startformula/* */\vec/*{v} = */\vec/*{v}_{0} + */\vec/*{a} */\:/* (t - t_0) */\stopformula/* en hieruit met behulp van */\in/*[eqn1] */\stoptext /* Wim adityam@umich.edu wrote:
On Tue, 21 Mar 2006, WN wrote:
Hi,
I am getting unknown references when I use \startformula \startalign[n=3] .... Some math ...... \stopalign \stopformula in conjunction with \placeformula[eqn1] \startformula .... math .. \stopformula See \in[eqn1] .... <----------- unknown reference
It has something to do with the formulanumber not set, I know, but how do I fix this in the above ??
Which context version are you using? The following compiles correctly on live.contextgarden.net
\starttext \startformula \startalign[n=3] \NC a \NC b \NC d \NR \NC a \NC b \NC d \NR \stopalign \stopformula
in conjunction with \placeformula[eqn1] \startformula a = b \stopformula See \in[eqn1] \unknown
\stoptext
See if this works for you.
Aditya _______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
WN wrote:
Hi,
I think I am using the latest context version
I cannot see any difference in the setup. I must be doing something basically wrong ???
There is a bug, and it is caused by the embedded \startalign environment. Minimal file: \starttext \placeformula[eqn1] \startformula \startalign[n=1] a\\ \stopalign \stopformula See \in[eqn1] \stoptext Sorry, I have no time for further debugging tonight. Cheers, Taco
On Wed, 22 Mar 2006, Taco Hoekwater wrote:
WN wrote:
Hi,
I think I am using the latest context version
I cannot see any difference in the setup. I must be doing something basically wrong ???
There is a bug, and it is caused by the embedded \startalign environment. Minimal file:
\starttext \placeformula[eqn1] \startformula \startalign[n=1] a\\ \stopalign \stopformula See \in[eqn1] \stoptext
To WN, quick workaround, use \NR construct rather than \\. \starttext \placeformula \startformula \startalign[n=1] a \NR[eqn1] \stopalign \stopformula \stoptext
From what I understand, Hans said that this loose label was an ugly method to refer to equations. Consider \placeformula[eq1] \startformula \startalign[n=1] eqn 1 \NR eqn 2 \NR \stopalign \stopformula
What should eq1 refer to? The first equation or the second? The "correct" way is to specify which one you want to be refered, so \placeformula \startformula \startalign[n=1] eqn 1 \NR[eq1] eqn 2 \NR \stopalign \stopformula And this does work correctly. Actually, there is another problem. Consider this \placeformula \startformula \startalign \NC ... \NC ... \NR \NC ... \NC ....\NR \NC ... \NC ... \NR \stopalign \stopformula vs \placeformula \startformula \startalign \NC ..\NC ... \NR \NC ..\NC ... \NR[+] \stopalign \stopformula The second construct should only number the second equation, and it does exactly that. The first does not number any equation, which is also the correct and expected behaviour. Now suppose that I want to number all equations. I am pretty sure that this used to work (can't check at the moment, as I have upgraded context) \placeformula[+] \startformula \startalign \NC ... \NC ... \NR \NC ... \NR ... \NR \stopalign \stopformula However, this is no longer working? How do I number all the equations in a multiline formula, without doing a \NR[+] at each line? Aditya
Here are a few details of _how I understand_ the align mechanism of context. Hope that others will find it useful. Any suggestions for improvement are welcome. Aditya
First thanks for your help, I did what you suggested and it worked.
But now I am trying your example file align.tex and running texexec,
using the latest Context (2006.03.23), I get the following error. I
believe the problems
lies in verb-tex.tex but I am not sure.
section : 1 Basic Alignment
Here are a few details of _how I understand_ the align mechanism of context. Hope that others will find it useful. Any suggestions for improvement are welcome.
Aditya ------------------------------------------------------------------------
_______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
On Fri, 24 Mar 2006, WN wrote:
First thanks for your help, I did what you suggested and it worked. But now I am trying your example file align.tex and running texexec, using the latest Context (2006.03.23), I get the following error. I believe the problems lies in verb-tex.tex but I am not sure.
section : 1 Basic Alignment
(/usr/local/tex/texmf-local/tex/context/base/verb-tex.tex loading : Context Support Macros / Pretty TEX Verbatim ) ! Missing number, treated as zero. <to be read again> f \currenttyping ->f ile \checkverbatimfileline ...enumber <\currenttyping \c!start \else \ifnum \ver... \presetnormalverbatimline ...\doflushverbatimline \global \chardef \verbatim...
\readline ...line \else \presetnormalverbatimline \fi \fi \fi \fi \handlever...
\processfileverbatim ...expandafter \readline \fi \closein \verbatiminput \e... ... *l.25 \ShowExample*
Strange. Try \def\ShowExample{\typebuffer\showbuffer} and if that does not work, I guess you do not have permissions to write to a buffer. (This is all that I can make out from the error message). Try modifying texmf.cnf for the correct permissions. (Again, I am not sure which setting you need to modify). Otherwise try the attached file. I have replaced all \typebuffer\showbuffer by \starttyping ... \stoptyping buffer contents (vim regex rules). This also compiles on live.contextgarden. If you do not manage to get it working, I will send you a pdf later today. I do not have access to a recent context distribution right now [1]. HTH, Aditya [1] On my college computer texexec --version gives I can send you a pdf sometime later today. TeXExec 3.1 - ConTeXt / PRAGMA ADE 1997-2002 Taco, do you need this one for the museum :)
Aditya Mahajan wrote:
On Fri, 24 Mar 2006, WN wrote:
First thanks for your help, I did what you suggested and it worked. But now I am trying your example file align.tex and running texexec, using the latest Context (2006.03.23), I get the following error. I believe the problems lies in verb-tex.tex but I am not sure.
Probabyl that typo in core-ver.tex that was diagnosed by Peter Rolf. That was introduced in 2006.03.22, so that seems about right. I must be getting blind to have missed no less that two verbatim bugs in the diff logs. :-(
[1] On my college computer texexec --version gives I can send you a pdf sometime later today.
TeXExec 3.1 - ConTeXt / PRAGMA ADE 1997-2002
Taco, do you need this one for the museum :)
Can you find a version number somewhere? or the filesize of texexec.pl? Cheers, Taco
[1] On my college computer texexec --version gives I can send you a pdf sometime later today.
TeXExec 3.1 - ConTeXt / PRAGMA ADE 1997-2002
Taco, do you need this one for the museum :)
Can you find a version number somewhere? or the filesize of texexec.pl?
filesize of texexec.pl: 93024 here is the head of texexec.pl eval '(exit $?0)' && eval 'exec perl -S $0 ${1+"$@"}' && eval 'exec perl -S $0 $argv:q' if 0; # todo: second run of checksum of mp file with --nomprun changes # todo: warning if no args # todo: <<<< in messages # todo: cleanup #D \module #D [ file=texexec.pl, #D version=2002.05.04, #D title=running \ConTeXt, #D subtitle=\TEXEXEC, #D author=Hans Hagen, #D date=\currentdate, #D copyright={PRAGMA / Hans Hagen \& Ton Otten}] #C #C This module is part of the \CONTEXT\ macro||package and is #C therefore copyrighted by \PRAGMA. See licen-en.pdf for #C details. # Thanks to Tobias Burnus for the german translations. # Thanks to Thomas Esser for hooking it into web2c # Thanks to Taco Hoekwater for suggesting improvements # Thanks to Wybo Dekker for the advanced help interface # (I still have to completely understand the help code -) #D We started with a hack provided by Thomas Esser. This #D expression replaces the unix specific line \type #D {#!/usr/bin/perl}. Aditya
Aditya Mahajan wrote:
[1] On my college computer texexec --version gives I can send you a pdf sometime later today.
TeXExec 3.1 - ConTeXt / PRAGMA ADE 1997-2002
Taco, do you need this one for the museum :)
Can you find a version number somewhere? or the filesize of texexec.pl?
filesize of texexec.pl: 93024
got that one already, but thanks anyway. It is probably this release of context: https://foundry.supelec.fr/plugins/scmsvn/viewcvs.php?root=contextrev&view=rev&rev=30 Cheers, Taco
Aditya Mahajan wrote:
On Fri, 24 Mar 2006, WN wrote:
First thanks for your help, I did what you suggested and it worked. But now I am trying your example file align.tex and running texexec, using the latest Context (2006.03.23), I get the following error. I believe the problems lies in verb-tex.tex but I am not sure.
section : 1 Basic Alignment
(/usr/local/tex/texmf-local/tex/context/base/verb-tex.tex loading : Context Support Macros / Pretty TEX Verbatim ) ! Missing number, treated as zero. <to be read again> f \currenttyping ->f ile \checkverbatimfileline ...enumber <\currenttyping i just ran into that one as well; this was introduced when i optimized the code a bit (brace in wrong place + wrong macro calls); i'll upload a fixed version
Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
Aditya Mahajan wrote:
Here are a few details of _how I understand_ the align mechanism of context. Hope that others will find it useful. Any suggestions for improvement are welcome.
why not add this to the wiki? some day taco and i will make a manual for math and then we can use such examples Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
<--- On Mar 27, Hans Hagen wrote --->
Aditya Mahajan wrote:
Here are a few details of _how I understand_ the align mechanism of context. Hope that others will find it useful. Any suggestions for improvement are welcome.
why not add this to the wiki? some day taco and i will make a manual for math and then we can use such examples
Actually I am almost through with a myway. Will upload that to the wiki in 3-4 days. Aditya -- Aditya Mahajan, EECS Systems, University of Michigan http://www.eecs.umich.edu/~adityam || Ph: 7342624008
participants (4)
-
Aditya Mahajan
-
Hans Hagen
-
Taco Hoekwater
-
WN