Re: Showing reduction(cancelling) of fractions in maths display mode

2019-05-24 Thread Paul A. Rubin

On 5/24/19 1:04 AM, Anthony wrote:


I am trying to show my students the idea of reducing (cancelling) 
fractions.


I know of the package named cancel, and this works in ERT mode.

I really don’t want to use ERT if I can help it.

Of course, I would like it to work in the maths-display mode.


This is currently supported in LyX. With the cursor inside a math inset, 
look on the math toolbar (the one that gives you font choices, relation 
symbols etc.) for an icon that looks like the outline of a square with a 
hat over it. (The tool tip for it is "Frame decorations".) Click that, 
and near the bottom you'll see all the commands from the cancel package 
implemented.


Paul



Showing reduction(cancelling) of fractions in maths display mode

2019-05-23 Thread Anthony
I am trying to show my students the idea of reducing (cancelling) fractions.
I know of the package named cancel, and this works in ERT mode.
I really don’t want to use ERT if I can help it.
Of course, I would like it to work in the maths-display mode.



Kind Regards,
Anthony

Sent from Mail for Windows 10



Re: Fractions below baseline in 2.3

2018-04-13 Thread Jean-Marc Lasgouttes

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

2018-04-12 Thread Anders Host-Madsen
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

2018-04-12 Thread Paul A. Rubin

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

2018-04-12 Thread Jean-Marc Lasgouttes

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

2018-04-12 Thread Paul A. Rubin

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



Fractions below baseline in 2.3

2018-04-12 Thread Anders Host-Madsen
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?

Re: fractions in display style

2007-09-20 Thread pol
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

2007-09-20 Thread pol
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

2007-09-20 Thread Paul A. Rubin

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

2007-09-20 Thread pol
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

2007-09-20 Thread pol
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

2007-09-20 Thread Paul A. Rubin

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

2007-09-20 Thread pol
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

2007-09-20 Thread pol
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

2007-09-20 Thread Paul A. Rubin

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


fractions in display style

2007-09-19 Thread pol
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

2007-09-19 Thread Brian Kidd
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

2007-09-19 Thread Paul A. Rubin

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



fractions in display style

2007-09-19 Thread pol
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

2007-09-19 Thread Brian Kidd
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

2007-09-19 Thread Paul A. Rubin

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



fractions in display style

2007-09-19 Thread pol
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

2007-09-19 Thread Brian Kidd
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

2007-09-19 Thread Paul A. Rubin

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: display in lyx fractions like $\frac{1}{3}$ ?

2007-08-14 Thread Helge Hafting

Jeremy C. Reed wrote:
Some fractions are available, like 


� to � cup parmesan cheese

(for those who don't have this character, it says 1/2 to 3/4 cup

Anyways some characters don't appear to be available (even though I found 
some entities for them), so I am using ERT for example:


$\frac{1}{3}$

How can I get those displayed as characters in lyx so it is convenient for 
my wife to read her book in lyx while she works on it?
  

You don't need to use ERT for this - as LyX supports fractions.
Use math mode for writing them, LyX will then show
something like:
1
-
3

on screen. For older versions of LyX, Insert-Math-Math Panel
There you'll find a fraction button that insert a fraction in the document.
Then you fill out the fraction with whatever numbers you need. This
means you can even write 2/9 or 5/13 for which no single symbol exists.

It is easier  better with the recent lyx-1.5:
Use the view menu and enable the math toolbar.
There you'll see a fraction button, easily available. And it
offers several styles of fractions - both the style
I showed above (with a horizontal bar) and
the prettier 1/3 with a slanted bar. 


Either kind of fraction will show up correctly on the screen,
so your wife who don't enjoy latex syntax can read easily.

ERT boxes with $\frac{1}{3}$ can be converted to
LyX native format this way:
1. position the cursor at the leftmost position in the ERT box,
   and press backspace. Note that the ERT disappear, and
   $\frac{1}{3}$ becomes normal text.
2. Mark the $\frac{1}{3}$ part, then press ctrl+m 
   It is now converted to lyx-native math, which is easy to read.


If you print this, the latex generated will be the same, it is
only the in-LyX presentation that improves.

Helge Hafting






Re: display in lyx fractions like $\frac{1}{3}$ ?

2007-08-14 Thread Helge Hafting

Jeremy C. Reed wrote:
Some fractions are available, like 


� to � cup parmesan cheese

(for those who don't have this character, it says 1/2 to 3/4 cup

Anyways some characters don't appear to be available (even though I found 
some entities for them), so I am using ERT for example:


$\frac{1}{3}$

How can I get those displayed as characters in lyx so it is convenient for 
my wife to read her book in lyx while she works on it?
  

You don't need to use ERT for this - as LyX supports fractions.
Use math mode for writing them, LyX will then show
something like:
1
-
3

on screen. For older versions of LyX, Insert-Math-Math Panel
There you'll find a fraction button that insert a fraction in the document.
Then you fill out the fraction with whatever numbers you need. This
means you can even write 2/9 or 5/13 for which no single symbol exists.

It is easier  better with the recent lyx-1.5:
Use the view menu and enable the math toolbar.
There you'll see a fraction button, easily available. And it
offers several styles of fractions - both the style
I showed above (with a horizontal bar) and
the prettier 1/3 with a slanted bar. 


Either kind of fraction will show up correctly on the screen,
so your wife who don't enjoy latex syntax can read easily.

ERT boxes with $\frac{1}{3}$ can be converted to
LyX native format this way:
1. position the cursor at the leftmost position in the ERT box,
   and press backspace. Note that the ERT disappear, and
   $\frac{1}{3}$ becomes normal text.
2. Mark the $\frac{1}{3}$ part, then press ctrl+m 
   It is now converted to lyx-native math, which is easy to read.


If you print this, the latex generated will be the same, it is
only the in-LyX presentation that improves.

Helge Hafting






Re: display in lyx fractions like $\frac{1}{3}$ ?

2007-08-14 Thread Helge Hafting

Jeremy C. Reed wrote:
Some fractions are available, like 


� to � cup parmesan cheese

(for those who don't have this character, it says "1/2 to 3/4 cup"

Anyways some characters don't appear to be available (even though I found 
some entities for them), so I am using ERT for example:


$\frac{1}{3}$

How can I get those displayed as characters in lyx so it is convenient for 
my wife to read her book in lyx while she works on it?
  

You don't need to use ERT for this - as LyX supports fractions.
Use math mode for writing them, LyX will then show
something like:
1
-
3

on screen. For older versions of LyX, "Insert->Math->Math Panel"
There you'll find a fraction button that insert a fraction in the document.
Then you fill out the fraction with whatever numbers you need. This
means you can even write "2/9" or "5/13" for which no single symbol exists.

It is easier & better with the recent lyx-1.5:
Use the "view" menu and enable the math toolbar.
There you'll see a fraction button, easily available. And it
offers several styles of fractions - both the style
I showed above (with a horizontal bar) and
the prettier "1/3" with a slanted bar. 


Either kind of fraction will show up correctly on the screen,
so your wife who don't enjoy latex syntax can read easily.

ERT boxes with $\frac{1}{3}$ can be converted to
LyX native format this way:
1. position the cursor at the leftmost position in the ERT box,
   and press backspace. Note that the ERT disappear, and
   $\frac{1}{3}$ becomes "normal text".
2. Mark the "$\frac{1}{3}$ part, then press ctrl+m 
   It is now converted to lyx-native math, which is easy to read.


If you print this, the latex generated will be the same, it is
only the in-LyX presentation that improves.

Helge Hafting






display in lyx fractions like $\frac{1}{3}$ ?

2007-08-13 Thread Jeremy C. Reed
Some fractions are available, like 

? to ? cup parmesan cheese

(for those who don't have this character, it says 1/2 to 3/4 cup

Anyways some characters don't appear to be available (even though I found 
some entities for them), so I am using ERT for example:

$\frac{1}{3}$

How can I get those displayed as characters in lyx so it is convenient for 
my wife to read her book in lyx while she works on it?

Reading the ERT for me is fine.

  Jeremy C. Reed

RE: display in lyx fractions like $\frac{1}{3}$ ?

2007-08-13 Thread Alexander Sklar
I think you can use the nicefrac command in the units package, e.g.
\nicefrac{3}{4} will display ¾. You can activate the preview so that it's
rendered as you type.

Alexander Sklar

-Original Message-
From: Jeremy C. Reed [mailto:[EMAIL PROTECTED] 
Sent: Lunes, 13 de Agosto de 2007 06:47 p.m.
To: [EMAIL PROTECTED]
Subject: display in lyx fractions like $\frac{1}{3}$ ?

Some fractions are available, like 

½ to ¾ cup parmesan cheese

(for those who don't have this character, it says 1/2 to 3/4 cup

Anyways some characters don't appear to be available (even though I found 
some entities for them), so I am using ERT for example:

$\frac{1}{3}$

How can I get those displayed as characters in lyx so it is convenient for 
my wife to read her book in lyx while she works on it?

Reading the ERT for me is fine.

  Jeremy C. Reed



Re: display in lyx fractions like $\frac{1}{3}$ ?

2007-08-13 Thread Paul A. Rubin

Jeremy C. Reed wrote:
Some fractions are available, like 


? to ? cup parmesan cheese

(for those who don't have this character, it says 1/2 to 3/4 cup

Anyways some characters don't appear to be available (even though I found 
some entities for them), so I am using ERT for example:


$\frac{1}{3}$

How can I get those displayed as characters in lyx so it is convenient for 
my wife to read her book in lyx while she works on it?


Reading the ERT for me is fine.



As Alexander said, the best bet may be to use instant preview (assuming 
that the characters only appear in math insets).


The following alternative works on Windows and should (I think) work on 
Linux, give or take the details.


I use Times New Roman for the main (Roman) screen font.  To write 1/4, 
for instance, as a single character in plain text, I can either find it 
in the Windows character map applet and paste it into LyX, or I can type 
the keyboard scan code for it (in this case, Alt+0188 -- which I learned 
from the character map).  You can probably map the command self-insert 
1/4 (replacing 1/4 with the character) to a key combination in your 
bind file if you are so inclined.


All told (and multiplied by however many special characters you need), 
this may be more work than it's worth.


/Paul



Re: display in lyx fractions like $\frac{1}{3}$ ?

2007-08-13 Thread Jeremy C. Reed
On Mon, 13 Aug 2007, Paul A. Rubin wrote:

 I use Times New Roman for the main (Roman) screen font.  To write 1/4, 
 for instance, as a single character in plain text, I can either find it 
 in the Windows character map applet and paste it into LyX, or I can type 
 the keyboard scan code for it (in this case, Alt+0188 -- which I learned 
 from the character map).  You can probably map the command self-insert 
 1/4 (replacing 1/4 with the character) to a key combination in your 
 bind file if you are so inclined.

I don't use Windows. But my problem is that I can't find all the fractions 
I need with existing characters. I do have 1/4, 1/2, and 3/4 already. But 
I don't have:

1/3
1/5
1/8
2/3

I can't find those. (If you have those on a Unix system, please email 
those characters to me.)

For now, I just use:

$\frac{1}{3}$
$\frac{1}{5}$
$\frac{1}{8}$
$\frac{2}{3}$


 All told (and multiplied by however many special characters you need), this
 may be more work than it's worth.

  Jeremy C. Reed


display in lyx fractions like $\frac{1}{3}$ ?

2007-08-13 Thread Jeremy C. Reed
Some fractions are available, like 

? to ? cup parmesan cheese

(for those who don't have this character, it says 1/2 to 3/4 cup

Anyways some characters don't appear to be available (even though I found 
some entities for them), so I am using ERT for example:

$\frac{1}{3}$

How can I get those displayed as characters in lyx so it is convenient for 
my wife to read her book in lyx while she works on it?

Reading the ERT for me is fine.

  Jeremy C. Reed

RE: display in lyx fractions like $\frac{1}{3}$ ?

2007-08-13 Thread Alexander Sklar
I think you can use the nicefrac command in the units package, e.g.
\nicefrac{3}{4} will display ¾. You can activate the preview so that it's
rendered as you type.

Alexander Sklar

-Original Message-
From: Jeremy C. Reed [mailto:[EMAIL PROTECTED] 
Sent: Lunes, 13 de Agosto de 2007 06:47 p.m.
To: [EMAIL PROTECTED]
Subject: display in lyx fractions like $\frac{1}{3}$ ?

Some fractions are available, like 

½ to ¾ cup parmesan cheese

(for those who don't have this character, it says 1/2 to 3/4 cup

Anyways some characters don't appear to be available (even though I found 
some entities for them), so I am using ERT for example:

$\frac{1}{3}$

How can I get those displayed as characters in lyx so it is convenient for 
my wife to read her book in lyx while she works on it?

Reading the ERT for me is fine.

  Jeremy C. Reed



Re: display in lyx fractions like $\frac{1}{3}$ ?

2007-08-13 Thread Paul A. Rubin

Jeremy C. Reed wrote:
Some fractions are available, like 


? to ? cup parmesan cheese

(for those who don't have this character, it says 1/2 to 3/4 cup

Anyways some characters don't appear to be available (even though I found 
some entities for them), so I am using ERT for example:


$\frac{1}{3}$

How can I get those displayed as characters in lyx so it is convenient for 
my wife to read her book in lyx while she works on it?


Reading the ERT for me is fine.



As Alexander said, the best bet may be to use instant preview (assuming 
that the characters only appear in math insets).


The following alternative works on Windows and should (I think) work on 
Linux, give or take the details.


I use Times New Roman for the main (Roman) screen font.  To write 1/4, 
for instance, as a single character in plain text, I can either find it 
in the Windows character map applet and paste it into LyX, or I can type 
the keyboard scan code for it (in this case, Alt+0188 -- which I learned 
from the character map).  You can probably map the command self-insert 
1/4 (replacing 1/4 with the character) to a key combination in your 
bind file if you are so inclined.


All told (and multiplied by however many special characters you need), 
this may be more work than it's worth.


/Paul



Re: display in lyx fractions like $\frac{1}{3}$ ?

2007-08-13 Thread Jeremy C. Reed
On Mon, 13 Aug 2007, Paul A. Rubin wrote:

 I use Times New Roman for the main (Roman) screen font.  To write 1/4, 
 for instance, as a single character in plain text, I can either find it 
 in the Windows character map applet and paste it into LyX, or I can type 
 the keyboard scan code for it (in this case, Alt+0188 -- which I learned 
 from the character map).  You can probably map the command self-insert 
 1/4 (replacing 1/4 with the character) to a key combination in your 
 bind file if you are so inclined.

I don't use Windows. But my problem is that I can't find all the fractions 
I need with existing characters. I do have 1/4, 1/2, and 3/4 already. But 
I don't have:

1/3
1/5
1/8
2/3

I can't find those. (If you have those on a Unix system, please email 
those characters to me.)

For now, I just use:

$\frac{1}{3}$
$\frac{1}{5}$
$\frac{1}{8}$
$\frac{2}{3}$


 All told (and multiplied by however many special characters you need), this
 may be more work than it's worth.

  Jeremy C. Reed


display in lyx fractions like $\frac{1}{3}$ ?

2007-08-13 Thread Jeremy C. Reed
Some fractions are available, like 

? to ? cup parmesan cheese

(for those who don't have this character, it says "1/2 to 3/4 cup"

Anyways some characters don't appear to be available (even though I found 
some entities for them), so I am using ERT for example:

$\frac{1}{3}$

How can I get those displayed as characters in lyx so it is convenient for 
my wife to read her book in lyx while she works on it?

Reading the ERT for me is fine.

  Jeremy C. Reed

RE: display in lyx fractions like $\frac{1}{3}$ ?

2007-08-13 Thread Alexander Sklar
I think you can use the nicefrac command in the units package, e.g.
\nicefrac{3}{4} will display ¾. You can activate the preview so that it's
rendered as you type.

Alexander Sklar

-Original Message-
From: Jeremy C. Reed [mailto:[EMAIL PROTECTED] 
Sent: Lunes, 13 de Agosto de 2007 06:47 p.m.
To: [EMAIL PROTECTED]
Subject: display in lyx fractions like $\frac{1}{3}$ ?

Some fractions are available, like 

½ to ¾ cup parmesan cheese

(for those who don't have this character, it says "1/2 to 3/4 cup"

Anyways some characters don't appear to be available (even though I found 
some entities for them), so I am using ERT for example:

$\frac{1}{3}$

How can I get those displayed as characters in lyx so it is convenient for 
my wife to read her book in lyx while she works on it?

Reading the ERT for me is fine.

  Jeremy C. Reed



Re: display in lyx fractions like $\frac{1}{3}$ ?

2007-08-13 Thread Paul A. Rubin

Jeremy C. Reed wrote:
Some fractions are available, like 


? to ? cup parmesan cheese

(for those who don't have this character, it says "1/2 to 3/4 cup"

Anyways some characters don't appear to be available (even though I found 
some entities for them), so I am using ERT for example:


$\frac{1}{3}$

How can I get those displayed as characters in lyx so it is convenient for 
my wife to read her book in lyx while she works on it?


Reading the ERT for me is fine.



As Alexander said, the best bet may be to use instant preview (assuming 
that the characters only appear in math insets).


The following alternative works on Windows and should (I think) work on 
Linux, give or take the details.


I use Times New Roman for the main (Roman) screen font.  To write 1/4, 
for instance, as a single character in plain text, I can either find it 
in the Windows character map applet and paste it into LyX, or I can type 
the keyboard scan code for it (in this case, Alt+0188 -- which I learned 
from the character map).  You can probably map the command "self-insert 
1/4" (replacing 1/4 with the character) to a key combination in your 
bind file if you are so inclined.


All told (and multiplied by however many special characters you need), 
this may be more work than it's worth.


/Paul



Re: display in lyx fractions like $\frac{1}{3}$ ?

2007-08-13 Thread Jeremy C. Reed
On Mon, 13 Aug 2007, Paul A. Rubin wrote:

> I use Times New Roman for the main (Roman) screen font.  To write 1/4, 
> for instance, as a single character in plain text, I can either find it 
> in the Windows character map applet and paste it into LyX, or I can type 
> the keyboard scan code for it (in this case, Alt+0188 -- which I learned 
> from the character map).  You can probably map the command "self-insert 
> 1/4" (replacing 1/4 with the character) to a key combination in your 
> bind file if you are so inclined.

I don't use Windows. But my problem is that I can't find all the fractions 
I need with existing characters. I do have 1/4, 1/2, and 3/4 already. But 
I don't have:

1/3
1/5
1/8
2/3

I can't find those. (If you have those on a Unix system, please email 
those characters to me.)

For now, I just use:

$\frac{1}{3}$
$\frac{1}{5}$
$\frac{1}{8}$
$\frac{2}{3}$


> All told (and multiplied by however many special characters you need), this
> may be more work than it's worth.

  Jeremy C. Reed


Fractions

2005-04-08 Thread Matt Williams
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



Re: Fractions

2005-04-08 Thread Geoffrey Lloyd
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

2005-04-08 Thread Paul A. Rubin
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


Fractions

2005-04-08 Thread Matt Williams
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



Re: Fractions

2005-04-08 Thread Geoffrey Lloyd
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

2005-04-08 Thread Paul A. Rubin
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


Fractions

2005-04-08 Thread Matt Williams
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



Re: Fractions

2005-04-08 Thread Geoffrey Lloyd
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

2005-04-08 Thread Paul A. Rubin
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

2001-12-08 Thread Rem

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

2001-12-08 Thread Renaud MICHEL

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

2001-12-08 Thread Herbert Voss



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

2001-12-08 Thread Rem

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

2001-12-08 Thread Renaud MICHEL

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

2001-12-08 Thread Herbert Voss



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

2001-12-08 Thread Rem

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

2001-12-08 Thread Renaud MICHEL

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

2001-12-08 Thread Herbert Voss



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/




Fractions

2001-11-13 Thread Egbert J.W. Boers

Is there a way to make fractures like 6/7 look like ¾?

Egbert



Re: Fractions

2001-11-13 Thread Herbert Voss

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



Fractions

2001-11-13 Thread Egbert J.W. Boers

Is there a way to make fractures like 6/7 look like ¾?

Egbert



Re: Fractions

2001-11-13 Thread Herbert Voss

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



Fractions

2001-11-13 Thread Egbert J.W. Boers

Is there a way to make fractures like 6/7 look like ¾?

Egbert



Re: Fractions

2001-11-13 Thread Herbert Voss

"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



displaystyle applied to fractions in a matrix

2001-09-13 Thread Michael Koundouros

Hi,

I want the fractions within my matrix to have displaystyle. I am using the
following command in my preamble:

\newcommand{\bigmath}[1]{\displaystyle{#1}}

once in math-mode I create my matrix and use the command
\bigmath{fraction}  in each cell.

viewing the ps file shows that fractions above one another are touching. How
do you increase the vertical distance between cells??

Or better yet is there an easier way of accomplishing the task of
attributing the matrix components with displaystyle ???

thanks for the advice

Michael




Re: displaystyle applied to fractions in a matrix

2001-09-13 Thread Dekel Tsur

On Thu, Sep 13, 2001 at 11:12:16AM +0100, Michael Koundouros wrote:
 I want the fractions within my matrix to have displaystyle. I am using the
 following command in my preamble:
 
 \newcommand{\bigmath}[1]{\displaystyle{#1}}
 
 once in math-mode I create my matrix and use the command
 \bigmath{fraction}  in each cell.
 
 viewing the ps file shows that fractions above one another are touching. How
 do you increase the vertical distance between cells??

\def\arraystretch{1.2}

 Or better yet is there an easier way of accomplishing the task of
 attributing the matrix components with displaystyle ???

Put
{\everymath{\displaystyle\everymath{}}\def\arraystretch{1.2}
before the matrix, and } after it.
You can also redefine the array environment, if all your matrices need to
use displaystyle.



Re: displaystyle applied to fractions in a matrix

2001-09-13 Thread Herbert Voss

Michael Koundouros wrote:
 
 I want the fractions within my matrix to have displaystyle. I am using the
 following command in my preamble:
 
 \newcommand{\bigmath}[1]{\displaystyle{#1}}
 
 once in math-mode I create my matrix and use the command
 \bigmath{fraction}  in each cell.
 
 viewing the ps file shows that fractions above one another are touching. How
 do you increase the vertical distance between cells??

choose the align-environment instead of the array one.

Herbert

-- 
http://www.educat.hu-berlin.de/~voss/lyx/



displaystyle applied to fractions in a matrix

2001-09-13 Thread Michael Koundouros

Hi,

I want the fractions within my matrix to have displaystyle. I am using the
following command in my preamble:

\newcommand{\bigmath}[1]{\displaystyle{#1}}

once in math-mode I create my matrix and use the command
\bigmath{fraction}  in each cell.

viewing the ps file shows that fractions above one another are touching. How
do you increase the vertical distance between cells??

Or better yet is there an easier way of accomplishing the task of
attributing the matrix components with displaystyle ???

thanks for the advice

Michael




Re: displaystyle applied to fractions in a matrix

2001-09-13 Thread Dekel Tsur

On Thu, Sep 13, 2001 at 11:12:16AM +0100, Michael Koundouros wrote:
 I want the fractions within my matrix to have displaystyle. I am using the
 following command in my preamble:
 
 \newcommand{\bigmath}[1]{\displaystyle{#1}}
 
 once in math-mode I create my matrix and use the command
 \bigmath{fraction}  in each cell.
 
 viewing the ps file shows that fractions above one another are touching. How
 do you increase the vertical distance between cells??

\def\arraystretch{1.2}

 Or better yet is there an easier way of accomplishing the task of
 attributing the matrix components with displaystyle ???

Put
{\everymath{\displaystyle\everymath{}}\def\arraystretch{1.2}
before the matrix, and } after it.
You can also redefine the array environment, if all your matrices need to
use displaystyle.



Re: displaystyle applied to fractions in a matrix

2001-09-13 Thread Herbert Voss

Michael Koundouros wrote:
 
 I want the fractions within my matrix to have displaystyle. I am using the
 following command in my preamble:
 
 \newcommand{\bigmath}[1]{\displaystyle{#1}}
 
 once in math-mode I create my matrix and use the command
 \bigmath{fraction}  in each cell.
 
 viewing the ps file shows that fractions above one another are touching. How
 do you increase the vertical distance between cells??

choose the align-environment instead of the array one.

Herbert

-- 
http://www.educat.hu-berlin.de/~voss/lyx/



displaystyle applied to fractions in a matrix

2001-09-13 Thread Michael Koundouros

Hi,

I want the fractions within my matrix to have displaystyle. I am using the
following command in my preamble:

\newcommand{\bigmath}[1]{\displaystyle{#1}}

once in math-mode I create my matrix and use the command
\bigmath{}  in each cell.

viewing the ps file shows that fractions above one another are touching. How
do you increase the vertical distance between cells??

Or better yet is there an easier way of accomplishing the task of
attributing the matrix components with displaystyle ???

thanks for the advice

Michael




Re: displaystyle applied to fractions in a matrix

2001-09-13 Thread Dekel Tsur

On Thu, Sep 13, 2001 at 11:12:16AM +0100, Michael Koundouros wrote:
> I want the fractions within my matrix to have displaystyle. I am using the
> following command in my preamble:
> 
> \newcommand{\bigmath}[1]{\displaystyle{#1}}
> 
> once in math-mode I create my matrix and use the command
> \bigmath{}  in each cell.
> 
> viewing the ps file shows that fractions above one another are touching. How
> do you increase the vertical distance between cells??

\def\arraystretch{1.2}

> Or better yet is there an easier way of accomplishing the task of
> attributing the matrix components with displaystyle ???

Put
{\everymath{\displaystyle\everymath{}}\def\arraystretch{1.2}
before the matrix, and } after it.
You can also redefine the array environment, if all your matrices need to
use displaystyle.



Re: displaystyle applied to fractions in a matrix

2001-09-13 Thread Herbert Voss

Michael Koundouros wrote:
> 
> I want the fractions within my matrix to have displaystyle. I am using the
> following command in my preamble:
> 
> \newcommand{\bigmath}[1]{\displaystyle{#1}}
> 
> once in math-mode I create my matrix and use the command
> \bigmath{}  in each cell.
> 
> viewing the ps file shows that fractions above one another are touching. How
> do you increase the vertical distance between cells??

choose the align-environment instead of the array one.

Herbert

-- 
http://www.educat.hu-berlin.de/~voss/lyx/