Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Emacs Org-mode导出 html/pdf都没有颜色

16 views
Skip to first unread message

ż��fofo

unread,
May 18, 2012, 5:31:43 AM5/18/12
to
��ͼ��ʾ���󲿷ֶ��� shell �������html �� pdf ��û����ɫ��

ʹ�õ���htmlize �������£����ʴ���������ô���£�


(require 'htmlize)
(setq org-publish-project-alist
'(("orgfile"
:base-directory "~/work/org/source"
:publishing-directory "~/work/org/publish"
:base-extension "org"
:section-numbers nil
:auto-index t
:headline-levels 3
:publishing-function org-publish-org-to-html
:style "<link rel=\"stylesheet\" href=\"../other/mystyle.css\" type=\"text/css\">")

("images"
:base-directory "~/work/org/source/image"
:base-extension "jpg\\|gif\\|png\\|bmp"
:publishing-directory "~/work/org/publish/image"
:publishing-function org-publish-attachment)

("other"
:base-directory "~/work/org/source/other"
:base-extension "css\\|el"
:publishing-directory "~/work/org/publish/other"
:publishing-function org-publish-attachment

("website" :components ("orgfile" "images")))))

--

[1;36m��--+--�� [m
[1;36m/\ | /\ [m
[1;36m�� _|_ �� [m

[1m��� [m


[m [34m�� ��Դ:��ˮľ���� http://newsmth.net��[FROM: 12.24.60.*] [m

偶是fofo

unread,
May 18, 2012, 5:32:59 AM5/18/12
to
同上

【 在 laofo (偶是fofo) 的大作中提到: 】
: 如图所示,大部分都是 shell 命令,导出html 和 pdf 都没有颜色。
: 使用的是htmlize 配置如下,请问大神,这是怎么回事?
: (require 'htmlize)
: ...................

--
[0m﹡ ﹡ ﹡ [m
[0m﹡ [1;30m花 [0m开花 [1m落,缘 [0m生缘 [1;30m灭 [0m﹡﹡ [m
[1;30m我 [0m愿意 [1m坐在 [0m沙罗 [1;30m双树下 [0m﹡﹡ ﹡ [m
[0m﹡ ﹡ [1;30m随着 [0m沙罗 [1m之花 [0m离去 ﹡ ﹡ ﹡ [m
[0m﹡ ﹡﹡ ﹡ [m
[0m﹡ ﹡ [m


[m [34m※ 来源:·水木社区 http://newsmth.net·[FROM: 12.24.60.*] [m

I love this game!!!

unread,
May 18, 2012, 8:07:32 AM5/18/12
to
orgmode里面你使用如下记号了吗?src block
#+begin_src sh
#+end_src
【 在 laofo (偶是fofo) 的大作中提到: 】
: 如图所示,大部分都是 shell 命令,导出html 和 pdf 都没有颜色。
: 使用的是htmlize 配置如下,请问大神,这是怎么回事?
: (require 'htmlize)
: ...................

--
aoccdrnig to rscheearch at an elingsh uinervtisy
it deosn’t mttaer in waht oredr the ltteers in
a wrod are, the olny iprmoetnt tihng is taht
the frist and lsat ltteer is at the rghit pclae


[m [1;33m※ 来源:·水木社区 newsmth.net·[FROM: 114.243.215.*] [m
0 new messages