1

I am trying, if possible, to include a small graphic at the beginning of a section or subsection heading.

Something like:

\includegraphics[width=0.1\columnwidth]{skull.jpg}\section{Immersions, Embeddings and Virtual Subgroups}

where the jpeg sticks to the section heading, and is not separated from it by a line break. Below is the effect on my website which I should like to reproduce in my LaTeX document. I don't needfully ask it to be exactly the same.

enter image description here

I am already aware of the answer to this question here and it doesn't solve my problem.

1 Answers1

3

Here's a possibility

\documentclass{article}
\usepackage{graphicx}

\begin{document}

\tableofcontents

\bigskip

\section*{\includegraphics[width=0.1\columnwidth]{example-image} %
          \centering Immersions, Embeddings and Virtual Subgroups}

\addcontentsline{toc}{section}{Immersions, Embeddings and Virtual Subgroups}

\end{document} 

enter image description here

karlkoeller
  • 124,410