rei*_*ier 4 emacs publishing org-mode
在 Emacs 中使用 orgmode 时,当我发布到 HTML 时,它使用了一个看起来不太好的默认 CSS。
发布后,我手动为自定义 CSS 删除旧 CSS。
Emacs 中有没有办法让它默认使用我的其他 CSS 文件?
小智 6
:style
在您的发布项目中使用该参数。例如:
(setq org-publish-project-alist
'(("Homepage"
:base-directory "~/git/homepage/"
:base-extension "org"
:publishing-directory "~/public_html/"
:publishing-function org-publish-org-to-html
:style "<link rel=\"stylesheet\" href=\"style.css\" type=\"text/css\" />")))
Run Code Online (Sandbox Code Playgroud)
您还可以像这样定义每个文件的选项:
#+STYLE: <link rel="stylesheet" type="text/css" href="stylesheet.css" />
Run Code Online (Sandbox Code Playgroud)
不要C-h v org-export-html-style TAB TAB列出有关样式HTML输出的各种选项。
归档时间: |
|
查看次数: |
2058 次 |
最近记录: |