1

Please just help me to create a enumerated environment like the one shown below with number 1,2. Thank you very much![enter image description here]1

I tried with:

\begin {enumerate} [option]
\item
\end {enumerate}

but not possible

  • 3
    Welcome to TeX.SX! It would be great if you could show us what you have tried. Posting a minimal working example that indicates what you are trying to do makes it easier for people to understand what you want. It also makes it easier for people to help you, since they have some code to start from, and hence much more likely that some one will try to help you. – Andrew Jul 16 '18 at 1:59
  • thank you. i tried with \ begin {enumerate} [option] \ item \ end {enumerate} – Ngô Văn Toàn Jul 16 '18 at 2:04
  • 3
    You really should post a complete minimal working example: this is a minimal piece of code that compiles and demonstrates your problem...but see below. – Andrew Jul 16 '18 at 2:07
  • What option(s)? Did you load any packages? – GuM Jul 16 '18 at 2:07
  • I have no idea for the option of to get such results! – Ngô Văn Toàn Jul 16 '18 at 2:08
1

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:

enter image description here

...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.

enter image description here

  • Thank you so much my problem is so and you helped me finish it! – Ngô Văn Toàn Jul 16 '18 at 2:15
  • @NgôVănToàn: Note that you can both accept the answer and upvote it—if you deem it appropriate, of course… – GuM Jul 16 '18 at 2:22
  • I tried to change the color of the numbers 1,2 but not, so how to change the color for the number 1,2? – Ngô Văn Toàn Jul 16 '18 at 2:29
  • @NgôVănToàn See my edit – Andrew Jul 16 '18 at 2:40
  • 1
    @pzorba75 This question asks specifically about circled numbers. This approach is not going to work with circled letters because the pifont package does not provide them. You'll have to ask a new question -- or try searching TeX.SX as this has probably been asked before. – Andrew Jul 16 '18 at 3:57

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.