I'm writing teaching materials and in my materials I want to include some optional paragraphs which go deeper into certain subjects. To easily tell them apart, I would like them to have a special layout, as in the picture below.
I want my environment to automatically indent my text and place a vertical blue bar left of it. Next to the bar (where the bold S is located in my example) I want to include a symbol (a picture of a magnifying glass), to make it clear that this is an optional piece.
I'm not that experienced with LaTeX and have spent a few hours looking through StackExchange for help, but unfortunately to no avail. Can you help me please? Thanks in advance!
Edit: I know how to make a vertical left line, but I can't find out how to automatically add the symbol to the environment. I don't want to add the symbol manually each time.


\usepackage{fontspec}\newfontface\fmag{Noto Sans Symbols2}[Scale=2,Colour=blue] \newenvironment{magpar} { \begin{tcolorbox}[breakable, enhanced,colback=yellow!10!white,boxrule=0pt,frame hidden,borderline west={1mm}{-2mm}{black}] { \fmag } } { \end{tcolorbox} }? Or as part of the drawn line? – Cicada Oct 21 '21 at 13:28