Difference between revisions of "Command/placeinitial"
< Command
Jump to navigation
Jump to search
m |
BruceH2020 (talk | contribs) |
||
Line 48: | Line 48: | ||
<cd:source file="typo-drp.mkiv" originator="system"></cd:source> | <cd:source file="typo-drp.mkiv" originator="system"></cd:source> | ||
<cd:wikipage originator="system" page="Category:Fonts"></cd:wikipage> | <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:seealso> | + | <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> | </cd:commandgroup> |
Revision as of 23:45, 16 August 2022
Contents
\placeinitial
Summary
Initials (also known as drop caps, dropped caps, or versals) can be made in ConTeXt using the \placeinitial command detailed here.
See \setupinitial for customization.
Settings
Description
Examples
basics
\definepapersize[sheet][width=120mm,height=60mm] \setuppapersize[sheet] \setuppagenumbering[location=] \setuplayout[width=100mm,backspace=15mm,topspace=0mm,header=0mm,headerdistance=0mm,footer=0mm,footerdistance=0mm] \starttext \placeinitial \input knuth \stoptext
Short Paragraphs
When the first paragraph does not take up the entire height of the drop-cap, use the \forgetinitial command to indicate when the drop-cap ends.
\enableexperiments[autoforgetinitials] \setupinitial[n=2, style=\tfd, location=text] \setuphead[chapter][after={\placeinitial}] \starttext \chapter Short paragraph \par \forgetinitial \input tufte \stoptextinternal error: copy error nGMvNW/cropped.pdf
Notes
See also
- typo-drp.mkiv
- \definefirstline to apply specific style to the whole first line, or first words
- \starthanging to use an image as a drop cap