Difference between revisions of "Command/setupdescription"

From Wiki
Jump to navigation Jump to search
(Created page with "Documentation for \setupdescription")
 
 
(One intermediate revision by the same user not shown)
Line 22: Line 22:
 
     </cd:parameter>
 
     </cd:parameter>
 
     <cd:parameter name="text">
 
     <cd:parameter name="text">
       <cd:paramdoc></cd:paramdoc>
+
       <cd:paramdoc>Text before a head.</cd:paramdoc>
 
       <cd:constant type="cd:text"></cd:constant>
 
       <cd:constant type="cd:text"></cd:constant>
 
     </cd:parameter>
 
     </cd:parameter>
Line 30: Line 30:
 
     </cd:parameter>
 
     </cd:parameter>
 
     <cd:parameter name="before">
 
     <cd:parameter name="before">
       <cd:paramdoc></cd:paramdoc>
+
       <cd:paramdoc>Key that defines what happens before the enumeration starts. With this key and the <cd:iref name="after"/> key on can achieve the same effect as in itemize with the option "packed"</cd:paramdoc>
 
       <cd:constant type="cd:command"></cd:constant>
 
       <cd:constant type="cd:command"></cd:constant>
 
     </cd:parameter>
 
     </cd:parameter>
 
     <cd:parameter name="after">
 
     <cd:parameter name="after">
       <cd:paramdoc></cd:paramdoc>
+
       <cd:paramdoc>Key that defines what happens after an enumeration stops.</cd:paramdoc>
 
       <cd:constant type="cd:command"></cd:constant>
 
       <cd:constant type="cd:command"></cd:constant>
 
     </cd:parameter>
 
     </cd:parameter>
 
     <cd:parameter name="inbetween">
 
     <cd:parameter name="inbetween">
       <cd:paramdoc></cd:paramdoc>
+
       <cd:paramdoc>This key is used when the title is on top. The key controls what can be placed between title and text.</cd:paramdoc>
 
       <cd:constant type="cd:command"></cd:constant>
 
       <cd:constant type="cd:command"></cd:constant>
 
     </cd:parameter>
 
     </cd:parameter>
Line 78: Line 78:
 
     </cd:parameter>
 
     </cd:parameter>
 
     <cd:parameter name="indentnext">
 
     <cd:parameter name="indentnext">
       <cd:paramdoc></cd:paramdoc>
+
       <cd:paramdoc>control the indentation of the following paragraph.</cd:paramdoc>
 
       <cd:constant type="yes"></cd:constant>
 
       <cd:constant type="yes"></cd:constant>
 
       <cd:constant type="no"></cd:constant>
 
       <cd:constant type="no"></cd:constant>
Line 84: Line 84:
 
     </cd:parameter>
 
     </cd:parameter>
 
     <cd:parameter name="width">
 
     <cd:parameter name="width">
       <cd:paramdoc></cd:paramdoc>
+
       <cd:paramdoc>Width of the description head.
       <cd:constant type="fit"></cd:constant>
+
</cd:paramdoc>
       <cd:constant type="broad"></cd:constant>
+
       <cd:constant type="fit">equal to the head width</cd:constant>
 +
       <cd:constant type="broad">equal to the head width plus distance option</cd:constant>
 
       <cd:constant type="line"></cd:constant>
 
       <cd:constant type="line"></cd:constant>
 
       <cd:constant type="cd:dimension"></cd:constant>
 
       <cd:constant type="cd:dimension"></cd:constant>
 
     </cd:parameter>
 
     </cd:parameter>
 
     <cd:parameter name="distance">
 
     <cd:parameter name="distance">
       <cd:paramdoc></cd:paramdoc>
+
       <cd:paramdoc>See <cd:iref name="width" type="broad"/>.</cd:paramdoc>
 
       <cd:constant type="none"></cd:constant>
 
       <cd:constant type="none"></cd:constant>
 
       <cd:constant type="cd:dimension"></cd:constant>
 
       <cd:constant type="cd:dimension"></cd:constant>
Line 109: Line 110:
 
       <cd:constant type="none"></cd:constant>
 
       <cd:constant type="none"></cd:constant>
 
       <cd:constant type="margin"></cd:constant>
 
       <cd:constant type="margin"></cd:constant>
       <cd:constant type="cd:number"></cd:constant>
+
       <cd:constant type="cd:number">stop indentation of the left edge after this many lines</cd:constant>
 
     </cd:parameter>
 
     </cd:parameter>
 
     <cd:parameter name="closesymbol">
 
     <cd:parameter name="closesymbol">
Line 132: Line 133:
 
     </cd:parameter>
 
     </cd:parameter>
 
     <cd:parameter name="sample">
 
     <cd:parameter name="sample">
       <cd:paramdoc></cd:paramdoc>
+
       <cd:paramdoc>Text that defines the width of the paragraph.</cd:paramdoc>
 
       <cd:constant type="cd:text"></cd:constant>
 
       <cd:constant type="cd:text"></cd:constant>
 
     </cd:parameter>
 
     </cd:parameter>
 
     <cd:parameter name="margin">
 
     <cd:parameter name="margin">
       <cd:paramdoc></cd:paramdoc>
+
       <cd:paramdoc>Overall (head and paragraph) left edge indenting.</cd:paramdoc>
 
       <cd:constant type="yes"></cd:constant>
 
       <cd:constant type="yes"></cd:constant>
 
       <cd:constant type="no"></cd:constant>
 
       <cd:constant type="no"></cd:constant>
Line 179: Line 180:
 
<cd:commandref name="setupindenting" originator="system"></cd:commandref>
 
<cd:commandref name="setupindenting" originator="system"></cd:commandref>
 
<cd:source file="strc-des.mkvi" originator="system"></cd:source>
 
<cd:source file="strc-des.mkvi" originator="system"></cd:source>
<cd:wikipage originator="system" page="Category:Structure"></cd:wikipage></cd:seealso>
+
<cd:wikipage originator="system" page="Category:Structure"></cd:wikipage>
 +
<cd:wikipage page="Description"></cd:wikipage></cd:seealso>
 
</cd:commandgroup>
 
</cd:commandgroup>

Latest revision as of 12:48, 29 October 2021


\setupdescription

Summary

The command \setupdescription is used to setup description environments

Settings

\setupdescription[...,...][...=...,...]
[...,...]name
titleyes no
levelnumber
texttext
headcommandoneargument
beforecommand
aftercommand
inbetweencommand
alternativeleft right inmargin inleft inright margin leftmargin rightmargin innermargin outermargin serried hanging top empty command name
alignsee \setupalign
headalignsee \setupalign
indentingsee \setupindenting
displayyes no
indentnextyes no auto
widthfit broad line dimension
distancenone dimension
stretchnumber
shrinknumber
hangfit broad none margin number
closesymbolcommand
closecommandoneargument
expansionyes no xml
referenceprefix+ - text
sampletext
marginyes no standard dimension
stylestyle command
colorcolor
headstylestyle command
headcolorcolor
aligntitleyes no

OptionExplanation
text
Text before a head.
before
Key that defines what happens before the enumeration starts. With this key and the after key on can achieve the same effect as in itemize with the option "packed"
after
Key that defines what happens after an enumeration stops.
inbetween
This key is used when the title is on top. The key controls what can be placed between title and text.
indentnext
control the indentation of the following paragraph.
width
Width of the description head.
fit equal to the head width
broad equal to the head width plus distance option
distance
See width=broad.
hang
number stop indentation of the left edge after this many lines
sample
Text that defines the width of the paragraph.
margin
Overall (head and paragraph) left edge indenting.

Description

Examples

Notes

See also

Help from ConTeXt-Mailinglist/Forum

All issues with: