Changes

Jump to navigation Jump to search
152 bytes removed ,  11:32, 30 August 2020
no edit summary
< [[From LaTeX to ConTeXt]] | [[Structurals]] >
 
= Basic Description Lists =
<context source=yes>
\setuppapersize[A5]
\definedescription[latexdesc][
headstyle=bold, style=normal, align=leftflushleft, alternative=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, alternative=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, alternative=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][alternative=top, hang=20,
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>
== See also ==
* {{cmd|definedescription}}
* {{cmdgen|startdescription}}  [[Category:Basics]] [[Category:From LaTeX]]

Navigation menu