Re: mathrm in lyx

2000-03-07 Thread Frank Mahler

Herbert Voss wrote:
 
 Wolfgang Riedel wrote:
 
  Hi,
 
  if I type the tex code (for instance) for an unit of measurement 'meter
  per second' "\mathrm{\frac{m}{s}}" inside a mathematical expression in
  lyx (the frac was created via the mathematical menue) it seems correct,
  the dvi is okay. But if I leave lyx, start it again and load the saved
  lyx file, then the roman font information is lost. 'm' and 's' are
  considered as variables :-(
 
 try in lyx-mathmode alt-M-m  for writing in textmode for "m" and "s" or
 
 $\frac{\textrm{m}}{\textrm{s}}$in text-mathode, which is just the
 same

Unfortunately this is the wrong approach, at least when using computer
modern fonts for math typesetting. Try to press M-c r (which is the
english mapping for font-roman, german users which use de_menus.bind
should press M-z r), this gives you a \mathrm encapsulation for the
letters typed afterwards. Any "math" operator switches the font back, so
check twice if your letters m and s are "upright" and not "italics".

On the other hand, if you type a dimension within your floating text,
you should use the same font as in the text itself. Here the
text-mathmode might be a good choice.

Or use \usepackage{mathptm} (or {mathptmx}) to use Times as the math
font. Then your measurements should look the same as the rest
(disregarding \mathrm or \textrm).

HTH,
 Frank
-- 
Hi! I'm a .signature virus! Copy me into your ~/.signature to help me
spread!

-- Sign the Linux Driver Petition:
http://www.libranet.com/petition.html --



Re: mathrm in lyx

2000-03-07 Thread Frank Mahler

Herbert Voss wrote:
 
 Wolfgang Riedel wrote:
 
  Hi,
 
  if I type the tex code (for instance) for an unit of measurement 'meter
  per second' "\mathrm{\frac{m}{s}}" inside a mathematical expression in
  lyx (the frac was created via the mathematical menue) it seems correct,
  the dvi is okay. But if I leave lyx, start it again and load the saved
  lyx file, then the roman font information is lost. 'm' and 's' are
  considered as variables :-(
 
 try in lyx-mathmode alt-M-m  for writing in textmode for "m" and "s" or
 
 $\frac{\textrm{m}}{\textrm{s}}$in text-mathode, which is just the
 same

Unfortunately this is the wrong approach, at least when using computer
modern fonts for math typesetting. Try to press M-c r (which is the
english mapping for font-roman, german users which use de_menus.bind
should press M-z r), this gives you a \mathrm encapsulation for the
letters typed afterwards. Any "math" operator switches the font back, so
check twice if your letters m and s are "upright" and not "italics".

On the other hand, if you type a dimension within your floating text,
you should use the same font as in the text itself. Here the
text-mathmode might be a good choice.

Or use \usepackage{mathptm} (or {mathptmx}) to use Times as the math
font. Then your measurements should look the same as the rest
(disregarding \mathrm or \textrm).

HTH,
 Frank
-- 
Hi! I'm a .signature virus! Copy me into your ~/.signature to help me
spread!

-- Sign the Linux Driver Petition:
http://www.libranet.com/petition.html --



Re: mathrm in lyx

2000-03-07 Thread Frank Mahler

Herbert Voss wrote:
> 
> Wolfgang Riedel wrote:
> >
> > Hi,
> >
> > if I type the tex code (for instance) for an unit of measurement 'meter
> > per second' "\mathrm{\frac{m}{s}}" inside a mathematical expression in
> > lyx (the frac was created via the mathematical menue) it seems correct,
> > the dvi is okay. But if I leave lyx, start it again and load the saved
> > lyx file, then the roman font information is lost. 'm' and 's' are
> > considered as variables :-(
> 
> try in lyx-mathmode alt-M-m  for writing in textmode for "m" and "s" or
> 
> $\frac{\textrm{m}}{\textrm{s}}$in text-mathode, which is just the
> same

Unfortunately this is the wrong approach, at least when using computer
modern fonts for math typesetting. Try to press M-c r (which is the
english mapping for font-roman, german users which use de_menus.bind
should press M-z r), this gives you a \mathrm encapsulation for the
letters typed afterwards. Any "math" operator switches the font back, so
check twice if your letters m and s are "upright" and not "italics".

On the other hand, if you type a dimension within your floating text,
you should use the same font as in the text itself. Here the
text-mathmode might be a good choice.

Or use \usepackage{mathptm} (or {mathptmx}) to use Times as the math
font. Then your measurements should look the same as the rest
(disregarding \mathrm or \textrm).

HTH,
 Frank
-- 
Hi! I'm a .signature virus! Copy me into your ~/.signature to help me
spread!

--> Sign the Linux Driver Petition:
http://www.libranet.com/petition.html <--