Math & ScienceProblem with "i" accent in math mode

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
Post Reply
Jaraqui
Posts: 26
Joined: Wed Feb 08, 2012 3:54 am

Problem with "i" accent in math mode

Post by Jaraqui »

Hi,

I am using the following equation:

Code: Select all

...
\usepackage[latin1]{inputenc}
\usepackage[brazil]{babel}

...
\begin{equation}
  24.99 = \frac{m_{m\acute{a}x}}{1.83 \times 1.83} \therefore  m_{m\acute{a}x} = 24.99 \times 1.83 \times 1.83 \approx 83.7 kg \label{eq:imc_ex_max}
\end{equation}

\begin{equation}
  18.50 = \frac{m_{m\acute{i}n}}{1.83 \times 1.83} \therefore m_{m\acute{i}n} = 18.50 \times 1.83 \times 1.83 \approx 61.8 kg \label{eq:imc_ex_min}
\end{equation}

...
In the first equation everything works fine. The max subscript is presented with its desired accent.

But in the second equation... I was expecting the min with the accute accent. This occurs, but the dot of the i charachter is still present.
How can I solve this?

Regards
Jaraqui

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

Problem with "i" accent in math mode

Post by Stefan Kottwitz »

Hi Jaraqui,

you can write a dotless i by \i in text mode and by \imath in math mode:

Code: Select all

m\acute{\imath}n
As min and max are commonly written upright as operators, to not look like a product of three variables m, i, n or m, a, x, I would declare an (upright) operator for this:

Code: Select all

\documentclass{article}
\usepackage{amsmath}
\DeclareMathOperator{\acutemin}{m\acute{\i}n}
\DeclareMathOperator{\acutemax}{m\acute{a}x}
\begin{document}                  
\begin{equation}
  24.99 = \frac{m_{\acutemax}}{1.83 \times 1.83} t  m_{\acutemax}
    = 24.99 \times 1.83 \times 1.83 \approx 83.7 kg \label{eq:imc_ex_max}
\end{equation}
\begin{equation}
  18.50 = \frac{m_{\acutemin}}{1.83 \times 1.83} t m_{\acutemin}
    = 18.50 \times 1.83 \times 1.83 \approx 61.8 kg \label{eq:imc_ex_min}
\end{equation}
\end{document}
Stefan
LaTeX.org admin
Jaraqui
Posts: 26
Joined: Wed Feb 08, 2012 3:54 am

Re: Problem with "i" accent in math mode

Post by Jaraqui »

Excellent!

Each day I like this text processing more and more. But it would defitely very difficult without the help I get at this forum.

Solved
Jaraqui
Ederson
Posts: 1
Joined: Sun Mar 02, 2014 4:16 pm

Problem with "i" accent in math mode

Post by Ederson »

Stefan_K wrote:Hi Jaraqui,

you can write a dotless i by \i in text mode and by \imath in math mode:

Code: Select all

m\acute{\imath}n
As min and max are commonly written upright as operators, to not look like a product of three variables m, i, n or m, a, x, I would declare an (upright) operator for this:

Code: Select all

\documentclass{article}
\usepackage{amsmath}
\DeclareMathOperator{\acutemin}{m\acute{\i}n}
\DeclareMathOperator{\acutemax}{m\acute{a}x}
\begin{document}                  
\begin{equation}
  24.99 = \frac{m_{\acutemax}}{1.83 \times 1.83} t  m_{\acutemax}
    = 24.99 \times 1.83 \times 1.83 \approx 83.7 kg \label{eq:imc_ex_max}
\end{equation}
\begin{equation}
  18.50 = \frac{m_{\acutemin}}{1.83 \times 1.83} t m_{\acutemin}
    = 18.50 \times 1.83 \times 1.83 \approx 61.8 kg \label{eq:imc_ex_min}
\end{equation}
\end{document}
Stefan


\i don't work with

\usepackage[T1]{fontenc}

I use this package to preserve the paste options in Word
Post Reply