I am working on a user manual which is originated in standard markdown format. From this we generate an online/web version using Docusaurus2 and a PDF version using Pandoc with a slightly modified version of eisvogel.latex template.
Parts of the manual have a step-by-step guide using an enumerated list. I am trying to give all these lists a pale red background with dark red left border in the PDF, but when I do this the numbers disappear from the list; I cannot work out why this is happening. These lists are the only use of enumerated lists in the document so I was trying to redefine the "enumerate" environment so that all such sections would be automatically rendered with the red background.
I have added the following to the template file:
Code: Select all
\definecolor{numlist-border}{HTML}{FF4040}
\definecolor{numlist-background}{HTML}{FFE0E0}
\definecolor{numlist-text}{HTML}{606060}
\usepackage{mdframed}
\newmdenv[backgroundcolor=numlist-background,rightline=false,bottomline=false,topline=false,linewidth=4pt,linecolor=numlist-border,skipabove=\parskip]{customnumlist}
\renewenvironment{enumerate}{\begin{customnumlist}\list{}{\rightmargin=0em\leftmargin=0em}\item\relax\color{numlist-text}\ignorespaces}%
{\endlist\end{customnumlist}}