ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Definitions
@ 2002-01-17 13:45 Giuseppe Bilotta
  2002-01-20 17:56 ` Definitions Giuseppe Bilotta
  0 siblings, 1 reply; 7+ messages in thread
From: Giuseppe Bilotta @ 2002-01-17 13:45 UTC (permalink / raw)


Hello,

I have a bug report and an enhancement request for enumerations.

First of all: the bug.

I'm using

ConTeXt  ver: 2002.1.7  fmt: 2002.1.10  int: english  mes: english

(running pdf-e-TeX)
and there is an "undefined control sequence error" when using:

\defineenumeration[definizione]
                  [text=Definizione,
                   location=hanging,
                   hang=0,
                   headcolor=blue,
                   headstyle=normal,
                   way=bychapter]

\starttext

\definizione[relinv] (Relazione inversa). Siano dati due insiemi non vuoti
  $X$, $Y$ ed una relazione $§R$ di $X$ in $Y$ (i.e. $R\subseteq X\times Y$).
  Si dice che l'~insieme  ${§R}^{-1}\subseteq Y\times X$  \`e la relazione
  inversa di $§R$ se e solo se:

\stoptext

The undefined control sequence seems to be \preparednumber.

The enhancement request. When enumerations are used for create theorems,
lemmas, corollaries etc one sometimes needs to add an optional
argument that should be typeset in its own way but in relation to
the title rather than the content. For example, if I were to write
a calculus book and got to Lebesgue theorem I would like to write:

\starttheorem[leb][author=Lebesgue,]
Let $(S, \A, \mu)$ be a $sigma$-finite measure space ...
\stoptheorem

or

\starttheorem[cpt][author=Cantor,subj={uniform continuity}]
Let $(S, d)$ be a metric space ...
\stoptheorem

and I would like to be able to control the layout of the theorem
according to the presence and absence of the various extra fields.
In some way this would be a stripped-down version of my xdesc
module, so I will try to adapt those macros. But if there is an
easier way, please let me know.

--
Giuseppe "Oblomov" Bilotta


^ permalink raw reply	[flat|nested] 7+ messages in thread
* re: Definitions
@ 1999-04-10  9:46 Hans Hagen
  1999-04-11 21:41 ` Definitions Tobias Burnus
  0 siblings, 1 reply; 7+ messages in thread
From: Hans Hagen @ 1999-04-10  9:46 UTC (permalink / raw)


Tobias asked me: 

> I get: 
> 
> DEFINITION 1.1  Some Text
> LEMMA 1.1       Some Text
> DEFINITION 1.2  Some Text
> 
> I'd like to have this:
> 
> DEFINITION 1.1  Some Text
> LEMMA 1.1  Some Text
> DEFINITION 1.2  Some Text
> 

His file looked like: 

> \definierenummerierung
>   [definition]
>   [text=Definition]
> \stellebeschreibungein
>   [definition]
>    platz=kleinerabstand,kopfstil=\sc,abschnittsnummer=ja,art=prokapitel]
> \definierenummerierung
>   [lemma][text=Lemma]
> \stellebeschreibungein
>   [lemma]
>   [platz=kleinerabstand,kopfstil=\sc,abschnittsnummer=ja,art=prokapitel]
> 
> \kapitel{One}
> 
> \absatz{eins}
> 
> \startdefinition This is some text ... \stopdefinition
> 
> \absatz{two}
> 
> \startlemma This is a some more text ... \stoplemma

The solution is: set the width to 'broad', or in german: 

  breite=breit

The example can however be defined more compact, so I thought it made
sense to post it here: 

The definition is defined in the same way as tobias did, but we combine
the definition with the settings:  

\definierenummerierung
  [definition]
  [text=Definition,
   platz=kleinerabstand,
   kopfstil=\sc,
   breite=breit,
   abschnittsnummer=ja,
   art=prokapitel]

The lemma inherit their settings from definition and get one additional
setting. 

\definierenummerierung
  [lemma]
  [definition]
  [text=Lemma]

-----------------------------------------------------------------
                                          Hans Hagen | PRAGMA ADE
              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
      tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.nl
-----------------------------------------------------------------


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

end of thread, other threads:[~2002-01-21 15:31 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-01-17 13:45 Definitions Giuseppe Bilotta
2002-01-20 17:56 ` Definitions Giuseppe Bilotta
2002-01-20 23:28   ` Definitions Hans Hagen
2002-01-21 15:31     ` Re[2]: Definitions Giuseppe Bilotta
  -- strict thread matches above, loose matches on Subject: below --
1999-04-10  9:46 Definitions Hans Hagen
1999-04-11 21:41 ` Definitions Tobias Burnus
1999-04-12 10:36   ` Definitions Hans Hagen

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