[NTG-context] Structure : problem with an environment
Hi, In my project, there is an env-03.tex file that contains this : \startenvironment env-03 \defineenumeration [def] [text={Définition}, headstyle={\bf\feature[+][f:smallcaps]}, width=fit, alternative=left, stopper={.}] \stopenvironment If I compile, I get this : open source 4 119 env-03.tex tex errortex error on line 10 in file env-03.tex: ! You can't use a prefix with `\begingroup' to be read again \begingroup \strc_enumerations_command #1-\begingroup \strc_constructions_initialize {#... to be read again \201 \dostepwiserecurse ...on \recursedepth \endcsname ##1##2{#4}\global \expanda... inserted text ...numerationsub {\v!sub \currentenumerationsub }} \else \let \currentenumera... \define_enumeration ...he \everydefineenumeration \let \currentenumeration \... ... l.10 1 \startenvironment env-03 2 3 \defineenumeration 4 [def] 5 [text={Définition}, 6headstyle={\bf\feature[+][f:smallcaps]}, 7width=fit, 8alternative=left, 9stopper={.}] 10 11 \stopenvironment 12 Thanks, Fabrice ___ 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 ___
Re: [NTG-context] Structure : problem with an environment
Hi Wolfgang, You're right, thank you. Fabrice ___ 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 ___
Re: [NTG-context] Structure : problem with an environment
Fabrice Couvreur mailto:fabrice1.couvr...@gmail.com 30. Juli 2015 15:21 Hi, In my project, there is an env-03.tex file that contains this : \startenvironment env-03 \defineenumeration [def] [text={Définition}, headstyle={\bf\feature[+][f:smallcaps]}, width=fit, alternative=left, stopper={.}] \stopenvironment You’re redefining the \def command which is needed by TeX because all internal commands are created with this primitive. Use a different name for your environment (e.g. defintion) to avoid this problem. 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 ___