# LaTeX warning: Font shape undefined

📅 2014-May-09 ⬩ ✍️ Ashwin Nanjappa ⬩ 🏷️ latex, warning ⬩ 📚 Archive

## Problem

Compiling LaTeX document gives this warning:

``foo.tex LaTeX Font Warning: Font shape OT1/cmss/bx/it undefined``

LaTeX compilation gives a lot of warnings, that most folks ignore. However, this one can be irritating since it pops up a split window in Vim when compiled using Vim-LaTeX. So, at least for that irritating reason I wanted this warning to go away.

## Solution

Use the Latin Modern font package that has a larger collection of fonts and sizes that should take of such errors:

``\usepackage{lmodern}``

Tried with: Ubuntu 14.04