1

I am trying to type the i with the top bar in Fig. 1. I did not find any corresponding symbol in the glossary here. Detexifying it also gives bad results. I would like to get it without fontspec. Pseudocode

\documentclass{article}
\usepackage[utf8]{inputenc}
\begin{document}
% TODO here the letter i with top bar
\end{document}

Failed attempt with \={i} giving output in Fig. 2.

Fig. 1 Expected output for Latvian i with the bar at the top, Fig. 2 Failed output

enter image description here enter image description here

Expected letter in Wysiwyg: ī

2 Answers2

8

Since you are using inputenc in your example you can (since the 2015 latex release) just type ī directly (or use the traditional \=\i)

\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}

\begin{document}
ī
\end{document}
David Carlisle
  • 757,742
4

Do the following with ligature (https://tex.stackexchange.com/a/48518/13173)

\={\i}

Output

enter image description here