Sylvain Hubert schrieb am 07.11.2020 um 22:42:
The motivation of using \section was to avoid \stopsection, but I just found out that \stopsection is not really necessary.

Now I would like to ask whether there is any difference between \section{Title} and \startsection[title=Title].

You get extra hooks with \startsection.

\startsetups [beforesection]
    \framed[width=max,foregroundstyle=\tttf]{begin of section}
\stopsetups

\startsetups [insidesection]
    \framed[width=max,foregroundstyle=\tttf]{middle of section}
\stopsetups

\startsetups [aftersection]
    \framed[width=max,foregroundstyle=\tttf]{end of section}
\stopsetups

\setuphead
  [section]
  [beforesection=\directsetup{beforesection},
   insidesection=\directsetup{insidesection},
    aftersection=\directsetup{aftersection}]

\starttext

\startsection[title=\tex{startsection}]
\samplefile{ward}\par
\stopsection

\page

\section{\tex{section}}
\samplefile{ward}

\stoptext

Wolfgang
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : [email protected] / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to