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.

  • 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
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.

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

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.