Wie kann ich vor jedem Kapitel-/Abschnitts-/Unterabschnittstitel ein Symbol einfügen?

Wie kann ich vor jedem Kapitel-/Abschnitts-/Unterabschnittstitel ein Symbol einfügen?

Wie kann ich vor dem Titel jedes Kapitels, Abschnitts und Unterabschnitts ein Symbol haben? Wenn möglich, hätte ich dieses Symbol gerne im linken Rand. Das Symbol ist nicht wichtig.

Das ist mein MWE:

    \documentclass[fancy,12pt,a4paper,oneside,table]{memoir}
    \usepackage{lipsum}
    \usepackage{xcolor}
    
    \definecolor{sectioncolour}{RGB}{247,131,53}
    \definecolor{chaptercolour}{RGB}{23,85,142}
    \definecolor{subsectioncolour}{RGB}{5,130,34}
    
    \renewcommand{\chapnamefont}{\normalfont\large\sffamily\scshape\center\color{chaptercolour}}
    \renewcommand{\chapnumfont}{\Huge\bfseries\sffamily\color{chaptercolour}}
    \renewcommand{\chaptitlefont}{\normalfont\Huge\bfseries\sffamily\center\color{chaptercolour}}
    \setsecheadstyle{\Large\bfseries\sffamily\color{sectioncolour}}
    \setsubsecheadstyle{\large\bfseries\sffamily\color{subsectioncolour}}
    
    \begin{document}
        \chapter{Guide Intro}
        \lipsum[1]
        \section{Operations}
        \lipsum[2]
        \section{General view}
        \lipsum[3]
        \subsection{General view}
        \lipsum[4]
        
        \chapter{Guide: Detailed content}
        \lipsum[4]
    
        \chapter{Future}
        \lipsum[5]
    \end{document}

Antwort1

Wie von Ihnen gewünscht, wird hierdurch ein Symbol in den linken Rand vor den Kapitel- und Abschnittsüberschriften eingefügt.

% symdivprob.tex  SE 639496  (Symbol before divisions)

\documentclass[fancy,12pt,a4paper,oneside,table]{memoir}
    \usepackage{lipsum}
    \usepackage{xcolor}
    
    \definecolor{sectioncolour}{RGB}{247,131,53}
    \definecolor{chaptercolour}{RGB}{23,85,142}
    \definecolor{subsectioncolour}{RGB}{5,130,34}
    
%%%% PW symbol stuff
    \newcommand{\symdiv}{$\clubsuit$}
    \newcommand{\lsymdiv}{\llap \symdiv}
    \let\saveprintchaptitle\printchaptertitle
    \renewcommand{\printchaptertitle}[1]{\llap\symdiv #1}
    
    \renewcommand{\chapnamefont}{\normalfont\large\sffamily\scshape\center\color{chaptercolour}}
    \renewcommand{\chapnumfont}{\Huge\bfseries\sffamily\color{chaptercolour}}
    \renewcommand{\chaptitlefont}{\normalfont\Huge\bfseries\sffamily\center\color{chaptercolour}}
    \setsecheadstyle{\Large\bfseries\sffamily\color{sectioncolour}\lsymdiv}
    \setsubsecheadstyle{\large\bfseries\sffamily\color{subsectioncolour}\lsymdiv}
    \begin{document}
    \chapter{Guide Intro}
        \lipsum[2]
        \section{Operations}
        %        \lipsum[2]
        Just a little bit of text. Just a little bit of text.
        Just a little bit of text. Just a little bit of text.
        Just a little bit of text. Just a little bit of text. 
        \subsection{General view}
        Just a little bit more of text. Just a little bit more of text.
        Just a little bit more of text. Just a little bit more of text.
        Just a little bit more of text. Just a little bit more of text. 

    \end{document}

Bildbeschreibung hier eingeben

verwandte Informationen