I wrote one for you.  Apply the following patch and it should be ok.

But like I said before, I breqn hangs on "integrate(sqrt(x^2+1)/(x^4+1), 
x)".
"(x+y+z)^10" works fine for me.


--- fricas.el
+++ fricas.el
@@ -165,4 +165,5 @@
 (defvar fricas-TeX-preamble (concat "\\documentclass{article}"
                                     
"\\usepackage[active,dvips,tightpage,displaymath]{preview}"
+                                    "\\usepackage{breqn}"
                                     "\\begin{document}"
                                     "\\begin{preview}"))
@@ -1215,6 +1216,16 @@
          (inhibit-read-only t))
 
+    (setq fricas-TeX-buffer-2 fricas-TeX-buffer)
     (write-region (concat fricas-TeX-preamble
-                          fricas-TeX-buffer
+                          (with-temp-buffer
+                            (insert fricas-TeX-buffer-2)
+                            (search-backward "$$")
+                            (replace-match "\\end{dmath*}" t t)
+                            (search-backward-regexp "\n\\\\leqno.*$")
+                            (replace-match "")
+                            (goto-char (point-min))
+                            (search-forward "$$")
+                            (replace-match "\\begin{dmath*}" t t)
+                            (buffer-string))
                           fricas-TeX-postamble)
                   nil fricas-TeX-file)

-- 
You received this message because you are subscribed to the Google Groups 
"FriCAS - computer algebra system" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to fricas-devel+unsubscr...@googlegroups.com.
To post to this group, send email to fricas-devel@googlegroups.com.
Visit this group at https://groups.google.com/group/fricas-devel.
For more options, visit https://groups.google.com/d/optout.

Reply via email to