The following MWE gives me an error:
%Page layout here
\documentclass[letterpaper]{article}
\usepackage{kantlipsum}
%Font stuff here
\usepackage{tgtermes}
\begin{document}
\kant
\oldstylenums{314159} %This is line 11
\kant
\end{document}
LaTeX Font Info: Try loading font information for OML+qtm on input line 11. LaTeX Font Info: No file OMLqtm.fd. on input line 11.
LaTeX Font Warning: Font shape
OML/qtm/m/it' undefined (Font)OML/cmm/m/it' instead on input line 11.
using[2] [3] [4] (./MWE.aux)
LaTeX Font Warning: Some font shapes were not available, defaults substituted.
Now, this seems pretty obvious that it is a problem using \oldstylenums{314159} with tgterms. However, I had to edit out everything but this code to find that: In this MWE (based on my original document)
%Page layout here
\documentclass[letterpaper]{article}
\usepackage{kantlipsum}
%Font stuff here
\usepackage{tgtermes}
\usepackage{fancyhdr}
\pagestyle{fancyplain}
\fancyhf{}
\renewcommand{\headrulewidth}{0pt} % remove lines as well
\setlength{\headheight}{30pt}
\chead{\oldstylenums{314159}}
\begin{document}
Here is some normal text
\kant
More normal text %This is line 18
\end{document}
The error points to the last line before the end of the document, line 18.
However, I made another MWE, where I pasted a couple of pages of the lipsum in manually and got something strange that seems replicate my original problem: The error message moves seemingly randomly (In this case it is on the first blank line after a command; in my more complex document... I have no idea, it is line 97, which is the first blank line on the second page, but there are lots of commands on the first page. Possibly the first blank line after \emph{}?
%Page layout here
\documentclass[letterpaper]{article}
\usepackage{kantlipsum}
%Font stuff here
\usepackage{tgtermes}
\usepackage{fancyhdr}
\pagestyle{fancyplain}
\fancyhf{}
\renewcommand{\headrulewidth}{0pt} % remove lines as well
\setlength{\headheight}{30pt}
\chead{\oldstylenums{314159}}
\begin{document}
Here is some normal text As any dedicated reader can clearly see, the Ideal of practical
reason is a representation of, as far as I know, the things in themselves; as I have
shown elsewhere, the phenomena should only be used as a canon for our understanding.
The paralogisms of practical reason are what first give rise to the architectonic of
practical reason.
Kant here
\kant %This is line 23, error occures on next line unless I put a comment there
As we have already seen, what we have alone been able to show is that the objects
in space and time would be falsified; what we have alone been able to show is that,
our judgements are what first give rise to metaphysics. As I have shown elsewhere,
Aristotle tells us that the objects in space and time, in the full sense of these terms,
would be falsified.
\end{document}
That one puts the error on the first blank line after \kant. Can someone explain what this error is and why the heck it keeps moving around?
textcompwith pdflatex will give you Computer Modern old style digits). – Martin Schröder Nov 3 '12 at 18:52