ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* module and  def commands problem
@ 2007-04-05  9:27 Bernd Militzer
  2007-04-05 10:57 ` Wolfgang Schuster
  0 siblings, 1 reply; 4+ messages in thread
From: Bernd Militzer @ 2007-04-05  9:27 UTC (permalink / raw)
  To: mailing list for ConTeXt users

[-- Attachment #1: Type: text/plain, Size: 693 bytes --]

Hi Taco,
instead of  writing a FixMe-module I just started to make my exam-module 
from 2003 a bit more international.

As a first test I set up some commands in german and english
see file p-testDE.tex

running texexec test1.tex  the output is ok
but
running texexec --mode=english test1.tex
I get an error:
system          : module testDE loaded
(./p-testde.tex)
! Undefined control sequence.
<argument> ...st it} \subject {FixMe} \SchoolYear
                                                  {2006/07} \question 
test i...

\firstofoneargument #1->#1
                          
l.53 }

What is going wrong with my command-definations? I have no idea!

What did I fail to do?

Cheers,
Bernd

[-- Attachment #2: p-testDE.tex --]
[-- Type: application/x-tex, Size: 1149 bytes --]

[-- Attachment #3: test1.tex --]
[-- Type: application/x-tex, Size: 635 bytes --]

[-- Attachment #4: Type: text/plain, Size: 139 bytes --]

_______________________________________________
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context

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

* Re: module and def commands problem
  2007-04-05  9:27 module and def commands problem Bernd Militzer
@ 2007-04-05 10:57 ` Wolfgang Schuster
  2007-04-05 11:45   ` Bernd Militzer
  0 siblings, 1 reply; 4+ messages in thread
From: Wolfgang Schuster @ 2007-04-05 10:57 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 1275 bytes --]

2007/4/5, Bernd Militzer <bernd@militzer.net>:
>
> Hi Taco,
> instead of  writing a FixMe-module I just started to make my exam-module
> from 2003 a bit more international.
>
> As a first test I set up some commands in german and english
> see file p-testDE.tex
>
> running texexec test1.tex  the output is ok
> but
> running texexec --mode=english test1.tex
> I get an error:
> system          : module testDE loaded
> (./p-testde.tex)
> ! Undefined control sequence.
> <argument> ...st it} \subject {FixMe} \SchoolYear
>                                                   {2006/07} \question
> test i...
>
> \firstofoneargument #1->#1
>
> l.53 }
>
> What is going wrong with my command-definations? I have no idea!
>
> What did I fail to do?
>
> Cheers,
> Bernd


Hi Bernd,

you tried to write you commands as \def\v!... and this means also you
have to call them by the name \v!...

Replace the four commands in your file with the next ones:

\def\Fach#1     {\def\internFach{#1}}
\def\Thema#1    {\def\internThema{#1}}
\def\SchulJahr#1{\def\internSchulJahr{#1}}

\def\SpezialTitel{\internFach\hfill\internThema\hfill\internSchulJahr\blank}


You can also remove the \startvariables .. \stopvariables part from your
module, you need them only for keyval commands.

Wolfgang

[-- Attachment #1.2: Type: text/html, Size: 1994 bytes --]

[-- Attachment #2: Type: text/plain, Size: 139 bytes --]

_______________________________________________
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context

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

* Re: module and def commands problem
  2007-04-05 10:57 ` Wolfgang Schuster
@ 2007-04-05 11:45   ` Bernd Militzer
  2007-04-05 12:20     ` Wolfgang Schuster
  0 siblings, 1 reply; 4+ messages in thread
From: Bernd Militzer @ 2007-04-05 11:45 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Wolfgang Schuster schrieb:
>
>
> Replace the four commands in your file with the next ones:
>
> \def\Fach#1     {\def\internFach{#1}}
> \def\Thema#1    {\def\internThema{#1}}
> \def\SchulJahr#1{\def\internSchulJahr{#1}}
>
> \def\SpezialTitel{\internFach\hfill\internThema\hfill\internSchulJahr\blank} 
>
>
> You can also remove the \startvariables .. \stopvariables part from your
> module, you need them only for keyval commands.
>
Thanks Wolfgang,  but after the change I get the same error
(./p-testde.tex)
! Undefined control sequence.
<argument> ...st it} \subject {FixMe} \SchoolYear
                                                  {2006/07} \question 
test i...

\firstofoneargument #1->#1
                         
l.53 }

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

* Re: module and def commands problem
  2007-04-05 11:45   ` Bernd Militzer
@ 2007-04-05 12:20     ` Wolfgang Schuster
  0 siblings, 0 replies; 4+ messages in thread
From: Wolfgang Schuster @ 2007-04-05 12:20 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 625 bytes --]

2007/4/5, Bernd Militzer <bernd@militzer.net>:
>
> Wolfgang Schuster schrieb:
> >
> >
> > Replace the four commands in your file with the next ones:
> >
> > \def\Fach#1     {\def\internFach{#1}}
> > \def\Thema#1    {\def\internThema{#1}}
> > \def\SchulJahr#1{\def\internSchulJahr{#1}}
> >
> >
> \def\SpezialTitel{\internFach\hfill\internThema\hfill\internSchulJahr\blank}
> >
> >
> > You can also remove the \startvariables .. \stopvariables part from your
> > module, you need them only for keyval commands.
> >
> Thanks Wolfgang,  but after the change I get the same error


Hi Bernd,

use my attached test file.

Wolfgang

[-- Attachment #1.2: Type: text/html, Size: 1000 bytes --]

[-- Attachment #2: t-schule.tex --]
[-- Type: application/x-tex, Size: 886 bytes --]

[-- Attachment #3: Type: text/plain, Size: 139 bytes --]

_______________________________________________
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context

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

end of thread, other threads:[~2007-04-05 12:20 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-04-05  9:27 module and def commands problem Bernd Militzer
2007-04-05 10:57 ` Wolfgang Schuster
2007-04-05 11:45   ` Bernd Militzer
2007-04-05 12:20     ` Wolfgang Schuster

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