Imaxima error



Thanks alot for your effort Yasuaki! The issue was the texlive version I
used on the system; the default package in the repos is texlive 2007 and
I suspect that lead to the wrong package being used. I uninstalled this
and installed texlive 2012 as described and it works like a charm!

Many thanks!

Johnny

???? <yasuaki.honda at gmail.com> writes:

> Dear Johnny san,
>
> Here is what I did and imaxima works fine on this.
>
> 1. Install Fedora 17 from live CD image to Virtualbox.
> 2. Install texlive 2012 by doing the followings:
> % sudo rpm -i http://jnovy.fedorapeople.org/texlive/2012/packages.fc17/texlive-release.noarch.rpm
> % sudo yum clean all
> % sudo yum install texlive
>
> 3. Install emacs and maxima by doing the following:
> % sudo yum install emacs maxima
>
> Then put these lines in .emacs or .emacs.d/init.el file:
> (autoload 'imaxima "imaxima" "Frontend of Maxima CAS" t)
> (autoload 'imath "imath" "Interactive Math mode" t)
> (autoload 'imath-mode "imath" "Interactive Math mode" t)
>
> Installation instructions for Fedora on my site for Imaxima and Imath
> is also updated to incorporate the above.
>
> I hope this helps you.
> Yasuaki Honda, Chiba, Japan
>
> 2012/10/21 Johnny <yggdrasil at gmx.co.uk>:
>> Hi Yasuaki,
>>
>> Thanks for your reply and efforts, much appreciated! It seems very
>> likely the problem is the additional tex-modules. I took some notes as I
>> went along installing, so I'll post these below. (I didn't validate this
>> sequence, but it is a good starting point)
>>
>> Let me know how it goes :)
>>
>> ,---- INSTALL IMAXIMA and dependencies in Fedora 17
>> |   1) Install imaxima with dependencies for use with emacs
>> |      : yum install emacs maxima sbcl texlive ghostscript gnuplot
>> |   2) Switch to the texmf directory (example for local user)
>> |      : cd ~/texmf/tex/
>> |   3) Get mh latex package (for breqn.sty)
>> |      : wget http://www.ctan.org/get/install/macros/latex/contrib/mh.tds.zip
>> |      : unzip mh.tds.zip
>> |      : cd mh
>> |      : find . -iname "*dtx" -exec tex {} \;
>> |      : cd ..
>> |      : rm mh.tds.zip
>> |   4) Get l3kernel latex package
>> |      : wget http://mirror.ctan.org/macros/latex/contrib/l3kernel.zip
>> |      : unzip l3kernel.zip
>> |      : cd l3kernel
>> |      : latex l3.ins
>> |      : cd ..
>> |      : rm l3kernel.zip
>> |   5) Update tex path
>> |      : texhash ~/texmf
>> |   6) Check the install
>> |      : kpsewhich breqn.sty expl3.sty
>> |      This should return the correct paths.
>> |      1) If nothing is returned make sure the path where stuff was installed is included in the path
>> |       : kpsepath tex
>> |       This should return e.g. in the example above ~/texmf/tex
>> `----
>>
>> Oh, and I tried creating a simple .tex file for testing of breqn and
>> expl3 (attached). The former generates an abundance of errors, the
>> latter simply:
>>
>>
>>
>> ,----
>> | LaTeX Warning: You have requested, on input line 48, version
>> |                `2012/07/15' of package l3names,
>> |                but only version
>> |                `1998/04/20 v2.0b L3 Experimental Naming Scheme for TeX Primitives'
>> |                is available.
>> |
>> | ! Package expl3 Error: MismatchedLaTeX3packagesdetected..
>> `----
>>
>>
>>
>> ???? <yasuaki.honda at gmail.com> writes:
>>
>>> Hi Johnny san,
>>>
>>> This error sometimes happens, but usually that is due to the
>>> lack of breqn.sty or related latex packages. But in your case,
>>> things seem to be installed correctly,,,,
>>>
>>> I will try Fedora 17 by myself and will share with you my
>>> experiences.
>>>
>>> Yasuaki Honda, maintaining imaxima and imath
>>>
>>> 2012/10/19 Johnny <yggdrasil at gmx.co.uk>:
>>>> Hi all,
>>>>
>>>> I am still struggling to get IMaxima in emacs to work (previous thread),
>>>> but as this is quite different it was worth a new thread. Fedora 17,
>>>> Emacs 24.1.1.
>>>>
>>>> After installing the required packages according to [1], I start emacs
>>>> in Imaxima and get the following:
>>>>
>>>> ,----
>>>> | (%i1) f(x):=x;
>>>> |
>>>> | LaTeX error in: f\left(x\right):=x
>>>> | (%i2)
>>>> `----
>>>>
>>>> I have checked my installation by running:
>>>>
>>>> ,----
>>>> | [johnny at elmachina ~]$ yum list emacs maxima sbcl texlive ghostscript gnuplot; kpsewhich breqn.sty expl3.sty
>>>> | Loaded plugins: langpacks, presto, refresh-packagekit
>>>> | Installed Packages
>>>> | emacs.i686 1:24.1-4.fc17
>>>> | ghostscript.i686 9.05-4.fc17
>>>> | gnuplot.i686 4.4.4-3.fc17
>>>> | maxima.i686 5.27.0-3.fc17
>>>> | sbcl.i686 1.0.57-1.fc17
>>>> | texlive.i686 2007-70.fc17
>>>> | /home/johnny/texmf/tex/mh/breqn.sty
>>>> | /home/johnny/texmf/tex/l3kernel/expl3.sty
>>>> `----
>>>>
>>>> And in my emacs .init file I have:
>>>>
>>>> ,----
>>>> | (add-to-list 'load-path "/usr/share/maxima/5.27.0/emacs/")               |
>>>> | (autoload 'maxima-mode "maxima" "Maxima mode" t)                         |
>>>> | (autoload 'imaxima "imaxima" "Frontend for maxima with Image support" t) |
>>>> | (autoload 'maxima "maxima" "Maxima interaction" t)                       |
>>>> | (autoload 'imath-mode "imath" "Imath mode for math formula input" t)     |
>>>> | (setq imaxima-use-maxima-mode-flag t)                                    |
>>>> `----
>>>>
>>>> What am I missing here?
>>>>
>>>> Thanks for any help!
>>>>
>>>> Johnny
>>>>
>>>> Footnotes:
>>>> [1]  https://sites.google.com/site/imaximaimath/download-and-install
>>>>
>>>> --
>>>> Johnny
>>>> _______________________________________________
>>>> Maxima mailing list
>>>> Maxima at math.utexas.edu
>>>> http://www.math.utexas.edu/mailman/listinfo/maxima
>>
>> --
>> Johnny
>>

-- 
Johnny