Initials

From ConTeXt wiki
Jump to: navigation, search

< Visuals | Fonts >

Initials (dropped caps) work best with a font with rectangular ornaments around the letter.

\setupinitial[color=red,font=Bold sa 4,distance=3pt,state=start,n=3]
% known parameters: font, distance, state, n, command

\starttext

\placeinitial \input knuth

\stoptext

If you need more options, try the lettrine module. Here’s an example:

\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=.34]

\starttext
\lettrine{A}{fter the three} \input ward
\stoptext

C O N T E X T G A R D E N

Personal tools
Namespaces
Variants
Actions
Help
External Help
Installation
Navigation
Toolbox