Changes

Jump to navigation Jump to search
m
Text replacement - "</cmd>" to "}}"
How to do the same for For sections?:* 1. Section<texcode>** \def\Dot#1.{#1. Subsection}\setuphead[section][numbercommand=\Dot]\setuplist[section][numbercommand=\Dot]\setuplist[subsection][numbercommand=\Dot]\setuplist[subsubsection][numbercommand=\Dot]
\starttext \completecontent \section{abc}\subsection{def} \stoptext</texcode> <context>\def\Dot#1{#1.}\setuphead[section][numbercommand=\Dot]\setuplist[section][numbercommand=\Dot]\setuplist[subsection][numbercommand=\Dot]\setuplist[subsubsection][numbercommand=\Dot] \starttext \completecontent \section{abc}\subsection{def} \stoptext</context> Somewhat surprisingly, {{cmd|setuphead}} does have some inheritance built in, but for the table of contents, all section levels must be treated individually. Another trick to achieve the same:<texcode>\setuplabeltext [sl] [chapter={{},{.}}] \starttext\chapter{English}without a dot \mainlanguage[sl]\chapter{howtoSlovenian}having one \stoptext</texcode> <context>\setuplabeltext [sl] [chapter={{},{.}}]\setuphead [chapter] [style=bold,before=\smallskip,after=,page=no] \starttext\chapter{English}without a dot\mainlanguage[sl]\chapter{Slovenian}having one\stoptext</context> [[Category:Basics]][[Category:Graphics]]

Navigation menu