This error message is low-level TeX output which shows up if you are typesetting material in a font (external name "cmr12" in your example) and you are trying to typeset a glyph that is not in the font. The ?
is not a real question mark it stands for a character that is unknown.
When you are typesetting a word, say, "aha" then deep down this is all translated to glyph positions in a font. For example, the "a" in most encodings represents the font position octal:141 and "h" is octal:150. Whatever glyphs are in these positions in the current font will be typeset (which may not look remotely like "a" or "h").
Now, the font in question has only the first 128 slots filled (it is a 7 bit font) and what happened most likely is that your document contains diacritical characters which in most encodings map to positions with number in the range from 128-255. And if these slots do not exist you get the error message.
Possible resolutions:
- Use only 7 bit input, e.g.,
\'a
instead of straight á
- Use the "correct" input encoding for your document, e.g.
\usepackage[latin1]{inputenc}
if the document is written in the 8 bit Latin1 coding, or \usepackage[utf8]{inputenc}
if it is in UTF8. Chosing the correct input encoding results in characters like á
are automatically translated back internally by LaTeX to \'a
.
In either case it is sensible to add \usepackage[T1]{fontenc}
in your preamble so that 8 bit fonts are used as these will result in better quality if accented characters are used. If an 8 bit font encoding is used then commands like \'a
are no longer constructing the diacritical characts but instead select the real glyph in the font.
\subsection
was written as\subection
(missing the s). Once I added thes
all of these errors went away. The relation to Sweave is that I'm using it, nothing more. I'm kind of surprised that latex is so unforgiving or at least unhelpful in finding these tiny mistakes. Frustrating, really.\subection
producing the error)