ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Problem with \defintion.
@ 2004-11-28 15:09 Dirar BOUGATEF
  2004-11-28 15:22 ` Adam Lindsay
  0 siblings, 1 reply; 11+ messages in thread
From: Dirar BOUGATEF @ 2004-11-28 15:09 UTC (permalink / raw)


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 ?

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Problem with \defintion.
  2004-11-28 15:09 Problem with \defintion Dirar BOUGATEF
@ 2004-11-28 15:22 ` Adam Lindsay
  2004-11-28 15:41   ` Dirar BOUGATEF
  0 siblings, 1 reply; 11+ messages in thread
From: Adam Lindsay @ 2004-11-28 15:22 UTC (permalink / raw)


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
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Problem with \defintion.
  2004-11-28 15:22 ` Adam Lindsay
@ 2004-11-28 15:41   ` Dirar BOUGATEF
  2004-11-28 16:27     ` Patrick Gundlach
  2004-11-28 18:56     ` Patrick Gundlach
  0 siblings, 2 replies; 11+ messages in thread
From: Dirar BOUGATEF @ 2004-11-28 15:41 UTC (permalink / raw)


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.

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Problem with \defintion.
  2004-11-28 15:41   ` Dirar BOUGATEF
@ 2004-11-28 16:27     ` Patrick Gundlach
  2004-11-28 18:00       ` Dirar BOUGATEF
  2004-11-28 18:56     ` Patrick Gundlach
  1 sibling, 1 reply; 11+ messages in thread
From: Patrick Gundlach @ 2004-11-28 16:27 UTC (permalink / raw)


"Dirar BOUGATEF" <chabah5@hotmail.com> writes:

> 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

^ permalink raw reply	[flat|nested] 11+ messages in thread

* RE: Re: Problem with \defintion.
  2004-11-28 16:27     ` Patrick Gundlach
@ 2004-11-28 18:00       ` Dirar BOUGATEF
  2004-11-28 18:53         ` Matthias Weber
  0 siblings, 1 reply; 11+ messages in thread
From: Dirar BOUGATEF @ 2004-11-28 18:00 UTC (permalink / raw)


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.

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Re: Problem with \defintion.
  2004-11-28 18:00       ` Dirar BOUGATEF
@ 2004-11-28 18:53         ` Matthias Weber
  2004-11-28 19:18           ` Dirar BOUGATEF
  2004-11-28 20:48           ` h h extern
  0 siblings, 2 replies; 11+ messages in thread
From: Matthias Weber @ 2004-11-28 18:53 UTC (permalink / raw)


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
>
>

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Problem with \defintion.
  2004-11-28 15:41   ` Dirar BOUGATEF
  2004-11-28 16:27     ` Patrick Gundlach
@ 2004-11-28 18:56     ` Patrick Gundlach
  1 sibling, 0 replies; 11+ messages in thread
From: Patrick Gundlach @ 2004-11-28 18:56 UTC (permalink / raw)


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

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Re: Problem with \defintion.
  2004-11-28 18:53         ` Matthias Weber
@ 2004-11-28 19:18           ` Dirar BOUGATEF
  2004-11-28 20:10             ` Patrick Gundlach
  2004-11-28 21:17             ` h h extern
  2004-11-28 20:48           ` h h extern
  1 sibling, 2 replies; 11+ messages in thread
From: Dirar BOUGATEF @ 2004-11-28 19:18 UTC (permalink / raw)


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.

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Problem with \defintion.
  2004-11-28 19:18           ` Dirar BOUGATEF
@ 2004-11-28 20:10             ` Patrick Gundlach
  2004-11-28 21:17             ` h h extern
  1 sibling, 0 replies; 11+ messages in thread
From: Patrick Gundlach @ 2004-11-28 20:10 UTC (permalink / raw)


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

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Re: Problem with \defintion.
  2004-11-28 18:53         ` Matthias Weber
  2004-11-28 19:18           ` Dirar BOUGATEF
@ 2004-11-28 20:48           ` h h extern
  1 sibling, 0 replies; 11+ messages in thread
From: h h extern @ 2004-11-28 20:48 UTC (permalink / raw)


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
-----------------------------------------------------------------

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Re: Problem with \defintion.
  2004-11-28 19:18           ` Dirar BOUGATEF
  2004-11-28 20:10             ` Patrick Gundlach
@ 2004-11-28 21:17             ` h h extern
  1 sibling, 0 replies; 11+ messages in thread
From: h h extern @ 2004-11-28 21:17 UTC (permalink / raw)


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
-----------------------------------------------------------------

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2004-11-28 21:17 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-11-28 15:09 Problem with \defintion Dirar BOUGATEF
2004-11-28 15:22 ` Adam Lindsay
2004-11-28 15:41   ` Dirar BOUGATEF
2004-11-28 16:27     ` Patrick Gundlach
2004-11-28 18:00       ` Dirar BOUGATEF
2004-11-28 18:53         ` Matthias Weber
2004-11-28 19:18           ` Dirar BOUGATEF
2004-11-28 20:10             ` Patrick Gundlach
2004-11-28 21:17             ` h h extern
2004-11-28 20:48           ` h h extern
2004-11-28 18:56     ` Patrick Gundlach

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).