Difference between revisions of "User:Sciurus/sandbox"
Jump to navigation
Jump to search
m (Sandboxing start-stop commands) Tag: Replaced |
m (Sandboxing commands list) |
||
Line 2: | Line 2: | ||
− | + | = ''start-stop'', ''setup'', and ''define'' = | |
There are three main types of commands in ConTeXt: | There are three main types of commands in ConTeXt: | ||
Line 10: | Line 10: | ||
Many commands don’t fit into one of these types, but here are some that do: | Many commands don’t fit into one of these types, but here are some that do: | ||
+ | |||
+ | == Structure == | ||
+ | These commands relate to the structure of a document. | ||
+ | |||
+ | * {{cmd|definestartstop}} and {{cmd|setupstartstop}} | ||
+ | * {{cmd|setupblock}} and {{cmd|setupblock}} | ||
+ | * {{cmd|definelist}} and {{cmd|setuplist}} | ||
+ | * {{cmd|definelistalternative}} and {{cmd|setuplistalternative}} | ||
+ | * {{cmd|definecombinedlist}} and {{cmd|setupcombinedlist}} | ||
+ | |||
+ | |||
+ | == Text formatting and decoration == | ||
+ | These commands relate to how text is displayed, without repositioning the text (much). | ||
+ | |||
+ | * {{cmd|definehighlight}} and {{cmd|setuphighlight}} | ||
+ | * {{cmd|defineframed}}, {{cmd|setupframed}}, and {{cmd|startframed}} | ||
+ | * {{cmd|defineblank}} and {{cmd|setupblank}} | ||
+ | |||
+ | == Layout and Design == | ||
+ | These commandds relate to how text is laid out on the page, possibly moving or positioning the text. | ||
+ | |||
+ | * {{cmd|definelayout}} and {{cmd|setuplayout}} | ||
+ | |||
+ | * {{cmd|definelines}} and {{cmd|setuplines}} |
Revision as of 20:39, 21 October 2020
LIKE EVERYTHING IN THIS SANDBOX, THIS IS ONLY A DRAFT AND SHOULD NOT BE USED YET.
Contents
start-stop, setup, and define
There are three main types of commands in ConTeXt:
- start-stop: To apply something to some text, enclose the text in
\startsomething
\stopsomething
. - setup: To configure something for the rest of the document, use
\setupsomething
. - define: To create a named customization of something, use
\definesomething
.
Many commands don’t fit into one of these types, but here are some that do:
Structure
These commands relate to the structure of a document.
- \definestartstop and \setupstartstop
- \setupblock and \setupblock
- \definelist and \setuplist
- \definelistalternative and \setuplistalternative
- \definecombinedlist and \setupcombinedlist
Text formatting and decoration
These commands relate to how text is displayed, without repositioning the text (much).
- \definehighlight and \setuphighlight
- \defineframed, \setupframed, and \startframed
- \defineblank and \setupblank
Layout and Design
These commandds relate to how text is laid out on the page, possibly moving or positioning the text.