答案1
在这里我使用在目录中指定单独标题的功能来添加图形(如果需要),通过搭接。
\documentclass{article}
\usepackage{graphicx}
\begin{document}
\tableofcontents
\noindent\hrulefill
\section{Normal section}
\section[{\llap{\includegraphics[height=\baselineskip]{example-image}%
\kern20pt}Left of section number}]{Left of section number}
\section[{Right of title \includegraphics[height=\baselineskip]{example-image}}]%
{Right of title}
\section[{Right of page number\hfill\rlap{\kern20pt\includegraphics%
[height=\baselineskip]{example-image}}}]{Right of page number}
\end{document}
补充
\chapter
为了回应关于在课堂上使用book
以及图像垂直对齐的评论,我提供了额外的 MWE:
\documentclass[a4paper,openright]{book}
\usepackage{graphicx}
\DeclareRobustCommand\addimg[1]{\llap{\raisebox{-\dp\strutbox}%
{\includegraphics[height=\baselineskip]{#1} \kern20pt}}}
\begin{document}
\tableofcontents
\noindent\hrulefill
\chapter[\addimg{example-image}Left of section number]{Left of section number}
\chapter[\addimg{example-image}Machines d'audit et processus MCO et MCS]{Machines d'audit et processus MCO et MCS}
\end{document}