When I load both lmodern and tipa, the first instance of an IPA symbol with a diacritic breaks. For example, this code
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{lmodern}
\usepackage{tipa}
\begin{document}
\=\textschwa
\=\textepsilon
\'\textschwa
\'\textepsilon
\end{document}
produces this:
It's always the first character that's split, regardless of which diacritic and what body you use. E.g., if I change it to
\=\textepsilon
\=\textschwa
\'\textschwa
\'\textepsilon
and if I change it to
\'\textschwa
\'\textepsilon
\=\textepsilon
\=\textschwa
How do I change it so the first character gets its diacritic on top where it belongs?
Note that there is this question about lmodernand tipa, but it only tells us that they work fine together and don't produce problems (beyond some warnings.)





\newsavebox{\schwabox}\savebox{\schwabox}{\textschwa}%. But @egreg's answer below is more robust, of course. – Marijn Mar 13 '19 at 13:00