I'm trying to find the equivalent to \d (or \textsubdot) for the math mode.
Asked
Active
Viewed 4,847 times
13
3 Answers
14
You can use the \underaccent command from the accents package. Something along these lines:
\documentclass{article}
\usepackage{amsmath}
\usepackage{accents}
\newcommand*\underdot[1]{%
\underaccent{\dot}{#1}}
\begin{document}
$\underdot{A}$
\end{document}
Gonzalo Medina
- 505,128
-
But be aware of this annoying issue: https://tex.stackexchange.com/questions/176273/when-using-the-accents-package-underaccent-greek-symbol-in-caption-of-a-table-g – Darko Veberic Jul 12 '20 at 19:42
5
It's not in the TeX Book. If you don't mind cheating you could try the following but it's not nice:
\documentclass{minimal}
\usepackage{amsmath}
\def\myd#1{\text{\d{\ensuremath#1}}}
\begin{document}
$\myd{a}$
\end{document}
-
3Understandably this is a minimal working example. However, rather use a documentclass other than
minimal(likearticle, say). I think\ensuremathhere is a bit much, since you want the contents of\mydto be in math mode always. As such, rather use\d{$#1$}- just a suggestion. – Werner Jan 02 '12 at 15:33
2
Excuse me for this old answer..but it is possibile to use also this code to get the dot under a symbol or a character.
\documentclass[a4paper,12pt]{article}
\usepackage{amsmath,amssymb}
\begin{document}
\d{o}, \d{$\alpha$}, \d{$\xi$}, \d{$\epsilon$}
\end{document}
For the \xi symbol it is not very good.
Sebastiano
- 54,118
