Re: Subscript in a chemical symbol and lyx formula

2010-04-13 Thread rgheck

On 04/13/2010 12:25 PM, YURENA MENDOZA wrote:

I want to put a subscript in a chemical symbol using the mhchem package, for
example CO2pc. On the other hand, Can I put into by the same way as I enter
in a paragraph (using a box in lyx to introduce lyx code) in a Lyx formula?

   
In formulas, you can just enter raw LaTeX if you like. E.g., you can 
type \hello{hi}, and that is precisely what you will see. If you had 
in your preamble:

\newcommand\hello[1]{2^{#1}}
Then you'd get the output you expect.

Note that you do need to be careful about whether the brackets are 
escaped, i.e., whether the LaTeX is: {, or \{. LyX displays argument 
brackets in red, and delimiter brackets in blue. To get the former, 
you type \{, ironically enough, though you will get them automatically 
immediately after a command.


Richard



Re: Subscript in a chemical symbol and lyx formula

2010-04-13 Thread rgheck

On 04/13/2010 12:25 PM, YURENA MENDOZA wrote:

I want to put a subscript in a chemical symbol using the mhchem package, for
example CO2pc. On the other hand, Can I put into by the same way as I enter
in a paragraph (using a box in lyx to introduce lyx code) in a Lyx formula?

   
In formulas, you can just enter raw LaTeX if you like. E.g., you can 
type \hello{hi}, and that is precisely what you will see. If you had 
in your preamble:

\newcommand\hello[1]{2^{#1}}
Then you'd get the output you expect.

Note that you do need to be careful about whether the brackets are 
escaped, i.e., whether the LaTeX is: {, or \{. LyX displays argument 
brackets in red, and delimiter brackets in blue. To get the former, 
you type \{, ironically enough, though you will get them automatically 
immediately after a command.


Richard



Re: Subscript in a chemical symbol and lyx formula

2010-04-13 Thread Uwe Stöhr

Am 13.04.2010 18:25, schrieb YURENA MENDOZA:


I want to put a subscript in a chemical symbol using the mhchem package, for
example CO2pc.


For a description how this is done, see sec. 20 of the Math manual that 
you find in LyX's Help menu.


 On the other hand, Can I put into by the same way as I enter in
 a paragraph (using a box in lyx to introduce lyx code) in a Lyx formula?

I don't know what you mean.

regards Uwe


Re: Subscript in a chemical symbol and lyx formula

2010-04-13 Thread rgheck

On 04/13/2010 12:25 PM, YURENA MENDOZA wrote:

I want to put a subscript in a chemical symbol using the mhchem package, for
example CO2pc. On the other hand, Can I put into by the same way as I enter
in a paragraph (using a box in lyx to introduce lyx code) in a Lyx formula?

   
In formulas, you can just enter raw LaTeX if you like. E.g., you can 
type \hello{hi}, and that is precisely what you will see. If you had 
in your preamble:

\newcommand\hello[1]{2^{#1}}
Then you'd get the output you expect.

Note that you do need to be careful about whether the brackets are 
escaped, i.e., whether the LaTeX is: {, or \{. LyX displays argument 
brackets in red, and delimiter brackets in blue. To get the former, 
you type \{, ironically enough, though you will get them automatically 
immediately after a command.


Richard



Re: Subscript in a chemical symbol and lyx formula

2010-04-13 Thread rgheck

On 04/13/2010 12:25 PM, YURENA MENDOZA wrote:

I want to put a subscript in a chemical symbol using the mhchem package, for
example CO2pc. On the other hand, Can I put into by the same way as I enter
in a paragraph (using a box in lyx to introduce lyx code) in a Lyx formula?

   
In formulas, you can just enter raw LaTeX if you like. E.g., you can 
type \hello{hi}, and that is precisely what you will see. If you had 
in your preamble:

\newcommand\hello[1]{2^{#1}}
Then you'd get the output you expect.

Note that you do need to be careful about whether the brackets are 
escaped, i.e., whether the LaTeX is: {, or \{. LyX displays argument 
brackets in red, and delimiter brackets in blue. To get the former, 
you type \{, ironically enough, though you will get them automatically 
immediately after a command.


Richard



Re: Subscript in a chemical symbol and lyx formula

2010-04-13 Thread Uwe Stöhr

Am 13.04.2010 18:25, schrieb YURENA MENDOZA:


I want to put a subscript in a chemical symbol using the mhchem package, for
example CO2pc.


For a description how this is done, see sec. 20 of the Math manual that 
you find in LyX's Help menu.


 On the other hand, Can I put into by the same way as I enter in
 a paragraph (using a box in lyx to introduce lyx code) in a Lyx formula?

I don't know what you mean.

regards Uwe


Re: Subscript in a chemical symbol and lyx formula

2010-04-13 Thread rgheck

On 04/13/2010 12:25 PM, YURENA MENDOZA wrote:

I want to put a subscript in a chemical symbol using the mhchem package, for
example CO2pc. On the other hand, Can I put into by the same way as I enter
in a paragraph (using a box in lyx to introduce lyx code) in a Lyx formula?

   
In formulas, you can just enter raw LaTeX if you like. E.g., you can 
type "\hello{hi}", and that is precisely what you will see. If you had 
in your preamble:

\newcommand\hello[1]{2^{#1}}
Then you'd get the output you expect.

Note that you do need to be careful about whether the brackets are 
escaped, i.e., whether the LaTeX is: {, or \{. LyX displays "argument 
brackets" in red, and "delimiter brackets" in blue. To get the former, 
you type \{, ironically enough, though you will get them automatically 
immediately after a command.


Richard



Re: Subscript in a chemical symbol and lyx formula

2010-04-13 Thread rgheck

On 04/13/2010 12:25 PM, YURENA MENDOZA wrote:

I want to put a subscript in a chemical symbol using the mhchem package, for
example CO2pc. On the other hand, Can I put into by the same way as I enter
in a paragraph (using a box in lyx to introduce lyx code) in a Lyx formula?

   
In formulas, you can just enter raw LaTeX if you like. E.g., you can 
type "\hello{hi}", and that is precisely what you will see. If you had 
in your preamble:

\newcommand\hello[1]{2^{#1}}
Then you'd get the output you expect.

Note that you do need to be careful about whether the brackets are 
escaped, i.e., whether the LaTeX is: {, or \{. LyX displays "argument 
brackets" in red, and "delimiter brackets" in blue. To get the former, 
you type \{, ironically enough, though you will get them automatically 
immediately after a command.


Richard



Re: Subscript in a chemical symbol and lyx formula

2010-04-13 Thread Uwe Stöhr

Am 13.04.2010 18:25, schrieb YURENA MENDOZA:


I want to put a subscript in a chemical symbol using the mhchem package, for
example CO2pc.


For a description how this is done, see sec. 20 of the Math manual that 
you find in LyX's Help menu.


> On the other hand, Can I put into by the same way as I enter in
> a paragraph (using a box in lyx to introduce lyx code) in a Lyx formula?

I don't know what you mean.

regards Uwe