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:examples> | + | <cd:examples><cd:example title="">\setupinitial[color=red, distance=24pt, n=4, hoffset=-16pt, before={\blank[2*big]}] |
+ | |||
+ | \starttext | ||
+ | Here is some text. | ||
+ | |||
+ | \placeinitial | ||
+ | \input knuth | ||
+ | \stoptext</cd:example></cd:examples> | ||
<cd:notes></cd:notes> | <cd:notes></cd:notes> | ||
<cd:seealso> | <cd:seealso> |
Revision as of 17:15, 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
\setupinitial[color=red, distance=24pt, n=4, hoffset=-16pt, before={\blank[2*big]}]
\starttext Here is some text.
\placeinitial \input knuth \stoptext
Notes
See also
- \defineinitial placeinitial
- typo-drp.mkiv
- \placeinitial placeinitial