Changes

Jump to navigation Jump to search
275 bytes removed ,  17:36, 12 December 2020
no edit summary
<cd:description>Because the space carved out for the initial is rectangular, initials work best with a font with rectangular ornaments around the letter.
== Lettrine module ==
'''Beware</cd:''' At this point (2020description><cd:examples><cd:example title="The following example produces an awful-12)looking initial, the lettrine module doesn’t but it illustrates how some of these parameters work with LMTX!."><context mode="mkiv" source="yes">\definepapersize[sheet][width=120mm,height=120mm]\setuppapersize[sheet]\setuppagenumbering[location=]\setuplayout[width=120mm,backspace=20mm,topspace=0mm,header=0mm,headerdistance=0mm] \starttext
If you want more options to customize your initials, try the [http://modules.contextgarden.net/t-lettrine lettrine module]. An example of the types of customizations that this module allows Here is:<texcode>\usemodule[lettrine]\def \LettrineStyle{\definefontsynonym[LettrineFont][Italic]}\setuplettrine [A][Lines=2,Findent=0.2em,Nindent=0.01em,FontHook={\LettrineStyle}]\setuplettrine [T][Lines=2,Findent=0.35em,Nindent=0.01em,FontHook={\LettrineStyle},Hang=.25]\setuplettrine [I][Lines=2,Findent=0.3em,Nindent=0.01em,FontHook={\LettrineStyle},Hang=.25]\setuplettrine [O][Lines=2,Findent=0.2em,Nindent=0.01em,FontHook={\LettrineStyle}]\setuplettrine [C][Lines=2,Findent=0.3em,Nindent=0.01em,FontHook={\LettrineStyle}]\setuplettrine [W][Lines=2,Findent=0.3em,Nindent=0.01em,FontHook={\LettrineStyle},Hang=some text 1.34]
\starttextsetupinitial[color=darkred, distance=15mm, n=2, m=2, before={\blank[big]\hairline\blank[big]}]\lettrine{A}{fter the three} placeinitial\input wardknuth \stoptext</texcode>blank[2*big]
Here is some text 2.
</cd:description><cd:examples><cd:example title\setupinitial[n="">The following example produces an awful-looking initial3, but it illustrates how some of these parameters work:m=4]\placeinitial\input knuth
\stoptext
</context></cd:example><cd:example title="Details about offset"><context mode="mkiv" source="yes">\definepapersize[sheet][width=150mm120mm,height=200mm250mm]
\setuppapersize[sheet]
\setuppagenumbering[location=]
\setuplayout[width=150mm120mm,backspace=0mm20mm,topspace=0mm,header=0mm,headerdistance=0mm]
\starttext
Here is some text 1.
\setupinitial[color=darkred, distance=15mm, n=2, m=2, before={\blank[big]\hairline\blank[big]}]
\placeinitial
\input knuth
Here is some text 2.
\setupinitial[nhoffset=3, m5mm]\placeinitialT{\tt hoffset=45mm}\input knuth \setupinitial[hoffset=-5mm]\placeinitialT{\tt hoffset=-5mm}\input knuth  \setupinitial[voffset=5mm]\placeinitialT{\tt voffset=5mm}\input knuth \setupinitial[voffset=-5mm]
\placeinitial
T{\tt voffset=-5mm}\input knuth
\stoptext

Navigation menu