# How to typeset an i with asterisk above?

I tried it with a modification of \overset as suggested by Werner in this question: Creating non-math mode substitutes for \overset and \underset not dependent on the amsmath package

With the new command, I used \overset{$*$}{ı}, but the asterisk is too high and increases the line height. How can I overset the asterisk as in a dotted i?

In German, there is an internal I for gender-neutral forms like “TeXnikerIn” TeXnician for “TeXnikerin” (female) or “TeXniker” (male). Then there is the suggestion to combine it with an asterisk (“TeXniker*In”) for genderqueer people. So my idea is to use a lowercase i with an asterisk instead of a dot as an agglutination.

-
I had the same idea among others before L. Pusch announced the exclamation mark as another alternative. Perhaps I’ll patch Linux Libertine/Biolinum soon. –  Crissov Jun 24 '14 at 21:47

Here's a “hand made i with asterisk”:

\documentclass{article}

\makeatletter
\newcommand{\asti}{%
\check@mathfonts
\leavevmode
{\ooalign{%
\hidewidth
\raisebox{.8ex}{\fontsize{\ssf@size}{0}\selectfont*}%
\hidewidth\cr
\i\cr
}}%
}
\makeatother

\begin{document}
Here \asti s \asti t.

\LARGE
Here \asti s \asti t.
\end{document}


The \check@mathfonts instruction is needed to access the scriptscript size for the current font size.

-
It doesn't affect your answer in any way but the idiomatic phrase is "Here it is." –  David Richerby Jun 25 '14 at 8:00
@DavidRicherby I realized it after some minutes, when reloading the page; however, since also the asterisk above the ‘i’ is nonstandard, I'll leave it as is. ;-) –  egreg Jun 25 '14 at 8:24

It's very simple with the accents package:

\documentclass[12pt]{article}
\usepackage[utf8]{inputenc}

\usepackage{accents}
\newcommand\astered[1]{\accentset{\ast}{#1}}
\begin{document}

$\astered{\i}\quad \astered{\imath}$

\boldmath
$\astered{\i}\quad \astered{\imath}$

\end{document}


-
This is for math mode only. –  egreg Jun 24 '14 at 8:51
@egreg: I thought it had to be so, from the O.P.'s formulation. –  Bernard Jun 24 '14 at 8:53
It has not, I just tried it with math mode because I did not know of an alternative. Very useful answer anyway. –  Ivan Jun 24 '14 at 8:58

i⃰ or ı⃰ U+20F0 ‘Combining Asterisk Above’ after either i or dotless i (U+0131), since you’ve tagged your question with xetex, i.e. can use most of Unicode (if you have the right fonts, of which there seem to be few).

\documentclass{scrartcl}
\usepackage{fontspec,lmodern}

\newcommand\testtext[2][i⃰ / ı⃰]{\noindent{#1 \hfill \textit{#1} \hfill \textbf{#1 \hfill \textit{#1}} \hfill \textsc{#1} \hfill – #2}\par}
\newcommand\testfont[1]{\fontspec{#1}\testtext{#1}}

\begin{document}
\huge
\textup{\testtext{serif}}
\textsf{\testtext{sans-serif}}
\texttt{\testtext{mono}}
\testfont{Linux Libertine O}
\testfont{Linux Biolinum O}
\testfont{XITS}
\testfont{STIXGeneral}
\testfont{Geneva}
\testfont{Georgia}
\end{document}


-
But I have not, I use Linux Libertine. –  Ivan Jun 24 '14 at 8:35
Testı⃰ng... Hmm, looks like Linux Libertine indeed lacks the combining asterisk character. FreeSerif does have it, though. –  Ilmari Karonen Jun 24 '14 at 14:18
STIX has it, too, but it looks misplaced. –  Crissov Jun 24 '14 at 21:49

using https://github.com/loveencounterflow/cxltx-styles#cxltx-style-accentbox, you could simply write the following:

\documentclass[a4paper,12pt]{book}
\usepackage{cxltx-style-accentbox}
\begin{document}

\textit{Some variations with an asterisk placed above an i':}
i\upaccent{\tiny *}{\i}i\upaccent{\tiny *}{\i}i\upaccent{\tiny *}{\i}
\textit{i\upaccent{\tiny *}{\i}i\upaccent{\tiny *}{\i}i\upaccent{\tiny *}{\i}}

\end{document}
`

CXLTX AccentBox is a copy of a very thoughtfully implemented module by A.S. Berdnikov which does not seem to have found its way into current LaTeX distros; however, installing CXLTX Styles should pose no great difficulties.

-