Thanks, it works! First, I installed ubuntu 20.04 cleanly (on VMware Workstation Player), and installed TeXLive2019. And I installed emacs, maxima, and maxima-emacs. In this environment, no problems occur (of course).
Next, I installed TeXLive2020 on another instance of ubuntu 20.04, Then, the LaTeX error occurs. Finally, I applied the patch to imaxima.el on TeXLive2020, then the error is removed. I will test some other expressions on maxima in this environment. Thanks again and regards, Tomoaki Sato (cxn00...@nifty.ne.jp) > From: "Ilya G. Ryabinkin" <1877...@bugs.launchpad.net> > Reply-To: Bug 1877185 <1877...@bugs.launchpad.net> > To: cxn00...@nifty.ne.jp > Subject: [Bug 1877185] Re: maxima-emacs returns LaTeX error > > I have resolve the bug, but testing and releasing is necessary. > > In a nutshell, the issue is caused by a clash of macro definitions > between `breqn` and `amsmath`. > > According to http://mirror.physik-pool.tu- > berlin.de/pub/CTAN/macros/latex/contrib/breqn/breqn.pdf, Sec. 2 (package > loading), a certain order of loading packages in a document's preamble > is necessary: > > ``` > The breqn package automatically loads amsmath to avoid loading order > conflicts. It also automatically loads flexisym and mathstyle, but in some > cases these packages need to be loaded separately. > > The canonical order for package loading is: > 3\usepackage{amsmath} > \usepackage{flexisym} > \usepackage{breqn} > ``` > > That is, LaTeX template inside `imaxima.el` must be updated; patch is > attached. > > A caveat though: there are TWO places where LaTeX template is defined > (see the patch), the bug is fixed by the second; I have introduced the > changes in the first part, but it must be tested. > > ** Patch added: "latex_breqn_fix.patch" > > https://bugs.launchpad.net/ubuntu/+source/maxima/+bug/1877185/+attachment/5428184/+files/latex_breqn_fix.patch > > -- > You received this bug notification because you are subscribed to the bug > report. > https://bugs.launchpad.net/bugs/1877185 > > Title: > maxima-emacs returns LaTeX error > > Status in maxima package in Ubuntu: > Confirmed > > Bug description: > Ubuntu 20.04. > maxima-emacs 5.43.2-3 > > Install emacs, maxima,and maxima-emacs (sudo apt install emacs maxima > maxima-emacs). > Launch emacs. > Type Esc x, and "imaxima". > For the prompt ("%i1"), input a mathematical expression followed by a > semicolon (for example, "1+2;"), and type Enter. > maxima-emacs returns "LaTeX error in: 3". > > ProblemType: Bug > DistroRelease: Ubuntu 20.04 > Package: maxima-emacs 5.43.2-3 > ProcVersionSignature: Ubuntu 5.4.0-29.33-generic 5.4.30 > Uname: Linux 5.4.0-29-generic x86_64 > ApportVersion: 2.20.11-0ubuntu27 > Architecture: amd64 > CasperMD5CheckResult: skip > CurrentDesktop: ubuntu:GNOME > Date: Thu May 7 05:28:52 2020 > InstallationDate: Installed on 2020-05-06 (0 days ago) > InstallationMedia: Ubuntu 20.04 LTS "Focal Fossa" - Release amd64 > (20200506.1) > PackageArchitecture: all > ProcEnviron: > PATH=(custom, no user) > XDG_RUNTIME_DIR=<set> > LANG=ja_JP.UTF-8 > SHELL=/bin/bash > SourcePackage: maxima > UpgradeStatus: No upgrade log present (probably fresh install) > > To manage notifications about this bug go to: > https://bugs.launchpad.net/ubuntu/+source/maxima/+bug/1877185/+subscriptions -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1877185 Title: maxima-emacs returns LaTeX error To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/maxima/+bug/1877185/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs