Changes

Jump to navigation Jump to search
373 bytes removed ,  00:42, 16 January 2018
Added empty line after paragraph delimited descriptions.
< [[From LaTeX to ConTeXt]] | [[Structurals]] >
 
{{todo|descriptions and enumerations in mkiv share the same base, and all "location" values are now set with "alternative". Are there other changes? The present page (as well as the command syntax documentation) needs to be updated.}}
 
= Basic Description Lists =
<context source=yes>
\setuppapersize[A5]
\definedescription[latexdesc][
headstyle=bold, style=normal, align=leftflushleft, locationalternative=hanging,
width=broad, margin=1cm]
\starttext
\latexdesc{Short} This is a shorter item label, and some text that
talks about it. The text is wrapped into a paragraph, with
with other lists -- but is spaced a fixed distance from the end of
the label.
\stoptext
</context>
<context source=yes>
\setuppapersize[A5]
\definedescription[descr][
headstyle=bold, style=normal, align=leftflushleft, locationalternative=hanging,
width=broad, margin=1cm]
\starttext
\startdescr{Para}
This is a shorter item label, and some text that talks about it.
A short item that's not part of that really long "Para" item.
\stopdescr
 
\stoptext
</context>
<context source=yes>
\setuppapersize[A5]
 
\definedescription[notation][
headstyle=bold, style=normal, align=leftflushleft, locationalternative=hanging,
width=5em]
\starttext
\notation{Short} This is a shorter item label, and some text that talks
about it. The text is wrapped into a paragraph, with successive
see, the paragraph simply pretends the label is 5em wide.
\stoptext
</context>
<context source=yes>
\setuppapersize[A5]
\setupcolors[state=start]
\definedescription[Desc][locationalternative=top, hang=20, headstyle={\bf\color[bold, headcolor=blue]},
command=\hskip-1cm, margin=1cm]
\starttext
\Desc{Short} This item's short label is set above the paragraph. The
paragraph starts 1cm in.
above the paragraph. The paragraph starts 1cm in.
\stoptext
</context>
gardener
110

edits

Navigation menu