ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Structure : problem with an environment
@ 2015-07-30 13:21 Fabrice Couvreur
  2015-07-30 14:17 ` Wolfgang Schuster
  0 siblings, 1 reply; 3+ messages in thread
From: Fabrice Couvreur @ 2015-07-30 13:21 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

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 error       > tex 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>
\20>>1
\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},
 6        headstyle={\bf\feature[+][f:smallcaps]},
 7        width=fit,
 8        alternative=left,
 9        stopper={.}]
10 >>
11     \stopenvironment
12

Thanks,
Fabrice

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

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

___________________________________________________________________________________
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] 3+ messages in thread

end of thread, other threads:[~2015-07-30 15:26 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-07-30 13:21 Structure : problem with an environment Fabrice Couvreur
2015-07-30 14:17 ` Wolfgang Schuster
2015-07-30 15:26   ` Fabrice

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