Re: LaTeX export: invalid command in math mode.
R. Lahaye [EMAIL PROTECTED] writes: | 45\ensuremath{\xba} interesting... \xba is the char value of degree... but why isn't it just output verbatim? This is T1 fonts right? [could also be: so lyx is somehow l10ning strings in the layout files and just output them literally... the translation is my doing and is something we must handle in 1.3 since then, because of gettext 0.11, we can/should only use ascii in translatable strings. (or should at least try our best to.) ] | 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 -- Lgb
Re: LaTeX export: invalid command in math mode.
On Sat, Apr 20, 2002 at 09:18:39AM +0900, R. Lahaye wrote: --- 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. I don't know, but I'd use \textdegree instead of \textordmasculine anyway (it shows up in LyX and is the correct symbol) Any idea what goes wrong in the export? No. Maybe \textordmasculine is not defined fotr reftex,. Andre' -- Those who desire to give up Freedom in order to gain Security, will not have, nor do they deserve, either one. (T. Jefferson)
Re: LaTeX export: invalid command in math mode.
Andre Poenitz wrote: No. Maybe \textordmasculine is not defined for reftex,. No, the LaTeX problem occurs with any layout. See the document attached to my earlier email: http://www.mail-archive.com/lyx-devel%40lists.lyx.org/msg36888.html Long time back I dropped a question in this mailinglist how to produce the degree symbol, and the advice was to simply type the character º (don't know how to squeeze that out of my keyboard; I cut/paste from another application). I think Lars or Angus told me then. Well, that works great, but all of a sudden I noticed that this is causing always a LaTeX warning, when exporting LaTeX and running the LaTeX document through the LaTeX interpreter. So LyX is doing something not-so-correct when exporting this degree symbol to LaTeX. But I have no idea what, where or why this is going wrong. Regards, Rob.
Re: LaTeX export: invalid command in math mode.
R. Lahaye [EMAIL PROTECTED] writes: | Andre Poenitz wrote: No. Maybe \textordmasculine is not defined for reftex,. | No, the LaTeX problem occurs with any layout. See the document | attached to my earlier email: | http://www.mail-archive.com/lyx-devel%40lists.lyx.org/msg36888.html | Long time back I dropped a question in this mailinglist how | to produce the degree symbol, and the advice was to simply | type the character º (don't know how to squeeze that out of | my keyboard; I cut/paste from another application). | I think Lars or Angus told me then. I never showed you that symbol, '°' is what I showed. (if I did) -- Lgb
Re: LaTeX export: invalid command in math mode.
Andre Poenitz wrote: On Sat, Apr 20, 2002 at 09:18:39AM +0900, R. Lahaye wrote: --- 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. I don't know, but I'd use \textdegree instead of \textordmasculine anyway (it shows up in LyX and is the correct symbol) Any idea what goes wrong in the export? No. Maybe \textordmasculine is not defined fotr reftex,. \text... it's obvious that we get a warning when used in mathmode. $\textrm{\textordmasculine}$ gives no warning Herbert -- http://www.lyx.org/help/
Re: LaTeX export: invalid command in math mode.
Herbert == Herbert Voss [EMAIL PROTECTED] writes: Herbert Andre Poenitz wrote: On Sat, Apr 20, 2002 at 09:18:39AM +0900, R. Lahaye wrote: --- 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. I don't know, but I'd use \textdegree instead of \textordmasculine anyway (it shows up in LyX and is the correct symbol) Any idea what goes wrong in the export? No. Maybe \textordmasculine is not defined fotr reftex,. Herbert \text... it's obvious that we get a warning when used in Herbert mathmode. $\textrm{\textordmasculine}$ gives no warning I'll remove the ensuremath for those characters (also textordfeminine and \textdegree, according to my latex. Eventually, I'd like to remove all this \ensuremath special casing, but I seem to remember this causes problems with older latex versions. JMarc
Re: LaTeX export: invalid command in math mode.
Lars == Lars Gullik Bjønnes [EMAIL PROTECTED] writes: Lars R. Lahaye [EMAIL PROTECTED] writes: | Lars 45\ensuremath{\xba} Lars interesting... \xba is the char value of degree... but why isn't Lars it just output verbatim? This is T1 fonts right? It is output verbatim now. JMarc
Re: LaTeX export: invalid command in math mode.
"R. Lahaye" <[EMAIL PROTECTED]> writes: | 45\ensuremath{\xba} interesting... \xba is the char value of degree... but why isn't it just output verbatim? This is T1 fonts right? [could also be: so lyx is somehow l10ning strings in the layout files and just output them literally... the translation is my doing and is something we must handle in 1.3 since then, because of gettext 0.11, we can/should only use ascii in translatable strings. (or should at least try our best to.) ] > | 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 -- Lgb
Re: LaTeX export: invalid command in math mode.
On Sat, Apr 20, 2002 at 09:18:39AM +0900, R. Lahaye wrote: > --- > 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. I don't know, but I'd use \textdegree instead of \textordmasculine anyway (it shows up in LyX and is the "correct" symbol) > Any idea what goes wrong in the export? No. Maybe \textordmasculine is not defined fotr reftex,. Andre' -- Those who desire to give up Freedom in order to gain Security, will not have, nor do they deserve, either one. (T. Jefferson)
Re: LaTeX export: invalid command in math mode.
Andre Poenitz wrote: > > No. Maybe \textordmasculine is not defined for reftex,. > No, the LaTeX problem occurs with any layout. See the document attached to my earlier email: http://www.mail-archive.com/lyx-devel%40lists.lyx.org/msg36888.html Long time back I dropped a question in this mailinglist how to produce the degree symbol, and the advice was to simply type the character "º" (don't know how to squeeze that out of my keyboard; I cut/paste from another application). I think Lars or Angus told me then. Well, that works great, but all of a sudden I noticed that this is causing always a LaTeX warning, when exporting LaTeX and running the LaTeX document through the LaTeX interpreter. So LyX is doing something not-so-correct when exporting this degree symbol to LaTeX. But I have no idea what, where or why this is going wrong. Regards, Rob.
Re: LaTeX export: invalid command in math mode.
"R. Lahaye" <[EMAIL PROTECTED]> writes: | Andre Poenitz wrote: >> >> No. Maybe \textordmasculine is not defined for reftex,. >> > | No, the LaTeX problem occurs with any layout. See the document | attached to my earlier email: | http://www.mail-archive.com/lyx-devel%40lists.lyx.org/msg36888.html > | Long time back I dropped a question in this mailinglist how | to produce the degree symbol, and the advice was to simply | type the character "º" (don't know how to squeeze that out of | my keyboard; I cut/paste from another application). | I think Lars or Angus told me then. I never showed you that symbol, '°' is what I showed. (if I did) -- Lgb
Re: LaTeX export: invalid command in math mode.
Andre Poenitz wrote: > On Sat, Apr 20, 2002 at 09:18:39AM +0900, R. Lahaye wrote: > >>--- >>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. >> > > I don't know, but I'd use \textdegree instead of \textordmasculine anyway > (it shows up in LyX and is the "correct" symbol) > > >>Any idea what goes wrong in the export? >> > > No. Maybe \textordmasculine is not defined fotr reftex,. \text... it's obvious that we get a warning when used in mathmode. $\textrm{\textordmasculine}$ gives no warning Herbert -- http://www.lyx.org/help/
Re: LaTeX export: invalid command in math mode.
> "Herbert" == Herbert Voss <[EMAIL PROTECTED]> writes: Herbert> Andre Poenitz wrote: >> On Sat, Apr 20, 2002 at 09:18:39AM +0900, R. Lahaye wrote: >>> --- 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. >>> >> I don't know, but I'd use \textdegree instead of \textordmasculine >> anyway (it shows up in LyX and is the "correct" symbol) >> >>> Any idea what goes wrong in the export? >>> >> No. Maybe \textordmasculine is not defined fotr reftex,. Herbert> \text... it's obvious that we get a warning when used in Herbert> mathmode. $\textrm{\textordmasculine}$ gives no warning I'll remove the ensuremath for those characters (also textordfeminine and \textdegree, according to my latex. Eventually, I'd like to remove all this \ensuremath special casing, but I seem to remember this causes problems with older latex versions. JMarc
Re: LaTeX export: invalid command in math mode.
> "Lars" == Lars Gullik Bjønnes <[EMAIL PROTECTED]> writes: Lars> "R. Lahaye" <[EMAIL PROTECTED]> writes: | Lars> 45\ensuremath{\xba} Lars> interesting... \xba is the char value of degree... but why isn't Lars> it just output verbatim? This is T1 fonts right? It is output verbatim now. JMarc
Re: LaTeX export: invalid command in math mode.
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
Re: LaTeX export: invalid command in math mode.
R. Lahaye wrote: 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: understood. don't know, why this is exported as an ensuremath-command. Herbert -- http://www.lyx.org/help/
Re: LaTeX export: invalid command in math mode.
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 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
Re: LaTeX export: invalid command in math mode.
R. Lahaye wrote: > 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: understood. don't know, why this is exported as an ensuremath-command. Herbert -- http://www.lyx.org/help/