Re: Bug? Reading math mode formulas
Hello, Tanks to Jean-Pierre for the solution he gave me. Note that since it is not possible to insert directly 8bits characters in math mode, one have to use \acute, \grave... commands if one wants to use accentuated characters (to get é you have to type "\acute e"). See Jean-Pierre's examples below. --Nabil Jean-Pierre.Chretien writes: -- X-Sun-Data-Type: text X-Sun-Content-Length: 1093 X-Sun-Charset: X-iso-8859-1 From: Nabil Hathout [EMAIL PROTECTED] Date: Wed, 29 Sep 1999 17:37:40 +0200 (CEST) To: "Jean-Pierre.Chretien" [EMAIL PROTECTED] Cc: [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED] Subject: Re: Bug? Reading math mode formulas You mean I don't need to insert a mbox and that inserting textrm directly would be suffisant ? --Nabil Just do it: M-m m \frac M-m m abc... gives \begin_inset Formula \( \frac{\textrm{abc}}{\textrm{eff}} \) \end_inset (I've replaced g by f to show that the ligature works). If you want an accented character, you may have it \begin_inset Formula \( \frac{\textrm{abc}}{\acute{\textrm{e}}\textrm{ff}} \) \end_inset but as you can see, this is quite different of the result obtained with \begin_inset Formula \( \frac{\textrm{abc}}{\testac } \) \end_inset once \newcommand{\testac}{\mbox{éff}} is defined in the preamble. If you are a typographic addict, you will make a difference between a math accent on letter e and a real é letter... -- Jean-Pierre -- X-Sun-Data-Type: text X-Sun-Content-Length: 1197 X-Sun-Data-Name: newfile.lyx X-Sun-Data-Description: newfile.lyx X-Sun-Charset: X-iso-8859-1 #This file was created by chretien Wed Sep 29 17:49:40 1999 #LyX 1.0 (C) 1995-1999 Matthias Ettrich and the LyX Team \lyxformat 2.15 \textclass report \begin_preamble \input{preamb_rapport} \let\realcleardoublepage=\cleardoublepage \renewcommand{\cleardoublepage}{\newpage{\pagestyle{empty}\realcleardoublepage}} \newcommand{\testac}{\mbox{éff}} \end_preamble \options 12pt,twoside,a4paper \language french \inputencoding latin1 \fontscheme default \graphics default \float_placement !ht \paperfontsize default \spacing single \papersize a4paper \paperpackage a4 \use_geometry 1 \use_amsmath 0 \paperorientation portrait \leftmargin 30mm \topmargin 20mm \rightmargin 30mm \bottommargin 24mm \headheight 10mm \headsep 9mm \footskip 10mm \secnumdepth 3 \tocdepth 3 \paragraph_separation indent \defskip medskip \quotes_language english \quotes_times 2 \papercolumns 1 \papersides 2 \paperpagestyle default \layout Standard \begin_inset Formula \( \frac{\textrm{abc}}{\acute{\textrm{e}}\textrm{ff}} \) \end_inset \begin_inset Formula \( \frac{\textrm{abc}}{\textrm{eff}} \) \end_inset \layout Standard \begin_inset Formula \( \frac{\textrm{abc}}{\testac } \) \end_inset \the_end
Re: Bug? Reading math mode formulas
"Nabil" == Nabil Hathout [EMAIL PROTECTED] writes: Nabil Hello, Tanks to Jean-Pierre for the solution he gave me. Note Nabil that since it is not possible to insert directly 8bits Nabil characters in math mode, one have to use \acute, \grave... Nabil commands if one wants to use accentuated characters (to get é Nabil you have to type "\acute e"). See Jean-Pierre's examples below. There have been changes recently (in 1.0.4) allowing to enter 8bit russian characters in mathed. I would think that this works in latin1 too, provided you setup LC_CTYPE correctly. JMarc
Re: Bug? Reading math mode formulas
Hello, Tanks to Jean-Pierre for the solution he gave me. Note that since it is not possible to insert directly 8bits characters in math mode, one have to use \acute, \grave... commands if one wants to use accentuated characters (to get é you have to type "\acute e"). See Jean-Pierre's examples below. --Nabil Jean-Pierre.Chretien writes: -- X-Sun-Data-Type: text X-Sun-Content-Length: 1093 X-Sun-Charset: X-iso-8859-1 From: Nabil Hathout [EMAIL PROTECTED] Date: Wed, 29 Sep 1999 17:37:40 +0200 (CEST) To: "Jean-Pierre.Chretien" [EMAIL PROTECTED] Cc: [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED] Subject: Re: Bug? Reading math mode formulas You mean I don't need to insert a mbox and that inserting textrm directly would be suffisant ? --Nabil Just do it: M-m m \frac M-m m abc... gives \begin_inset Formula \( \frac{\textrm{abc}}{\textrm{eff}} \) \end_inset (I've replaced g by f to show that the ligature works). If you want an accented character, you may have it \begin_inset Formula \( \frac{\textrm{abc}}{\acute{\textrm{e}}\textrm{ff}} \) \end_inset but as you can see, this is quite different of the result obtained with \begin_inset Formula \( \frac{\textrm{abc}}{\testac } \) \end_inset once \newcommand{\testac}{\mbox{éff}} is defined in the preamble. If you are a typographic addict, you will make a difference between a math accent on letter e and a real é letter... -- Jean-Pierre -- X-Sun-Data-Type: text X-Sun-Content-Length: 1197 X-Sun-Data-Name: newfile.lyx X-Sun-Data-Description: newfile.lyx X-Sun-Charset: X-iso-8859-1 #This file was created by chretien Wed Sep 29 17:49:40 1999 #LyX 1.0 (C) 1995-1999 Matthias Ettrich and the LyX Team \lyxformat 2.15 \textclass report \begin_preamble \input{preamb_rapport} \let\realcleardoublepage=\cleardoublepage \renewcommand{\cleardoublepage}{\newpage{\pagestyle{empty}\realcleardoublepage}} \newcommand{\testac}{\mbox{éff}} \end_preamble \options 12pt,twoside,a4paper \language french \inputencoding latin1 \fontscheme default \graphics default \float_placement !ht \paperfontsize default \spacing single \papersize a4paper \paperpackage a4 \use_geometry 1 \use_amsmath 0 \paperorientation portrait \leftmargin 30mm \topmargin 20mm \rightmargin 30mm \bottommargin 24mm \headheight 10mm \headsep 9mm \footskip 10mm \secnumdepth 3 \tocdepth 3 \paragraph_separation indent \defskip medskip \quotes_language english \quotes_times 2 \papercolumns 1 \papersides 2 \paperpagestyle default \layout Standard \begin_inset Formula \( \frac{\textrm{abc}}{\acute{\textrm{e}}\textrm{ff}} \) \end_inset \begin_inset Formula \( \frac{\textrm{abc}}{\textrm{eff}} \) \end_inset \layout Standard \begin_inset Formula \( \frac{\textrm{abc}}{\testac } \) \end_inset \the_end
Re: Bug? Reading math mode formulas
"Nabil" == Nabil Hathout [EMAIL PROTECTED] writes: Nabil Hello, Tanks to Jean-Pierre for the solution he gave me. Note Nabil that since it is not possible to insert directly 8bits Nabil characters in math mode, one have to use \acute, \grave... Nabil commands if one wants to use accentuated characters (to get é Nabil you have to type "\acute e"). See Jean-Pierre's examples below. There have been changes recently (in 1.0.4) allowing to enter 8bit russian characters in mathed. I would think that this works in latin1 too, provided you setup LC_CTYPE correctly. JMarc
Re: Bug? Reading math mode formulas
Hello, Tanks to Jean-Pierre for the solution he gave me. Note that since it is not possible to insert directly 8bits characters in math mode, one have to use \acute, \grave... commands if one wants to use accentuated characters (to get é you have to type "\acute e"). See Jean-Pierre's examples below. --Nabil Jean-Pierre.Chretien writes: > -- > X-Sun-Data-Type: text > X-Sun-Content-Length: 1093 > X-Sun-Charset: X-iso-8859-1 > > > >>From: Nabil Hathout <[EMAIL PROTECTED]> > >>Date: Wed, 29 Sep 1999 17:37:40 +0200 (CEST) > >>To: "Jean-Pierre.Chretien" <[EMAIL PROTECTED]> > >>Cc: [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED], > [EMAIL PROTECTED] > >>Subject: Re: Bug? Reading math mode formulas > >> > >>You mean I don't need to insert a mbox and that inserting textrm > >>directly would be suffisant ? > >> > >>--Nabil > > Just do it: > M-m m \frac M-m m abc... gives > > \begin_inset Formula \( \frac{\textrm{abc}}{\textrm{eff}} \) > \end_inset > (I've replaced g by f to show that the ligature works). > > If you want an accented character, you may have it > > \begin_inset Formula \( \frac{\textrm{abc}}{\acute{\textrm{e}}\textrm{ff}} \) > \end_inset > > but as you can see, this is quite different of the result obtained with > > \begin_inset Formula \( \frac{\textrm{abc}}{\testac } \) > \end_inset > > once > \newcommand{\testac}{\mbox{éff}} > is defined in the preamble. > > If you are a typographic addict, you will make a difference between a math accent > on letter e and a real é letter... > > -- > Jean-Pierre > > -- > X-Sun-Data-Type: text > X-Sun-Content-Length: 1197 > X-Sun-Data-Name: newfile.lyx > X-Sun-Data-Description: newfile.lyx > X-Sun-Charset: X-iso-8859-1 > > #This file was created by Wed Sep 29 17:49:40 1999 > #LyX 1.0 (C) 1995-1999 Matthias Ettrich and the LyX Team > \lyxformat 2.15 > \textclass report > \begin_preamble > \input{preamb_rapport} > \let\realcleardoublepage=\cleardoublepage > > \renewcommand{\cleardoublepage}{\newpage{\pagestyle{empty}\realcleardoublepage}} > > > \newcommand{\testac}{\mbox{éff}} > \end_preamble > \options 12pt,twoside,a4paper > \language french > \inputencoding latin1 > \fontscheme default > \graphics default > \float_placement !ht > \paperfontsize default > \spacing single > \papersize a4paper > \paperpackage a4 > \use_geometry 1 > \use_amsmath 0 > \paperorientation portrait > \leftmargin 30mm > \topmargin 20mm > \rightmargin 30mm > \bottommargin 24mm > \headheight 10mm > \headsep 9mm > \footskip 10mm > \secnumdepth 3 > \tocdepth 3 > \paragraph_separation indent > \defskip medskip > \quotes_language english > \quotes_times 2 > \papercolumns 1 > \papersides 2 > \paperpagestyle default > > \layout Standard > > > \begin_inset Formula \( \frac{\textrm{abc}}{\acute{\textrm{e}}\textrm{ff}} \) > \end_inset > > > \begin_inset Formula \( \frac{\textrm{abc}}{\textrm{eff}} \) > \end_inset > > > \layout Standard > > > \begin_inset Formula \( \frac{\textrm{abc}}{\testac } \) > \end_inset > > > \the_end >
Re: Bug? Reading math mode formulas
> "Nabil" == Nabil Hathout <[EMAIL PROTECTED]> writes: Nabil> Hello, Tanks to Jean-Pierre for the solution he gave me. Note Nabil> that since it is not possible to insert directly 8bits Nabil> characters in math mode, one have to use \acute, \grave... Nabil> commands if one wants to use accentuated characters (to get é Nabil> you have to type "\acute e"). See Jean-Pierre's examples below. There have been changes recently (in 1.0.4) allowing to enter 8bit russian characters in mathed. I would think that this works in latin1 too, provided you setup LC_CTYPE correctly. JMarc
Re: Bug? Reading math mode formulas
"Nabil" == Nabil Hathout [EMAIL PROTECTED] writes: Nabil Hello, I a using LyX 1.0.3 and it seems there is a problem when Nabil Lyx reads a file containing a formula. If you load this file, Nabil the formula is not properly recognized. Is it a known bug ? Hello, How was this equation entered? From LyX or via reLyX? I added Alejandro as Cc: to have his view on the question, since I do not see the problem. For reference, the equation was \begin_inset Formula \( \frac{\mbox {\textrm {abc}}}{\mbox {\textrm {efg}}} \) \end_inset which seems fine to me, and lyx says: Line ~30: Math parse error: Expected {. Maybe you forgot to enclose an argument in {} Line ~30: Math parse error: Unmatching braces Math Panic, expect problems! So, Alejandro, is that a bug, or a formula that LyX is not supposed to read? JMarc
Re: Bug? Reading math mode formulas
From: Nabil Hathout [EMAIL PROTECTED] Date: Wed, 29 Sep 1999 17:20:58 +0200 (CEST) To: Jean-Marc Lasgouttes [EMAIL PROTECTED] Cc: [EMAIL PROTECTED], [EMAIL PROTECTED], LyX Users [EMAIL PROTECTED] Subject: Re: Bug? Reading math mode formulas I inserted a math display box, then "\mbox" then "{" (LyX inserted the closing "}"), then "\textrm" then "{" (automatic insertion of "}") then I typed some characters. I saved the file and spaces where inserted between \textrm and the accolade. This extra space makes LyX unable to read properly the formula. Use of \mbox in math mode, which is often used in plain LateX, should be IMHO avoided in LyX because mathed does not change from math to text mode and back as LaTeX does. In the given example, the roman text sould be typed in in the so called « math text mode » Using a \newcommand offers a workaround when \mbox is really needed, as it has been pointed out recently. Regards -- Jean-Pierre
Re: Bug? Reading math mode formulas
You mean I don't need to insert a mbox and that inserting textrm directly would be suffisant ? --Nabil Jean-Pierre.Chretien writes: From: Nabil Hathout [EMAIL PROTECTED] Date: Wed, 29 Sep 1999 17:20:58 +0200 (CEST) To: Jean-Marc Lasgouttes [EMAIL PROTECTED] Cc: [EMAIL PROTECTED], [EMAIL PROTECTED], LyX Users [EMAIL PROTECTED] Subject: Re: Bug? Reading math mode formulas I inserted a math display box, then "\mbox" then "{" (LyX inserted the closing "}"), then "\textrm" then "{" (automatic insertion of "}") then I typed some characters. I saved the file and spaces where inserted between \textrm and the accolade. This extra space makes LyX unable to read properly the formula. Use of \mbox in math mode, which is often used in plain LateX, should be IMHO avoided in LyX because mathed does not change from math to text mode and back as LaTeX does. In the given example, the roman text sould be typed in in the so called « math text mode » Using a \newcommand offers a workaround when \mbox is really needed, as it has been pointed out recently. Regards -- Jean-Pierre
Re: Bug? Reading math mode formulas
-- X-Sun-Data-Type: text X-Sun-Content-Length: 1093 X-Sun-Charset: X-iso-8859-1 From: Nabil Hathout [EMAIL PROTECTED] Date: Wed, 29 Sep 1999 17:37:40 +0200 (CEST) To: "Jean-Pierre.Chretien" [EMAIL PROTECTED] Cc: [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED] Subject: Re: Bug? Reading math mode formulas You mean I don't need to insert a mbox and that inserting textrm directly would be suffisant ? --Nabil Just do it: M-m m \frac M-m m abc... gives \begin_inset Formula \( \frac{\textrm{abc}}{\textrm{eff}} \) \end_inset (I've replaced g by f to show that the ligature works). If you want an accented character, you may have it \begin_inset Formula \( \frac{\textrm{abc}}{\acute{\textrm{e}}\textrm{ff}} \) \end_inset but as you can see, this is quite different of the result obtained with \begin_inset Formula \( \frac{\textrm{abc}}{\testac } \) \end_inset once \newcommand{\testac}{\mbox{éff}} is defined in the preamble. If you are a typographic addict, you will make a difference between a math accent on letter e and a real é letter... -- Jean-Pierre -- X-Sun-Data-Type: text X-Sun-Content-Length: 1197 X-Sun-Data-Name: newfile.lyx X-Sun-Data-Description: newfile.lyx X-Sun-Charset: X-iso-8859-1 #This file was created by chretien Wed Sep 29 17:49:40 1999 #LyX 1.0 (C) 1995-1999 Matthias Ettrich and the LyX Team \lyxformat 2.15 \textclass report \begin_preamble \input{preamb_rapport} \let\realcleardoublepage=\cleardoublepage \renewcommand{\cleardoublepage}{\newpage{\pagestyle{empty}\realcleardoublepage}} \newcommand{\testac}{\mbox{éff}} \end_preamble \options 12pt,twoside,a4paper \language french \inputencoding latin1 \fontscheme default \graphics default \float_placement !ht \paperfontsize default \spacing single \papersize a4paper \paperpackage a4 \use_geometry 1 \use_amsmath 0 \paperorientation portrait \leftmargin 30mm \topmargin 20mm \rightmargin 30mm \bottommargin 24mm \headheight 10mm \headsep 9mm \footskip 10mm \secnumdepth 3 \tocdepth 3 \paragraph_separation indent \defskip medskip \quotes_language english \quotes_times 2 \papercolumns 1 \papersides 2 \paperpagestyle default \layout Standard \begin_inset Formula \( \frac{\textrm{abc}}{\acute{\textrm{e}}\textrm{ff}} \) \end_inset \begin_inset Formula \( \frac{\textrm{abc}}{\textrm{eff}} \) \end_inset \layout Standard \begin_inset Formula \( \frac{\textrm{abc}}{\testac } \) \end_inset \the_end
Re: Bug? Reading math mode formulas
On 29 Sep 1999, Jean-Marc Lasgouttes wrote: I added Alejandro as Cc: to have his view on the question, since I do not see the problem. For reference, the equation was Thanks, Jean Marc. So, Alejandro, is that a bug, or a formula that LyX is not supposed to read? Since it was inserted from LyX, Mathed should be able to read it or at least to prevent the problem, so it's a bug. But since there are better ways to insert this kind of expressions, as pointed out by other users, this bug has no priority for the current version. Greets, Alejandro
Re: Bug? Reading math mode formulas
"Nabil" == Nabil Hathout [EMAIL PROTECTED] writes: Nabil Hello, I a using LyX 1.0.3 and it seems there is a problem when Nabil Lyx reads a file containing a formula. If you load this file, Nabil the formula is not properly recognized. Is it a known bug ? Hello, How was this equation entered? From LyX or via reLyX? I added Alejandro as Cc: to have his view on the question, since I do not see the problem. For reference, the equation was \begin_inset Formula \( \frac{\mbox {\textrm {abc}}}{\mbox {\textrm {efg}}} \) \end_inset which seems fine to me, and lyx says: Line ~30: Math parse error: Expected {. Maybe you forgot to enclose an argument in {} Line ~30: Math parse error: Unmatching braces Math Panic, expect problems! So, Alejandro, is that a bug, or a formula that LyX is not supposed to read? JMarc
Re: Bug? Reading math mode formulas
From: Nabil Hathout [EMAIL PROTECTED] Date: Wed, 29 Sep 1999 17:20:58 +0200 (CEST) To: Jean-Marc Lasgouttes [EMAIL PROTECTED] Cc: [EMAIL PROTECTED], [EMAIL PROTECTED], LyX Users [EMAIL PROTECTED] Subject: Re: Bug? Reading math mode formulas I inserted a math display box, then "\mbox" then "{" (LyX inserted the closing "}"), then "\textrm" then "{" (automatic insertion of "}") then I typed some characters. I saved the file and spaces where inserted between \textrm and the accolade. This extra space makes LyX unable to read properly the formula. Use of \mbox in math mode, which is often used in plain LateX, should be IMHO avoided in LyX because mathed does not change from math to text mode and back as LaTeX does. In the given example, the roman text sould be typed in in the so called « math text mode » Using a \newcommand offers a workaround when \mbox is really needed, as it has been pointed out recently. Regards -- Jean-Pierre
Re: Bug? Reading math mode formulas
You mean I don't need to insert a mbox and that inserting textrm directly would be suffisant ? --Nabil Jean-Pierre.Chretien writes: From: Nabil Hathout [EMAIL PROTECTED] Date: Wed, 29 Sep 1999 17:20:58 +0200 (CEST) To: Jean-Marc Lasgouttes [EMAIL PROTECTED] Cc: [EMAIL PROTECTED], [EMAIL PROTECTED], LyX Users [EMAIL PROTECTED] Subject: Re: Bug? Reading math mode formulas I inserted a math display box, then "\mbox" then "{" (LyX inserted the closing "}"), then "\textrm" then "{" (automatic insertion of "}") then I typed some characters. I saved the file and spaces where inserted between \textrm and the accolade. This extra space makes LyX unable to read properly the formula. Use of \mbox in math mode, which is often used in plain LateX, should be IMHO avoided in LyX because mathed does not change from math to text mode and back as LaTeX does. In the given example, the roman text sould be typed in in the so called « math text mode » Using a \newcommand offers a workaround when \mbox is really needed, as it has been pointed out recently. Regards -- Jean-Pierre
Re: Bug? Reading math mode formulas
-- X-Sun-Data-Type: text X-Sun-Content-Length: 1093 X-Sun-Charset: X-iso-8859-1 From: Nabil Hathout [EMAIL PROTECTED] Date: Wed, 29 Sep 1999 17:37:40 +0200 (CEST) To: "Jean-Pierre.Chretien" [EMAIL PROTECTED] Cc: [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED] Subject: Re: Bug? Reading math mode formulas You mean I don't need to insert a mbox and that inserting textrm directly would be suffisant ? --Nabil Just do it: M-m m \frac M-m m abc... gives \begin_inset Formula \( \frac{\textrm{abc}}{\textrm{eff}} \) \end_inset (I've replaced g by f to show that the ligature works). If you want an accented character, you may have it \begin_inset Formula \( \frac{\textrm{abc}}{\acute{\textrm{e}}\textrm{ff}} \) \end_inset but as you can see, this is quite different of the result obtained with \begin_inset Formula \( \frac{\textrm{abc}}{\testac } \) \end_inset once \newcommand{\testac}{\mbox{éff}} is defined in the preamble. If you are a typographic addict, you will make a difference between a math accent on letter e and a real é letter... -- Jean-Pierre -- X-Sun-Data-Type: text X-Sun-Content-Length: 1197 X-Sun-Data-Name: newfile.lyx X-Sun-Data-Description: newfile.lyx X-Sun-Charset: X-iso-8859-1 #This file was created by chretien Wed Sep 29 17:49:40 1999 #LyX 1.0 (C) 1995-1999 Matthias Ettrich and the LyX Team \lyxformat 2.15 \textclass report \begin_preamble \input{preamb_rapport} \let\realcleardoublepage=\cleardoublepage \renewcommand{\cleardoublepage}{\newpage{\pagestyle{empty}\realcleardoublepage}} \newcommand{\testac}{\mbox{éff}} \end_preamble \options 12pt,twoside,a4paper \language french \inputencoding latin1 \fontscheme default \graphics default \float_placement !ht \paperfontsize default \spacing single \papersize a4paper \paperpackage a4 \use_geometry 1 \use_amsmath 0 \paperorientation portrait \leftmargin 30mm \topmargin 20mm \rightmargin 30mm \bottommargin 24mm \headheight 10mm \headsep 9mm \footskip 10mm \secnumdepth 3 \tocdepth 3 \paragraph_separation indent \defskip medskip \quotes_language english \quotes_times 2 \papercolumns 1 \papersides 2 \paperpagestyle default \layout Standard \begin_inset Formula \( \frac{\textrm{abc}}{\acute{\textrm{e}}\textrm{ff}} \) \end_inset \begin_inset Formula \( \frac{\textrm{abc}}{\textrm{eff}} \) \end_inset \layout Standard \begin_inset Formula \( \frac{\textrm{abc}}{\testac } \) \end_inset \the_end
Re: Bug? Reading math mode formulas
On 29 Sep 1999, Jean-Marc Lasgouttes wrote: I added Alejandro as Cc: to have his view on the question, since I do not see the problem. For reference, the equation was Thanks, Jean Marc. So, Alejandro, is that a bug, or a formula that LyX is not supposed to read? Since it was inserted from LyX, Mathed should be able to read it or at least to prevent the problem, so it's a bug. But since there are better ways to insert this kind of expressions, as pointed out by other users, this bug has no priority for the current version. Greets, Alejandro
Re: Bug? Reading math mode formulas
> "Nabil" == Nabil Hathout <[EMAIL PROTECTED]> writes: Nabil> Hello, I a using LyX 1.0.3 and it seems there is a problem when Nabil> Lyx reads a file containing a formula. If you load this file, Nabil> the formula is not properly recognized. Is it a known bug ? Hello, How was this equation entered? From LyX or via reLyX? I added Alejandro as Cc: to have his view on the question, since I do not see the problem. For reference, the equation was \begin_inset Formula \( \frac{\mbox {\textrm {abc}}}{\mbox {\textrm {efg}}} \) \end_inset which seems fine to me, and lyx says: Line ~30: Math parse error: Expected {. Maybe you forgot to enclose an argument in {} Line ~30: Math parse error: Unmatching braces Math Panic, expect problems! So, Alejandro, is that a bug, or a formula that LyX is not supposed to read? JMarc
Re: Bug? Reading math mode formulas
>>From: Nabil Hathout <[EMAIL PROTECTED]> >>Date: Wed, 29 Sep 1999 17:20:58 +0200 (CEST) >>To: Jean-Marc Lasgouttes <[EMAIL PROTECTED]> >>Cc: [EMAIL PROTECTED], [EMAIL PROTECTED], LyX Users <[EMAIL PROTECTED]> >>Subject: Re: Bug? Reading math mode formulas >> >>I inserted a math display box, then "\mbox" then "{" (LyX inserted the closing >>"}"), then "\textrm" then "{" (automatic insertion of "}") then I >>typed some characters. I saved the file and spaces where inserted >>between \textrm and the accolade. This extra space makes LyX unable >>to read properly the formula. Use of \mbox in math mode, which is often used in plain LateX, should be IMHO avoided in LyX because mathed does not change from math to text mode and back as LaTeX does. In the given example, the roman text sould be typed in in the so called « math text mode » Using a \newcommand offers a workaround when \mbox is really needed, as it has been pointed out recently. Regards -- Jean-Pierre
Re: Bug? Reading math mode formulas
You mean I don't need to insert a mbox and that inserting textrm directly would be suffisant ? --Nabil Jean-Pierre.Chretien writes: > > >>From: Nabil Hathout <[EMAIL PROTECTED]> > >>Date: Wed, 29 Sep 1999 17:20:58 +0200 (CEST) > >>To: Jean-Marc Lasgouttes <[EMAIL PROTECTED]> > >>Cc: [EMAIL PROTECTED], [EMAIL PROTECTED], LyX Users ><[EMAIL PROTECTED]> > >>Subject: Re: Bug? Reading math mode formulas > >> > >>I inserted a math display box, then "\mbox" then "{" (LyX inserted the closing > >>"}"), then "\textrm" then "{" (automatic insertion of "}") then I > >>typed some characters. I saved the file and spaces where inserted > >>between \textrm and the accolade. This extra space makes LyX unable > >>to read properly the formula. > > Use of \mbox in math mode, which is often used in plain LateX, should be > IMHO avoided in LyX because mathed does not > change from math to text mode and back as LaTeX does. > In the given example, the roman text sould be typed in in the so called > « math text mode » > Using a \newcommand offers a workaround when \mbox is really needed, as > it has been pointed out recently. > > Regards > > -- > Jean-Pierre > > >
Re: Bug? Reading math mode formulas
-- X-Sun-Data-Type: text X-Sun-Content-Length: 1093 X-Sun-Charset: X-iso-8859-1 >>From: Nabil Hathout <[EMAIL PROTECTED]> >>Date: Wed, 29 Sep 1999 17:37:40 +0200 (CEST) >>To: "Jean-Pierre.Chretien" <[EMAIL PROTECTED]> >>Cc: [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED] >>Subject: Re: Bug? Reading math mode formulas >> >>You mean I don't need to insert a mbox and that inserting textrm >>directly would be suffisant ? >> >>--Nabil Just do it: M-m m \frac M-m m abc... gives \begin_inset Formula \( \frac{\textrm{abc}}{\textrm{eff}} \) \end_inset (I've replaced g by f to show that the ligature works). If you want an accented character, you may have it \begin_inset Formula \( \frac{\textrm{abc}}{\acute{\textrm{e}}\textrm{ff}} \) \end_inset but as you can see, this is quite different of the result obtained with \begin_inset Formula \( \frac{\textrm{abc}}{\testac } \) \end_inset once \newcommand{\testac}{\mbox{éff}} is defined in the preamble. If you are a typographic addict, you will make a difference between a math accent on letter e and a real é letter... -- Jean-Pierre -- X-Sun-Data-Type: text X-Sun-Content-Length: 1197 X-Sun-Data-Name: newfile.lyx X-Sun-Data-Description: newfile.lyx X-Sun-Charset: X-iso-8859-1 #This file was created by Wed Sep 29 17:49:40 1999 #LyX 1.0 (C) 1995-1999 Matthias Ettrich and the LyX Team \lyxformat 2.15 \textclass report \begin_preamble \input{preamb_rapport} \let\realcleardoublepage=\cleardoublepage \renewcommand{\cleardoublepage}{\newpage{\pagestyle{empty}\realcleardoublepage}} \newcommand{\testac}{\mbox{éff}} \end_preamble \options 12pt,twoside,a4paper \language french \inputencoding latin1 \fontscheme default \graphics default \float_placement !ht \paperfontsize default \spacing single \papersize a4paper \paperpackage a4 \use_geometry 1 \use_amsmath 0 \paperorientation portrait \leftmargin 30mm \topmargin 20mm \rightmargin 30mm \bottommargin 24mm \headheight 10mm \headsep 9mm \footskip 10mm \secnumdepth 3 \tocdepth 3 \paragraph_separation indent \defskip medskip \quotes_language english \quotes_times 2 \papercolumns 1 \papersides 2 \paperpagestyle default \layout Standard \begin_inset Formula \( \frac{\textrm{abc}}{\acute{\textrm{e}}\textrm{ff}} \) \end_inset \begin_inset Formula \( \frac{\textrm{abc}}{\textrm{eff}} \) \end_inset \layout Standard \begin_inset Formula \( \frac{\textrm{abc}}{\testac } \) \end_inset \the_end
Re: Bug? Reading math mode formulas
On 29 Sep 1999, Jean-Marc Lasgouttes wrote: > I added Alejandro as Cc: to have his view on the question, since I do > not see the problem. For reference, the equation was Thanks, Jean Marc. > So, Alejandro, is that a bug, or a formula that LyX is not supposed to > read? Since it was inserted from LyX, Mathed should be able to read it or at least to prevent the problem, so it's a bug. But since there are better ways to insert this kind of expressions, as pointed out by other users, this bug has no priority for the current version. Greets, Alejandro