
Emacs에서 orgmode를 사용할 때 HTML로 게시하면 별로 보기 좋지 않은 기본 CSS가 사용됩니다.
게시한 후 사용자 지정 CSS를 위해 이전 CSS를 수동으로 제거합니다.
Emacs에서 기본적으로 다른 CSS 파일을 사용하도록 하는 방법이 있습니까?
답변1
: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\" />")))
다음과 같이 파일별 옵션을 정의할 수도 있습니다.
#+STYLE: <link rel="stylesheet" type="text/css" href="stylesheet.css" />
C-h v org-export-html-style TAB TABHTML 내보내기 스타일과 관련된 다양한 옵션을 나열합니다 .