How can I print a small horizontal bar on the middle of a letter (symbol) in math mode?
I searched the net but didn't found any yet. Do I need a special package just for this?
Actually, I just need to put a bar through a capital "i".
Fonts & Character Sets ⇒ Small horizontal Bar through Character
NEW: TikZ book now 40% off at Amazon.com for a short time.

- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Re: Small horizontal Bar through Character
What you are searching for is the "Latin capital letter I with stroke". It exists as the Unicode character "Ɨ" (U+0197). But this probably needs XeLaTeX.
Thorsten
Thorsten
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Re: Small horizontal Bar through Character
Well, the capital "i" is oblique in math mode. It should be the same (style and font), but with a bar through it. So your suggestion doesn't do it.
Small horizontal Bar through Character
How's this:
Regards
Code: Select all
\documentclass{article}
\makeatletter
\newcommand\stroke[1]{\mathpalette\stroke@aux{#1}}
\def\stroke@aux#1#2{%
\ooalign{%
\hfil$#1-$\hfil\cr
\hfil$#1#2$\hfil\cr
}%
}
\makeatother
\newcommand\Istroke{\stroke{I}}
\begin{document}
$\Istroke$
\end{document}
site moderator & package author
Small horizontal Bar through Character
It's working.
However, I'm not sure anymore that's what I want for my symbol. I need to look out in the litterature what symbol should I use for the radial inertia moment, defined as half the trace of the inertia tensor. Any idea on this ?
However, I'm not sure anymore that's what I want for my symbol. I need to look out in the litterature what symbol should I use for the radial inertia moment, defined as half the trace of the inertia tensor. Any idea on this ?
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Small horizontal Bar through Character
A common symbol for this is a simple capital "I". But I have also seen a "J" and the Greek capital "Θ" (Theta). At least in Germany we use this notation.Cham wrote:[…] I need to look out in the litterature what symbol should I use for the radial inertia moment, defined as half the trace of the inertia tensor. […]
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10