Math & ScienceContinuum mechanics book, need help with symbol

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
Post Reply
ndn_ninja15
Posts: 3
Joined: Sat Oct 30, 2010 12:51 am

Continuum mechanics book, need help with symbol

Post by ndn_ninja15 »

So I'm typesetting some notes my professor has gathered and she likes to use a symbol that consists of a number with a circle and an equals sign stacked vertically. I've attached a screen shot to show you what I'm talking about. Is there any way that this can be typed in Latex? I figured it is something a bit advanced and I have no idea how to create it. Thanks to whoever can figure it out.

Image

Recommended reading 2024:

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

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

User avatar
frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

Continuum mechanics book, need help with symbol

Post by frabjous »

If all the numbers are between 1-10 you might use some dingbats from the pifont package along with the \overset command (from amsmath):

Code: Select all

\documentclass{article}
\usepackage{pifont}
\usepackage{amsmath}
\newcommand{\oneequals}{\mathrel{\overset{\text{\ding{192}}}{=}}}
\newcommand{\twoequals}{\mathrel{\overset{\text{\ding{193}}}{=}}}
\newcommand{\threeequals}{\mathrel{\overset{\text{\ding{194}}}{=}}}
\newcommand{\fourequals}{\mathrel{\overset{\text{\ding{195}}}{=}}}
\newcommand{\fiveequals}{\mathrel{\overset{\text{\ding{196}}}{=}}}
\newcommand{\sixequals}{\mathrel{\overset{\text{\ding{197}}}{=}}}
\newcommand{\sevenequals}{\mathrel{\overset{\text{\ding{198}}}{=}}}
\newcommand{\eightequals}{\mathrel{\overset{\text{\ding{199}}}{=}}}
\newcommand{\nineequals}{\mathrel{\overset{\text{\ding{200}}}{=}}}
\newcommand{\tenequals}{\mathrel{\overset{\text{\ding{201}}}{=}}}
\begin{document}
$x \oneequals U_i V_j W_k$

$y \twoequals z$

$z \tenequals a + b$
\end{document}
numequals.png
numequals.png (4.53 KiB) Viewed 3003 times
It gets a little tricker if you need numbers not between 1 and 10, but perhaps searching the forums for circled numbers (which will show other methods besides the pifont ones) combined with this method for \overset will show you how.
ndn_ninja15
Posts: 3
Joined: Sat Oct 30, 2010 12:51 am

Re: Continuum mechanics book, need help with symbol

Post by ndn_ninja15 »

Aha, Thank you very much sir! We're only using 1 through 4 so this will work perfectly.
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Continuum mechanics book, need help with symbol

Post by localghost »

Now that the problem is solved, please be so kind and mark the topic (not the last post) accordingly as clearly written in the Board Rules (to be read before posting). Please keep that in mind for the future so that further reminders will not be necessary.


Best regards and welcome to the board
Thorsten
Post Reply