Difference between revisions of "Command/starthanging"
< Command
BruceH2020 (talk | contribs) (Created) |
BruceH2020 (talk | contribs) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 38: | Line 38: | ||
<cd:description><!-- the long description of the command goes here --> | <cd:description><!-- the long description of the command goes here --> | ||
</cd:description> | </cd:description> | ||
− | <cd:examples><cd:example title=" | + | <cd:examples><cd:example title=""><context source="yes"> |
\starthanging[left]{\externalfigure[cow.pdf][width=3cm]} | \starthanging[left]{\externalfigure[cow.pdf][width=3cm]} | ||
\samplefile{lorem} | \samplefile{lorem} | ||
\stophanging | \stophanging | ||
</context></cd:example><cd:example title=""><context source="yes"> | </context></cd:example><cd:example title=""><context source="yes"> | ||
− | \starthanging[location=left,n=8,distance= | + | \starthanging[location=left,n=8,distance=6ex]{\externalfigure[cow.pdf][width=3cm]} |
\samplefile{lorem} | \samplefile{lorem} | ||
\stophanging | \stophanging | ||
Line 51: | Line 51: | ||
<cd:source file="spac-ver.mkiv" originator="system"></cd:source> | <cd:source file="spac-ver.mkiv" originator="system"></cd:source> | ||
<cd:wikipage originator="system" page="Category:Alignment"></cd:wikipage> | <cd:wikipage originator="system" page="Category:Alignment"></cd:wikipage> | ||
− | <cd:commandref name="placefloat"></cd:commandref></cd:seealso> | + | <cd:commandref name="placefloat">The <code>left</code> and <code>right</code> options.</cd:commandref> |
+ | <cd:commandref name="startfiguretext">Another way to wrap text around a figure.</cd:commandref> | ||
+ | <cd:commandref name="placeinitial">Drop caps</cd:commandref></cd:seealso> | ||
</cd:commandgroup> | </cd:commandgroup> |
Latest revision as of 23:43, 16 August 2022
Contents
\starthanging ... \stophanging
Summary
The environment \starthanging ... \stophanging is used to hang the start of a paragraph of text around an object in the style of a drop-cap.
Settings
\starthanging[...=...,...]{...} ... \stophanging | |
distance | dimension |
n | number |
location | left right |
{...} | content |
Option | Explanation | ||||||
---|---|---|---|---|---|---|---|
distance |
| ||||||
n |
| ||||||
location |
| ||||||
{...} | The content to hang the text around. Typically an image but could be anything framed, for example. |
Settings argument
Description
Examples
Example 1
\starthanging[left]{\externalfigure[cow.pdf][width=3cm]} \samplefile{lorem} \stophanging
Example 2
\starthanging[location=left,n=8,distance=6ex]{\externalfigure[cow.pdf][width=3cm]} \samplefile{lorem} \stophanging
Notes
See also
- spac-ver.mkiv
- \placefloat The
left
andright
options. - \startfiguretext Another way to wrap text around a figure.
- \placeinitial Drop caps