3

How can I write this name with LaTeX:

Also is the last letter an "l"? enter image description here

  • 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
  • 1
    "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
5

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}

Muḥammad ibn Mūsā al-Khwārizmī?

Yes, Mu\d{h}ammad ibn M\={u}s\={a} al-Khw\={a}rizm\={\i}! 

\end{document}

enter image description here

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}

enter image description here

  • 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
  • 3
    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
  • 1
    I quite like Junicode as a LaTeX Unicode font. It even comes with it's own microtype configuration! – bradrn Feb 23 at 22:26
7

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

enter image description here

\documentclass{article}

\begin{document}

Muḥammad ibn Mūsā al-Khwārizmī

\end{document}
  • 4
    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
4

Here it is:

enter image description here

\documentclass{report}
\begin{document}
Mu\d{h}ammad ibn M\={u}s\={a} al-Khw\={a}rizm\={\i} 
\end{document}

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

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

arabluatex is also able to typeset Arabic proper names:

\documentclass{article}

\usepackage{arabluatex}

\begin{document}

\SetTranslitConvention{dmg}
\prname{mu.hammad ibn mUs_A| al-_hwArizmiyy}

\SetTranslitConvention{arabica}
\prname{mu.hammad ibn mUs_A| al-_hwArizmiyy}

\SetTranslitConvention{loc}
\prname{mu.hammad ibn mUs_A| al-_hwArizmiyy}

\end{document}

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.