Please just help me to create a enumerated environment like the one shown below with number 1,2. Thank you very much]1
I tried with:
\begin {enumerate} [option]
\item
\end {enumerate}
but not possible
Please just help me to create a enumerated environment like the one shown below with number 1,2. Thank you very much]1
I tried with:
\begin {enumerate} [option]
\item
\end {enumerate}
but not possible
The pifont package provides circled numbers as \ding{182}
, \ding{183}
, .... Here is a hack using the enumitem package to use these numbers in an enumerate environment to produce:
...and here is the code:
\documentclass{article}
\usepackage{enumitem}
\usepackage{pifont}
\begin{document}
\begin{enumerate}[label=\ding{\numexpr181+\arabic*\relax}]
\item one
\item two
\end{enumerate}
\end{document}
If you are going to be using this often you probably want to define you own enumerate
style:
\documentclass{article}
\usepackage{enumitem}
\usepackage{pifont}
\newlist{numbered}{enumerate}{4}
\setlist[numbered]{label=\ding{\numexpr181+\arabic*\relax}}
\begin{document}
\begin{numbered}
\item one
\item two
\end{numbered}
\end{document}
EDIT
Here is a coloured variant:
\documentclass{article}
\usepackage{enumitem}
\usepackage{pifont}
\usepackage[svgnames]{xcolor}
\newlist{numbered}{enumerate}{4}
\setlist[numbered]{
label=\textcolor{NavyBlue}{\ding{\numexpr181+\arabic*\relax}}
}
\begin{document}
\begin{numbered}
\item one
\item two
\end{numbered}
\end{document}
See the xcolor manual for the list of colours that it supports.