Changes

Jump to navigation Jump to search
1,338 bytes added ,  14:20, 7 August 2015
no edit summary
\stoptext
</texcode>
 
===Section head without chapter number ===
 
If you only want the section number (in mark IV) in the section title you add
 
 
 
<texcode>
\setuphead[section][sectionsegments=section]
\starttext
\chapter{Eric}
\section{Foo 1}
\subsection{Bar one}
\section{Foo 2}
\stoptext
</texcode>
 
But as once you changed one you have to change the lower ones.
So you have to add the definition of sectionsegments in subsection, subsubsection, ...
 
<texcode>
\setuphead[section][sectionsegments=section]
\setuphead[subsection][sectionsegments=section:subsection]
\setuphead[subsubsection][sectionsegments=section:subsubsection]
 
\starttext
\chapter{Eric}
\section{Foo 1}
\subsection{Bar one}
\subsubsection{Barbar one }
\subsubsection{Barbar two}
\subsection{Bar two}
\subsubsection{Barbar one}
\subsubsection{Barbar two}
\section{Foo 2}
\subsection{Bar one}
\subsubsection{Barbar one}
\subsubsection{Barbar two}
\stoptext
</texcode>
 
It's not written here but you can also change the conversion of the numbering with
 
<texcode>
\definestructureconversionset[mySet][A,R,n,n,a,r][n]
\setuphead[chapter,section,subsection,subsubsection,subsubsubsection][sectionconversionset=mySet]
</texcode>
 
The parameters in definestructureconversionset are
 
the set name
 
the codes for conversion (one for each level)
 
the default conversion for the missing level
 
 
[[Category:Fonts]]
[[Category:Graphics]]
[[Category:Text elements]]
5

edits

Navigation menu