Herbert Voss wrote: > > R. Lahaye wrote: > > > Hi, > > > > I have a REVTeX4 document, which I export to LaTeX. When processing > > the export file with the latex command, I get a number of warnings > > of the kind: > > > > --------------------------- > > LaTeX Warning: Command \textordmasculine invalid in math mode on > > input line 72. > > --------------------------- > > > > This is related to the degree-symbol I use in my LyX document, for > > example "45º". In the LaTeX export, this appears as "45\ensuremath{º}" > > and latex chokes on that. > > > > Any idea what goes wrong in the export? > > examplefile, because I have no problems with this in text- > and in mathmode.
OK. Sample lyx-file attached. It only contains "45º". Open this file in LyX, then export it with File->Export->LaTeX. Open an xterminal and process the LaTeX-exported-file with the latex command: ----------------------------------------------------------- $ latex degree_warning.tex This is TeX, Version 3.14159 (Web2C 7.3.1) (degree_warning.tex LaTeX2e <1999/12/01> patch level 1 Babel <v3.6Z> and hyphenation patterns for american, french, german, ngerman, nohyphenation, loaded. (/usr/local/share/texmf/tex/latex/base/article.cls Document Class: article 1999/09/10 v1.4a Standard LaTeX document class (/usr/local/share/texmf/tex/latex/base/size10.clo)) (/usr/local/share/texmf/tex/latex/base/fontenc.sty (/usr/local/share/texmf/tex/latex/base/t1enc.def)) (/usr/local/share/texmf/tex/latex/base/inputenc.sty (/usr/local/share/texmf/tex/latex/base/latin1.def)) (/usr/local/share/texmf/tex/generic/babel/babel.sty (/usr/local/share/texmf/tex/generic/babel/english.ldf (/usr/local/share/texmf/tex/generic/babel/babel.def))) No file degree_warning.aux. LaTeX Warning: Command \textordmasculine invalid in math mode on input line 15. [1] (degree_warning.aux) ) Output written on degree_warning.dvi (1 page, 280 bytes). Transcript written on degree_warning.log. $ ----------------------------------------------------------- Line 15 in degree_warning.tex contains: 45\ensuremath{\xba} What's makes my latex produce a warning message here? Regards, Rob.
#LyX 1.2 created this file. For more info see http://www.lyx.org/ \lyxformat 220 \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 45º \the_end