Difference between revisions of "Command/setupinitial"
< Command
Jump to navigation
Jump to search
Line 87: | Line 87: | ||
</cd:variants> | </cd:variants> | ||
<cd:description></cd:description> | <cd:description></cd:description> | ||
− | <cd:examples><cd:example title="">The following example produces an awful-looking initial, but it illustrates how some of these parameters work: | + | <cd:examples><cd:example title="">The following example produces an awful-looking initial, but it illustrates how some of these parameters work: |
Line 94: | Line 94: | ||
\setuppapersize[sheet] | \setuppapersize[sheet] | ||
− | \setupinitial[color=darkred, distance= | + | \setupinitial[color=darkred, distance=5mmpt, n=4, m=2, hoffset=-4mm, before={\blank[2*big]\thinrule\strut}] |
\starttext | \starttext |
Revision as of 17:19, 12 December 2020
Contents
\setupinitial
Summary
Initials (also known as drop caps, dropped caps, or versals) can be made in ConTeXt using the \placeinitial command.
The command \setupinitial
is used to customize this decorative or ornate first letter(s) to prose at the start of chapters, sections, paragraphs, and so forth.
Settings
\setupinitial[...,...][...=...,...] | |
[...,...] | name |
n | number |
m | number |
before | command |
distance | dimension |
hoffset | dimension |
voffset | line dimension |
style | style command |
color | color |
font | font |
text | text |
location | margin text |
method | first last auto none |
Option | Explanation | ||
---|---|---|---|
n |
| ||
m |
| ||
before |
| ||
distance |
| ||
hoffset |
| ||
voffset |
| ||
style |
| ||
color |
| ||
font |
| ||
text |
| ||
location |
| ||
method |
|
Description
Examples
Example 1
The following example produces an awful-looking initial, but it illustrates how some of these parameters work:
\definepapersize[sheet][width=100mm,height=50mm] \setuppapersize[sheet] \setupinitial[color=darkred, distance=5mmpt, n=4, m=2, hoffset=-4mm, before={\blank[2*big]\thinrule\strut}] \starttext Here is some text. \placeinitial \input knuth \stoptextinternal error: copy error PdYGa0/cropped.pdf
Notes
See also
- \defineinitial placeinitial
- typo-drp.mkiv
- \placeinitial placeinitial