目录修改如下:
Tables of Contents
(defun org-html-toc (depth info)
"Build a table of contents.
DEPTH is an integer specifying the depth of the table. INFO is a
plist used as a communication channel. Return the table of
contents as a string, or nil if it is empty."
(let ((toc-entries
(mapcar (lambda (headline)
(cons (org-html--format-toc-headline headline info)
(org-export-get-relative-level headline info)))
(org-export-collect-headlines info depth)))
(outer-tag (if (and (org-html-html5-p info)
(plist-get info :html-html5-fancy))
"nav"
"div")))
(when toc-entries
(concat (format "<%s id=\"table-of-contents\">\n" outer-tag)
(format "<h%d>%s</h%d>\n"
org-html-toplevel-hlevel
(org-html--translate "Table of Contents" info)修改目录
org-html-toplevel-hlevel)
"<div id=\"text-table-of-contents\">"
(org-html--toc-text toc-entries)
"</div>\n"
(format "</%s>\n" outer-tag)))))
emacs只是个编辑器,本身不能编译。有脚本可以从emacs中调用autotools自动工具和gcc编译器编译,但终究emacs只是编辑器。。 在win下用emacs+gcc,属于无用的“杂技”,看起来很科技,其实无用。可以用cygwin模拟unix环境。 为什么这么多基本功差
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)