# How to write Muḥammad ibn Mūsā al-Khwārizmī?

How can I write this name with LaTeX:

Also is the last letter an "l"?

• Welcome to TeX.SX! Please help us help you and add a minimal working example (MWE) that illustrates your problem. Reproducing the problem and finding out what the issue is will be much easier when we see compilable code, starting with \documentclass{...} and ending with \end{document}. – albert Feb 23 at 13:37
• Have a look at “How to look up a symbol?” for ideas how you can easily find a particular symbol. – dexteritas Feb 23 at 13:38
• "Also is the last letter an 'l'?" No, it is an "i" whose dot is replaced with a macron (i.e. straight line above) ;-) – L. F. Feb 24 at 1:57

Find a font that has the glyph (Gentium, Linux Libertine, Times New Roman, Brill, etc.). The default Computer Modern version also works with fontspec.

Compile with xelatex or lualatex:

\documentclass{article}
\usepackage{fontspec}
\setmainfont{Gentium}

\begin{document}

\end{document}


You may be able to set up shortcuts in your editor if you're writing a lot of those diacritics.

If you want the same font as your example (Charis SIL):

\setmainfont{Charis Sil}


• What do you mean by ''The default Computer Modern version also works with fontspec''? I am compiling with xelatex and I am using the Latin Modern font but not using fontspec – Tertuliano Máximo Afonso Feb 23 at 14:36
• why use ascii accent input, isn't it simpler just to use the text as in the question title? – David Carlisle Feb 23 at 14:42
• @TertulianoMáximoAfonso, I mean, just compile with xelatex then. As David said, no need for special ascii input. I just used it as an example. – Joseph Feb 23 at 16:35
• I quite like Junicode as a LaTeX Unicode font. It even comes with it's own microtype configuration! – bradrn Feb 23 at 22:26

You didn't say what you had tried, but with xelatex, this works

\documentclass{article}

\begin{document}

\end{document}

• for pdflatex the same would work but you need to add \DeclareUnicodeCharacter{1E25}{\d{h}} in current releases. – David Carlisle Feb 23 at 14:46

Here it is:

\documentclass{report}
\begin{document}
\end{document}


The last letter is a dotless i (produce by \i) with bar above it.

• you could use \={\i} or more simply \={i} but ī is possibly simpler. – David Carlisle Feb 23 at 14:44
• @DavidCarlisle, I am old school... :-) – Sigur Feb 23 at 14:48

arabluatex is also able to typeset Arabic proper names:

\documentclass{article}

\usepackage{arabluatex}

\begin{document}

\SetTranslitConvention{dmg}