[dev-context] typo-par.mkiv

Wolfgang Schuster schuster.wolfgang at googlemail.com
Tue Dec 13 13:29:11 CET 2011


Hi,

there is a typo in the following command.

\def\place_initial[#1]% todo: optional text
  {\par
   \begingroup
   \edef\currentinitial{#1}%
   \begingroup
   \useinitialcolorparameter\c!color
   \ctxlua{typesetters.paragraphs.droppers.set {
     location = "\initialparameter\c!location",
     enabled  = true,
     n        = \number\initialparameter\c!n,
     distance = \number\dimexpr\initialparameter\c!distance,
     hoffset  = \number\dimexpr\initialparameter\c!hoffset,
     voffset  = \number\dimexpr\initialparameter\c!voffset,
     ma       = \the\attribute\colormodelattribute  ,
     ca       = \the\attribute\colorattribute       ,
     ta       = \the\attribute\transparencyattribute
   }}%
   \stopluacode
   \endgroup
   \begingroup
   \doifelsenothing{\initialparameter\c!style}
     {\definedfont[\initialparameter\s!font]}
-    {\initialstyleparameter\c!style}%
+    {\useinitialstyleparameter\c!style}%
   \ctxlua{typesetters.paragraphs.droppers.freeze()}%
   \endgroup
   \endgroup
   \setparagraphspecial[1]%
   \namedinitialparameter{#1}\c!before}

Wolfgang


More information about the dev-context mailing list