147

the two dots above a letter represents two derivative of varible t.

My method:

\documentclass[UTF8]{ctexart}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{graphicx}
\usepackage{epstopdf}
\usepackage{inputenc}
\begin{equation}
\"{o}
\mathaccent{o} 
\end{equation}

However,the latex says in the math environment ,I must use the \mathaccent. So I replace \" by \mathaccent, but it shows the warning information: Missing number, treated as zero

I am a starter, I want to know how to revise it? Can someone help me? Thanks sincerely!!

Franck Pastor
  • 18,756
mma
  • 1,745
  • 3
  • 11
  • 7

1 Answers1

199

The sequence

\"{o}

will be used when you want to write 'ö' in text, such as 'Schrödinger'. While in the math mode, as Peter Grill mentioned

\dot{o}
\ddot{o}

and so on, should do the trick.

Edit:

For more than two dots, e.g. \dddot{o}, you need the package amsmath, which allows you a maximum of 4 dots \ddddot{o} (not strikingly beautiful fourth time derivative)

For higher dot derivatives take a look at this post

Cain
  • 2,270
  • 1
    what package do you need in order to use \"? it does not seem to work by default. – elkshadow5 Dec 12 '21 at 00:03
  • It should work in the text mode without any additional packages. I checked with only \documentclass{article}\begin{document} Thr\"{o}ugh \end{document} – Cain Dec 13 '21 at 11:37
  • How did you type \" ? When I try typing \", it does not work, but when I copy/paste your code, it does. – Allure Feb 28 '23 at 09:00
  • 1
    It's simply a backslash and a double quotation mark. – Cain Mar 01 '23 at 09:20
  • @Allure wanted to type \". Your LaTeX IDE may substitute left or right quotation-marks when you type the double-quote key on your keyboard. You can change your IDE preferences to eliminate such LaTeX substitutions. Within many IDEs with default substition, you may still copy & paste a double-quote or you may use a GUI menu to input a double-quote (e.g., "international accents"). – Jim Blevins Feb 29 '24 at 21:58