I have created a rather large lyx file (all my course notes). In one
section, I can't get it to work. I have reduced the problem to a
minimum. There are 3 characters on my screen, in two lines.
I get SIX errors with those 3 characters.
Answer: it's the \textmf that causes ALL six errors. (and all 35
errors in my original file). All from a a single, obviously
misplaced, \textmf tag that I DID NOT INSERT (or knowingly insert. I
don't USE different fonts in my document!)
I have just manually removed the \textmf from the .lyx file and now
it works.
Questions:
What key sequence would have inserted \textmf when ANY occurence of
such text causes so many errors?
Why doesn't LyX do the right thing when converting said text to LaTeX?
Why, when I erased the entire paragraph containing this string and
retyped it, did the textmf string REAPPEAR in exactly the same
place?? I had to go into the lyx file and manually delete the bugger.
====== start file =========
#LyX 1.3 created this file. For more info see http://www.lyx.org/
\lyxformat 221
\textclass article
\language english
\inputencoding auto
\fontscheme default
\graphics default
\paperfontsize default
\papersize Default
\paperpackage a4
\use_geometry 0
\use_amsmath 0
\use_natbib 0
\use_numerical_citations 0
\paperorientation portrait
\secnumdepth 3
\tocdepth 3
\paragraph_separation indent
\defskip medskip
\quotes_language english
\quotes_times 2
\papercolumns 1
\papersides 1
\paperpagestyle default
\layout Standard
\begin_inset Formula $\textrm{2^{Q}}$
\end_inset
\layout Standard
t
\the_end
============ end file ==========
Here is the log:
======= start log ========
This is pdfeTeX, Version 3.141592-1.30.4-2.2 (Web2C 7.5.5)
(format=pdflatex 2006.1.8) 1 FEB 2006 22:50
entering extended mode
**test.tex
(./test.tex
LaTeX2e <2003/12/01>
Babel <v3.8d> and hyphenation patterns for american, french, german,
ngerman, d
utch, italian, norsk, portuges, spanish, swedish, nohyphenation, loaded.
(/Users/local/tex/teTeX/share/texmf.tetex/tex/latex/base/article.cls
Document Class: article 2004/02/16 v1.4f Standard LaTeX document class
(/Users/local/tex/teTeX/share/texmf.tetex/tex/latex/base/size10.clo
File: size10.clo 2004/02/16 v1.4f Standard LaTeX file (size option)
)
[EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]
\abovecaptionskip=\skip41
\belowcaptionskip=\skip42
\bibindent=\dimen102
) (/Users/local/tex/teTeX/share/texmf.tetex/tex/latex/base/fontenc.sty
Package: fontenc 2004/02/22 v1.99f Standard LaTeX package
(/Users/local/tex/teTeX/share/texmf.tetex/tex/latex/base/t1enc.def
File: t1enc.def 2004/02/22 v1.99f Standard LaTeX file
LaTeX Font Info: Redeclaring font encoding T1 on input line 43.
)) (/Users/local/tex/teTeX/share/texmf.tetex/tex/latex/base/inputenc.sty
Package: inputenc 2004/02/05 v1.0d Input encoding file
(/Users/local/tex/teTeX/share/texmf.tetex/tex/latex/base/latin1.def
File: latin1.def 2004/02/05 v1.0d Input encoding file
)) (/Users/local/tex/teTeX/share/texmf.tetex/tex/generic/babel/babel.sty
Package: babel 2004/11/20 v3.8d The Babel package
(/Users/local/tex/teTeX/share/texmf.tetex/tex/generic/babel/english.ldf
Language: english 2004/06/14 v3.3o English support from the babel system
(/Users/local/tex/teTeX/share/texmf.tetex/tex/generic/babel/babel.def
File: babel.def 2004/11/20 v3.8d Babel common definitions
[EMAIL PROTECTED]
[EMAIL PROTECTED]
)
[EMAIL PROTECTED] = a dialect from [EMAIL PROTECTED]
[EMAIL PROTECTED] = a dialect from [EMAIL PROTECTED]
[EMAIL PROTECTED] = a dialect from [EMAIL PROTECTED]
[EMAIL PROTECTED] = a dialect from [EMAIL PROTECTED]
[EMAIL PROTECTED] = a dialect from [EMAIL PROTECTED]
))
No file test.aux.
\openout1 = `test.aux'.
LaTeX Font Info: Checking defaults for OML/cmm/m/it on input line 18.
LaTeX Font Info: ... okay on input line 18.
LaTeX Font Info: Checking defaults for T1/cmr/m/n on input line 18.
LaTeX Font Info: ... okay on input line 18.
LaTeX Font Info: Checking defaults for OT1/cmr/m/n on input line 18.
LaTeX Font Info: ... okay on input line 18.
LaTeX Font Info: Checking defaults for OMS/cmsy/m/n on input line 18.
LaTeX Font Info: ... okay on input line 18.
LaTeX Font Info: Checking defaults for OMX/cmex/m/n on input line 18.
LaTeX Font Info: ... okay on input line 18.
LaTeX Font Info: Checking defaults for U/cmr/m/n on input line 18.
LaTeX Font Info: ... okay on input line 18.
LaTeX Font Info: External font `cmex10' loaded for size
(Font) <7> on input line 19.
LaTeX Font Info: External font `cmex10' loaded for size
(Font) <5> on input line 19.
! Missing $ inserted.
<inserted text>
$
l.19 $\textrm{2^{Q}}
$
I've inserted a begin-math/end-math symbol since I think
you left one out. Proceed, with fingers crossed.
! Extra }, or forgotten $.
\mbox #1->\leavevmode \hbox {#1}
l.19 $\textrm{2^{Q}}
$
I've deleted a group-closing symbol because it seems to be
spurious, as in `$x}$'. But perhaps the } is legitimate and
you forgot something else, as in `\hbox{$x}'. In such cases
the way to recover is to insert both the forgotten and the
deleted material, e.g., by typing `I$}'.
! Extra }, or forgotten $.
[EMAIL PROTECTED] #1->{\mbox {#1}}
l.19 $\textrm{2^{Q}}
$
I've deleted a group-closing symbol because it seems to be
spurious, as in `$x}$'. But perhaps the } is legitimate and
you forgot something else, as in `\hbox{$x}'. In such cases
the way to recover is to insert both the forgotten and the
deleted material, e.g., by typing `I$}'.
! Missing } inserted.
<inserted text>
}
l.22 \end{document}
I've inserted something that you may have forgotten.
(See the <inserted text> above.)
With luck, this will get me unwedged. But if you
really didn't forget anything, try typing `2' now; then
my insertion and my current dilemma will both disappear.
! Missing $ inserted.
<inserted text>
$
l.22 \end{document}
I've inserted a begin-math/end-math symbol since I think
you left one out. Proceed, with fingers crossed.
! Missing } inserted.
<inserted text>
}
l.22 \end{document}
I've inserted something that you may have forgotten.
(See the <inserted text> above.)
With luck, this will get me unwedged. But if you
really didn't forget anything, try typing `2' now; then
my insertion and my current dilemma will both disappear.
[1
{/Users/local/tex/teTeX/share/texmf.local/fonts/map/pdftex/updmap/
pdftex.map}]
(./test.aux) )
Here is how much of TeX's memory you used:
761 strings out of 95137
8310 string characters out of 1183014
2056387 words of memory out of 4511222
3970 multiletter control sequences out of 10000+50000
4403 words of font info for 15 fonts, out of 2000000 for 2000
58 hyphenation exceptions out of 5000
25i,5n,19p,168b,113s stack positions out of 5000i,500n,6000p,200000b,
40000s
PDF statistics:
10 PDF objects out of 300000
0 named destinations out of 131072
1 words of extra memory for PDF output out of 10000
</Users/local/tex/teTeX/share/texmf.tetex/fonts/type1/bluesky/cm/
cmmi7.pfb>{/Users/local/tex/teTeX/share/texmf.local/fonts/enc/dvips/
cm-super/cm
-super-t1.enc}</Users/local/tex/teTeX/share/texmf.local/fonts/type1/
public/cm-s
uper/sfrm1000.pfb>
Output written on test.pdf (1 page, 15144 bytes).
============= end file ==============