\documentclass[11pt,svgnames]{article} \usepackage{geometry,titlesec,datetime,xcolor,hologo} \titleformat*{\section}{\bfseries\large} \hologoFontSetup{general=\sffamily} \usepackage[libertine,mono=false]{libertine} \usepackage[colorlinks,urlcolor=Indigo]{hyperref} \def\pkg#1{\textcolor{DarkGreen}{\textsf{#1}}} \def\mode#1{\textcolor{Indigo}{\textsf{#1}}} \def\cmd#1{\textcolor{MidnightBlue}{\texttt{\string#1}}} \title{\bfseries The \pkg{thmlist} Package} \author{% Hsia Mingyu, \href{https://www.hdu.edu.cn}{Hangzhou Dianzi University}\\ \href{mailto:xiamyphys@gmail.com}{\ttfamily xiamyphys@gmail.com}} \yyyymmdddate\date{\today} \date{Version 0.1b\quad\thanks{\url{https://github.com/xiamyphys/thmlist}}\today} \usepackage[amscounter=section,amsstyle=definition, mdfcounter=section,mdfstyle=mdflist]{thmlist} \mdfsetup{skipabove=2pt, skipbelow=2pt} \mdfdefinestyle{mdflist}{% skipabove=0pt, skipbelow=0pt, hidealllines=true, leftline=true, linewidth=.5ex, innerleftmargin=1.5ex, innerrightmargin=0pt, innertopmargin=-1.75ex, innerbottommargin=0pt} \mdflist{theorem, lemma, definition; Théorème, Lemme, Définition; DarkOliveGreen, MidnightBlue, MidnightBlue} \amslist{remark, example; Remarque, Exemple; DarkRed, Teal} \begin{document} \def\theexample{\arabic{example}}\let\theremark=\relax \maketitle\vspace*{-4ex} \begin{abstract} This is the document for the \pkg{thmlist} package, which provides a simple way for adding theorem environments quickly. \end{abstract} \section{The purpose of this package} This package provides a simple way for adding theorem environments quickly. Welcome to feedback bugs or ideas via email \href{mailto:xiamyphys@gmail.com}{\ttfamily xiamyphys@gmail.com} or \href{https://github.com/xiamyphys/thmlist}{GitHub}. This package has required the \pkg{amsthm} and \pkg{mdframed} packages to create different style of theorem environments, \pkg{pgffor} to support \cmd{foreach} loop and \pkg{listofitems} to support list reading. \section{Loading \pkg{thmlist}} I strongly advise you to use terminal/cmd to implement the commands to update all the packages (and install this package) to the latest version or switch to portable version \begin{verbatim} sudo tlmgr update --self --all \end{verbatim} \section{Key values of this package} \begin{verbatim} \usepackage[amscounter=,amsstyle=