I'd like to use the circled numbers in the pifont package, as listed on p.87 here
So for example, you can use:
to make circled numbers 1-4. You can also do a circled 10. However, there is no circled zero! This is a bit of a problem for me.
Any of you guys know a workaround?
Fonts & Character Sets ⇒ pifont--missing zero?
-
- Posts: 72
- Joined: Thu Jan 15, 2009 3:16 pm
pifont--missing zero?
Last edited by theo moore on Tue Jan 04, 2011 7:48 pm, edited 1 time in total.
NEW: TikZ book now 40% off at Amazon.com for a short time.

- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
pifont--missing zero?
Concerning the font itself I'm afraid that there will be no workaround. The font designer just didn't provide this character. But there are a lot of possible alternatives [1-4]. A further search in the forum might yield more solutions. In the meantime you should know the search function.
[1] View topic: circle around letters
[2] View topic: 1 inside a circle
[3] View topic: How to draw a circle around text
[4] View topic: enumerate with circled numbers
Thorsten
[1] View topic: circle around letters
[2] View topic: 1 inside a circle
[3] View topic: How to draw a circle around text
[4] View topic: enumerate with circled numbers
Thorsten
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
-
- Posts: 72
- Joined: Thu Jan 15, 2009 3:16 pm
pifont--missing zero?
Thank you for the reply. I ended up using the solution in [1]. By altering the tikz parameters, slightly, you can achieve the same sort of look as the pifonts package; but this way is much more flexible and allows you to use whatever you like in the circled boundary.localghost wrote:Concerning the font itself I'm afraid that there will be no workaround. The font designer just didn't provide this character. But there are a lot of possible alternatives [1-4]. A further search in the forum might yield more solutions. In the meantime you should know the search function.
[1] View topic: circle around letters
[2] View topic: 1 inside a circle
[3] View topic: How to draw a circle around text
[4] View topic: enumerate with circled numbers
Thorsten
pifont--missing zero?
Theo, would you please post your solution to getting something that looks like the pifonts solution? Or more generally, would someone please help me with my related problem below?
Like Theo, I frequently use the pifont circled numbers, except I use the ones that are solid black with the number in white:
which produces numbers 1 through 10. And I often make them one step larger than the default size (with the relsize package), for easier readability:
My problem is that I need the range of 1-10 to extend to numbers as high as 19, which are not available.
Like Theo, I explored the four options that Thorsten recommended, and preferred the same one Theo did, at this thread, reproduced below:
My problems with this solution:
(1) How can I make this a solid circle, with the number in white?
(2) How can I put the number in a sans serif font, similar to what I'm trying to re-create?
(3) Most importantly, how can I make it so that the size of the circle stays the same for all numbers from 1 to 19? With the solution above, \circled{5} and \circled{15} create different-sized circles.
Like Theo, I frequently use the pifont circled numbers, except I use the ones that are solid black with the number in white:
Code: Select all
\ding{202} \ding{203} ... \ding{211}
Code: Select all
{\larger \ding{202}} {\larger \ding{203}} ... {\larger \ding{211}}
Like Theo, I explored the four options that Thorsten recommended, and preferred the same one Theo did, at this thread, reproduced below:
Code: Select all
Code, edit and compile here:
\newcommand*\circled[1]{%\tikz[baseline=(C.base)]\node[draw,circle,inner sep=0.5pt](C) {#1};\!}
(1) How can I make this a solid circle, with the number in white?
(2) How can I put the number in a sans serif font, similar to what I'm trying to re-create?
(3) Most importantly, how can I make it so that the size of the circle stays the same for all numbers from 1 to 19? With the solution above, \circled{5} and \circled{15} create different-sized circles.
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
pifont--missing zero?
Actually you could have done some research on your own by looking at the pgf/tikZ manual in the meantime. While replying to this question I had an idea that brings the additional value of one command with a starred version. See code below.nderby wrote:[…] My problems with this solution:
(1) How can I make this a solid circle, with the number in white?
(2) How can I put the number in a sans serif font, similar to what I'm trying to re-create?
(3) Most importantly, how can I make it so that the size of the circle stays the same for all numbers from 1 to 19? With the solution above, \circled{5} and \circled{15} create different-sized circles.
Code: Select all
Code, edit and compile here:
\documentclass[11pt,a4paper]{article}\usepackage[T1]{fontenc}\usepackage[utf8]{inputenc}\usepackage{tikz}\makeatletter\newcommand*{\circled}{\@ifstar\circledstar\circlednostar}\makeatother\newcommand*\circledstar[1]{%\tikz[baseline=(C.base)]\node[%fill,circle,minimum size=1.35em,text=white,font=\sffamily,inner sep=0.5pt](C) {#1};%}\newcommand*\circlednostar[1]{%\tikz[baseline=(C.base)]\node[%draw,circle,minimum size=1.35em,font=\sffamily,inner sep=0.5pt](C) {#1};%}\begin{document}\circled{1} \circled{10}\circled*{1} \circled*{10}\begin{enumerate}\renewcommand{\labelenumi}{\circled{\theenumi}}\item First Item\item Second Item\item Third Item
[1] View topic: greek letters as page numerals
Thorsten
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10