2
$\begingroup$

I want to input a special character just like ①, but I don't find how to. Can Mathematica make it?

$\endgroup$
  • $\begingroup$ Hi, take a look at Inset or Overlay. $\endgroup$ – Kuba Dec 7 '15 at 7:44
  • 4
    $\begingroup$ The Unicode block Enclosed Alphanumerics \:2460 - \:24ff has a selection of such characters that will display circled numbers up to 20 in Mathematica running on OS X and maybe other operating systems as well. $\endgroup$ – m_goldberg Dec 7 '15 at 12:37
  • $\begingroup$ Thanks! It works on Windows.., and I found that we can modify the font format, size,color, and so on $\endgroup$ – WangFei Dec 8 '15 at 3:08
  • $\begingroup$ Thanks! but the last one FromCharacterCode[#] & /@ Range[9398, 9449] dosen't seem to work on my Mathematica. $\endgroup$ – WangFei Dec 8 '15 at 9:11
4
$\begingroup$

Follow the integer codes (to be used with FromCharacterCode) and hexadecimal codes (to be used with \:) for enclosed numbers. Although not asked, I added the codes for enclosed letters for completeness.

Enclosed numbers

FromCharacterCode[9450] (* \:24ea *)
FromCharacterCode /@ Range[9312, 9331] (* from \:2460 to \:2473 *)
FromCharacterCode /@ Range[12881, 12895] (* from \:3251 to \:325f *)
FromCharacterCode /@ Range[12977, 12991] (* from \:32b1 to \:32bf *)

enter image description here

FromCharacterCode /@ Range[9451, 9470] (* from \:24eb to \:24ff *)
FromCharacterCode /@ Range[10102, 10131] (* from \:2776 to \:2793 *)

enter image description here

Enclosed letters

FromCharacterCode /@ Range[9398, 9449] (* from to \:24b6 to \:24e9 *)

enter image description here

Remarks

As mentioned by @m_goldberg in his comment, characters may not displayed on some operating systems, and as mentioned by @WangFeiBoy in his comment, the Style of the characters can be modified to some extent.

$\endgroup$
1
$\begingroup$

Generic code:

Graphics[{Circle[], Text[x^2 + y^2 < 1, {0, 0}]}]

Output:

generic example

Specific code:

Graphics[{Circle[], Text[1]}, ImageSize -> 24]

Output:

specific example

Reference:
Graphics
Circle
Text

$\endgroup$
  • $\begingroup$ Thanks for your meaningful answer! but what I want to get is an "Enclosed Alphanumerics", just like what @m_goldberg said $\endgroup$ – WangFei Dec 8 '15 at 3:04
  • $\begingroup$ @WangFeiBoy, I do apologise for not providing the ideal solution. Could you please edit your question to include this requirement? What is the ideal output you are looking for? $\endgroup$ – e.doroskevic Dec 8 '15 at 9:35
  • $\begingroup$ Sorry I didn't express that clealy, but I think @Xavier have answered my doubts well. In fact your answer can solve my problem as well, in spite of some inconvenience. $\endgroup$ – WangFei Dec 9 '15 at 11:40

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.