3

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.

CarLaTeX
  • 62,716

2 Answers2

4

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}

enter image description here

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.

CarLaTeX
  • 62,716
2
\documentclass{article}
\newcommand\mysup[2]{$\stackrel{\textcircled{\footnotesize#2}}{\mbox{#1}}$}

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

enter image description here