# Number within Circle as an Exponent on Text

I need to put a number within a circle on top of a text (i.e., as an exponent). How to go about it?

I am doing something like

\raisebox{.5pt}{\textcircled{\raisebox{-.9pt} {8}}}


but unable to make it as an exponent of some word.

• Tikz? PSTricks? Picture mode? Christmas tree balls? Magic? Depends ... – Johannes_B Dec 23 '18 at 7:02
• I am doing something like, \raisebox{.5pt}{\textcircled{\raisebox{-.9pt} {8}}}, but unable to make it as an exponent of some word. – engqureshi Dec 23 '18 at 7:13

I think you need

\documentclass{article}
\newcommand{\mysup}[1]{\textsuperscript{\raisebox{.5pt}{\textcircled{\raisebox{-.8pt}{#1}}}}}

\begin{document}
Blah blah\mysup{8} blah
\end{document}


I think you took the \raisebox technique from Good way to make \textcircled numbers? and your question is a duplicate of Superscript outside math mode.

\documentclass{article}
\newcommand\mysup[2]{$\stackrel{\textcircled{\footnotesize#2}}{\mbox{#1}}$}

\begin{document}
Blah \mysup{blah}{8} blah\mysup{}{8}
\end{document}