I'd like to add unnumbered subsections and subsubsections to my toc and my headers using addsec. How could I do that ? This is my MWE:
\documentclass[fontsize=11pt,%
twoside=semi,%
headings=small,%
chapterprefix=true,%
listof=flat]%
{scrbook}
\usepackage[utf8]{inputenc}% can be removed with an uptodate TeX distribution
\usepackage[T1]{fontenc}
\usepackage [french]{babel}
\usepackage{fontspec}
\setmainfont{Didot}
\usepackage{lipsum}
\usepackage[
paperheight=21.5cm, paperwidth=15cm,
left=2cm, right=2cm, top=1.5cm, bottom=2.5cm,
bindingoffset=7mm,
includehead,includefoot
]{geometry}
%%%%%%%%%%%%%%%%%%%%%%%%%%numéros page%%%%%%%%%%%%
\usepackage[automark]{scrlayer-scrpage}% See scrguien.pdf, chapter 5
\ihead{\headmark}% running head at the inner edge of the page head
\ohead*{\pagemark}% page number at the outer edge of the page head (plain pages too)
\ofoot*{}% no page number at the outer edge of the page footer (plain pages too)
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\addtokomafont{pageheadfoot}{\scshape\small}%changed to small caps in headers
\addtokomafont{disposition}{\normalfont}
\addtokomafont{part}{\bfseries\scshape\LARGE}
\addtokomafont{chapter}{\bfseries\scshape\LARGE}
\addtokomafont{section}{\bfseries\scshape\large}
\addtokomafont{subsection}{\bfseries\itshape}
\addtokomafont{subsubsection}{\bfseries\itshape}
\addtokomafont{paragraph}{\scshape\small}
\addtokomafont{subparagraph}{\scshape\small}
%\let\bfseries\mdseries
\renewcommand*{\chapterformat}{%
\mbox{\chapappifchapterprefix{\nobreakspace}\thechapter%\autodot
\IfUsePrefixLine{}{\enskip}}%
}
\begin{document}
\tableofcontents
\mainmatter
\addchap{A chapter}
\lipsum
\addsec{A section}
\lipsum
\end{document}
\addsubsec
and\addsubsubsec
. Should all subsections and subsubsections be unnumbered?