Math & Sciencel'Hospital's rule symbol

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
Post Reply
rickcjmac
Posts: 3
Joined: Tue Jan 19, 2010 10:22 pm

l'Hospital's rule symbol

Post by rickcjmac »

I saw in Calculus I my teacher used a symbol specific to L'hospital's rule. It was an equal sign with an "H" over it. Is there any way to make that symbol with LaTex code or was that something that my teacher made up just for that class?

Any help is appreciated. Thanks. :D

rickcjmac

Recommended reading 2024:

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

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

gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

l'Hospital's rule symbol

Post by gmedina »

rickcjmac wrote:... Is there any way to make that symbol with LaTex code or was that something that my teacher made up just for that class?...
The answer to both questions is yes. You can try something like the following:

Code: Select all

\documentclass{report}
\usepackage{amsmath}

\newcommand*\Heq{\ensuremath{\overset{\kern2pt H}{=}}}

\begin{document}

\[ a\Heq b \]

\end{document}
1,1,2,3,5,8,13,21,34,55,89,144,233,...
User avatar
frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

l'Hospital's rule symbol

Post by frabjous »

I don't know whether or not that's commonly used, but Detexify didn't come up with a single command for it.

However, it shouldn't be too hard to create using something like the \overset command from the amsmath package. Load that package and try:

Code: Select all

\documentclass{article}
\usepackage{amsmath}
\begin{document}
$a \overset{\mathrm{H}}{=} b$
\end{document}
(Or remove the \mathrm part if you want an italicized H, etc.

Darn, scooped again!
Last edited by frabjous on Tue Jan 19, 2010 10:39 pm, edited 1 time in total.
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

l'Hospital's rule symbol

Post by localghost »

Such basics are explained in every good reference guide like latex2e-help-texinfo [1]. You can build that symbol by stacking two single characters.

Code: Select all

\documentclass[11pt,a4paper]{article}
\usepackage{amsmath}

\begin{document}
  \[
    \lim_{x\to 0}\frac{\sin x}{x}\stackrel{\text{H}}{=}\frac{\cos x}{1}=1
  \]
\end{document}
The amsmath package was only used to create an upright »H« with the \text{...} command. The rest is vanilla LaTeX.

[1] View topic: LaTeX Resources for Beginners


Best regards and welcome to the board
Thorsten
rickcjmac
Posts: 3
Joined: Tue Jan 19, 2010 10:22 pm

Re: l'Hospital's rule symbol

Post by rickcjmac »

Thank you all for your excellent answers. All of them worked perfectly. Those are exactly what I was searching for :D

Rickcjmac
Post Reply