Difference between revisions of "Command/placeinitial"

From Wiki
Jump to navigation Jump to search
m
Line 27: Line 27:
  
 
\stoptext
 
\stoptext
</context></cd:example><cd:example title="Short Paragraphs"><context mode="mkiv" source="yes">
+
</context></cd:example><cd:example title="Short Paragraphs">When the first paragraph does not take up the entire height of the drop-cap, use the {{cmd|forgetinitial}} command to indicate when the drop-cap ends.
 +
 
 +
<context mode="mkiv" source="yes">
 
\enableexperiments[autoforgetinitials]
 
\enableexperiments[autoforgetinitials]
 
\setupinitial[n=2, style=\tfd, location=text]
 
\setupinitial[n=2, style=\tfd, location=text]
Line 33: Line 35:
  
 
\starttext
 
\starttext
\chapter  
+
\chapter
  
 
Short paragraph \par
 
Short paragraph \par

Revision as of 18:47, 10 July 2021


\placeinitial

Summary

Initials (also known as drop caps, dropped caps, or versals) can be made in ConTeXt using the \placeinitial command detailed here.

See \setupinitial for customization.

Settings

\placeinitial[...]
[...]name

Description

Examples

basics

\definepapersize[sheet][width=120mm,height=60mm]
\setuppapersize[sheet]
\setuppagenumbering[location=]
\setuplayout[width=100mm,backspace=15mm,topspace=0mm,header=0mm,headerdistance=0mm,footer=0mm,footerdistance=0mm]

\starttext

\placeinitial
\input knuth

\stoptext

Short Paragraphs

When the first paragraph does not take up the entire height of the drop-cap, use the \forgetinitial command to indicate when the drop-cap ends.

\enableexperiments[autoforgetinitials]
\setupinitial[n=2, style=\tfd, location=text]
\setuphead[chapter][after={\placeinitial}]

\starttext
\chapter

Short paragraph \par

\forgetinitial \input tufte

\stoptext
internal error: copy error Sqh08y/cropped.pdf

Notes

See also

Help from ConTeXt-Mailinglist/Forum

All issues with: