
答案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}