### Re: editing math in lyx

Le 20/03/2013 16:01, Neal Becker a écrit : Any convenient shortcut to select the content of the formula? I thought clicking inside the math formula and choosing 'select whole inset' from edit menu would do it, but seems to insist on selecting entire document! FWIW, I just fixed this in trunk. JMarc

### Re: editing math in lyx

Le 20/03/2013 16:01, Neal Becker a écrit : Any convenient shortcut to select the content of the formula? I thought clicking inside the math formula and choosing 'select whole inset' from edit menu would do it, but seems to insist on selecting entire document! FWIW, I just fixed this in trunk. JMarc

### Re: editing math in lyx

Le 20/03/2013 16:01, Neal Becker a écrit : Any convenient shortcut to select the content of the formula? I thought clicking inside the math formula and choosing 'select whole inset' from edit menu would do it, but seems to insist on selecting entire document! FWIW, I just fixed this in trunk. JMarc

### Re: editing math in lyx

I would really love to be able to conveniently edit the TeX code directly - I'd be vastly more productive. I find lyx gui editing - as all other math editors - to be terribly frustrating and unproductive. I used LaTeX since 1980s, and the lack of this is the only thing that makes me think twice before deciding to use LyX instead of just using LaTeX. Attached there is a MWE of how to produce this forms in LyX (is in spanish but the idea remains for every language). HTH, if anyone is so kind to translate this and upload to the wiki please be welcome Alex pdf-forms.lyx Description: application/lyx

### Re: editing math in lyx

I would really love to be able to conveniently edit the TeX code directly - I'd be vastly more productive. I find lyx gui editing - as all other math editors - to be terribly frustrating and unproductive. I used LaTeX since 1980s, and the lack of this is the only thing that makes me think twice before deciding to use LyX instead of just using LaTeX. OOps, sorry wrong thread! You can edit directly the TeX code by selecting the equation inside math mode (ctrl+C) and paste outside math mode (ctrl+V) then you will have the TeX code directly (you can also place TeX code directly without to enter math mode). When you finished select again your Tex code and press Ctrl+M. Voilá. HTH Alex

### Re: editing math in lyx

Any convenient shortcut to select the content of the formula? I thought clicking inside the math formula and choosing 'select whole inset' from edit menu would do it, but seems to insist on selecting entire document! On Wed, Mar 20, 2013 at 11:47 AM, Alex Vergara Gil a...@cphr.edu.cu wrote: I would really love to be able to conveniently edit the TeX code directly - I'd be vastly more productive. I find lyx gui editing - as all other math editors - to be terribly frustrating and unproductive. I used LaTeX since 1980s, and the lack of this is the only thing that makes me think twice before deciding to use LyX instead of just using LaTeX. OOps, sorry wrong thread! You can edit directly the TeX code by selecting the equation inside math mode (ctrl+C) and paste outside math mode (ctrl+V) then you will have the TeX code directly (you can also place TeX code directly without to enter math mode). When you finished select again your Tex code and press Ctrl+M. Voilá. HTH Alex

### Re: editing math in lyx

- Original Message - From: Neal Becker To: Alex Vergara Gil Cc: lyx-de...@lists.lyx.org ; lyx-users@lists.lyx.org Sent: Wednesday, March 20, 2013 10:01 AM Subject: Re: editing math in lyx Any convenient shortcut to select the content of the formula? I thought clicking inside the math formula and choosing 'select whole inset' from edit menu would do it, but seems to insist on selecting entire document! Yes, select one of the following a.. triple click inside the formula, b.. select from the begining of the formula with the left click pressed c.. add a shortcut to your preferences as in http://tex.stackexchange.com/questions/84031/making-an-edit-to-an-inline-equation-that-went-off-of-the-screen/84060#84060 I prefer the first one, is just quicker HTH Alex

### Re: editing math in lyx

On 03/20/2013 11:43 AM, Alex Vergara Gil wrote: I would really love to be able to conveniently edit the TeX code directly - I'd be vastly more productive. I find lyx gui editing - as all other math editors - to be terribly frustrating and unproductive. I used LaTeX since 1980s, and the lack of this is the only thing that makes me think twice before deciding to use LyX instead of just using LaTeX. I do understand this tendency, since I also came to LyX with a TeX background. Way back when LyX was young, Matthais set up the math-insets the way you would want them, and math was just written in what we now call ERT (Evil Red Text, a TeX inset. It's evil mostly because you have the usual problems that if your code is wrong, it won't produce any output and TeX will yell at you.). You can still do that if you want. Use a TeX inset rather than a math one, and it will work. I always just write the TeX out (e.g, \alpha) inside the math inset, and it now is instantly changed to display correctly, which I still think is cool. If it doesn't change to a real display of the symbol, I know I made a mistake. Better than a spellchecker. There are some things I hate to set up in TeX, like tables, matrices. Then, I use the menus. For me this is the best of both worlds. If there is a way to display the raw TeX of a math inset, I suppose it would be useful in some circumstances. Maybe someone will point out how to do that, and then you can set that up to be automatic, maybe. Or you can just use ERT. Attached there is a MWE of how to produce this forms in LyX (is in spanish but the idea remains for every language). HTH, if anyone is so kind to translate this and upload to the wiki please be welcome I might be able to take a crack at that, but not until after mid-April. If no one else volunteers, send it to me and I will take a look at it to see how much work it will be. -- David L. Johnson Accept risk. Accept responsibility. Put a lawyer out of business.

### Re: editing math in lyx

Scott Kostyshak wrote: On Wed, Mar 20, 2013 at 12:36 PM, David L. Johnson david.john...@lehigh.edu wrote: On 03/20/2013 11:43 AM, Alex Vergara Gil wrote: I would really love to be able to conveniently edit the TeX code directly - I'd be vastly more productive. I find lyx gui editing - as all other math editors - to be terribly frustrating and unproductive. I used LaTeX since 1980s, and the lack of this is the only thing that makes me think twice before deciding to use LyX instead of just using LaTeX. I do understand this tendency, since I also came to LyX with a TeX background. Way back when LyX was young, Matthais set up the math-insets the way you would want them, and math was just written in what we now call ERT (Evil Red Text, a TeX inset. It's evil mostly because you have the usual problems that if your code is wrong, it won't produce any output and TeX will yell at you.). You can still do that if you want. Use a TeX inset rather than a math one, and it will work. Another way to scratch your (La)TeX itch is to use LyX's layouts. You can make your own environments and insets and you define the LaTeX that is behind all of those. For my use, I've found that if there's a customization that I just want once, ERT is great. If I find myself doing something many times, I am starting to consider making a module or adding to my local layout. See the customization manual for information on these options. Scott My usual route is to \C-m, start entering (maybe using \tex stuff, very nice). Problem arises if I made a mistake and then need to edit. Then selecting and modifying via the gui is tedious and I usually wind up erasing accidentally large parts, and basically starting over. This is where editing the underlying TeX would save trouble.

### Re: editing math in lyx

I would really love to be able to conveniently edit the TeX code directly - I'd be vastly more productive. I find lyx gui editing - as all other math editors - to be terribly frustrating and unproductive. I used LaTeX since 1980s, and the lack of this is the only thing that makes me think twice before deciding to use LyX instead of just using LaTeX. Attached there is a MWE of how to produce this forms in LyX (is in spanish but the idea remains for every language). HTH, if anyone is so kind to translate this and upload to the wiki please be welcome Alex pdf-forms.lyx Description: application/lyx

### Re: editing math in lyx

I would really love to be able to conveniently edit the TeX code directly - I'd be vastly more productive. I find lyx gui editing - as all other math editors - to be terribly frustrating and unproductive. I used LaTeX since 1980s, and the lack of this is the only thing that makes me think twice before deciding to use LyX instead of just using LaTeX. OOps, sorry wrong thread! You can edit directly the TeX code by selecting the equation inside math mode (ctrl+C) and paste outside math mode (ctrl+V) then you will have the TeX code directly (you can also place TeX code directly without to enter math mode). When you finished select again your Tex code and press Ctrl+M. Voilá. HTH Alex

### Re: editing math in lyx

Any convenient shortcut to select the content of the formula? I thought clicking inside the math formula and choosing 'select whole inset' from edit menu would do it, but seems to insist on selecting entire document! On Wed, Mar 20, 2013 at 11:47 AM, Alex Vergara Gil a...@cphr.edu.cu wrote: I would really love to be able to conveniently edit the TeX code directly - I'd be vastly more productive. I find lyx gui editing - as all other math editors - to be terribly frustrating and unproductive. I used LaTeX since 1980s, and the lack of this is the only thing that makes me think twice before deciding to use LyX instead of just using LaTeX. OOps, sorry wrong thread! You can edit directly the TeX code by selecting the equation inside math mode (ctrl+C) and paste outside math mode (ctrl+V) then you will have the TeX code directly (you can also place TeX code directly without to enter math mode). When you finished select again your Tex code and press Ctrl+M. Voilá. HTH Alex

### Re: editing math in lyx

- Original Message - From: Neal Becker To: Alex Vergara Gil Cc: lyx-de...@lists.lyx.org ; lyx-users@lists.lyx.org Sent: Wednesday, March 20, 2013 10:01 AM Subject: Re: editing math in lyx Any convenient shortcut to select the content of the formula? I thought clicking inside the math formula and choosing 'select whole inset' from edit menu would do it, but seems to insist on selecting entire document! Yes, select one of the following a.. triple click inside the formula, b.. select from the begining of the formula with the left click pressed c.. add a shortcut to your preferences as in http://tex.stackexchange.com/questions/84031/making-an-edit-to-an-inline-equation-that-went-off-of-the-screen/84060#84060 I prefer the first one, is just quicker HTH Alex

### Re: editing math in lyx

On 03/20/2013 11:43 AM, Alex Vergara Gil wrote: I would really love to be able to conveniently edit the TeX code directly - I'd be vastly more productive. I find lyx gui editing - as all other math editors - to be terribly frustrating and unproductive. I used LaTeX since 1980s, and the lack of this is the only thing that makes me think twice before deciding to use LyX instead of just using LaTeX. I do understand this tendency, since I also came to LyX with a TeX background. Way back when LyX was young, Matthais set up the math-insets the way you would want them, and math was just written in what we now call ERT (Evil Red Text, a TeX inset. It's evil mostly because you have the usual problems that if your code is wrong, it won't produce any output and TeX will yell at you.). You can still do that if you want. Use a TeX inset rather than a math one, and it will work. I always just write the TeX out (e.g, \alpha) inside the math inset, and it now is instantly changed to display correctly, which I still think is cool. If it doesn't change to a real display of the symbol, I know I made a mistake. Better than a spellchecker. There are some things I hate to set up in TeX, like tables, matrices. Then, I use the menus. For me this is the best of both worlds. If there is a way to display the raw TeX of a math inset, I suppose it would be useful in some circumstances. Maybe someone will point out how to do that, and then you can set that up to be automatic, maybe. Or you can just use ERT. Attached there is a MWE of how to produce this forms in LyX (is in spanish but the idea remains for every language). HTH, if anyone is so kind to translate this and upload to the wiki please be welcome I might be able to take a crack at that, but not until after mid-April. If no one else volunteers, send it to me and I will take a look at it to see how much work it will be. -- David L. Johnson Accept risk. Accept responsibility. Put a lawyer out of business.

### Re: editing math in lyx

Scott Kostyshak wrote: On Wed, Mar 20, 2013 at 12:36 PM, David L. Johnson david.john...@lehigh.edu wrote: On 03/20/2013 11:43 AM, Alex Vergara Gil wrote: I would really love to be able to conveniently edit the TeX code directly - I'd be vastly more productive. I find lyx gui editing - as all other math editors - to be terribly frustrating and unproductive. I used LaTeX since 1980s, and the lack of this is the only thing that makes me think twice before deciding to use LyX instead of just using LaTeX. I do understand this tendency, since I also came to LyX with a TeX background. Way back when LyX was young, Matthais set up the math-insets the way you would want them, and math was just written in what we now call ERT (Evil Red Text, a TeX inset. It's evil mostly because you have the usual problems that if your code is wrong, it won't produce any output and TeX will yell at you.). You can still do that if you want. Use a TeX inset rather than a math one, and it will work. Another way to scratch your (La)TeX itch is to use LyX's layouts. You can make your own environments and insets and you define the LaTeX that is behind all of those. For my use, I've found that if there's a customization that I just want once, ERT is great. If I find myself doing something many times, I am starting to consider making a module or adding to my local layout. See the customization manual for information on these options. Scott My usual route is to \C-m, start entering (maybe using \tex stuff, very nice). Problem arises if I made a mistake and then need to edit. Then selecting and modifying via the gui is tedious and I usually wind up erasing accidentally large parts, and basically starting over. This is where editing the underlying TeX would save trouble.

### Re: editing math in lyx

I would really love to be able to conveniently edit the TeX code directly - I'd be vastly more productive. I find lyx gui editing - as all other math editors - to be terribly frustrating and unproductive. I used LaTeX since 1980s, and the lack of this is the only thing that makes me think twice before deciding to use LyX instead of just using LaTeX. Attached there is a MWE of how to produce this forms in LyX (is in spanish but the idea remains for every language). HTH, if anyone is so kind to translate this and upload to the wiki please be welcome Alex pdf-forms.lyx Description: application/lyx

### Re: editing math in lyx

I would really love to be able to conveniently edit the TeX code directly - I'd be vastly more productive. I find lyx gui editing - as all other math editors - to be terribly frustrating and unproductive. I used LaTeX since 1980s, and the lack of this is the only thing that makes me think twice before deciding to use LyX instead of just using LaTeX. OOps, sorry wrong thread! You can edit directly the TeX code by selecting the equation inside math mode (ctrl+C) and paste outside math mode (ctrl+V) then you will have the TeX code directly (you can also place TeX code directly without to enter math mode). When you finished select again your Tex code and press Ctrl+M. Voilá. HTH Alex

### Re: editing math in lyx

Any convenient shortcut to select the content of the formula? I thought clicking inside the math formula and choosing 'select whole inset' from edit menu would do it, but seems to insist on selecting entire document! On Wed, Mar 20, 2013 at 11:47 AM, Alex Vergara Gilwrote: > >> I would really love to be able to conveniently edit the TeX code directly >> - I'd >> be vastly more productive. I find lyx gui editing - as all other math >> editors - >> to be terribly frustrating and unproductive. I used LaTeX since 1980s, >> and the >> lack of this is the only thing that makes me think twice before deciding >> to use >> LyX instead of just using LaTeX. >> >> >> OOps, sorry wrong thread! > > You can edit directly the TeX code by selecting the equation inside math > mode (ctrl+C) and paste outside math mode (ctrl+V) then you will have the > TeX code directly (you can also place TeX code directly without to enter > math mode). When you finished select again your Tex code and press Ctrl+M. > Voilá. > > HTH > Alex >

### Re: editing math in lyx

- Original Message - From: Neal Becker To: Alex Vergara Gil Cc: lyx-de...@lists.lyx.org ; lyx-users@lists.lyx.org Sent: Wednesday, March 20, 2013 10:01 AM Subject: Re: editing math in lyx Any convenient shortcut to select the content of the formula? I thought clicking inside the math formula and choosing 'select whole inset' from edit menu would do it, but seems to insist on selecting entire document! Yes, select one of the following a.. triple click inside the formula, b.. select from the begining of the formula with the left click pressed c.. add a shortcut to your preferences as in http://tex.stackexchange.com/questions/84031/making-an-edit-to-an-inline-equation-that-went-off-of-the-screen/84060#84060 I prefer the first one, is just quicker HTH Alex

### Re: editing math in lyx

On 03/20/2013 11:43 AM, Alex Vergara Gil wrote: I would really love to be able to conveniently edit the TeX code directly - I'd be vastly more productive. I find lyx gui editing - as all other math editors - to be terribly frustrating and unproductive. I used LaTeX since 1980s, and the lack of this is the only thing that makes me think twice before deciding to use LyX instead of just using LaTeX. I do understand this tendency, since I also came to LyX with a TeX background. Way back when LyX was young, Matthais set up the math-insets the way you would want them, and math was just written in what we now call ERT (Evil Red Text, a TeX inset. It's evil mostly because you have the usual problems that if your code is wrong, it won't produce any output and TeX will yell at you.). You can still do that if you want. Use a TeX inset rather than a math one, and it will work. I always just write the TeX out (e.g, \alpha) inside the math inset, and it now is instantly changed to display correctly, which I still think is cool. If it doesn't change to a real display of the symbol, I know I made a mistake. Better than a spellchecker. There are some things I hate to set up in TeX, like tables, matrices. Then, I use the menus. For me this is the best of both worlds. If there is a way to display the raw TeX of a math inset, I suppose it would be useful in some circumstances. Maybe someone will point out how to do that, and then you can set that up to be automatic, maybe. Or you can just use ERT. Attached there is a MWE of how to produce this forms in LyX (is in spanish but the idea remains for every language). HTH, if anyone is so kind to translate this and upload to the wiki please be welcome I might be able to take a crack at that, but not until after mid-April. If no one else volunteers, send it to me and I will take a look at it to see how much work it will be. -- David L. Johnson Accept risk. Accept responsibility. Put a lawyer out of business.

### Re: editing math in lyx

Scott Kostyshak wrote: > On Wed, Mar 20, 2013 at 12:36 PM, David L. Johnson >wrote: >> On 03/20/2013 11:43 AM, Alex Vergara Gil wrote: I would really love to be able to conveniently edit the TeX code directly - I'd be vastly more productive. I find lyx gui editing - as all other math editors - to be terribly frustrating and unproductive. I used LaTeX since 1980s, and the lack of this is the only thing that makes me think twice before deciding to use LyX instead of just using LaTeX. >> >> I do understand this tendency, since I also came to LyX with a TeX >> background. Way back when LyX was young, Matthais set up the math-insets >> the way you would want them, and math was just written in what we now call >> ERT (Evil Red Text, a TeX inset. It's evil mostly because you have the >> usual problems that if your code is wrong, it won't produce any output and >> TeX will yell at you.). You can still do that if you want. Use a TeX inset >> rather than a math one, and it will work. > > Another way to scratch your (La)TeX itch is to use LyX's layouts. You > can make your own environments and insets and you define the LaTeX > that is behind all of those. For my use, I've found that if there's a > customization that I just want once, ERT is great. If I find myself > doing something many times, I am starting to consider making a module > or adding to my local layout. See the customization manual for > information on these options. > > Scott My usual route is to \C-m, start entering (maybe using \tex stuff, very nice). Problem arises if I made a mistake and then need to edit. Then selecting and modifying via the gui is tedious and I usually wind up erasing accidentally large parts, and basically starting over. This is where editing the underlying TeX would save trouble.

### Re: editing math in lyx

- Original Message - From: Scott Kostyshak skost...@lyx.org To: Abdelrazak Younes you...@lyx.org Cc: Alex Vergara Gil a...@cphr.edu.cu; lyx-users@lists.lyx.org; lyx-de...@lists.lyx.org Sent: Sunday, March 17, 2013 12:11 PM Subject: Re: editing math in lyx This sounds like a not very hard feature to implement, maybe without touching C++ even. So why don't you implement this yourself and propose a patch? There are not many active developers these days so LyX users must participate to the development if they want to see LyX evolve. +1. See the link below for a start. One of the solutions does basically what you suggest but using shortcuts. http://tex.stackexchange.com/questions/84031/making-an-edit-to-an-inline-equation-that-went-off-of-the-screen/84060#84060 Scott Scott This saves my day, actually I have no idea that LyX can actually can copy in rendered math mode and paste outside it as TeX code and then go backwards. The solution I prefer is then manually select your equation inside math mode, cut and paste outside math mode (it will be displayed as TeX code). These can be automated by the shortcut: command-sequence char-forward; line-end-select ; cut; char-backward; paste; char-delete-forward. hen you finish to edit select the whole code and press ctrl+m. Voilá, Everything goes as expected. So thankyou very much Scott for pointing me in the right direction. Alex

### Re: editing math in lyx

- Original Message - From: Scott Kostyshak skost...@lyx.org To: Abdelrazak Younes you...@lyx.org Cc: Alex Vergara Gil a...@cphr.edu.cu; lyx-users@lists.lyx.org; lyx-de...@lists.lyx.org Sent: Sunday, March 17, 2013 12:11 PM Subject: Re: editing math in lyx This sounds like a not very hard feature to implement, maybe without touching C++ even. So why don't you implement this yourself and propose a patch? There are not many active developers these days so LyX users must participate to the development if they want to see LyX evolve. +1. See the link below for a start. One of the solutions does basically what you suggest but using shortcuts. http://tex.stackexchange.com/questions/84031/making-an-edit-to-an-inline-equation-that-went-off-of-the-screen/84060#84060 Scott Scott This saves my day, actually I have no idea that LyX can actually can copy in rendered math mode and paste outside it as TeX code and then go backwards. The solution I prefer is then manually select your equation inside math mode, cut and paste outside math mode (it will be displayed as TeX code). These can be automated by the shortcut: command-sequence char-forward; line-end-select ; cut; char-backward; paste; char-delete-forward. hen you finish to edit select the whole code and press ctrl+m. Voilá, Everything goes as expected. So thankyou very much Scott for pointing me in the right direction. Alex

### Re: editing math in lyx

- Original Message - From: "Scott Kostyshak" <skost...@lyx.org> To: "Abdelrazak Younes" <you...@lyx.org> Cc: "Alex Vergara Gil" <a...@cphr.edu.cu>; <lyx-users@lists.lyx.org>; <lyx-de...@lists.lyx.org> Sent: Sunday, March 17, 2013 12:11 PM Subject: Re: editing math in lyx This sounds like a not very hard feature to implement, maybe without touching C++ even. So why don't you implement this yourself and propose a patch? There are not many active developers these days so LyX users must participate to the development if they want to see LyX evolve. +1. See the link below for a start. One of the solutions does basically what you suggest but using shortcuts. http://tex.stackexchange.com/questions/84031/making-an-edit-to-an-inline-equation-that-went-off-of-the-screen/84060#84060 Scott Scott This saves my day, actually I have no idea that LyX can actually can copy in rendered math mode and paste outside it as TeX code and then go backwards. The solution I prefer is then manually select your equation inside math mode, cut and paste outside math mode (it will be displayed as TeX code). These can be automated by the shortcut: command-sequence char-forward; line-end-select ; cut; char-backward; paste; char-delete-forward. hen you finish to edit select the whole code and press ctrl+m. Voilá, Everything goes as expected. So thankyou very much Scott for pointing me in the right direction. Alex

### Re: editing math in lyx

On 14/03/2013 15:14, Alex Vergara Gil wrote: Isn´t there a better way to do this inside LyX? I think this is a good feature request for developers, is not that hard to put a button inside the math environment that switches between TeX and rendered math mode, and when exited you see only rendered. I don´t know if I am making myself clear, so I will explain this a little more. 1 Enter in math mode and add some equation/whatever. 2 Now I want to add some TeX code directly or edit what I have introduced, so I press the (requested) switch button and I could see all in TeX code. 3 I edit the TeX code and when finished press the switch button again (or just leave math mode), the result should be the new rendered equation/whatever I have edited. This feature would be great for middle to power users, off course one should only expect math code inside the math mode so it would be nice to clarify this in the manual if it is actually included. I know I can do this in a ERT environment but then I need to copy to math but that´s not an optimal approach. This sounds like a not very hard feature to implement, maybe without touching C++ even. So why don't you implement this yourself and propose a patch? There are not many active developers these days so LyX users must participate to the development if they want to see LyX evolve. Abdel.

### Re: editing math in lyx

On Sun, Mar 17, 2013 at 10:08 AM, Abdelrazak Younes you...@lyx.org wrote: On 14/03/2013 15:14, Alex Vergara Gil wrote: Isn´t there a better way to do this inside LyX? I think this is a good feature request for developers, is not that hard to put a button inside the math environment that switches between TeX and rendered math mode, and when exited you see only rendered. I don´t know if I am making myself clear, so I will explain this a little more. 1 Enter in math mode and add some equation/whatever. 2 Now I want to add some TeX code directly or edit what I have introduced, so I press the (requested) switch button and I could see all in TeX code. 3 I edit the TeX code and when finished press the switch button again (or just leave math mode), the result should be the new rendered equation/whatever I have edited. This feature would be great for middle to power users, off course one should only expect math code inside the math mode so it would be nice to clarify this in the manual if it is actually included. I know I can do this in a ERT environment but then I need to copy to math but that´s not an optimal approach. This sounds like a not very hard feature to implement, maybe without touching C++ even. So why don't you implement this yourself and propose a patch? There are not many active developers these days so LyX users must participate to the development if they want to see LyX evolve. +1. See the link below for a start. One of the solutions does basically what you suggest but using shortcuts. http://tex.stackexchange.com/questions/84031/making-an-edit-to-an-inline-equation-that-went-off-of-the-screen/84060#84060 Scott

### Re: editing math in lyx

On 14/03/2013 15:14, Alex Vergara Gil wrote: Isn´t there a better way to do this inside LyX? I think this is a good feature request for developers, is not that hard to put a button inside the math environment that switches between TeX and rendered math mode, and when exited you see only rendered. I don´t know if I am making myself clear, so I will explain this a little more. 1 Enter in math mode and add some equation/whatever. 2 Now I want to add some TeX code directly or edit what I have introduced, so I press the (requested) switch button and I could see all in TeX code. 3 I edit the TeX code and when finished press the switch button again (or just leave math mode), the result should be the new rendered equation/whatever I have edited. This feature would be great for middle to power users, off course one should only expect math code inside the math mode so it would be nice to clarify this in the manual if it is actually included. I know I can do this in a ERT environment but then I need to copy to math but that´s not an optimal approach. This sounds like a not very hard feature to implement, maybe without touching C++ even. So why don't you implement this yourself and propose a patch? There are not many active developers these days so LyX users must participate to the development if they want to see LyX evolve. Abdel.

### Re: editing math in lyx

On Sun, Mar 17, 2013 at 10:08 AM, Abdelrazak Younes you...@lyx.org wrote: On 14/03/2013 15:14, Alex Vergara Gil wrote: Isn´t there a better way to do this inside LyX? I think this is a good feature request for developers, is not that hard to put a button inside the math environment that switches between TeX and rendered math mode, and when exited you see only rendered. I don´t know if I am making myself clear, so I will explain this a little more. 1 Enter in math mode and add some equation/whatever. 2 Now I want to add some TeX code directly or edit what I have introduced, so I press the (requested) switch button and I could see all in TeX code. 3 I edit the TeX code and when finished press the switch button again (or just leave math mode), the result should be the new rendered equation/whatever I have edited. This feature would be great for middle to power users, off course one should only expect math code inside the math mode so it would be nice to clarify this in the manual if it is actually included. I know I can do this in a ERT environment but then I need to copy to math but that´s not an optimal approach. This sounds like a not very hard feature to implement, maybe without touching C++ even. So why don't you implement this yourself and propose a patch? There are not many active developers these days so LyX users must participate to the development if they want to see LyX evolve. +1. See the link below for a start. One of the solutions does basically what you suggest but using shortcuts. http://tex.stackexchange.com/questions/84031/making-an-edit-to-an-inline-equation-that-went-off-of-the-screen/84060#84060 Scott

### Re: editing math in lyx

On 14/03/2013 15:14, Alex Vergara Gil wrote: Isn´t there a better way to do this inside LyX? I think this is a good feature request for developers, is not that hard to put a button inside the math environment that switches between TeX and rendered math mode, and when exited you see only rendered. I don´t know if I am making myself clear, so I will explain this a little more. 1 Enter in math mode and add some equation/whatever. 2 Now I want to add some TeX code directly or edit what I have introduced, so I press the (requested) switch button and I could see all in TeX code. 3 I edit the TeX code and when finished press the switch button again (or just leave math mode), the result should be the new rendered equation/whatever I have edited. This feature would be great for middle to power users, off course one should only expect math code inside the math mode so it would be nice to clarify this in the manual if it is actually included. I know I can do this in a ERT environment but then I need to copy to math but that´s not an optimal approach. This sounds like a not very hard feature to implement, maybe without touching C++ even. So why don't you implement this yourself and propose a patch? There are not many active developers these days so LyX users must participate to the development if they want to see LyX evolve. Abdel.

### Re: editing math in lyx

On Sun, Mar 17, 2013 at 10:08 AM, Abdelrazak Youneswrote: > On 14/03/2013 15:14, Alex Vergara Gil wrote: >> >> >> Isn´t there a better way to do this inside LyX? >> I think this is a good feature request for developers, is not that hard >> to put a button inside the math environment that switches between TeX >> and rendered math mode, and when exited you see only rendered. I don´t >> know if I am making myself clear, so I will explain this a little more. >> >> 1 Enter in math mode and add some equation/whatever. >> 2 Now I want to add some TeX code directly or edit what I have >> introduced, so I press the (requested) switch button and I could see all >> in TeX code. >> 3 I edit the TeX code and when finished press the switch button again >> (or just leave math mode), the result should be the new rendered >> equation/whatever I have edited. >> >> This feature would be great for middle to power users, off course one >> should only expect math code inside the math mode so it would be nice to >> clarify this in the manual if it is actually included. >> >> I know I can do this in a ERT environment but then I need to copy to >> math but that´s not an optimal approach. > > > This sounds like a not very hard feature to implement, maybe without > touching C++ even. So why don't you implement this yourself and propose a > patch? There are not many active developers these days so LyX users must > participate to the development if they want to see LyX evolve. +1. See the link below for a start. One of the solutions does basically what you suggest but using shortcuts. http://tex.stackexchange.com/questions/84031/making-an-edit-to-an-inline-equation-that-went-off-of-the-screen/84060#84060 Scott

### Re: editing math in lyx

On 2013-03-13, Csikos Bela wrote: Hello: How can I edit text written in math mode in lyx? An example: I write a fraction using \textrm for both the numerator and the denominator. Then I decide to change these to sans serif (textsf). How can I apply the change to the fraction's numerator and denominator? (ie. change the code \textrm to \textsf)? Third method: * select and cut the fraction * paste into text - will appear as LaTeX macros * edit * cut and paste back to the formula This also works for complete formulas. Then, alternatively, you can select the LaTeX-macros-text and convert to a math box via Ctrl-M (or Alt-M D for a display formula). Günter

### Re: editing math in lyx

- Original Message - From: Guenter Milde mi...@users.sf.net To: lyx-users@lists.lyx.org Sent: Thursday, March 14, 2013 3:35 AM Subject: Re: editing math in lyx Third method: * select and cut the fraction * paste into text - will appear as LaTeX macros * edit * cut and paste back to the formula This also works for complete formulas. Then, alternatively, you can select the LaTeX-macros-text and convert to a math box via Ctrl-M (or Alt-M D for a display formula). Günter Isn´t there a better way to do this inside LyX? I think this is a good feature request for developers, is not that hard to put a button inside the math environment that switches between TeX and rendered math mode, and when exited you see only rendered. I don´t know if I am making myself clear, so I will explain this a little more. 1 Enter in math mode and add some equation/whatever. 2 Now I want to add some TeX code directly or edit what I have introduced, so I press the (requested) switch button and I could see all in TeX code. 3 I edit the TeX code and when finished press the switch button again (or just leave math mode), the result should be the new rendered equation/whatever I have edited. This feature would be great for middle to power users, off course one should only expect math code inside the math mode so it would be nice to clarify this in the manual if it is actually included. I know I can do this in a ERT environment but then I need to copy to math but that´s not an optimal approach. Regards Alex

### Re: editing math in lyx

On 2013-03-13, Csikos Bela wrote: Hello: How can I edit text written in math mode in lyx? An example: I write a fraction using \textrm for both the numerator and the denominator. Then I decide to change these to sans serif (textsf). How can I apply the change to the fraction's numerator and denominator? (ie. change the code \textrm to \textsf)? Third method: * select and cut the fraction * paste into text - will appear as LaTeX macros * edit * cut and paste back to the formula This also works for complete formulas. Then, alternatively, you can select the LaTeX-macros-text and convert to a math box via Ctrl-M (or Alt-M D for a display formula). Günter

### Re: editing math in lyx

- Original Message - From: Guenter Milde mi...@users.sf.net To: lyx-users@lists.lyx.org Sent: Thursday, March 14, 2013 3:35 AM Subject: Re: editing math in lyx Third method: * select and cut the fraction * paste into text - will appear as LaTeX macros * edit * cut and paste back to the formula This also works for complete formulas. Then, alternatively, you can select the LaTeX-macros-text and convert to a math box via Ctrl-M (or Alt-M D for a display formula). Günter Isn´t there a better way to do this inside LyX? I think this is a good feature request for developers, is not that hard to put a button inside the math environment that switches between TeX and rendered math mode, and when exited you see only rendered. I don´t know if I am making myself clear, so I will explain this a little more. 1 Enter in math mode and add some equation/whatever. 2 Now I want to add some TeX code directly or edit what I have introduced, so I press the (requested) switch button and I could see all in TeX code. 3 I edit the TeX code and when finished press the switch button again (or just leave math mode), the result should be the new rendered equation/whatever I have edited. This feature would be great for middle to power users, off course one should only expect math code inside the math mode so it would be nice to clarify this in the manual if it is actually included. I know I can do this in a ERT environment but then I need to copy to math but that´s not an optimal approach. Regards Alex

### Re: editing math in lyx

On 2013-03-13, Csikos Bela wrote: > Hello: > How can I edit text written in math mode in lyx? > An example: I write a fraction using \textrm for both > the numerator and the denominator. Then I decide to > change these to sans serif (textsf). How can I apply > the change to the fraction's numerator and denominator? > (ie. change the code \textrm to \textsf)? Third method: * select and cut the fraction * paste into text - will appear as LaTeX macros * edit * cut and paste back to the formula This also works for complete formulas. Then, alternatively, you can select the LaTeX-macros-text and convert to a math box via Ctrl-M (or Alt-M D for a display formula). Günter

### Re: editing math in lyx

- Original Message - From: "Guenter Milde" <mi...@users.sf.net> To: <lyx-users@lists.lyx.org> Sent: Thursday, March 14, 2013 3:35 AM Subject: Re: editing math in lyx Third method: * select and cut the fraction * paste into text - will appear as LaTeX macros * edit * cut and paste back to the formula This also works for complete formulas. Then, alternatively, you can select the LaTeX-macros-text and convert to a math box via Ctrl-M (or Alt-M D for a display formula). Günter Isn´t there a better way to do this inside LyX? I think this is a good feature request for developers, is not that hard to put a button inside the math environment that switches between TeX and rendered math mode, and when exited you see only rendered. I don´t know if I am making myself clear, so I will explain this a little more. 1 Enter in math mode and add some equation/whatever. 2 Now I want to add some TeX code directly or edit what I have introduced, so I press the (requested) switch button and I could see all in TeX code. 3 I edit the TeX code and when finished press the switch button again (or just leave math mode), the result should be the new rendered equation/whatever I have edited. This feature would be great for middle to power users, off course one should only expect math code inside the math mode so it would be nice to clarify this in the manual if it is actually included. I know I can do this in a ERT environment but then I need to copy to math but that´s not an optimal approach. Regards Alex

### editing math in lyx

Hello: How can I edit text written in math mode in lyx? An example: I write a fraction using \textrm for both the numerator and the denominator. Then I decide to change these to sans serif (textsf). How can I apply the change to the fraction's numerator and denominator? (ie. change the code \textrm to \textsf)? Thanks, bcsikos

### Re: editing math in lyx

On 03/13/2013 09:29 AM, Csikos Bela wrote: Hello: How can I edit text written in math mode in lyx? An example: I write a fraction using \textrm for both the numerator and the denominator. Then I decide to change these to sans serif (textsf). How can I apply the change to the fraction's numerator and denominator? (ie. change the code \textrm to \textsf)? Erase what you had an redo it. Copy it out first, if you wish, and then paste it back. Richard

### Re: editing math in lyx

1. Position the cursor just inside the numerator (you should see 'Font: textrm' in the status line). 2. Hit backspace (removing the font selection and reverting the numerator to normal math font). 3. Select the contents of the numerator. 4. Type '\textsf' and hit the space bar. It will appear to be overwriting the numerator, but when you hit the space bar the numerator contents will be there, in the new font. 5. Repeat for the denominator. Paul

### editing math in lyx

Hello: How can I edit text written in math mode in lyx? An example: I write a fraction using \textrm for both the numerator and the denominator. Then I decide to change these to sans serif (textsf). How can I apply the change to the fraction's numerator and denominator? (ie. change the code \textrm to \textsf)? Thanks, bcsikos

### Re: editing math in lyx

On 03/13/2013 09:29 AM, Csikos Bela wrote: Hello: How can I edit text written in math mode in lyx? An example: I write a fraction using \textrm for both the numerator and the denominator. Then I decide to change these to sans serif (textsf). How can I apply the change to the fraction's numerator and denominator? (ie. change the code \textrm to \textsf)? Erase what you had an redo it. Copy it out first, if you wish, and then paste it back. Richard

### Re: editing math in lyx

1. Position the cursor just inside the numerator (you should see 'Font: textrm' in the status line). 2. Hit backspace (removing the font selection and reverting the numerator to normal math font). 3. Select the contents of the numerator. 4. Type '\textsf' and hit the space bar. It will appear to be overwriting the numerator, but when you hit the space bar the numerator contents will be there, in the new font. 5. Repeat for the denominator. Paul

### editing math in lyx

Hello: How can I edit text written in math mode in lyx? An example: I write a fraction using \textrm for both the numerator and the denominator. Then I decide to change these to sans serif (textsf). How can I apply the change to the fraction's numerator and denominator? (ie. change the code \textrm to \textsf)? Thanks, bcsikos

### Re: editing math in lyx

On 03/13/2013 09:29 AM, Csikos Bela wrote: Hello: How can I edit text written in math mode in lyx? An example: I write a fraction using \textrm for both the numerator and the denominator. Then I decide to change these to sans serif (textsf). How can I apply the change to the fraction's numerator and denominator? (ie. change the code \textrm to \textsf)? Erase what you had an redo it. Copy it out first, if you wish, and then paste it back. Richard

### Re: editing math in lyx

1. Position the cursor just inside the numerator (you should see 'Font: textrm' in the status line). 2. Hit backspace (removing the font selection and reverting the numerator to normal math font). 3. Select the contents of the numerator. 4. Type '\textsf' and hit the space bar. It will appear to be overwriting the numerator, but when you hit the space bar the numerator contents will be there, in the new font. 5. Repeat for the denominator. Paul