Changes

Jump to navigation Jump to search
285 bytes added ,  21:33, 12 December 2020
no edit summary
</cd:description>
<cd:examples><cd:example title="n, m , location">The following example produces an awful-looking initial, but it illustrates how some of these parameters work.
<context mode="mkiv" source="yes">
\setupinitial[color=darkred, distance=10mm, before={\blank[big]\hairline\blank[big]}]
 
\type[option=context]{\setupinitial[color=darkred, distance=10mm, before={\blank[big]\hairline\blank[big]}]}
 
and
\type[option=context]{\setupinitial[n=2, m=2]}
\input knuth
\blank[2*big]
or \type[option=context]{\setupinitial[n=3, m=4]}
\setupinitial[n=3, m=4]
\input knuth
\blank[2*big]
or \type[option=context]{\setupinitial[location=margin,n=3, m=1,distance=5mm]}
\setupinitial[location=margin,n=3, m=1,distance=5mm]
\stoptext
</context></cd:example><cd:example title="Details about hoffset"><context mode="mkiv" source="yes">
\definepapersize[sheet][width=120mm,height=200mm]
\setuppapersize[sheet]
\stoptext
</context></cd:example><cd:example title="Details about voffset"><context mode="mkiv" source="yes">
\definepapersize[sheet][width=120mm,height=200mm]
\setuppapersize[sheet]
\input knuth
\blank[2*big] Here is some text 2.\type[option=context]{\setupinitial[voffset=0mm]}
\setupinitial[voffset=0mm]
\placeinitial
T\input knuth \blank[big]\type[option=context]{\tt\bf setupinitial[voffset=0mm5mm]}~\input knuth
\setupinitial[voffset=5mm]
\placeinitial
T{\tt\bf voffset=5mm}~\input knuth
\blank[big]\type[option=context]{\setupinitial[hoffset=-5mm]} \setupinitial[voffsethoffset=-5mm]
\placeinitial
T{\tt\bf voffset=-5mm}~\input knuth 
\stoptext
</context></cd:example><cd:example title="Details about font"><context mode="mkiv" source="yes">
\definepapersize[sheet][width=120mm,height=200mm]
\setuppapersize[sheet]
\input knuth
\blank[2*big] Here is some text 2.\type[option=context]{\setupinitial[font=Bold at 45pt]}
\setupinitial[font=Bold at 45pt]
\input knuth
Here is some text 3.\blank[big]\type[option=context]{\setupinitial[font=SansBold at 45pt]}
\setupinitial[font=SansBold at 45pt]
\starttext
\type[option=context]{\setupinitial[text=Here is some text 1.]}
\setupinitial[color=darkred,text=Here]

Navigation menu