At 20:13 18/09/2003 +0200, you wrote:

I have defined an enumeration. After typesetting the enumerated list I get
on the first line the enumeration text and lost and alone in front of the
second line the enumeration number.

Is this something I do in a wrong way or is there a bug?

hm, this is due to the fact that the [ ] are not taken into the width calculations. This problem was introduced some time ago when i made a slightly more advanced width multiline calculator. In your case it's also triggered by text=\em which should be textstyle=\em (now an extra space is added between the text and number)


The next alternative fixes the width calculation.

\def\@@dostartdefinitie#1[#2]#3%
  {\getvalue{\??dd#1\c!voor}%
   \begingroup
   \doadaptleftskip{\getvalue{\??dd#1\c!marge}}%
   \showcomposition
   \!!widthb\getvalue{\??dd#1\c!afstand}\relax
   \ifdim\!!widthb=\zeropoint\relax
     \doifvalue{\??dd#1\c!breedte}\v!ruim{\!!widthb=1em}%
   \fi
   % temp hack, we need to avoid this kind of preprocessing
   \setbox\@@definitiebox\hbox % preroll
     {\forgetall
      \trialtypesettingtrue
      \mindermeldingen
      \def\\{\crcr}%
      \@@definitiewoord{#1}[#2]{#3}%
        {\begstrut\getvalue{\??dd#1\c!tekst}\ignorespaces#3\endstrut}}%
   % so far
   \assignwidth
     {\!!widtha}
     {\getvalue{\??dd#1\c!breedte}}
     {\doifelsevaluenothing{\??dd#1\c!monster}
        {% preroll can move here (test first)
         \ifhbox\@@definitiebox\unhcopy\else\copy\fi \@@definitiebox}
        {\@@definitiewoord{#1}[#2]{#3}%
           {\getvalue{\??dd#1\c!tekst}\getvalue{\??dd#1\c!monster}}}}
     {\!!widthb}%
   \setbox\@@definitiebox\hbox
     {\forgetall
      \mindermeldingen
      \let\\\endgraf
      \doifelsevalue{\??dd#1\c!plaats}\v!aanelkaar
        {\@@definitiewoord{#1}[#2]{#3}%
           {\begstrut\getvalue{\??dd#1\c!tekst}#3\endstrut}}
        {\@@definitiewoord{#1}[#2]{#3}%
           {\vtop{\hsize\!!widtha\advance\hsize-\!!widthb
            \begstrut\getvalue{\??dd#1\c!tekst}\ignorespaces#3\endstrut}}}}%
   \doifelsevalue{\??dd#1\c!titeluitlijnen}\v!nee
     {\edef\@@leftdefinitieskip {\the\leftskip }%
      \edef\@@rightdefinitieskip{\the\rightskip}}
     {\ifcase\insidedefinition
        \edef\@@leftdefinitieskip {\the\leftskip }%
        \edef\@@rightdefinitieskip{\the\rightskip}%
      \fi}%
   \expanded{\inspringen[\getvalue{\??dd#1\c!inspringen}]}%
   \ifcase\insidedefinition % better a system mode
     \chardef\insidedefinition\plusone
   \or
     \chardef\insidedefinition\plustwo
   \fi} % now happens elsewhere : \noindent\ignorespaces

-------------------------------------------------------------------------
                                  Hans Hagen | PRAGMA ADE | [EMAIL PROTECTED]
                      Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------
                       information: http://www.pragma-ade.com/roadmap.pdf
                    documentation: http://www.pragma-ade.com/showcase.pdf
-------------------------------------------------------------------------

_______________________________________________
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context

Reply via email to