Difference between revisions of "Command/sub"

From Wiki
Jump to navigation Jump to search
m (Text replace - "\[\[cmd:(.*)\|(.*)\]\]" to "{{cmd|$1}}")
(Fill in entire page)
Line 13: Line 13:
 
   </tr>
 
   </tr>
 
</table>
 
</table>
 
  
 
== Description ==  
 
== Description ==  
 
+
Used in itemizations. Prints the item mark of the previous {{cmd|item}}, with a <code>+</code> in front of it to indicate a subitem/continuation.
 
 
  
 
== Example ==
 
== Example ==
<!-- Please fill in an example if you can -->
+
<context source=yes>
 +
\startitemize[n]
 +
    \item First item
 +
    \sub continued
 +
    \sub further continued
 +
    \item Second item
 +
\stopitemize
 +
</context>
  
 
== See also ==
 
== See also ==
<!-- something like {{cmd|goto}} -->
+
* {{cmd|startitemize}} can be nested to create subitems
 +
* {{cmd|sym}} can be used to specify items with custom marks
  
 
== Help from ConTeXt-Mailinglist/Forum ==
 
== Help from ConTeXt-Mailinglist/Forum ==
Line 29: Line 35:
 
{{Forum|{{SUBPAGENAME}}}}
 
{{Forum|{{SUBPAGENAME}}}}
  
[[Category:Commands|sub]]
+
[[Category:Command/Itemizations|sub]]

Revision as of 11:56, 28 May 2012

\sub

Syntax

\sub[ref,ref,...]
[ref,ref,...]

Description

Used in itemizations. Prints the item mark of the previous \item, with a + in front of it to indicate a subitem/continuation.

Example

\startitemize[n]
    \item First item
    \sub continued
    \sub further continued
    \item Second item
\stopitemize

See also

  • \startitemize can be nested to create subitems
  • \sym can be used to specify items with custom marks

Help from ConTeXt-Mailinglist/Forum

All issues with: