2

When I use xelatex compile the following code:

\documentclass{article}

\usepackage{tipa}

\begin{document}

     [\textsecstress h\textopeno m\textschwa\textprimstress\textdyoghlig in\i\textschwa s]

\end{document}

there are two warnings:

  1. Font shape `T3/lmr/m/n' undefined(Font) using `T3/cmr/m/n' instead(Font) for symbol `textsecstress';

  2. Some font shapes were not available, defaults substituted.

But if I choose pdflatex to compile this code, there is no warning. I want to remove these warnings with the xelatex compiler. How can I solve this problem?

1

These warnings are innocuous. You can remove them, though:

\documentclass{article}

\usepackage{tipa}

\usepackage{ifxetex}

\ifxetex
  \usepackage{substitutefont}
  \substitutefont{T3}{\rmdefault}{cmr}
\fi

\begin{document}

[\textsecstress h\textopeno m\textschwa\textprimstress\textdyoghlig in\i\textschwa s]

\end{document}

The font substitution cannot be done with pdflatex, because it would lead to an infinite loop, so it's necessary to do it conditionally.

| improve this answer | |

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.