Hi all, I have 2 definitions in my document and every thing compiles until i add a third one, i get the following error: ! Undefined control sequence. <write> ... \twopassentry {\s!list }{\currentlist }{\currentlist :\noflistel... <inserted text> }\endwrite \immediatewriteutilitycommand ...ti {c \string #1} \stopitemgroup ...th =\zerocount \dolistreference \fi \iffirstlist \else \en... l.312 \stopitemize What does \stopitemize do here ? I use items with heads etc. but it comes later after my third definition, and the problem appears only after i add a third defintion. Hm ... Any help would be valuable. Thanks in advance. Dirar. PS What does l.312 mean.? I assume it is the line number. Is that right ?
Dirar BOUGATEF said this at Sun, 28 Nov 2004 15:09:45 +0000:
I have 2 definitions in my document and every thing compiles until i add a third one, i get the following error:
Dirar, I don't understand what you're trying to say here. Can you send a minimal, complete example that illustrates the error? -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Adam T. Lindsay, Computing Dept. atl@comp.lancs.ac.uk Lancaster University, InfoLab21 +44(0)1524/510.514 Lancaster, LA1 4WA, UK Fax:+44(0)1524/510.492 -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Hi Adam, This is an example: \starttext \definition{HMV} blablabla \definition{TTV} blablabla %I also have items sometime afterwards: \startitemize[r] % \head My head \par \startitemize[triangle] \item First Item \item Second Item \item Third Item \stopitemize % \stopitemize \stoptext At this point, it compiles, but when i add a third definition, lets say \definition{QTV} blablabla It generates the error: ! Undefined control sequence. <write> ... \twopassentry {\s!list }{\currentlist }{\currentlist :\noflistel... <inserted text> }\endwrite \immediatewriteutilitycommand ...ti {c \string #1} \stopitemgroup ...th =\zerocount \dolistreference \fi \iffirstlist \else \en... l.360 \stopitemize I have just tried \par after each definition as follows \definition{QTV} blablabla \par I can now compile but the doc does talk about this! Question: Do we have to put a \par. It is really bizarre that it solves the problem, cause my items are defined far away in my document from the definitions.
"Dirar BOUGATEF"
Hi Adam,
This is an example:
\starttext \definition{HMV} blablabla \definition{TTV} blablabla
... ! Undefined control sequence. l.2 \definition {HMV} blablabla ? ! Emergency stop. l.2 \definition {HMV} blablabla Dirar, please try your code at live.contextgarden.net before posting. Where does \definition come from? Patrick -- ConTeXt wiki: http://contextgarden.net
Hi Patrick, cont-eni.pdf chapter 10.2
texexec --version
TeXExec 5.2.3 - ConTeXt / PRAGMA ADE 1997-2004 texexec : TeXExec 5.2.3 - ConTeXt / PRAGMA ADE 1997-2004 texutil : TeXUtil 9.0.0 - ConTeXt / PRAGMA ADE 1992-2004 tex : pdfeTeX, 3.141592-1.20a-2.2 (Web2c 7.5.3) context : ver: <not found> cont-en : ver: 2004.11.16 fmt: 2004.11.18 mes: english total run time : 4 seconds.
Put a blank line between your \definitions helps here. Matthias On Nov 28, 2004, at 1:00 PM, Dirar BOUGATEF wrote:
Hi Patrick,
cont-eni.pdf chapter 10.2
texexec --version
TeXExec 5.2.3 - ConTeXt / PRAGMA ADE 1997-2004
texexec : TeXExec 5.2.3 - ConTeXt / PRAGMA ADE 1997-2004 texutil : TeXUtil 9.0.0 - ConTeXt / PRAGMA ADE 1992-2004 tex : pdfeTeX, 3.141592-1.20a-2.2 (Web2c 7.5.3) context : ver: <not found> cont-en : ver: 2004.11.16 fmt: 2004.11.18 mes: english
total run time : 4 seconds.
_______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Thanks to you all, \par solves the problem as i said. A blank line does obviously the same thing. The documentation has only 2 explicit examples and no \par is used within (I assume a blank line was used instead). The box where the command is defined specifies the \par argument which isn't obvious to see because there is a mistake (\description appears instead of \definition which can be confusing). Still don't know why it worked with 2 \definitions but anyway, i know my error now :) Bye. Dirar.
Hello Dirar,
within (I assume a blank line was used instead). The box where the command is defined specifies the \par argument which isn't obvious to see because there is a mistake (\description appears instead of \definition which can be confusing).
this is because \definition is defined with \definedescription: \definedescription [mycoolestthings] would give you a command \mycoolestthings. This, of course, results to {\it \description} used in the box. It is not the control sequence \description, but a control sequence that is a description. Patrick -- ConTeXt wiki: http://contextgarden.net
Dirar BOUGATEF wrote:
Still don't know why it worked with 2 \definitions but anyway, i know my error now :)
\something bla bla \something bla bla <empty line> will work in many cases because \something also triggers a \par, but don't depend on it too much 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 -----------------------------------------------------------------
Matthias Weber wrote:
Put a blank line between your \definitions helps here.
indeed, \definition {text} more text emptyline|\par an alternative: \startdefinition {text} more text \stopdefinition i tend to use that alternative 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 -----------------------------------------------------------------
Hello Dirar,
This is an example:
[this is what I mean with complete, but minimal example. The itemize environment has nothing to do with the problem] \definedescription [definition] \starttext \definition{HMV} blablabla \definition{TTV} blablabla % uncomment this to see the error % \definition{QTV} blablabla \stoptext
l.360 \stopitemize
[this is the line number]
I can now compile but the doc does talk about this!
I guess you meant to write "does not". If you do, than please have a look at 10.2 again. All examples have a \par at the end (at least at a quick glance). And an empty line as you had in your second description is equivalent to \par. The description in texshow-web (and alike) is incorrect. (http://texshow.contextgarden.net/cmd=description)
Question: Do we have to put a \par.
Yes.
It is really bizarre that it solves the problem, cause my items are defined far away in my document from the definitions.
What I think is more bizarre, that the problem did not already occur with two \definition{...}. Patrick -- ConTeXt wiki: http://contextgarden.net
participants (5)
-
Adam Lindsay
-
Dirar BOUGATEF
-
h h extern
-
Matthias Weber
-
Patrick Gundlach