2

This question already has an answer here:

How would one make a symbol, say \circ in a symbol separated set of letters i.e. A_{\circ} B appear at the top between the letters i.e. A^{\circ} B, but to an arbitrary height (not just using _ or ^)?

Thanks.

marked as duplicate by CarLaTeX, Stefan Pinnow, user13907, ChrisS, Maarten Dhondt Jan 21 '17 at 10:33

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • 2
    What's the difference between a comma at the top and an apostrophe? – Bernard Jan 15 '17 at 2:25
  • @Bernard That's what I was wondering. Is the concern with searching, perhaps? (But why not use an apostrophe anyway, since that is what it will look like?) – cfr Jan 15 '17 at 2:44
  • Its name is typographical apostrophe and it corresponds to unicode U2019. Can't you have it on your keyboard? With UTF8 input encoding, it would be very simple. – Bernard Jan 15 '17 at 2:51
  • I some font families -- including Computer Modern -- the apostrophe character is identical to a raised comma character. In other font families, the two characters can look quite different from each other. Even within the Computer Modern family, when using \ttfamily the , (comma) and ' (apostrophe) characters don't look at all the same. – Mico Jan 15 '17 at 4:37
  • @Bernard U+2019 is RIGHT SINGLE QUOTATION MARK. – egreg Jan 15 '17 at 12:08
1

Something like this?

\documentclass{article}
\newcommand{\raisedcirc}[1][0ex]{%
    \mathrel{\raisebox{#1}{$_\circ$}}%
}

\begin{document}
$A_{\circ} B$ 

$A{\raisedcirc[0.1ex]} B$
$A{\raisedcirc[0.5ex]} B$
$A{\raisedcirc[1ex]} B$
$A{\raisedcirc[1.5ex]} B$
$A{\raisedcirc[2ex]} B$
$A{\raisedcirc[2.5ex]} B$ 
$A{\raisedcirc[-0.1ex]} B$
$A{\raisedcirc[-0.3ex]} B$
$A{\raisedcirc[-0.5ex]} B$
$A{\raisedcirc[-0.7ex]} B$
$A{\raisedcirc[-0.9ex]} B$
$A{\raisedcirc[-1.1ex]} B$
\end{document} 

enter image description here

Not the answer you're looking for? Browse other questions tagged or ask your own question.