Difference between revisions of "User:Sciurus/sandbox"
Jump to navigation
Jump to search
m (drafting commands list) |
m (Just drafting commands list.) |
||
Line 9: | Line 9: | ||
# '''define''': To create a named customization of ''something'', use {{code|\define''something''}}. | # '''define''': To create a named customization of ''something'', use {{code|\define''something''}}. | ||
− | 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. Throughout this list {{code|start''something''}} is shorthand for {{code|start''something''}} {{code|stop''something''}}. |
== Structure == | == Structure == | ||
These commands relate to the structure of a document. | These commands relate to the structure of a document. | ||
− | * {{cmd| | + | * {{cmd|starttext}}: In a typical document, the text to be typeset is enclosed by this. {{cmd|definetext}} and {{cmd|setuptext}} are defined but have little documentation and don’t appear to be used much. |
+ | * {{cmd|startdocument}} and {{cmd|setupdocument}}: If customization is wanted, the text to be typeset can be enclosed by {{cmd|startdocument}} instead of {{cmd|starttext}}. The command {{cmd|startdocument}} allows for document metadata and can be configured with {{cmd|setupdocument}}. | ||
+ | * {{cmd|definehead} and {{cmd|setuphead}}: The generic name for a section of a document in ''head'', so these commands allow you to define and customize your own sections. The main built-in sections are: part, chapter, section, subsection, subsubsection, and their numberless counterparts. See the [[Titles]] page for further details. | ||
* {{cmd|defineheader}} and {{cmd|setupheader}} | * {{cmd|defineheader}} and {{cmd|setupheader}} | ||
* {{cmd|definemakeup}} and {{cmd|setupmakeup}} | * {{cmd|definemakeup}} and {{cmd|setupmakeup}} | ||
− | |||
* {{cmd|setupheadertexts}} | * {{cmd|setupheadertexts}} | ||
* {{cmd|setupfootertexts}} | * {{cmd|setupfootertexts}} |
Revision as of 21:19, 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. Throughout this list startsomething
is shorthand for startsomething
stopsomething
.
Structure
These commands relate to the structure of a document.
- \starttext: In a typical document, the text to be typeset is enclosed by this. \definetext and \setuptext are defined but have little documentation and don’t appear to be used much.
- \startdocument and \setupdocument: If customization is wanted, the text to be typeset can be enclosed by \startdocument instead of \starttext. The command \startdocument allows for document metadata and can be configured with \setupdocument.
- {{cmd|definehead} and \setuphead: The generic name for a section of a document in head, so these commands allow you to define and customize your own sections. The main built-in sections are: part, chapter, section, subsection, subsubsection, and their numberless counterparts. See the Titles page for further details.
- \defineheader and \setupheader
- \definemakeup and \setupmakeup
- \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.