Re: Fractions below baseline in 2.3
Le 12/04/2018 à 23:13, Anders Host-Madsen a écrit : I attach two screen shots. At least in my opinion the \pi/2 is too low in the math input mode. This is on Mac. This may be a matter of spacing between the fraction bar and the character. One day I will try to understand the rules implemented in the TeXbook and compare them to what we actually do. I have been doing that for other parts (in 2.3 the spacing between characters), but it takes a lot of time to get right. JMarc
Re: Fractions below baseline in 2.3
Yes, I can see it. The issue is that the \pi in math input mode is smaller than the \pi in latex, which makes it look unbalanced in math input mode. Probably nothing to do about that.
Re: Fractions below baseline in 2.3
On 04/12/2018 05:13 PM, Anders Host-Madsen wrote: I attach two screen shots. At least in my opinion the \pi/2 is too low in the math input mode. This is on Mac.Inline image Inline image The dividing lines for the fractions both look pretty well centered to me. I think the issue may be that the \pi glyph is not as tall as the 2 glyph, so the fraction is visually asymmetric. Try f = k 3/2 and see if you still think it is off kilter. Paul
Re: Fractions below baseline in 2.3
Le 12/04/2018 à 21:21, Anders Host-Madsen a écrit : It seems to me that LyX 2.3 sets fractions slightly too low compared to the baseline when entering equations. Of course once they are typeset, they move to the correct position. But in the math input mode it's almost as though fractions are in subscript mode. Anyone else noticed? I would be interested to have an example file. JMarc
Re: Fractions below baseline in 2.3
On 04/12/2018 03:21 PM, Anders Host-Madsen wrote: It seems to me that LyX 2.3 sets fractions slightly too low compared to the baseline when entering equations. Of course once they are typeset, they move to the correct position. But in the math input mode it's almost as though fractions are in subscript mode. Anyone else noticed? I just tried a couple of equations (one inline, one display) containing fractions in 2.3.0, and they looked fine to me. I'm basing that on the dividing line between numerator and denominator being centered vertically on the line. This was on Linux Mint MATE, Qt 5.5.1. Paul
Re: fractions in display style
Paul A. Rubin wrote: What document class? I just tried the article class, and fractions in display mode appeared (in the DVI) in display style. In fact, I tried \[\frac{a}{b}=\dfrac{a}{b}={\displaystyle \frac{a}{b}}\] (using LyX math insets, not ERT) and got a formula with three identical fractions. Article class, but lyx 1.4.5 \[ is marked as 'bad math environment delimiter' in 1.4 so i cannot check your test -- Pol
Re: fractions in display style - math.bind
Brian Kidd wrote: the \dfrac command will give you a fraction in display style without having to explicitly type \displaystyle. if you want fewer keystrokes, then an alternative to setting the default fraction to be in display style would be to create a custom bind for dfrac. Thank you, i am following your suggestions, but found an issue. Although personal.bind contains \bind_file math.bind in its last lines, file math.bind is not read by lyx. Any ideas? thank you -- Pol
Re: fractions in display style
pol wrote: Paul A. Rubin wrote: What document class? I just tried the article class, and fractions in display mode appeared (in the DVI) in display style. In fact, I tried \[\frac{a}{b}=\dfrac{a}{b}={\displaystyle \frac{a}{b}}\] (using LyX math insets, not ERT) and got a formula with three identical fractions. Article class, but lyx 1.4.5 I don't have 1.4.5, but I repeated the above experiment in 1.4.4, and again I got no differences. LyX file and DVI are attached. \[ is marked as 'bad math environment delimiter' in 1.4 so i cannot check your test I didn't mean that you should insert \[ and \]. What I listed above is the LaTeX produced by LyX. I used Insert-Math-Display formula, which provided the \[ and \] delimiters. Within the math inset, I typed \frac, \dfrac and \displaystyle \frac respectively, filling in the arguments. /Paul newfile1.dvi Description: Binary data newfile1.lyx Description: application/lyx
Re: fractions in display style
Paul A. Rubin wrote: What document class? I just tried the article class, and fractions in display mode appeared (in the DVI) in display style. In fact, I tried \[\frac{a}{b}=\dfrac{a}{b}={\displaystyle \frac{a}{b}}\] (using LyX math insets, not ERT) and got a formula with three identical fractions. Article class, but lyx 1.4.5 \[ is marked as 'bad math environment delimiter' in 1.4 so i cannot check your test -- Pol
Re: fractions in display style - math.bind
Brian Kidd wrote: the \dfrac command will give you a fraction in display style without having to explicitly type \displaystyle. if you want fewer keystrokes, then an alternative to setting the default fraction to be in display style would be to create a custom bind for dfrac. Thank you, i am following your suggestions, but found an issue. Although personal.bind contains \bind_file math.bind in its last lines, file math.bind is not read by lyx. Any ideas? thank you -- Pol
Re: fractions in display style
pol wrote: Paul A. Rubin wrote: What document class? I just tried the article class, and fractions in display mode appeared (in the DVI) in display style. In fact, I tried \[\frac{a}{b}=\dfrac{a}{b}={\displaystyle \frac{a}{b}}\] (using LyX math insets, not ERT) and got a formula with three identical fractions. Article class, but lyx 1.4.5 I don't have 1.4.5, but I repeated the above experiment in 1.4.4, and again I got no differences. LyX file and DVI are attached. \[ is marked as 'bad math environment delimiter' in 1.4 so i cannot check your test I didn't mean that you should insert \[ and \]. What I listed above is the LaTeX produced by LyX. I used Insert-Math-Display formula, which provided the \[ and \] delimiters. Within the math inset, I typed \frac, \dfrac and \displaystyle \frac respectively, filling in the arguments. /Paul newfile1.dvi Description: Binary data newfile1.lyx Description: application/lyx
Re: fractions in display style
Paul A. Rubin wrote: > What document class? I just tried the article class, and fractions in > display mode appeared (in the DVI) in display style. In fact, I tried > > \[\frac{a}{b}=\dfrac{a}{b}={\displaystyle \frac{a}{b}}\] > > (using LyX math insets, not ERT) and got a formula with three identical > fractions. > Article class, but lyx 1.4.5 \[ is marked as 'bad math environment delimiter' in 1.4 so i cannot check your test -- Pol
Re: fractions in display style - math.bind
Brian Kidd wrote: > the \dfrac command will give you a fraction in display style without > having to explicitly type \displaystyle. if you want fewer > keystrokes, then an alternative to setting the default fraction to be > in display style would be to create a custom bind for dfrac. > Thank you, i am following your suggestions, but found an issue. Although personal.bind contains \bind_file math.bind in its last lines, file math.bind is not read by lyx. Any ideas? thank you -- Pol
Re: fractions in display style
pol wrote: Paul A. Rubin wrote: What document class? I just tried the article class, and fractions in display mode appeared (in the DVI) in display style. In fact, I tried \[\frac{a}{b}=\dfrac{a}{b}={\displaystyle \frac{a}{b}}\] (using LyX math insets, not ERT) and got a formula with three identical fractions. Article class, but lyx 1.4.5 I don't have 1.4.5, but I repeated the above experiment in 1.4.4, and again I got no differences. LyX file and DVI are attached. \[ is marked as 'bad math environment delimiter' in 1.4 so i cannot check your test I didn't mean that you should insert \[ and \]. What I listed above is the LaTeX produced by LyX. I used Insert->Math->Display formula, which provided the \[ and \] delimiters. Within the math inset, I typed \frac, \dfrac and \displaystyle \frac respectively, filling in the arguments. /Paul newfile1.dvi Description: Binary data newfile1.lyx Description: application/lyx
Re: fractions in display style
the \dfrac command will give you a fraction in display style without having to explicitly type \displaystyle. if you want fewer keystrokes, then an alternative to setting the default fraction to be in display style would be to create a custom bind for dfrac. hope that helps, -brian On Sep 19, 2007, at 12:19 PM, pol wrote: Fractions in equations in display mode are not in display style. The explicit command \displaystyle before the fraction has to be entered, to render the display style. Can you confirm that? How to set the fraction display style s default, when the math expression is in display mode? thank you -- POl
Re: fractions in display style
pol wrote: Fractions in equations in display mode are not in display style. The explicit command \displaystyle before the fraction has to be entered, to render the display style. Can you confirm that? How to set the fraction display style s default, when the math expression is in display mode? thank you -- POl What document class? I just tried the article class, and fractions in display mode appeared (in the DVI) in display style. In fact, I tried \[\frac{a}{b}=\dfrac{a}{b}={\displaystyle \frac{a}{b}}\] (using LyX math insets, not ERT) and got a formula with three identical fractions. (LyX 1.5.1, Win XP, article class) /Paul
Re: fractions in display style
the \dfrac command will give you a fraction in display style without having to explicitly type \displaystyle. if you want fewer keystrokes, then an alternative to setting the default fraction to be in display style would be to create a custom bind for dfrac. hope that helps, -brian On Sep 19, 2007, at 12:19 PM, pol wrote: Fractions in equations in display mode are not in display style. The explicit command \displaystyle before the fraction has to be entered, to render the display style. Can you confirm that? How to set the fraction display style s default, when the math expression is in display mode? thank you -- POl
Re: fractions in display style
pol wrote: Fractions in equations in display mode are not in display style. The explicit command \displaystyle before the fraction has to be entered, to render the display style. Can you confirm that? How to set the fraction display style s default, when the math expression is in display mode? thank you -- POl What document class? I just tried the article class, and fractions in display mode appeared (in the DVI) in display style. In fact, I tried \[\frac{a}{b}=\dfrac{a}{b}={\displaystyle \frac{a}{b}}\] (using LyX math insets, not ERT) and got a formula with three identical fractions. (LyX 1.5.1, Win XP, article class) /Paul
Re: fractions in display style
the \dfrac command will give you a fraction in display style without having to explicitly type \displaystyle. if you want fewer keystrokes, then an alternative to setting the default fraction to be in display style would be to create a custom bind for dfrac. hope that helps, -brian On Sep 19, 2007, at 12:19 PM, pol wrote: Fractions in equations in display mode are not in display style. The explicit command \displaystyle before the fraction has to be entered, to render the display style. Can you confirm that? How to set the fraction display style s default, when the math expression is in display mode? thank you -- POl
Re: fractions in display style
pol wrote: Fractions in equations in display mode are not in display style. The explicit command \displaystyle before the fraction has to be entered, to render the display style. Can you confirm that? How to set the fraction display style s default, when the math expression is in display mode? thank you -- POl What document class? I just tried the article class, and fractions in display mode appeared (in the DVI) in display style. In fact, I tried \[\frac{a}{b}=\dfrac{a}{b}={\displaystyle \frac{a}{b}}\] (using LyX math insets, not ERT) and got a formula with three identical fractions. (LyX 1.5.1, Win XP, article class) /Paul
Re: Fractions
If you select fraction then in the top box of the fraction select matrix and choose a 2x1 matrix then you get two lines on the top of the fraction. I also chose a 1x1 matrix on the bottom so the format is the same. The only draw back is that the bottom of the fraction is not left aligned. See attched. Geoff On Fri, 8 Apr 2005, Matt Williams wrote: Dear List, I'm trying to insert a (logical) formula, of the form: a,b,c if a,b,c - d - d I'm trying to do it using a fraction, but don't know how to get a double top line. Any ideas? Matt Lyx 1.3.5 on Linux fc3 logic.pdf Description: Adobe PDF document
Re: Fractions
Matt Williams wrote: Dear List, I'm trying to insert a (logical) formula, of the form: a,b,c if a,b,c - d - d I'm trying to do it using a fraction, but don't know how to get a double top line. Any ideas? Matt Lyx 1.3.5 on Linux fc3 In a math display environment, you can put a 4x1 array, put your formulas in the first, second and fourth cells and \hrulefill in the third row. I'm not sure you'll like the vertical spacing, though. (If you're not wedded to a math environment, you could use a 3x1 table and turn off all borders except the bottom of the second row.) -- Paul
Re: Fractions
If you select fraction then in the top box of the fraction select matrix and choose a 2x1 matrix then you get two lines on the top of the fraction. I also chose a 1x1 matrix on the bottom so the format is the same. The only draw back is that the bottom of the fraction is not left aligned. See attched. Geoff On Fri, 8 Apr 2005, Matt Williams wrote: Dear List, I'm trying to insert a (logical) formula, of the form: a,b,c if a,b,c - d - d I'm trying to do it using a fraction, but don't know how to get a double top line. Any ideas? Matt Lyx 1.3.5 on Linux fc3 logic.pdf Description: Adobe PDF document
Re: Fractions
Matt Williams wrote: Dear List, I'm trying to insert a (logical) formula, of the form: a,b,c if a,b,c - d - d I'm trying to do it using a fraction, but don't know how to get a double top line. Any ideas? Matt Lyx 1.3.5 on Linux fc3 In a math display environment, you can put a 4x1 array, put your formulas in the first, second and fourth cells and \hrulefill in the third row. I'm not sure you'll like the vertical spacing, though. (If you're not wedded to a math environment, you could use a 3x1 table and turn off all borders except the bottom of the second row.) -- Paul
Re: Fractions
If you select fraction then in the top box of the fraction select matrix and choose a 2x1 matrix then you get two lines on the top of the fraction. I also chose a 1x1 matrix on the bottom so the format is the same. The only draw back is that the bottom of the fraction is not left aligned. See attched. Geoff On Fri, 8 Apr 2005, Matt Williams wrote: Dear List, I'm trying to insert a (logical) formula, of the form: a,b,c if a,b,c -> d - d I'm trying to do it using a fraction, but don't know how to get a double top line. Any ideas? Matt Lyx 1.3.5 on Linux fc3 logic.pdf Description: Adobe PDF document
Re: Fractions
Matt Williams wrote: Dear List, I'm trying to insert a (logical) formula, of the form: a,b,c if a,b,c -> d - d I'm trying to do it using a fraction, but don't know how to get a double top line. Any ideas? Matt Lyx 1.3.5 on Linux fc3 In a math display environment, you can put a 4x1 array, put your formulas in the first, second and fourth cells and \hrulefill in the third row. I'm not sure you'll like the vertical spacing, though. (If you're not wedded to a math environment, you could use a 3x1 table and turn off all borders except the bottom of the second row.) -- Paul
Re: Fractions in mathmode
click on the button under +- (on the right of the arrows) the first box is summation R - Original Message - From: Kent Kostuk [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, December 08, 2001 1:59 PM Subject: Fractions in mathmode Is there a quick keyboard equivalent to the fractions button in the math panel. I can't seem to find an ERT fractional equivalent to the sigma \sigma. Is there one? Kent Kostuk [EMAIL PROTECTED]
Re: Fractions in mathmode
Le Samedi 8 Décembre 2001 23:54, vous avez écrit : Here is what I am trying to do. I want to type (a+1)/(a+2) in a display formula without having to use the mouse to select the fraction button in the math panel. I was just looking for a quicker way to doing things. Am I stuck with the math panel? alt+m f will insert a fraction, you should have a look at all the keyboard link defined in the /usr/share/lyx/bind directory (I think the file used by LyX is defined in the configuration dialog), there is a math.bind file in there. You can of course define your own binding by copying then modifying the files in your ~/.lyx/bin directory. For example here are bindings I defined in the math.bind file \bind M-m b math-delim langle | \bind M-m k math-delim | rangle they allow me to have immediately the bra | and ket | notation used in quantum mechanics ;-) -- Rien ni personne n'a tout à fait tort : même une horloge arrêtée a raison deux fois par jour. John Steinbeck Renaud MICHEL
Re: Fractions in mathmode
Kent Kostuk wrote: Here is what I am trying to do. I want to type (a+1)/(a+2) in a display formula without having to use the mouse to select the fraction button in the math panel. I was just looking for a quicker way to doing things. Am I stuck with the math panel? open mathbox with alt-m-d for a displayed equation and than \frac with a space gives what you want. HErbert -- http://www.lyx.org/help/
Re: Fractions in mathmode
click on the button under +- (on the right of the arrows) the first box is summation R - Original Message - From: Kent Kostuk [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, December 08, 2001 1:59 PM Subject: Fractions in mathmode Is there a quick keyboard equivalent to the fractions button in the math panel. I can't seem to find an ERT fractional equivalent to the sigma \sigma. Is there one? Kent Kostuk [EMAIL PROTECTED]
Re: Fractions in mathmode
Le Samedi 8 Décembre 2001 23:54, vous avez écrit : Here is what I am trying to do. I want to type (a+1)/(a+2) in a display formula without having to use the mouse to select the fraction button in the math panel. I was just looking for a quicker way to doing things. Am I stuck with the math panel? alt+m f will insert a fraction, you should have a look at all the keyboard link defined in the /usr/share/lyx/bind directory (I think the file used by LyX is defined in the configuration dialog), there is a math.bind file in there. You can of course define your own binding by copying then modifying the files in your ~/.lyx/bin directory. For example here are bindings I defined in the math.bind file \bind M-m b math-delim langle | \bind M-m k math-delim | rangle they allow me to have immediately the bra | and ket | notation used in quantum mechanics ;-) -- Rien ni personne n'a tout à fait tort : même une horloge arrêtée a raison deux fois par jour. John Steinbeck Renaud MICHEL
Re: Fractions in mathmode
Kent Kostuk wrote: Here is what I am trying to do. I want to type (a+1)/(a+2) in a display formula without having to use the mouse to select the fraction button in the math panel. I was just looking for a quicker way to doing things. Am I stuck with the math panel? open mathbox with alt-m-d for a displayed equation and than \frac with a space gives what you want. HErbert -- http://www.lyx.org/help/
Re: Fractions in mathmode
click on the button under +- (on the right of the arrows) the first box is summation R - Original Message - From: "Kent Kostuk" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, December 08, 2001 1:59 PM Subject: Fractions in mathmode > Is there a quick keyboard equivalent to the fractions "button" in the math > panel. I can't seem to find an ERT fractional equivalent to the sigma > \sigma. Is there one? > > Kent Kostuk > [EMAIL PROTECTED] > >
Re: Fractions in mathmode
Le Samedi 8 Décembre 2001 23:54, vous avez écrit : > Here is what I am trying to do. I want to type (a+1)/(a+2) in a display > formula without having to use the mouse to select the fraction button in > the math panel. I was just looking for a quicker way to doing things. Am I > stuck with the math panel? alt+m f will insert a fraction, you should have a look at all the keyboard link defined in the /usr/share/lyx/bind directory (I think the file used by LyX is defined in the configuration dialog), there is a math.bind file in there. You can of course define your own binding by copying then modifying the files in your ~/.lyx/bin directory. For example here are bindings I defined in the math.bind file \bind "M-m b" "math-delim langle |" \bind "M-m k" "math-delim | rangle" they allow me to have immediately the "bra" <| and "ket" |> notation used in quantum mechanics ;-) -- Rien ni personne n'a tout à fait tort : même une horloge arrêtée a raison deux fois par jour. John Steinbeck Renaud MICHEL
Re: Fractions in mathmode
Kent Kostuk wrote: > Here is what I am trying to do. I want to type (a+1)/(a+2) in a display > formula without having to use the mouse to select the fraction button in > the math panel. I was just looking for a quicker way to doing things. Am I > stuck with the math panel? open mathbox with alt-m-d for a displayed equation and than \frac with a space gives what you want. HErbert -- http://www.lyx.org/help/
Re: Fractions
Egbert J.W. Boers wrote: Is there a way to make fractures like 6/7 look like ¾? -- http://www.lyx.org/help/mathmode.html#nicefrac HErbert
Re: Fractions
Egbert J.W. Boers wrote: Is there a way to make fractures like 6/7 look like ¾? -- http://www.lyx.org/help/mathmode.html#nicefrac HErbert
Re: Fractions
"Egbert J.W. Boers" wrote: > > Is there a way to make fractures like 6/7 look like ¾? -- http://www.lyx.org/help/mathmode.html#nicefrac HErbert