Re: Subscript text...

2002-08-15 Thread Herbert Voss

Pierre Marc Dumuid wrote:

> Andre Poenitz wrote:
> 
>> On Thu, Aug 15, 2002 at 09:00:10AM +0930, Pierre Marc Dumuid wrote:
>>
>>> I want to write a chemical equation, ( i.e. NO_x )


an easy solution:
in preamble
\def\Sb#1{%
   \raisebox{-0.5ex}{\small #1}%
}
\def\Sp#1{%
   \raisebox{0.9ex}{\small #1}%
}

and in text NO\Sb x

Herbert




-- 
http://www.lyx.org/help/




Re: Subscript text...

2002-08-14 Thread Andre Poenitz

On Thu, Aug 15, 2002 at 04:44:01PM +0930, Pierre Marc Dumuid wrote:
> Andre Poenitz wrote:
> >On Thu, Aug 15, 2002 at 09:00:10AM +0930, Pierre Marc Dumuid wrote:
> >
> >>I want to write a chemical equation, ( i.e. NO_x )
> >
> >
> >[which version of LyX btw?]
> 1.2.0 (I use linux, but my friend uses windows)

Should work there [I only checked 1.2.1cvs, but there was no change in this
area].

Does your friend think that LyX would benefit a lot from "proper" support
for chemical formulas? [I.e. "textmode super/subscript"?]

Andre'

-- 
Those who desire to give up Freedom in order to gain Security,
will not have, nor do they deserve, either one. (T. Jefferson)



Re: Subscript text...

2002-08-14 Thread Pierre Marc Dumuid

Andre Poenitz wrote:
> On Thu, Aug 15, 2002 at 09:00:10AM +0930, Pierre Marc Dumuid wrote:
> 
>>I want to write a chemical equation, ( i.e. NO_x )
> 
> 
> [which version of LyX btw?]
1.2.0 (I use linux, but my friend uses windows)

>>But I don't want the text in math-mode font...
> 
> As LaTeX does have subscripts in math mode only, LyX fakes text
> superscripts in math mode as well. One mihgt argue whether this is the
> right thing to do, but it's the way it is.
> 
> 
>>Is there an easier way to get text to be subscript than to type:
>>NO**mathmode _\text{x} **
> 
> 
> Insert->SpecialChar->Subscript 
> 
> When started from textmode, this gives you a math mode superscript with the
> text cell already "switched back" to text mode
> 
> Andre'
> 






Re: Subscript text...

2002-08-14 Thread Andre Poenitz

On Thu, Aug 15, 2002 at 09:00:10AM +0930, Pierre Marc Dumuid wrote:
> I want to write a chemical equation, ( i.e. NO_x )

[which version of LyX btw?]
 
> But I don't want the text in math-mode font...

As LaTeX does have subscripts in math mode only, LyX fakes text
superscripts in math mode as well. One mihgt argue whether this is the
right thing to do, but it's the way it is.

> Is there an easier way to get text to be subscript than to type:
> NO**mathmode _\text{x} **

Insert->SpecialChar->Subscript 

When started from textmode, this gives you a math mode superscript with the
text cell already "switched back" to text mode

Andre'

-- 
Those who desire to give up Freedom in order to gain Security,
will not have, nor do they deserve, either one. (T. Jefferson)



Subscript text...

2002-08-14 Thread Pierre Marc Dumuid

I want to write a chemical equation, ( i.e. NO_x )

But I don't want the text in math-mode font...

Is there an easier way to get text to be subscript than to type:
NO**mathmode _\text{x} **

???this looks messy in lyx - surely there's a superscript for non-math mode

..asked by a friend who's not in the newsgroup...