ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Re: !  Undefined control sequence
       [not found] <mailman.1.1272103201.17505.ntg-context@ntg.nl>
@ 2010-04-26 19:59 ` Wolfgang Werners-Lucchini
  2010-04-27  7:40   ` Wolfgang Schuster
  0 siblings, 1 reply; 12+ messages in thread
From: Wolfgang Werners-Lucchini @ 2010-04-26 19:59 UTC (permalink / raw)
  To: ntg-context

> > What is the following command for:
> >
> >
> \setvariables[tst][set={\setupTst[1][n,\getvariable{tst}{broad}*broa
> d]
> > }]
> >
> > This is enough, or are there any problems?
> >
> > \setupTst[1][n,\getvariable{tst}{broad}*broad]
> >    
> To explain it with simpler macros
> 
> \setvariables[tst][set={...}] is similar to
> 
> \def\tstset{\setupTst[1][n,\tstbroad*broad]}
> 
> and
> 
> \setvariables[tst][broad=5] is similar to
> 
> \def\tstbroad{5}
> 
> but the special thing is now that \setvariables calls \tstset (or to
> be concrete the value of the 'set' key in \setvariables after the) value was 
> assigned to broad.
> 
> In a complete and simple example this is what happens:
> 
> \defineitemgroup[Tst]
> 
> \def\tstset{\setupTst[1][\tstbroad*broad]}
> 
> \starttext
> 
> \startTst
> \item text
> \stopTst
> 
> \def\tstbroad{5}\tstset
> 
> \startTst
> \item text
> \stopTst
> 
> \stoptext
> 
> Wolfgang
> 

Hi Wolfgang,

my question was: Why is this \setvariables[tst][set=...
necessary at all. The following example worked without that.

\defineitemgroup[Tst]

\setupTst[1][n,\getvariable{tst}{broad}*broad]

\starttext

\startTst
\item text
\stopTst

\setvariables[tst][broad=5]

\startTst
\item text
\stopTst

\setvariables[tst][broad=9]

\startTst
\item text
\stopTst

% \showvariable{tst}{broad}
\stoptext

Wolfgang
___________________________________________________________________________________
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  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: !  Undefined control sequence
  2010-04-26 19:59 ` ! Undefined control sequence Wolfgang Werners-Lucchini
@ 2010-04-27  7:40   ` Wolfgang Schuster
  0 siblings, 0 replies; 12+ messages in thread
From: Wolfgang Schuster @ 2010-04-27  7:40 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Am 26.04.10 21:59, schrieb Wolfgang Werners-Lucchini:
> Hi Wolfgang,
> my question was: Why is this \setvariables[tst][set=...
> necessary at all. The following example worked without that.
>    
See my other answer to Peter.

Wolfgang

___________________________________________________________________________________
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  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: ! Undefined control sequence
  2010-04-23 20:24     ` Peter Münster
@ 2010-04-24 11:13       ` Wolfgang Schuster
  0 siblings, 0 replies; 12+ messages in thread
From: Wolfgang Schuster @ 2010-04-24 11:13 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Am 23.04.10 22:24, schrieb Peter Münster:
> On Fri, Apr 23 2010, Wolfgang Schuster wrote:
>
>    
>> \setvariables[tst][set={\setupTst[1][n,\getvariable{tst}{broad}*broad]}]
>>      
> Hello Wolfgang,
>
> It works event without \setvariables:
>
> \defineitemgroup[Tst]
> \setupTst[1][n,\getvariable{tst}{broad}*broad]
> \starttext
> \setvariables[tst][broad=1]
> \startTst
> \item text
> \stopTst
> \setvariables[tst][broad=5]
> \startTst
> \item text
> \stopTst
> \stoptext
>
> But why? I don't see any "\noexpand" in the definition of \getvariable...
>    
Not sure but it could be possible \setvariables makes only a one level
expansion and in this case you get '\csname ...broad\endcsname*broad'
but not the the number itself.

Wolfgang

___________________________________________________________________________________
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  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: ! Undefined control sequence
  2010-04-23 15:56   ` Wolfgang Schuster
  2010-04-23 15:58     ` Taco Hoekwater
@ 2010-04-23 20:24     ` Peter Münster
  2010-04-24 11:13       ` Wolfgang Schuster
  1 sibling, 1 reply; 12+ messages in thread
From: Peter Münster @ 2010-04-23 20:24 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Fri, Apr 23 2010, Wolfgang Schuster wrote:

> \setvariables[tst][set={\setupTst[1][n,\getvariable{tst}{broad}*broad]}]

Hello Wolfgang,

It works event without \setvariables:

\defineitemgroup[Tst]
\setupTst[1][n,\getvariable{tst}{broad}*broad]
\starttext
\setvariables[tst][broad=1]
\startTst
\item text
\stopTst
\setvariables[tst][broad=5]
\startTst
\item text
\stopTst
\stoptext

But why? I don't see any "\noexpand" in the definition of \getvariable...

Cheers, Peter

-- 
Contact information: http://pmrb.free.fr/contact/


___________________________________________________________________________________
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  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: ! Undefined control sequence
  2010-04-23 15:56   ` Wolfgang Schuster
@ 2010-04-23 15:58     ` Taco Hoekwater
  2010-04-23 20:24     ` Peter Münster
  1 sibling, 0 replies; 12+ messages in thread
From: Taco Hoekwater @ 2010-04-23 15:58 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Wolfgang Schuster wrote:
> 
> don't you think it's better to show users a better alternative if possible?

You are assuming I know how ;)

Nice solution, btw.

Best wishes,
Taco
___________________________________________________________________________________
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  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: ! Undefined control sequence
  2010-04-23 15:32 ` Taco Hoekwater
@ 2010-04-23 15:56   ` Wolfgang Schuster
  2010-04-23 15:58     ` Taco Hoekwater
  2010-04-23 20:24     ` Peter Münster
  0 siblings, 2 replies; 12+ messages in thread
From: Wolfgang Schuster @ 2010-04-23 15:56 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Am 23.04.10 17:32, schrieb Taco Hoekwater:
>> -------------------------------------
>>
>> Why is this? 
>
> Because \setupitemgroup expands its third argument.
>
>> And how can I make it work in position 2?
>
>   \setupitemgroup[Tst][1][n,\noexpand\broad ]
>
> Best wishes,
> Taco

Taco,

don't you think it's better to show users a better alternative if possible?

\defineitemgroup[Tst]

\setvariables[tst][set={\setupTst[1][n,\getvariable{tst}{broad}*broad]}]

\starttext

\startTst
\item text
\stopTst

\setvariables[tst][broad=5]

\startTst
\item text
\stopTst

\stoptext

Wolfgang

___________________________________________________________________________________
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  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: ! Undefined control sequence
  2010-04-23 14:48 Wolfgang Werners-Lucchini
@ 2010-04-23 15:32 ` Taco Hoekwater
  2010-04-23 15:56   ` Wolfgang Schuster
  0 siblings, 1 reply; 12+ messages in thread
From: Taco Hoekwater @ 2010-04-23 15:32 UTC (permalink / raw)
  To: mailing list for ConTeXt users

> -------------------------------------
> 
> Why is this? 

Because \setupitemgroup expands its third argument.

> And how can I make it work in position 2?

   \setupitemgroup[Tst][1][n,\noexpand\broad ]

Best wishes,
Taco
___________________________________________________________________________________
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  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* ! Undefined control sequence
@ 2010-04-23 14:48 Wolfgang Werners-Lucchini
  2010-04-23 15:32 ` Taco Hoekwater
  0 siblings, 1 reply; 12+ messages in thread
From: Wolfgang Werners-Lucchini @ 2010-04-23 14:48 UTC (permalink / raw)
  To: ntg-context

Hallo,

I have a little problem which I can not solve.
The following example works with the definition
of \broad in position 1 and it fails in position 2.

-------------------------------------
% Position 1
% \def\broad{5*broad}

\defineitemgroup[Tst]
\setupitemgroup[Tst][1][n,\broad ]

% Position 2
\def\broad{5*broad}

\starttext
\startTst
\item Test
\stopTst
\stoptext
-------------------------------------

Why is this? And how can I make it work in position 2?

Wolfgang
___________________________________________________________________________________
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  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: ! Undefined control sequence.
  2005-02-08  1:42 K. David Prince
@ 2005-02-08 14:02 ` Taco Hoekwater
  2005-02-08  8:24   ` Vit Zyka
  0 siblings, 1 reply; 12+ messages in thread
From: Taco Hoekwater @ 2005-02-08 14:02 UTC (permalink / raw)



Hi,

You are still using an old format file, not the one from
the new context you downloaded. You could try creating the
format files manually:

   $ su
   # texexec --make --all

K. David Prince wrote:
>         TeXVersion 0.1 / Taco Hoekwater 2004
> 
>                texexec : TeXExec 5.2.4 - ConTeXt / PRAGMA ADE 1997-2005
>                texutil : TeXUtil 9.0.0 - ConTeXt / PRAGMA ADE 1992-2004
>                    tex : pdfeTeX, 3.14159-1.10b-2.1 (Web2C 7.4.5)
>                context : ver: 2005.01.31
>                cont-en : ver: 2003.1.31  fmt: 2005.1.28  mes: english

That last line should probably have been:

                  cont-en : ver: 2005.01.31  fmt: 2005.2.7  mes: english


Greetings, Taco

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

* Re: ! Undefined control sequence.
  2005-02-08  8:24   ` Vit Zyka
@ 2005-02-08  8:58     ` Matthew Huggett
  0 siblings, 0 replies; 12+ messages in thread
From: Matthew Huggett @ 2005-02-08  8:58 UTC (permalink / raw)
  Cc: ntg-context

  
   > K. David Prince wrote:
>   >=20
>   >>         TeXVersion 0.1 / Taco Hoekwater 2004
>   >>
>   >>                texexec : TeXExec 5.2.4 - ConTeXt / PRAGMA ADE 1997-200=
>   5
>   >>                texutil : TeXUtil 9.0.0 - ConTeXt / PRAGMA ADE 1992-200=
>   4
>   >>                    tex : pdfeTeX, 3.14159-1.10b-2.1 (Web2C 7.4.5)
>                                                 ^^^^
>   You also need new pdfetex binary (at least 1.20). (TeXLive 2004, teTeX 3)=
>   =2E
>   Vit Zyka


In which case, you may be better off using the minimal Context tree
for Linux from the Pragma site.  (I think you said you were running
Debian, so the packages are bound to be old.)

Matt 

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

* Re: ! Undefined control sequence.
  2005-02-08 14:02 ` Taco Hoekwater
@ 2005-02-08  8:24   ` Vit Zyka
  2005-02-08  8:58     ` Matthew Huggett
  0 siblings, 1 reply; 12+ messages in thread
From: Vit Zyka @ 2005-02-08  8:24 UTC (permalink / raw)


Taco Hoekwater wrote:
> 
> Hi,
> 
> You are still using an old format file, not the one from
> the new context you downloaded. You could try creating the
> format files manually:
> 
>   $ su
>   # texexec --make --all
> 
> K. David Prince wrote:
> 
>>         TeXVersion 0.1 / Taco Hoekwater 2004
>>
>>                texexec : TeXExec 5.2.4 - ConTeXt / PRAGMA ADE 1997-2005
>>                texutil : TeXUtil 9.0.0 - ConTeXt / PRAGMA ADE 1992-2004
>>                    tex : pdfeTeX, 3.14159-1.10b-2.1 (Web2C 7.4.5)
                                              ^^^^
You also need new pdfetex binary (at least 1.20). (TeXLive 2004, teTeX 3).
Vit Zyka

>>                context : ver: 2005.01.31
>>                cont-en : ver: 2003.1.31  fmt: 2005.1.28  mes: english
> 
> 
> That last line should probably have been:
> 
>                  cont-en : ver: 2005.01.31  fmt: 2005.2.7  mes: english
> 
> 
> Greetings, Taco
> 
> 
> _______________________________________________
> ntg-context mailing list
> ntg-context@ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context
> 

-- 
Vít Zýka --- http://typokvitek.com
     Automatic document typesetting
     Automaticka sazba dokumentu --
--

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

* ! Undefined control sequence.
@ 2005-02-08  1:42 K. David Prince
  2005-02-08 14:02 ` Taco Hoekwater
  0 siblings, 1 reply; 12+ messages in thread
From: K. David Prince @ 2005-02-08  1:42 UTC (permalink / raw)


0.  I'm using Debian/Testing.
1.  Downloaded: context/current/cont-tmf.zip  \
                 the main CONTEXT distribution \
                 2005-02-03 15:19      2356473 
from

http://www.pragma-ade.com/download-1.htm

2.  Installed according to:

http://levana.de/context/

kdp@yaz:~/Projects/ConTeXt$ ./texversion.pl

         TeXVersion 0.1 / Taco Hoekwater 2004

                texexec : TeXExec 5.2.4 - ConTeXt / PRAGMA ADE 1997-2005
                texutil : TeXUtil 9.0.0 - ConTeXt / PRAGMA ADE 1992-2004
                    tex : pdfeTeX, 3.14159-1.10b-2.1 (Web2C 7.4.5)
                context : ver: 2005.01.31
                cont-en : ver: 2003.1.31  fmt: 2005.1.28  mes: english

kdp@yaz:~/Projects/ConTeXt$

3.  Created hello.tex:

\starttext
Hello World
\stoptext

4.  "texexec --pdf hello.tex"  generates errors:

kdp@yaz:~/Projects/ConTeXt/Play$ texexec --pdf hello.tex
Use of uninitialized value in string eq at    -\ 
/opt/context/2005.01.31/bin/texexec line 344.  |  I fixed this
Use of uninitialized value in string eq at     |  in the previous
/opt/context/2005.01.31/bin/texexec line 348.   > version, but I
Use of uninitialized value in string eq at     |  didn't do it because
/opt/context/2005.01.31/bin/texexec line 348.  /  of the error below.

  TeXExec 5.2.4 - ConTeXt / PRAGMA ADE 1997-2005

             executable : pdfetex
                 format : cont-en
              inputfile : hello
                 output : pdftex
              interface : en
           current mode : none
                TeX run : 1

This is pdfeTeX, Version 3.14159-1.10b-2.1 (Web2C 7.4.5)
entering extended mode
(./hello.tex{/usr/share/texmf/pdftex/config/pdftex.cfg}

ConTeXt  ver: 2003.1.31  fmt: 2005.1.28  int: english  mes: english

language       : language en is active
<protectionstate 0>
system         : cont-new loaded
(/opt/context/2005.01.31/texmf/tex/context/base/cont-new.tex
systems        : beware: some patches loaded from cont-new.tex!
! Undefined control sequence.
\@@toks ->\everymathematics

\dodoappendtoks ->\dodoglobal \@@toks
                                       \@EAEAEA {\@EA \the \@EA \@@toks 
\the ...
l.299 \to \everymathematics

? x  <==I just bailed out here.  "hello.tex" runs fine under the old
         version.
No pages of output.
Transcript written on hello.log.

            return code : 256
               run time : 2 seconds

         total run time : 3 seconds
kdp@yaz:~/Projects/ConTeXt/Play$

Additional info on my setup:

kdp@yaz:~/Projects/ConTeXt/Play$ echo $PATH
/opt/context/2005.01.31/bin:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games
kdp@yaz:~/Projects/ConTeXt/Play$

%%%
%%% KDP texmf.cnf Edits for ConTeXt upgrade
%%%
TEXMFCONTEXT = /opt/context/2005.01.31/texmf
TEXMF = {$HOMETEXMF,!!$TEXMFLOCAL,!!$TEXMFOLDLOCAL,!!$VARTEXMF,!!$TEXMFCONTEXT,!!$TEXMFMAIN}
%%%
%%% End KDP ConTeXt Edits.
%%%

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

end of thread, other threads:[~2010-04-27  7:40 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <mailman.1.1272103201.17505.ntg-context@ntg.nl>
2010-04-26 19:59 ` ! Undefined control sequence Wolfgang Werners-Lucchini
2010-04-27  7:40   ` Wolfgang Schuster
2010-04-23 14:48 Wolfgang Werners-Lucchini
2010-04-23 15:32 ` Taco Hoekwater
2010-04-23 15:56   ` Wolfgang Schuster
2010-04-23 15:58     ` Taco Hoekwater
2010-04-23 20:24     ` Peter Münster
2010-04-24 11:13       ` Wolfgang Schuster
  -- strict thread matches above, loose matches on Subject: below --
2005-02-08  1:42 K. David Prince
2005-02-08 14:02 ` Taco Hoekwater
2005-02-08  8:24   ` Vit Zyka
2005-02-08  8:58     ` Matthew Huggett

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