I would like to have a \smallsmile on top of a letter "T". Is there a way this can be done?
Asked
Active
Viewed 2,860 times
6
karlkoeller
- 124,410
Jie Wei
- 889
-
Welcome to TeX.SX! You can have a look at our starter guide to familiarize yourself further with our format. – karlkoeller Aug 17 '13 at 06:50
2 Answers
8
\stackrel
For example, \stackrel can be used:
\documentclass{article}
\usepackage{MnSymbol}% for \smallsmile and \smallfrown
\begin{document}
\[
\mathord{\stackrel{\smallsmile}{T}}
\neq
\mathord{\stackrel{\smallfrown}{T}}
\]
\[
\mathord{\mathop{T}\limits^{\smallsmile}}
\neq
\mathord{\mathop{T}\limits^{\smallfrown}}
\]
\end{document}
Text mode accents
\documentclass{article}
\usepackage{textcomp}% \newtie, \capitalbreve
\begin{document}
\u{T}, \capitalbreve{T} vs. \newtie{T}
\end{document}
Math mode accents
At least \smallsmile could be set as \breve accent:
\documentclass{article}
\begin{document}
\[
\breve{T}
\]
\end{document}
Heiko Oberdiek
- 271,626
4
Here's a possible way:
\documentclass{article}
\usepackage{amsmath}
\usepackage{amssymb}
\newcommand{\adjustedaccent}[1]{%
\mathchoice{}{}
{\mbox{\raisebox{-.5ex}[0pt][0pt]{$\scriptstyle#1$}}}
{\mbox{\raisebox{-.35ex}[0pt][0pt]{$\scriptscriptstyle#1$}}}
}
\newcommand\smileacc[1]{\overset{\adjustedaccent{\smallsmile}}{#1}}
\newcommand\frownacc[1]{\overset{\adjustedaccent{\smallfrown}}{#1}}
\begin{document}
\[
\smileacc{T}\neq\frownacc{T}_{\smileacc{T}}
\]
\end{document}

It would be possible to add some horizontal shift, but it must be done manually depending on the letter the accent should go over.
egreg
- 1,121,712


