Math & ScienceSymbol strictly upon another one in Math Formula

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
Post Reply
Hrs
Posts: 16
Joined: Sat May 12, 2012 3:13 pm

Symbol strictly upon another one in Math Formula

Post by Hrs »

Hi all!

How can i place in a formula one symbol strictly upon another with shortening upper one?

Lower symbol must not to crawl anywhere (i.e. for example solution with array is not valid).

It's better to have generalized solution, but urgently i need to place a small circle upon a symbol. Help me please.
Last edited by Hrs on Sat May 12, 2012 5:05 pm, edited 1 time in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

Stefan Kottwitz
Site Admin
Posts: 10345
Joined: Mon Mar 10, 2008 9:44 pm

Symbol strictly upon another one in Math Formula

Post by Stefan Kottwitz »

Hi,

welcome to the board!

You could use a ring accent, i.e. \r{x} in text mode or \mathring{x} in math mode.

Stefdn
LaTeX.org admin
Hrs
Posts: 16
Joined: Sat May 12, 2012 3:13 pm

Re: Symbol strictly upon another one in Math Formula

Post by Hrs »

Thank you very much!

But there is a way to make "o" smaller?
User avatar
Stefan Kottwitz
Site Admin
Posts: 10345
Joined: Mon Mar 10, 2008 9:44 pm

Symbol strictly upon another one in Math Formula

Post by Stefan Kottwitz »

Another way, using the accents package:

Code: Select all

\documentclass{article}
\usepackage{accents}
\newcommand*{\overcirc}[1]{%
  \accentset{\circ}{#1}}
\begin{document}
$\overcirc{x}$
\end{document}
Instead of \circ, you could use any other symbol, perhaps you would find a smaller circle in the symbols list.

Stefan
LaTeX.org admin
Hrs
Posts: 16
Joined: Sat May 12, 2012 3:13 pm

Symbol strictly upon another one in Math Formula

Post by Hrs »

Thank you very much!

In addition, i found an alternative way to do that. It might be useful for someone. :)

Code: Select all

\usepackage{amsmath}
\usepackage{graphicx}
$\overset{\text{\scalebox{0.25}{$\circ$}}}{x}$
Or basing on your solution, result's are better:

Code: Select all

\usepackage{graphicx}
\usepackage{accents}
\newcommand*{\overcirc}[1]{%
  \accentset{\text{\scalebox{0.5}{$\circ$}}}{#1}}
Post Reply