Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.
\documentclass{article}
\usepackage{tgpagella}

\begin{document}
\begin{itemize}
    \item test1
    \item test2
    \item test3
\end{itemize}
\end{document}

Compiling the above minimal LaTeX file with a fresh installation of TeX Live 2011 on Linux gives the following warnings:

LaTeX Font Warning: Font shape `OMS/qpl/m/n' undefined
(Font)              using `OMS/cmsy/m/n' instead
(Font)              for symbol `textbullet' on input line 7.
...
LaTeX Font Warning: Some font shapes were not available, defaults substituted.

It works absolutely fine with the default Computer Modern fonts.

It seems like this is just a problem with tgpagella not defining its own bullet symbols. What is the best way to deal with this sort of warning? Can it be safely ignored and is there a way to stop it appearing every time I compile (without disabling other warnings)? It's especially annoying when using Vim because the focus moves to the error window every time I compile the document!

share|improve this question
    
Add \usepackage{textcomp}; the problem would be there with almost all other font packages. –  egreg Feb 28 '12 at 18:34
add comment

1 Answer

up vote 6 down vote accepted

Load the textcomp package.

\documentclass{article}

\usepackage{textcomp}
\usepackage{tgpagella}

\begin{document}
\begin{itemize}
    \item test1
    \item test2
    \item test3
\end{itemize}
\end{document}
share|improve this answer
    
This fixes it! So does tgpagella depend on the symbols defined by textcomp? If so, why doesn't it include it itself?! Thanks a lot! –  mjrussell Feb 28 '12 at 18:37
    
@mjrussell That's a good (follow-up) question. :-) Please consider to upvote my answer (with the upward pointing arrow to the left of it) and possibly to accept it (by clicking on the checkmark). –  lockstep Feb 28 '12 at 18:41
3  
LaTeX is set up for getting the bullet from the math symbol font. So when a font family doesn't have a companion math symbol font, LaTeX issues a warning. I believe that Vim's behavior can be changed to ignore such warnings. –  egreg Feb 28 '12 at 18:42
    
@lockstep I will of course accept your answer if it is not outdone by another! I just wanted to make sure it was the best fix for the problem first. –  mjrussell Feb 28 '12 at 18:44
2  
@mjrussel The warning tells you that the font combination OMS/qpl/m/n doesn't exist. The math fonts for mathpazo are not connected with TeX Gyre Pagella. Indeed, if you use only mathpazo, the warning is not produced. Why doesn't that package load textcomp? No font package that I know of does it. –  egreg Feb 28 '12 at 18:57
show 5 more comments

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.