I need to run LaTeX on a file that contains, for example, the following words: ḥarain [unicode 1E25] and Amaziɣ [a Berber word]. These paste OK into my .tex file as they do here, but when I run the pdflatex command I get errors, a lot of overfill and underfills for the first, and for the second that it is not set up for LaTeX. I have not used xelatex because it produces other problems. As for the ḥ I thought of \cfudot, but I don't know what package offers the command.
Asked
Active
Viewed 1,111 times
3 Answers
6
The LATIN SMALL LETTER H WITH DOT BELOW (U+1E25) doesn't pose real problems, as you can use \d{h}. For LATIN SMALL LETTER GAMMA (U+0263) you need a font supporting it. With Computer Modern, you can use tipa.
\documentclass{article}
\usepackage[T1]{fontenc}
%\usepackage[utf8]{inputenc} % not needed for LaTeX from 2018-04-01
\usepackage{tipa} % for \textgamma
\DeclareUnicodeCharacter{1E24}{\d{H}} % uppercase
\DeclareUnicodeCharacter{1E25}{\d{h}} % lowercase
\DeclareUnicodeCharacter{0263}{\textgamma} % no uppercase
\begin{document}
ḥarain
Amaziɣ
\end{document}
egreg
- 1,121,712
2
Here is a simple option, though I'm not sure what the ɣ is supposed to look like exactly. Edit to add two font options.
%pdflatex
\documentclass{article}
\usepackage[greek,english]{babel} % for the first option
\usepackage{tipa} % for the second option
\begin{document}
\d{h}arain Amazi\textgreek{g} % first option
\d{h}arain Amazi\textipa{G} % second option
\end{document}
For reference, here is a chart of how to display IPA letters under the \usepackage{tipa} package.
AML
- 2,265
2
For any such character it is usually easier to use xelatex or lualatex than pdflatex. If your browser can display a character, then you can specify the same font to xetex or luatex.
Here is your text in Times, set with xelatex
\documentclass{article}
\usepackage{fontspec}
\setmainfont{Times New Roman}
\begin{document}
ḥarain [unicode 1E25] and Amaziɣ [a Berber word]
\end{document}
David Carlisle
- 757,742
-
1Haines Brown: With all due respect to egreg, I'd strongly suggest you use David's solution. TIPA is a deeply problematic font for linguistics. Yes, it has all the symbols you could ever want, but only in Computer Modern and only in roman, bold, and slanted. Publishers will generally want Times, Minion, etc. and will need italics (for in-text citation). The result is a deeply dissatisfying. It's a shame that the brains behind TIPA have never addressed this major hurdle to the font's usability. – Daniel Harbour May 21 '18 at 14:48
-
I appreciate the responses. The obvious answer would be to go to xelatex, but I found it introduces too many problems. The \d{h} I should have spotted. As for the Berber letter (don't know if it is a lower case gamma) I ended up loading the latex.el package into my emacs, and that gave me access to the \textgamma command (which gives proper shape in contrast to (\gamma), – Haines Brown May 22 '18 at 18:44



xelatexandfontspec. – Bernard May 21 '18 at 14:55pdflatex-based solutions, because it seemed like the OP didn't want to usexeletex. – AML May 21 '18 at 15:52