I have a complex document which requires the use of many levels of document structures. In particular, the first two levels, \part and \chapter are reserved for meta-information while \section plays the role of \chapter in ordinary documents. However, it seems that packages like fncychap can only decorate \chapter. So here comes the question: how can I use the fncychap's chapter style for \section?
(I'm using koma-script's scrreprt class, if relevant.)
MWE:
\documentclass[fontsize=22pt]{scrreprt}
\usepackage[Sonny]{fncychap}
\renewcommand*{\DOCH}{}
\ChTitleVar{\large\sffamily}
\newcommand*{\mypart}[1]{
\refstepcounter{part}
\addcontentsline{toc}{part}{\protect\numberline{\thepart}#1}
}
\newcommand*{\mychap}[1]{
\refstepcounter{chapter}
\addcontentsline{toc}{chapter}{\protect\numberline{\thechapter}#1}
}
\begin{document}
\tableofcontents
\mypart{big picture level 1}
\mychap{big picture level 2}
% \mypart and \mychap are used for adding meta-information
\section{real chapter here}
% \section is used like \chapter in ordinary documents
% I want the section title etc. to show up using fncychap's style
\end{document}
\documentclass{...}
and ending with\end{document}
.titlesec
could be a solution, but its usage in conjunction with KOMA classes is discouraged\mypart
and\mychapter
macros do anything other than place things in the table of contents? (i.e., do they produce any other output in your document?) If not, you should just create new counters and not (ab)use thepart
andchapter
counters.