Changes

Jump to navigation Jump to search
1,243 bytes added ,  03:01, 19 June 2023
m
no edit summary
<cd:shortdesc>Initials (also known as drop caps, dropped caps, or versals) can be made in ConTeXt using the {{cmd|placeinitial}} command detailed here.
See {{cmd|setupinitial}} for customization.</cd:shortdesc>
<cd:variants>
<cd:command category="fonts" file="typo-drp.mkiv" interfacedate="2019-11-19T09:54" interfacefile="i-initial.xml" level="document" name="placeinitial" variantnumber="1">
\stoptext
</context></cd:example><cd:example title="Short Paragraphs">When the first paragraph does not take up the entire height of the drop-cap, there are a few ways to allow the second paragraph to be correctly aligned. Use the {{cmd|setupinitial}} command with the continue option to indicate that the drop-cap (lettrine) is to be protected (i.e., no text may overlap the lettrine): <context mode="mkiv" source="yes">\setupinitial[n=2,continue=yes] \setuphead[chapter][ after={\placeinitial}, page=no,] \starttext\chapter{one}Thomas Jefferson wrote: We hold these truths to be self-evident. \chapter{two}\input knuth We hold these truths to be self-evident.\stoptext</context> Another way to indicate the end of the drop-cap is to use the {{cmd|forgetinitial}} command, as follows: <context mode="mkiv" source="yes">\enableexperiments[autoforgetinitials]\setupinitial[n=2, style=\tfd, location=text]\setuphead[chapter][after={\placeinitial}] \starttext\chapter Short paragraph \par \forgetinitial \input tufte \stoptext</context></cd:example></cd:examples>
<cd:notes></cd:notes>
<cd:seealso>
<cd:source file="typo-drp.mkiv" originator="system"></cd:source>
<cd:wikipage originator="system" page="Category:Fonts"></cd:wikipage><cd:commandref name="definefirstline">to apply specific style to the whole first line, or first words</cd:commandref><cd:commandref name="starthanging">to use an image as a drop cap</cd:commandref></cd:seealso>
</cd:commandgroup>
419

edits

Navigation menu