Difference between revisions of "Command/starthanging"

From Wiki
Jump to navigation Jump to search
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="Cow"><context source="yes">
+
<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=5ex]{\externalfigure[cow.pdf][width=3cm]}
+
\starthanging[location=left,n=8,distance=6ex]{\externalfigure[cow.pdf][width=3cm]}
 
\samplefile{lorem}
 
\samplefile{lorem}
 
\stophanging
 
\stophanging

Revision as of 21:00, 16 August 2022


\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
distancedimension
nnumber
locationleft right
{...}content

OptionExplanation
distance
The space between the edge of the image and the start of the text.
n
The number of lines of vertical space to indent before returning back to the margin.
location
The position of the object.
left At the left hand margin.
right At the right hand margin.
{...} The content to hang the text around. Typically an image but could be anything framed, for example.

Settings argument

\starthanging[...]{...} ... \stophanging
[...]left right
{...}content

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

Help from ConTeXt-Mailinglist/Forum

All issues with: