Difference between revisions of "Command/items"

From Wiki
Jump to navigation Jump to search
(Created page with "Documentation for \items")
 
(add examples from source)
Line 16: Line 16:
 
   </cd:command>
 
   </cd:command>
 
</cd:variants>
 
</cd:variants>
<cd:description>This command gives a list of items with a symbol next to each one (actually the symbol it can be to the left, on top or below each item).
+
<cd:description>This command gives a list of items with a symbol next to each one (actually the symbol it can be to the left, on top or below each item), meant for questionnaires.
 +
 
 +
You can also use {{cmd|startitemize}} with {{cmd|ran}} and {{cmd|its}}.
  
 
</cd:description>
 
</cd:description>
Line 24: Line 26:
 
\blank
 
\blank
  
\items[symbol=8,n=3,alternative=left]{Yes,No,I don't know}
+
\items[symbol=8,n=3,alternative=left]{Yes,No,I don’t know}
 +
</context></cd:example><cd:example title="Examples from the source"><context source="yes">
 +
\items[alternative=left]{a,b,c}
 +
 
 +
\items[alternative=left,align=middle,textalign=flushright,distance=1em]{a,b,c}
 +
 
 +
\items[alternative=right]{a,b,c}
 +
 
 +
\items[alternative=inmargin]{a,b,c}
 +
 
 +
\items[alternative=top]{a,b,c}
 +
 
 +
\items[alternative=bottom]{a,b,c}
 +
 
 +
\items[alternative=bottom,align=flushleft,textstyle=bold,color=red,textcolor=green]{a,b,c}
 
</context></cd:example></cd:examples>
 
</context></cd:example></cd:examples>
 
<cd:notes></cd:notes>
 
<cd:notes></cd:notes>

Revision as of 16:25, 30 October 2023


\items

Summary

The command \items creates a short list of items

Settings

\items[...=...,...]{...}
...=...,...inherits from \setupitems
{...}text

OptionExplanation
text this is a comma-separated list of values

Description

This command gives a list of items with a symbol next to each one (actually the symbol it can be to the left, on top or below each item), meant for questionnaires.

You can also use \startitemize with \ran and \its.


Examples

Example 1

\items[symbol=8,n=5,width=\hsize,alternative=bottom]{png,eps,pdf,jpg,tif}

\blank

\items[symbol=8,n=3,alternative=left]{Yes,No,I don’t know}

Gives:

Examples from the source

\items[alternative=left]{a,b,c}

\items[alternative=left,align=middle,textalign=flushright,distance=1em]{a,b,c}

\items[alternative=right]{a,b,c}

\items[alternative=inmargin]{a,b,c}

\items[alternative=top]{a,b,c}

\items[alternative=bottom]{a,b,c}

\items[alternative=bottom,align=flushleft,textstyle=bold,color=red,textcolor=green]{a,b,c}

Notes

See also

Help from ConTeXt-Mailinglist/Forum

All issues with: