From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/34126 Path: news.gmane.org!not-for-mail From: Bernd Militzer Newsgroups: gmane.comp.tex.context Subject: module and def commands problem Date: Thu, 05 Apr 2007 11:27:26 +0200 Message-ID: <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="------------080408000201090805000405" X-Trace: sea.gmane.org 1175765390 31272 80.91.229.12 (5 Apr 2007 09:29:50 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 5 Apr 2007 09:29:50 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Apr 05 11:29:47 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 1HZOHl-0001gr-Uo for gctc-ntg-context-518@m.gmane.org; Thu, 05 Apr 2007 11:29:42 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 63E4B20044; Thu, 5 Apr 2007 11:29:41 +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 14316-02; Thu, 5 Apr 2007 11:29:41 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 5A9AF20061; Thu, 5 Apr 2007 11:27:40 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 5FA802002F for ; Thu, 5 Apr 2007 11:27:37 +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 12847-03-7 for ; Thu, 5 Apr 2007 11:27:35 +0200 (CEST) Original-Received: from new.militzer.net (new.militzer.net [81.169.143.226]) by ronja.ntg.nl (Postfix) with ESMTP id 5C3272002E for ; Thu, 5 Apr 2007 11:27:35 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by new.militzer.net (Postfix) with ESMTP id 225781840B2 for ; Thu, 5 Apr 2007 11:27:35 +0200 (CEST) Original-Received: from new.militzer.net ([127.0.0.1]) by localhost (new [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 29402-02 for ; Thu, 5 Apr 2007 11:27:27 +0200 (CEST) Original-Received: from [81.210.146.26] (cable-146-26.iesy.net [81.210.146.26]) by new.militzer.net (Postfix) with ESMTP id 58A161840B1 for ; Thu, 5 Apr 2007 11:27:27 +0200 (CEST) User-Agent: Thunderbird 1.5.0.7 (Macintosh/20060909) X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at new.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:34126 Archived-At: This is a multi-part message in MIME format. --------------080408000201090805000405 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit 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 --------------080408000201090805000405 Content-Type: application/x-tex; x-mac-type="0"; x-mac-creator="0"; name="p-testDE.tex" Content-Disposition: inline; filename="p-testDE.tex" Content-Transfer-Encoding: quoted-printable %D %%%%% \module %D=20 \unprotect \startcommands german english frage: frage question Fach: Fach subject Thema: Thema topic SchulJahr: SchulJahr schoolYear SpezialTitel: SpezialTitel specialTitle=09 =09 \stopcommands \startvariables german english Fach: Fach subject Thema: Thema topic SchulJahr: SchulJahr schoolYear SpezialTitel: SpezialTitel specialTitle=09 =09 \stopvariables %\protect % % we define the questions / Definition der Fragestellungen % \defineenumeration[frage][location=3Dinleft,text=3D,stopper=3D.,headstyle= =3Dbold] % % % the user macros / Macros f=9Fr den Anwender % \def\v!Fach#1{\def\internFach{#1}} % subject / Fach \def\v!Thema#1{\def\internThema{#1}} % topic / Thema der Arbeit \def\v!SchulJahr#1{\def\internSchulJahr{#1}} % school year / Schuljahr % that is just a test \def\v!SpezialTitel{\internFach \hfill \internThema \hfill \internSchulJa= hr \blank}=20 % % % we predefine the macros just in case / Vorbelegung der Macros % \def\internFach{} \def\internThema{} \def\internSchulJahr{0000/00} % \protect % % end --------------080408000201090805000405 Content-Type: application/x-tex; x-mac-type="0"; x-mac-creator="0"; name="test1.tex" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="test1.tex" % % \mainlanguage[de] \usemodule[testDE] % \doifnotmode{english}{ % \language[de] \starttext % \Fach{WVK} \Thema{Verkaufsgespraech} \SchulJahr{2006/07} % % here we start % just a title line \SpezialTitel % % and now the questions \frage[1] Test Text \par % \frage[2] Test Text \par % \question[3] next question with \type{\question[3]} % \par \frage[last] Test Text \par } % % we switch to englisch % \doifmode{english}{ \page \language[en] \topic{test it} \subject{FixMe} \SchoolYear{2006/07} % % specialTitle \question test in english mit \type{\question} \par \frage jetzt in deutsch mit \type{\frage} \par } % \stoptext % % end --------------080408000201090805000405 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 --------------080408000201090805000405--