Latex templates for maths | قوالب اللاتك للرياضيات
#latex #templates
Credit : By متعلم لاتاك | FB : facebook.com/profile.php?id=100052678591256
\documentclass{article}
\usepackage{tikz}
\usepackage{enumitem}
\newlist{fancyenum}{enumerate}{2}
\setlist[fancyenum,1]{
leftmargin=12pt,
labelsep=10pt,
label={\protect\begin{tikzpicture}[]
\protect\node[overlay,text width=\textwidth,fill=gray!20,anchor=west,inner sep=0pt,minimum height=2em] (bg) {};
\protect\node[overlay,anchor=west,minimum height=2em,inner sep=0pt,fill=black,align=center,text width=2em,text=white,font=\bfseries] at (bg.west) {\arabic*};
\protect\node {\rule[5em]{0pt}{0pt}};
\protect\end{tikzpicture}}
}
\setlist[fancyenum,2]{label=\Alph*),topsep=0pt,leftmargin=22pt}
\begin{document}
\sffamily
\begin{fancyenum}
\item Some test text
\begin{fancyenum}
\item First
\item Second
\item Third
\end{fancyenum}
\item Some test text
\begin{fancyenum}
\item First
\item Second
\item Third
\end{fancyenum}
\item Some test text
\begin{fancyenum}
\item First
\item Second
\item Third
\end{fancyenum}
\end{fancyenum}
\end{document}
Latex templates for maths | قوالب اللاتك للرياضيات
#latex #templates
Credit : By متعلم لاتاك | FB : facebook.com/profile.php?id=100052678591256
\documentclass{article}
\usepackage{tikz}
\usepackage{enumitem}
\newlist{fancyenum}{enumerate}{2}
\setlist[fancyenum,1]{
leftmargin=12pt,
labelsep=10pt,
label={\protect\begin{tikzpicture}[]
\protect\node[overlay,text width=\textwidth,fill=gray!20,anchor=west,inner sep=0pt,minimum height=2em] (bg) {};
\protect\node[overlay,anchor=west,minimum height=2em,inner sep=0pt,fill=black,align=center,text width=2em,text=white,font=\bfseries] at (bg.west) {\arabic*};
\protect\node {\rule[5em]{0pt}{0pt}};
\protect\end{tikzpicture}}
}
\setlist[fancyenum,2]{label=\Alph*),topsep=0pt,leftmargin=22pt}
\begin{document}
\sffamily
\begin{fancyenum}
\item Some test text
\begin{fancyenum}
\item First
\item Second
\item Third
\end{fancyenum}
\item Some test text
\begin{fancyenum}
\item First
\item Second
\item Third
\end{fancyenum}
\item Some test text
\begin{fancyenum}
\item First
\item Second
\item Third
\end{fancyenum}
\end{fancyenum}
\end{document}
·421 Vue