Saving / Visiting the fileOnce you complete editing the buffer, you can simply save the buffer into a file in odrdinary way. The file contains plain text with embedded Maxima commands, LaTeX command, and Maxima&LaTeX commands. All the commands converted to images are either manually edited LaTeX command, or Maxima&LaTeX command. Any images associated with commands are discarded. When visiting the saved file, if you place: ;; -*- mode: imath -*-
in the first line of the file, GNU Emacs automatically determines that the buffer needs imath mode, and enables it. If not, still you can do: M-x imath-mode
manually to enable the imath mode. The buffer displays all the commands as they are, not displaying any of the images since they were discarded when saved. Typing: C-c $
restores all the images for LaTeX commands and Maxima&LaTeX commands. Exporting to HTMLIt is just easy to generate HTML from imath mode buffer. Before the generation, you need to convert all the commands to images in ways described before. Then type: M-x imath-to-html
in the imath editing buffer. (In this example, binomial.txt buffer.) Then a new buffer visiting a html file (binomial.html here) is created and the html is generated. Saving the buffer stores the buffer in the file that resides in the same directory as the original text file exists. At the same time, a directory called binomial-images is created in which necessary image png files are copied. |