Difference between revisions of "User:Sciurus/sandbox"
Jump to navigation
Jump to search
m (Sandboxing commands list) |
m (drafting commands list) |
||
Line 14: | Line 14: | ||
These commands relate to the structure of a document. | These commands relate to the structure of a document. | ||
+ | * {{cmd|definesection}} and {{cmd|setupsection}} | ||
+ | * {{cmd|defineheader}} and {{cmd|setupheader}} | ||
+ | * {{cmd|definemakeup}} and {{cmd|setupmakeup}} | ||
+ | * {{cmd|definehead} and {{cmd|setuphead}} | ||
+ | * {{cmd|setupheadertexts}} | ||
+ | * {{cmd|setupfootertexts}} | ||
+ | * {{cmd|definesectionblock}} and {{cmd|setupsectionblock}} | ||
* {{cmd|definestartstop}} and {{cmd|setupstartstop}} | * {{cmd|definestartstop}} and {{cmd|setupstartstop}} | ||
* {{cmd|setupblock}} and {{cmd|setupblock}} | * {{cmd|setupblock}} and {{cmd|setupblock}} | ||
* {{cmd|definelist}} and {{cmd|setuplist}} | * {{cmd|definelist}} and {{cmd|setuplist}} | ||
* {{cmd|definelistalternative}} and {{cmd|setuplistalternative}} | * {{cmd|definelistalternative}} and {{cmd|setuplistalternative}} | ||
+ | * {{cmd|definedescription}} and {{cmd|setupdescription}} | ||
* {{cmd|definecombinedlist}} and {{cmd|setupcombinedlist}} | * {{cmd|definecombinedlist}} and {{cmd|setupcombinedlist}} | ||
− | + | * {{cmd|definepagebreak}} | |
== Text formatting and decoration == | == Text formatting and decoration == | ||
Line 26: | Line 34: | ||
* {{cmd|definehighlight}} and {{cmd|setuphighlight}} | * {{cmd|definehighlight}} and {{cmd|setuphighlight}} | ||
* {{cmd|defineframed}}, {{cmd|setupframed}}, and {{cmd|startframed}} | * {{cmd|defineframed}}, {{cmd|setupframed}}, and {{cmd|startframed}} | ||
+ | * {{cmd|defineframedtext}} and {{cmd|setupframedtext}} | ||
+ | * {{cmd|definemathframed}} and {{cmd|setupmathframed}} | ||
* {{cmd|defineblank}} and {{cmd|setupblank}} | * {{cmd|defineblank}} and {{cmd|setupblank}} | ||
+ | * {{cmd|definehspace}} and {{cmd|setuphspace}} | ||
+ | * {{cmd|setupwhitespace}} | ||
+ | * {{cmd|setupinterlinespace}} | ||
+ | * {{cmd|definelines}} and {{cmd|setuplines}} | ||
+ | * {{cmd|definetyping}} and {{cmd|setuptyping}} | ||
+ | * {{cmd|definetype}} and {{cmd|setuptype}} | ||
== Layout and Design == | == Layout and Design == | ||
− | These | + | These commands relate to how text is laid out on the page, and possibly involve moving or positioning the text. |
+ | * {{cmd|definepapersize}} and {{cmd|setuppapersize}} | ||
* {{cmd|definelayout}} and {{cmd|setuplayout}} | * {{cmd|definelayout}} and {{cmd|setuplayout}} | ||
+ | * {{cmd|setuppagenumbering}} | ||
+ | * {{cmd|definelayer}} and {{cmd|setuplayer}} | ||
+ | * {{cmd|definecolor}} and {{cmd|setupcolors}} | ||
+ | * {{cmd|definecolorgroup}} | ||
+ | * {{cmd|definepalet}} and {{cmd|setuppalet}} | ||
+ | * {{cmd|defineoverlay}} | ||
+ | * {{cmd|definecombination}} and {{cmd|setupcombination}} | ||
− | * {{cmd| | + | |
+ | == Utilities == | ||
+ | These commands have various functions that don’t relate directly to text formatting and design. | ||
+ | |||
+ | * {{cmd|defineconversion}} and {{cmd|convertnumber}} | ||
+ | * {{cmd|setupscale}} and {{cmd|scale}} | ||
+ | * {{cmd|definemode}} |
Revision as of 21:03, 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.
- \definesection and \setupsection
- \defineheader and \setupheader
- \definemakeup and \setupmakeup
- {{cmd|definehead} and \setuphead
- \setupheadertexts
- \setupfootertexts
- \definesectionblock and \setupsectionblock
- \definestartstop and \setupstartstop
- \setupblock and \setupblock
- \definelist and \setuplist
- \definelistalternative and \setuplistalternative
- \definedescription and \setupdescription
- \definecombinedlist and \setupcombinedlist
- \definepagebreak
Text formatting and decoration
These commands relate to how text is displayed, without repositioning the text (much).
- \definehighlight and \setuphighlight
- \defineframed, \setupframed, and \startframed
- \defineframedtext and \setupframedtext
- \definemathframed and \setupmathframed
- \defineblank and \setupblank
- \definehspace and \setuphspace
- \setupwhitespace
- \setupinterlinespace
- \definelines and \setuplines
- \definetyping and \setuptyping
- \definetype and \setuptype
Layout and Design
These commands relate to how text is laid out on the page, and possibly involve moving or positioning the text.
- \definepapersize and \setuppapersize
- \definelayout and \setuplayout
- \setuppagenumbering
- \definelayer and \setuplayer
- \definecolor and \setupcolors
- \definecolorgroup
- \definepalet and \setuppalet
- \defineoverlay
- \definecombination and \setupcombination
Utilities
These commands have various functions that don’t relate directly to text formatting and design.