Emacs + muse

Source: Internet
Author: User

Installation and configuration

Required muse-El: APT-Get install muse-El for Emacs Installation

Dependencies required for publishing PDF files

Several required files need to be installed when muse publishes PDF files.

Apt-Get install latex-CJK-all
Apt-Get install texlive-latex-recommended
Apt-Get install texlive-latex-extra

In ~ /. Emacs configuration is as follows:

; Muse (require 'muse-mode); load authoring mode (require 'muse-html); load publishing styles I use (require 'muse-latex) (require 'muse-texinfo) (require 'muse-docbook) (require 'muse-project); publish files in projects (setq process-path "~ /Documents/Process ") (setq process-HTML-path (Concat process-path"/html ")) (setq process-PDF-path (Concat process-path "/pdf") (setq muse-project-alist '("website" (, process-path: default "Index"); it is strange that the quotation marks must be used, and the process-path must be evaluated in advance (: Base "html": path process-HTML-path )(: base "pdf": path process-PDF-path ))))

Finally, a project named process is created, which is located in ~ /Documents directory.

Run the muse-project-publish command to publish HTML files and PDF files to the HTML and PDF directories.

Access the current edited muse file. For example, the index. Muse file is being opened.

After c-V, I will check the style and reply to HTML. the browser will display index.html in the HTML directory.

CSS

You can specify a CSS file when writing HTML in Muse,

You can configure the default CSS file on. emacs:

 
(Setq muse-HTML-style-sheet "<LINK rel = \" stylesheet \ "type = \" text/CSS \ "href = \" main.css \ "/> ")

You can also have a relative path before main.css. However, you must manually adjust the relative path after publishing to the HTML directory.

The installation path of Audo apt-Get install muse-El can be found through dpkg-l muse-el.

You will soon be able to see some predefined CSS files in:/usr/share/doc/muse-El/examples/mwolson/stylesheets

After my experiment, common.css looks better. It can be used as the default choice for not writing CSS.

Document directory

In this document, it is convenient to use the header to automatically generate directory indexes.

Use where needed

<Contents>

This document uses Muse - Publish - Contents - Depth Directory depth can be controlled, but I fail. The three-tier directory is displayed.

Link to otherArticle

You can use the following mark:

 
[[Link Target] [Link Description]

For example

[[Code] [CodeManagement]

Click the modern code management pattern on the generated HTML page To Go To The code.html page. The premise is that the Code. Muse file exists.

Insert original tag directly

This function is very useful, especially when you want to insert JavaScript, CSS, and HTML tags to enrich the web page.

Use <literal> </literal> to pack the package. I have never realized the power of this function before. I tried it today and it is very convenient to insert a button directly.

This means that I can compile my muse document into a web page of Web2.0 and write it directly.Program.

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.