Generating HTML reports with Emacs muse contains mathematical formulas

Source: Internet
Author: User

The requirement is as follows: first, understand that the latest Emacs version comesA muse-latex2png.el file. TheProgramConverts latex to PNG and then displays it on an HTML image.

In ~ /. Add the following to Emacs:

 
(Require 'muse-latex2png)

However, since another program is converted to PNG, it is installed in Ubuntu:

 
Apt-Get install dvipng

Okay. Open the muse document and enter the following mark:

 
<Latex> \ [E = mc ^ 2 \] </latex>

Will display:

Do you think the generated formula image is too large? You can ~ /. Set the value of the variable muse-latex2png-scale-factor in Emacs.

 
(Custom-set-variables; custom-set-variables was added by custom .;; if you edit it by hand, you coshould mess it up, so be careful .;; your init file shoshould contain only one such instance .;; if there is more than one, they won't work right. '(muse-latex2png-scale-factor 1.2) (custom-set-faces; custom-set-faces was added by custom .;; if you edit it by hand, you coshould mess it up, so be careful .;; your init file shoshould contain only one such instance .;; if there is more than one, they won't work right .)


Refer to this articleArticle, Some options can be used for reference.

Http://lifegoo.pluskid.org/wiki/MuseLatex2Png.html

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.