Difference between revisions of "Command/setupinitial"
< Command
Jump to navigation
Jump to search
(Created page with "Documentation for \setupinitial") |
|||
Line 13: | Line 13: | ||
<cd:assignmentsdoc></cd:assignmentsdoc> | <cd:assignmentsdoc></cd:assignmentsdoc> | ||
<cd:parameter name="n"> | <cd:parameter name="n"> | ||
− | <cd:paramdoc></cd:paramdoc> | + | <cd:paramdoc>is the number of lines in the paragraph that the initial should occupy. It defaults to 3. |
+ | |||
+ | Another description can be "line where footline of dropcapital"</cd:paramdoc> | ||
<cd:constant type="cd:number"></cd:constant> | <cd:constant type="cd:number"></cd:constant> | ||
</cd:parameter> | </cd:parameter> | ||
<cd:parameter name="m"> | <cd:parameter name="m"> | ||
− | <cd:paramdoc></cd:paramdoc> | + | <cd:paramdoc>number of letters to capitalize</cd:paramdoc> |
<cd:constant type="cd:number"></cd:constant> | <cd:constant type="cd:number"></cd:constant> | ||
</cd:parameter> | </cd:parameter> | ||
<cd:parameter name="before"> | <cd:parameter name="before"> | ||
− | <cd:paramdoc></cd:paramdoc> | + | <cd:paramdoc>for example, to insert 2 big space before placement of the initial, |
+ | <tt>before={\blank[2*big]}]</tt></cd:paramdoc> | ||
<cd:constant type="cd:command"></cd:constant> | <cd:constant type="cd:command"></cd:constant> | ||
</cd:parameter> | </cd:parameter> | ||
<cd:parameter name="distance"> | <cd:parameter name="distance"> | ||
− | <cd:paramdoc></cd:paramdoc> | + | <cd:paramdoc>"offsets the following text" or "distance to the following text"</cd:paramdoc> |
<cd:constant type="cd:dimension"></cd:constant> | <cd:constant type="cd:dimension"></cd:constant> | ||
</cd:parameter> | </cd:parameter> | ||
<cd:parameter name="hoffset"> | <cd:parameter name="hoffset"> | ||
− | <cd:paramdoc></cd:paramdoc> | + | <cd:paramdoc>shift the initial horizontally, on the "left" (positive value) or on the right (negative value)</cd:paramdoc> |
<cd:constant type="cd:dimension"></cd:constant> | <cd:constant type="cd:dimension"></cd:constant> | ||
</cd:parameter> | </cd:parameter> | ||
<cd:parameter name="voffset"> | <cd:parameter name="voffset"> | ||
− | <cd:paramdoc></cd:paramdoc> | + | <cd:paramdoc>shift the initial vertically, down (positive value) or up (negative value). |
+ | Value 0pt gives a "top" alignment.</cd:paramdoc> | ||
<cd:constant default="yes" type="line"></cd:constant> | <cd:constant default="yes" type="line"></cd:constant> | ||
<cd:constant type="cd:dimension"></cd:constant> | <cd:constant type="cd:dimension"></cd:constant> | ||
</cd:parameter> | </cd:parameter> | ||
<cd:parameter name="style"> | <cd:parameter name="style"> | ||
− | <cd:paramdoc></cd:paramdoc> | + | <cd:paramdoc>style of the initial, for example <tt>style=\tex{bfd}</tt> for large bold</cd:paramdoc> |
<cd:constant type="cd:style"></cd:constant> | <cd:constant type="cd:style"></cd:constant> | ||
<cd:constant type="cd:command"></cd:constant> | <cd:constant type="cd:command"></cd:constant> | ||
</cd:parameter> | </cd:parameter> | ||
<cd:parameter name="color"> | <cd:parameter name="color"> | ||
− | <cd:paramdoc></cd:paramdoc> | + | <cd:paramdoc>color, for example <tt>color=darkred</tt></cd:paramdoc> |
<cd:constant type="cd:color"></cd:constant> | <cd:constant type="cd:color"></cd:constant> | ||
</cd:parameter> | </cd:parameter> | ||
<cd:parameter name="font"> | <cd:parameter name="font"> | ||
− | <cd:paramdoc></cd:paramdoc> | + | <cd:paramdoc>font specification, for example <tt>font=Bold at 32pt</tt></cd:paramdoc> |
<cd:constant type="cd:font"></cd:constant> | <cd:constant type="cd:font"></cd:constant> | ||
</cd:parameter> | </cd:parameter> |
Revision as of 16:55, 12 December 2020
Contents
\setupinitial
Summary
The command \setupinitial is used for providing a decorative or ornate first letter to prose at the start of chapters, sections, 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 |
|
Description
Examples
Notes
See also
- \defineinitial placeinitial
- typo-drp.mkiv
- \placeinitial placeinitial