Text Formattingwrite number in circle

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
zainah
Posts: 6
Joined: Sat Mar 24, 2012 8:21 am

write number in circle

Post by zainah »

Dear all,

I want to know, how to write a number in a circle, for example \circle{1}? I found that it can work if use \usepackage{tikz} . but I don't know where to find the tikz.sty file or any other files that need to use that package.
Thank you.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

Stefan Kottwitz
Site Admin
Posts: 10335
Joined: Mon Mar 10, 2008 9:44 pm

write number in circle

Post by Stefan Kottwitz »

Hi Zaihnah,

welcome to the board!

You could simply use \textcircled, such as

Code: Select all

\textcircled{1}
or, for better looking results, the pifont package, such as

Code: Select all

\documentclass{article}
\usepackage{pifont}
\begin{document}
\ding{172}
\ding{173}
\end{document}
Perhaps have also a look at these topics:
  1. enumerate with circled numbers
  2. How to draw a circle around text
  3. 1 inside a circle
Regarding TikZ: which TeX distribution do you use, MiKTeX or TeX Live? Both have package managers, which can install TikZ for you. Just look for the package pgf and install that, TikZ is actually a front-end for pgf.

Stefan
LaTeX.org admin
Post Reply