The undertilde
package provides extensible tilde accents under elements in math mode via \utilde{<symbols>}
. Try, for example:
\documentclass{minimal}
\usepackage{undertilde}
\begin{document}
This is $\frac{\utilde{ab}}{c} \neq \frac{ab}{c}$ and so on.
\end{document}
Alternatively, as @egreg suggests, the accents
package provides \underaccent[<accent>]{<symbol>}
. Try, for example:
\documentclass{minimal}
\usepackage{accents}
\begin{document}
This is $\underaccent{\tilde}{\mathcal{A}}$ and so on.
\end{document}
See page 2 of the package documentation in order to extend this using \widetilde
rather than \tilde
. It depends on your preference.
This solution demonstrates how an \includegraphics
approach could be made to work conveniently.
If the new symbol should conform to the vertical extent of an existing glyph, then this approach will work handily. In the MWE, I make the symbol \schtreber
conform to the height of a "b" and then a "g", respectively. It will scale with math style.
If the symbol is a relation or operator, the definition could include a \mathrel
or \mathop
.
\documentclass{article}
\usepackage{scalerel}
\begin{document}
\def\schtreber{\scalerel*{\includegraphics{schtreber}}{b}}
$ab\schtreber c \scriptscriptstyle ab\schtreber c$
$ y = x^{\schtreber}$
\def\schtreber{\scalerel*{\includegraphics{schtreber}}{g}}
$ab\schtreber c \scriptscriptstyle ab\schtreber c$
$ y = x^{\schtreber}$
\end{document}
If the vertical extent is to be arbitrary, a \rule
may be used for the target size, where \LMpt
(local-mathstyle pts) or \LMex
(local-mathstyle ex's) are used to define the dimensions of the rule. Here I place the image in a \savebox
initially, in the event that some flavors of TeX don't save a local copy from \includegraphics
.
\documentclass{article}
\usepackage{scalerel}
\newsavebox\schtreberbox
\savebox\schtreberbox{\includegraphics{schtreber}}
\def\schtreber{\scalerel{\usebox{\schtreberbox}}{\rule[-2\LMpt]{0pt}{8\LMpt}}}
\begin{document}
$ab\schtreber c \scriptscriptstyle ab\schtreber c$\par
$ y = x^{\schtreber}$
\end{document}
The advantage of the former, rather than the latter approach is that the method will also work in both text and math mode, as expected:
\documentclass{article}
\usepackage{scalerel}
\newsavebox\schtreberbox
\savebox\schtreberbox{\includegraphics{schtreber}}
\def\schtreber{\scalerel*{\usebox{\schtreberbox}}{b}}
\begin{document}
$ab\schtreber c \scriptscriptstyle ab\schtreber c$\par
$ y = x^{\schtreber}$
In text\schtreber, \LARGE text\schtreber.
\end{document}
Best Answer
One option is to define a command for this symbol taking it, for example, from the
circuits.ee.IEC
library (I wasn't sure if this symbol should be ord, rel, bin, so I opted for bin; also, there was no information about size or baseline position, but all these attributes can easily be adjusted):Another option: this is listed as Unicode character
'EARTH GROUND' (U+23DA)
, so you could use XeLaTeX and a font supporting the symbol:fileformat.info
has alist of possible fonts supporting the symbol
.