Difference between revisions of "Command/section"

From Wiki
Jump to navigation Jump to search
m (Add “Titles” to See Also)
Line 18: Line 18:
 
   </tr>
 
   </tr>
 
</table>
 
</table>
 
+
<hr/>
 +
== [[Help:Reference|Syntax (generated automatically from ConTeXt definition)]] ==
 +
<syntax>section</syntax>
 +
<hr/>
  
 
== Description ==
 
== Description ==

Revision as of 12:10, 30 May 2019

\section

Syntax

\section[ref,ref,...]{...}
[ref,ref,...]
{...} text

Syntax (generated automatically from ConTeXt definition)

\section[...,...]{...}
[...,...]reference
{...}text
instance of _section/instance, generated by \definesection
variants are section/instance(current) section/instance:ownnumber section/instance:assignment


\section[...,...]{...}{...}
[...,...]reference
{...}number
{...}text
instance of _section/instance:ownnumber, generated by \definesection
variants are section/instance section/instance:ownnumber(current) section/instance:assignment


\section[...=...,...]
titletext
bookmarktext
markingtext
listtext
referencereference
ownnumbertext
placeholdertext
instance of _section/instance:assignment, generated by \definesection
variants are section/instance section/instance:ownnumber section/instance:assignment(current)



Description

Hint: to remove section number (as might be needed for Introduction) use either \subject instead of \section, or utilize the fact that no section numbers are used in the front matter:

\starttext

\startfrontmatter
    \section{Introduction}  % not numbered

    ...
\stopfrontmatter

\startbodymatter
    \section{Problem Statement}  % numbered
    ...
\stopbodymatter

\stoptext 

Example

\section{Section one}
bla bla
\subsection{Subsection one-point-one}
yadda yadda

\section{Subsection one-point-one}
hum ho

See also

Help from ConTeXt-Mailinglist/Forum

All issues with: