On 18 Oct 2016, at 12:27, Stephan Witt 
<st.w...@gmx.net<mailto:st.w...@gmx.net>> wrote:

Am 18.10.2016 um 13:10 schrieb Paola Manzini 
<pm...@st-andrews.ac.uk<mailto:pm...@st-andrews.ac.uk>>:


On 18 Oct 2016, at 12:05, Kornel Benko <kor...@lyx.org<mailto:kor...@lyx.org>> 
wrote:

Am Dienstag, 18. Oktober 2016 um 10:57:08, schrieb Paola Manzini 
<pm...@st-andrews.ac.uk<mailto:pm...@st-andrews.ac.uk>>
On 18 Oct 2016, at 11:39, Kornel Benko 
<kor...@lyx.org<mailto:kor...@lyx.org><mailto:kor...@lyx.org>> wrote:

Am Dienstag, 18. Oktober 2016 um 10:12:50, schrieb Paola Manzini 
<pm...@st-andrews.ac.uk<mailto:pm...@st-andrews.ac.uk><mailto:pm...@st-andrews.ac.uk>>
Hi all,

I’ve searched the list and though this is not the first time the problem is 
noted, I haven’t been able to find any solution. The short of it is: it just 
won’t work. So for instance if I type “5+2” then invoke Edit/Math/CAS, I only 
get a lonely = side to the right of the expression, and no result (see 
screenshot)

I am currently running Lyx 2.2.0 on Mac Os Sierra, but I had exactly the same 
problem under Maverick and El Capitan with previous Lyx versions, namely, 
nothing happens.

I have specified the paths correctly (I think) to where the apps are 
(Mathematica, Maxima, Maple - nothing seems to work), and I can see the 
software calling the app (math-extern maxima), or (math-extern mathematica), 
but no result is churned out.

Here is what I have in the "PATH prefix" field under Lyx->Preferences->Paths:

/Library/TeX/texbin:/usr/texbin:/sw/bin:/sw/sbin:/opt/local/teTeX/bin:/opt/local/bin:/Library/TeX/local/bin:/Library/TeX/bin:/Library/TeX/X11R6/bin:/Library/TeX/sbin:/sbin:/usr/local/sbin:/Library/TeX/usr/local/bin:/Applications/Mathematica.app/Contents/MacOS/MathKernel:/Applications/Maxima.app:/Applications/Maple
 18/Maple 18.app

Can anyone please help?

Many thanks,
Paola

[cid:1CA68732-253E-465F-82E6-7DF587AC9DB0@st-andrews.ac.uk]


I'd try calling lyx with '-dbg mathed' parameter from a console window.
Alternatively use View->Messages Pane->Settings
Check 'Selected'
Double click on 'mathed - Math editor'
back to 'Output'
...
calling: maxima
input: 'simpsum:true;tex(5 + 2);'
output: '7'
Buffer.cpp (3449): updateMacro of novýsúbor9.lyx
12:31:27.889: Automatický úklad hotový.

Here it shows:
12:38:28.705: Alt+M Afinding 'finding 'finding 'use whole cell: checking expr: 
'5 + 2'
calling: maxima
input: 'simpsum:true;tex(5 + 2);'
output: '7'

Kornel

many thanks Kornel for your prompt reply, I’ve tried what you suggested, and 
what I got is no output, namely:

11:55:08.254: (math-extern maxima)finding 'finding 'finding 'use whole cell: 
checking expr: '5 + 2'
calling: maxima
input: 'simpsum:true;tex(5 + 2);’

does this suggest where the problem is?

No, missing: output: '7'

What happens if you call maxima from the console window and input the string 
'(5+2);' followed by <Return>?
Here I get:
(%i1) (5+2);
(%o1)                                  7
(%i2)

thanks,
Paola

Kornel

from the console I get the same as you:
(%i2) 5+2;
(%o2)                                  7
(%i3)

How did you call maxima in terminal?

I have it installed too and it looks like that:
========
$ ls -l /Applications/Maxima.app/Contents/Resources
total 480
-rw-r--r--@ 1 stephan  admin     577 22 Apr  2013 AppSettings.plist
-rw-r--r--@ 1 stephan  admin   27964 22 Apr  2013 MainMenu.nib
-rw-r--r--@ 1 stephan  admin  198769  4 Dez  2012 appIcon.icns
drwxr-xr-x@ 7 stephan  admin     238 22 Apr  2013 maxima
-rwxr-xr-x@ 1 stephan  admin     341 22 Apr  2013 maxima.sh
-rw-r--r--@ 1 stephan  admin    1358 18 Nov  2012 script
-rwxr-xr-x@ 1 stephan  admin     409 22 Apr  2013 xmaxima.sh
$ /Applications/Maxima.app/Contents/Resources/maxima/bin/maxima
/Applications/Maxima.app/Contents/Resources/maxima/bin/maxima: line 199: exec: 
sbcl: not found
$ /Applications/Maxima.app/Contents/Resources/maxima.sh
Maxima 5.30.0 http://maxima.sourceforge.net
using Lisp SBCL 1.0.55.0-abb03f9
Distributed under the GNU Public License. See the file COPYING.
Dedicated to the memory of William Schelter.
The function bug_report() provides bug reporting information.
(%i1)
========

It seems one has to start maxima.sh to get the command line interface. I’m not 
sure LyX knows it.
In any case one has to add "/Applications/Maxima.app/Contents/Resources“ to the 
PATH.

Stephan


thanks Stephan, I used “exec 
'/Applications/Maxima.app/Contents/Resources/maxima.sh’ “

although I also just launch the Maxima.app from the launcher. At any rate I 
have added your line to the path, reconfigured LyX, closed and reopened, but 
alas no change :-(


Reply via email to