diff options
Diffstat (limited to 'tex/context/base/typo-drp.mkiv')
-rw-r--r-- | tex/context/base/typo-drp.mkiv | 39 |
1 files changed, 27 insertions, 12 deletions
diff --git a/tex/context/base/typo-drp.mkiv b/tex/context/base/typo-drp.mkiv index 78f6df0a2..a266bfdbe 100644 --- a/tex/context/base/typo-drp.mkiv +++ b/tex/context/base/typo-drp.mkiv @@ -57,6 +57,8 @@ \setupinitial [\c!location=\v!text, \c!n=3, + \c!m=1, + \c!method=\v!none, % \s!font=Bold sa 4, % \s!font=Bold ht \measure{initial:n}, \s!font=Bold cp \measure{initial:n}, @@ -67,7 +69,7 @@ \c!color=, \c!before=\blank] -\unexpanded\def\placeinitial +\unexpanded\def\placeinitial % we cannot group so no settings {\dosingleempty\typo_initials_place} \def\typo_initials_place[#1]% old command @@ -96,17 +98,19 @@ {\useinitialstyleparameter\c!style}% \useinitialcolorparameter\c!color \ctxcommand{setinitial{ - location = "\initialparameter\c!location", - enabled = true, - n = \number\scratchcounter, - distance = \number\scratchdistance, - hoffset = \number\scratchhoffset, - voffset = \number\scratchvoffset, - ma = \the\attribute\colormodelattribute , - ca = \the\attribute\colorattribute , - ta = \the\attribute\transparencyattribute, - font = \fontid\font, - dynamic = \number\attribute\zerocount, % it's a bit over the top to support this here + location = "\initialparameter\c!location", + enabled = true, + n = \number\scratchcounter, + m = \number\initialparameter\c!m, + method = "\initialparameter\c!method", + distance = \number\scratchdistance, + hoffset = \number\scratchhoffset, + voffset = \number\scratchvoffset, + ma = \the\attribute\colormodelattribute, + ca = \the\attribute\colorattribute, + ta = \the\attribute\transparencyattribute, + font = \fontid\font, + dynamic = \number\attribute\zerocount, % it's a bit over the top to support this here }}% \stopluacode \kern\zeropoint % we need a node @@ -115,4 +119,15 @@ \let\typo_initial_handle\relax +% \startbuffer +% \placeinitial[two] D. E. Knuth \ignorespaces\input knuth \par +% \placeinitial[two] Knuth \ignorespaces\input knuth \par +% \placeinitial[two] \quotation{D. E. Knuth} \ignorespaces\input knuth \par +% \placeinitial[two] \quotation {Knuth} \ignorespaces\input knuth \par +% \stopbuffer + +% \type{m=2} \defineinitial[two][m=2] \getbuffer \page +% \type{m=1,method=auto} \defineinitial[two][m=1,method=auto] \getbuffer \page +% \type{m=1,method={auto,first,last}} \defineinitial[two][m=1,method={first,auto,last}] \getbuffer \page + \protect \endinput |