Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I'm trying to find the equivalent to \d (or \textsubdot) for the math mode.

share|improve this question
add comment

2 Answers

up vote 6 down vote accepted

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}
share|improve this answer
    
To be more specific it's: \underaccent{\dot}{...} –  Dejan Jan 2 '12 at 16:43
    
@Dejan: now I've updated my answer providing a complete MWE. –  Gonzalo Medina Jan 2 '12 at 17:11
add comment

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}
share|improve this answer
3  
Understandably this is a minimal working example. However, rather use a documentclass other than minimal (like article, say). I think \ensuremath here is a bit much, since you want the contents of \myd to be in math mode always. As such, rather use \d{$#1$} - just a suggestion. –  Werner Jan 2 '12 at 15:33
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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