Re: Fwd: CAS exposure in LyX (was Re: Importing Lyx files in SWP)
Murat Yildizoglu wrote: Thanks a lot Olivier, this works perfectly for Maxima. I can ask it to compute \frac{\partial x^{2}}{\partial x}=2\, x and it works as it is shown by the = sign but how to ask more indirect tasks? Question: How to pass commands to Maxima? Should we write full Maxima expressions, instead of the standard math notation? In SWP there is a Computation menu where it is possible to choose the operation that we desire (simplify, evaluate, etc.). I think Lyx should stay with the math notation it has. Users should not need to write differently depending on whether they use maxima or some other math package. LyX should handle the conversion into something maxima/octace/whatever can understand. Of course the math menu in LyX can be extended. If different menus for simplify, evaluate etc. is useful, then it can be made. Someone interested has to do the work though. Helge Hafting
Re: Fwd: CAS exposure in LyX (was Re: Importing Lyx files in SWP)
On 2010-01-06, Helge Hafting wrote: Murat Yildizoglu wrote: Thanks a lot Olivier, this works perfectly for Maxima. I can ask it to compute \frac{\partial x^{2}}{\partial x}=2\, x and it works as it is shown by the = sign but how to ask more indirect tasks? Question: How to pass commands to Maxima? Should we write full Maxima expressions, instead of the standard math notation? In SWP there is a Computation menu where it is possible to choose the operation that we desire (simplify, evaluate, etc.). I think Lyx should stay with the math notation it has. Users should not need to write differently depending on whether they use maxima or some other math package. LyX should handle the conversion into something maxima/octace/whatever can understand. Of course the math menu in LyX can be extended. If different menus for simplify, evaluate etc. is useful, then it can be made. The problem here is, that LaTeX only knows/needs presentational math commands. A large part of the CAS syntax has no meaning in pure math. Hence it does not make sense to extend LaTeX math for CAS. Proposals (first draw): * for code from a file, use the external material inset, Create a CAS template replacing Maxima/Octave/swiginac input with the LaTeX output in a math-editor box. * a CAS-inset for the math editor with configurable accepting CAS commands in a configurable language. Günter
Re: Fwd: CAS exposure in LyX (was Re: Importing Lyx files in SWP)
Murat Yildizoglu wrote: Thanks a lot Olivier, this works perfectly for Maxima. I can ask it to compute \frac{\partial x^{2}}{\partial x}=2\, x and it works as it is shown by the = sign but how to ask more indirect tasks? Question: How to pass commands to Maxima? Should we write full Maxima expressions, instead of the standard math notation? In SWP there is a Computation menu where it is possible to choose the operation that we desire (simplify, evaluate, etc.). I think Lyx should stay with the math notation it has. Users should not need to write differently depending on whether they use maxima or some other math package. LyX should handle the conversion into something maxima/octace/whatever can understand. Of course the math menu in LyX can be extended. If different menus for simplify, evaluate etc. is useful, then it can be made. Someone interested has to do the work though. Helge Hafting
Re: Fwd: CAS exposure in LyX (was Re: Importing Lyx files in SWP)
On 2010-01-06, Helge Hafting wrote: Murat Yildizoglu wrote: Thanks a lot Olivier, this works perfectly for Maxima. I can ask it to compute \frac{\partial x^{2}}{\partial x}=2\, x and it works as it is shown by the = sign but how to ask more indirect tasks? Question: How to pass commands to Maxima? Should we write full Maxima expressions, instead of the standard math notation? In SWP there is a Computation menu where it is possible to choose the operation that we desire (simplify, evaluate, etc.). I think Lyx should stay with the math notation it has. Users should not need to write differently depending on whether they use maxima or some other math package. LyX should handle the conversion into something maxima/octace/whatever can understand. Of course the math menu in LyX can be extended. If different menus for simplify, evaluate etc. is useful, then it can be made. The problem here is, that LaTeX only knows/needs presentational math commands. A large part of the CAS syntax has no meaning in pure math. Hence it does not make sense to extend LaTeX math for CAS. Proposals (first draw): * for code from a file, use the external material inset, Create a CAS template replacing Maxima/Octave/swiginac input with the LaTeX output in a math-editor box. * a CAS-inset for the math editor with configurable accepting CAS commands in a configurable language. Günter
Re: Fwd: CAS exposure in LyX (was Re: Importing Lyx files in SWP)
Murat Yildizoglu wrote: Thanks a lot Olivier, this works perfectly for Maxima. I can ask it to compute \frac{\partial x^{2}}{\partial x}=2\, x and it works as it is shown by the = sign but how to ask more indirect tasks? Question: How to pass commands to Maxima? Should we write full Maxima expressions, instead of the standard math notation? In SWP there is a Computation menu where it is possible to choose the operation that we desire (simplify, evaluate, etc.). I think Lyx should stay with the math notation it has. Users should not need to write differently depending on whether they use maxima or some other math package. LyX should handle the conversion into something maxima/octace/whatever can understand. Of course the math menu in LyX can be extended. If different menus for simplify, evaluate etc. is useful, then it can be made. Someone interested has to do the work though. Helge Hafting
Re: Fwd: CAS exposure in LyX (was Re: Importing Lyx files in SWP)
On 2010-01-06, Helge Hafting wrote: > Murat Yildizoglu wrote: >> Thanks a lot Olivier, this works perfectly for Maxima. >> I can ask it to compute \frac{\partial x^{2}}{\partial x}=2\, x and >> it works as it is shown by the = sign but how to ask more indirect >> tasks? >> Question: How to pass commands to Maxima? Should we write full Maxima >> expressions, instead of the standard math notation? In SWP there is a >> Computation menu where it is possible to choose the operation that we >> desire (simplify, evaluate, etc.). > I think Lyx should stay with the math notation it has. Users should not > need to write differently depending on whether they use maxima or some > other math package. > LyX should handle the conversion into something maxima/octace/whatever > can understand. > Of course the math menu in LyX can be extended. If different menus > for simplify, evaluate etc. is useful, then it can be made. The problem here is, that LaTeX only knows/needs "presentational" math commands. A large part of the CAS syntax has no meaning in "pure" math. Hence it does not make sense to extend "LaTeX math" for CAS. Proposals (first draw): * for code from a file, use the external material inset, Create a CAS template replacing Maxima/Octave/swiginac input with the LaTeX output in a math-editor box. * a "CAS-inset" for the math editor with configurable accepting CAS commands in a configurable language. Günter
Fwd: CAS exposure in LyX (was Re: Importing Lyx files in SWP)
Thanks a lot Olivier, this works perfectly for Maxima. I can ask it to compute \frac{\partial x^{2}}{\partial x}=2\, x and it works as it is shown by the = sign but how to ask more indirect tasks? Question: How to pass commands to Maxima? Should we write full Maxima expressions, instead of the standard math notation? In SWP there is a Computation menu where it is possible to choose the operation that we desire (simplify, evaluate, etc.). Murat 2009/11/24 Olivier Ripoll durocortorum73-gm...@yahoo.fr: Ken wrote: That's a fantastic new discovery of a further LyX feature. As for making it more useful, perhaps LyX needs some buttons in the math toolbar for Octave or Maxima or a way of customizing some new buttons to run the Edit-Math-CAS options. That's actually easy: here is how to get the Maxima action in the context menu: 0- close lyx if opened 1- Copy the stdcontext.inc file found in the common ui folder of LyX. On windows, it is C:\Program Files\LyX 1.6.4\Resources\ui, on linux, I'd expect it to be somewhere in /usr/share 2- Paste this file in your own ui folder. On windows, it is in C:\Documents and Settings\username\Application Data\lyx16\ui 3- with a decent text editor (accepting unix LF), find the 'Menu context-math' section, and at the end (after line 75, before the 'End'), add the following 2 lines (the second is taken from the edit_math_extern section of file 'stdmenus.inc', if you wonder how to add Octave, Maple, etc.) Separator Item Maxima|M math-extern maxima 4- save, restart lyx Best regards, Olivier -- Prof. Murat Yildizoglu Université Paul Cézanne (Aix-Marseille 3) GREQAM (UMR CNRS 6579) Centre de la Vieille Charité 2, rue de la Charité 13236 Marseille cedex 02 Bureau 320 Tel : +33 4 91 14 07 27 (standard) Tel : +33 4 91 14 07 70 (secrétariat) Tel : +33 4 91 14 07 47 (bureau) Fax : +33 4 91 90 02 27 e-mail: murat.yildizo...@univ-cezanne.fr www : http://www.vcharite.univ-mrs.fr/PP/yildi/index.html http://www.twitter.com/yildizoglu __
Fwd: CAS exposure in LyX (was Re: Importing Lyx files in SWP)
Thanks a lot Olivier, this works perfectly for Maxima. I can ask it to compute \frac{\partial x^{2}}{\partial x}=2\, x and it works as it is shown by the = sign but how to ask more indirect tasks? Question: How to pass commands to Maxima? Should we write full Maxima expressions, instead of the standard math notation? In SWP there is a Computation menu where it is possible to choose the operation that we desire (simplify, evaluate, etc.). Murat 2009/11/24 Olivier Ripoll durocortorum73-gm...@yahoo.fr: Ken wrote: That's a fantastic new discovery of a further LyX feature. As for making it more useful, perhaps LyX needs some buttons in the math toolbar for Octave or Maxima or a way of customizing some new buttons to run the Edit-Math-CAS options. That's actually easy: here is how to get the Maxima action in the context menu: 0- close lyx if opened 1- Copy the stdcontext.inc file found in the common ui folder of LyX. On windows, it is C:\Program Files\LyX 1.6.4\Resources\ui, on linux, I'd expect it to be somewhere in /usr/share 2- Paste this file in your own ui folder. On windows, it is in C:\Documents and Settings\username\Application Data\lyx16\ui 3- with a decent text editor (accepting unix LF), find the 'Menu context-math' section, and at the end (after line 75, before the 'End'), add the following 2 lines (the second is taken from the edit_math_extern section of file 'stdmenus.inc', if you wonder how to add Octave, Maple, etc.) Separator Item Maxima|M math-extern maxima 4- save, restart lyx Best regards, Olivier -- Prof. Murat Yildizoglu Université Paul Cézanne (Aix-Marseille 3) GREQAM (UMR CNRS 6579) Centre de la Vieille Charité 2, rue de la Charité 13236 Marseille cedex 02 Bureau 320 Tel : +33 4 91 14 07 27 (standard) Tel : +33 4 91 14 07 70 (secrétariat) Tel : +33 4 91 14 07 47 (bureau) Fax : +33 4 91 90 02 27 e-mail: murat.yildizo...@univ-cezanne.fr www : http://www.vcharite.univ-mrs.fr/PP/yildi/index.html http://www.twitter.com/yildizoglu __
Fwd: CAS exposure in LyX (was Re: Importing Lyx files in SWP)
Thanks a lot Olivier, this works perfectly for Maxima. I can ask it to compute \frac{\partial x^{2}}{\partial x}=2\, x and it works as it is shown by the = sign but how to ask more indirect tasks? Question: How to pass commands to Maxima? Should we write full Maxima expressions, instead of the standard math notation? In SWP there is a Computation menu where it is possible to choose the operation that we desire (simplify, evaluate, etc.). Murat 2009/11/24 Olivier Ripoll: > Ken wrote: >> >> That's a fantastic new discovery of a further LyX feature. As for >> making it more useful, perhaps LyX needs some buttons in the math >> toolbar for Octave or Maxima or a way of customizing some new buttons >> to run the Edit->Math->CAS options. > > That's actually easy: here is how to get the Maxima action in the context > menu: > > 0- close lyx if opened > > 1- Copy the "stdcontext.inc" file found in the common "ui" folder of LyX. > On windows, it is > "C:\Program Files\LyX 1.6.4\Resources\ui", on linux, I'd expect it to be > somewhere in "/usr/share" > > 2- Paste this file in your own "ui" folder. > On windows, it is in > "C:\Documents and Settings\username\Application Data\lyx16\ui" > > 3- with a decent text editor (accepting unix LF), find the > 'Menu "context-math"' section, and at the end (after line 75, before the > 'End'), add the following 2 lines (the second is taken from the > "edit_math_extern" section of file 'stdmenus.inc', if you wonder how to add > Octave, Maple, etc.) > Separator > Item "Maxima|M" "math-extern maxima" > > 4- save, restart lyx > > Best regards, > > Olivier > > > -- Prof. Murat Yildizoglu Université Paul Cézanne (Aix-Marseille 3) GREQAM (UMR CNRS 6579) Centre de la Vieille Charité 2, rue de la Charité 13236 Marseille cedex 02 Bureau 320 Tel : +33 4 91 14 07 27 (standard) Tel : +33 4 91 14 07 70 (secrétariat) Tel : +33 4 91 14 07 47 (bureau) Fax : +33 4 91 90 02 27 e-mail: murat.yildizo...@univ-cezanne.fr www : http://www.vcharite.univ-mrs.fr/PP/yildi/index.html http://www.twitter.com/yildizoglu __