From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/34128 Path: news.gmane.org!not-for-mail From: "Wolfgang Schuster" Newsgroups: gmane.comp.tex.context Subject: Re: module and def commands problem Date: Thu, 5 Apr 2007 12:57:34 +0200 Message-ID: <115224fb0704050357v12cdc03aib09fffa11571e46e@mail.gmail.com> References: <4614C0FE.90802@militzer.net> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2060979321==" X-Trace: sea.gmane.org 1175770674 26206 80.91.229.12 (5 Apr 2007 10:57:54 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 5 Apr 2007 10:57:54 +0000 (UTC) To: "mailing list for ConTeXt users" Original-X-From: ntg-context-bounces@ntg.nl Thu Apr 05 12:57:52 2007 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by lo.gmane.org with esmtp (Exim 4.50) id 1HZPf4-0000He-21 for gctc-ntg-context-518@m.gmane.org; Thu, 05 Apr 2007 12:57:50 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id F3B2120200; Thu, 5 Apr 2007 12:57:48 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 24639-01-5; Thu, 5 Apr 2007 12:57:42 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 6989B201A1; Thu, 5 Apr 2007 12:57:42 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 58827201A1 for ; Thu, 5 Apr 2007 12:57:39 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 24639-01-4 for ; Thu, 5 Apr 2007 12:57:37 +0200 (CEST) Original-Received: from an-out-0708.google.com (an-out-0708.google.com [209.85.132.244]) by ronja.ntg.nl (Postfix) with ESMTP id CFDD020165 for ; Thu, 5 Apr 2007 12:57:36 +0200 (CEST) Original-Received: by an-out-0708.google.com with SMTP id d33so595644and for ; Thu, 05 Apr 2007 03:57:35 -0700 (PDT) Original-Received: by 10.100.152.9 with SMTP id z9mr1187825and.1175770654950; Thu, 05 Apr 2007 03:57:34 -0700 (PDT) Original-Received: by 10.100.106.19 with HTTP; Thu, 5 Apr 2007 03:57:34 -0700 (PDT) In-Reply-To: <4614C0FE.90802@militzer.net> X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.9 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:34128 Archived-At: --===============2060979321== Content-Type: multipart/alternative; boundary="----=_Part_43269_17071814.1175770654905" ------=_Part_43269_17071814.1175770654905 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline 2007/4/5, Bernd Militzer : > > 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. > ...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 ------=_Part_43269_17071814.1175770654905 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline

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




------=_Part_43269_17071814.1175770654905-- --===============2060979321== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context --===============2060979321==--