emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* How to include an extra css when export html
@ 2014-06-02 19:17 loochao maillist
  2014-06-02 19:27 ` John Hendy
  0 siblings, 1 reply; 2+ messages in thread
From: loochao maillist @ 2014-06-02 19:17 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 328 bytes --]

Dear list,

I'm trying to include my own css when using org-html-export-as-html.

I tried to have

# Local Variables:
# org-export-html-style-extra: "<link rel=\"stylesheet\" type=\"text/css\"
href=\"my-css-path" />"
# End:

and
#+HTML_INCLUDE_STYLE: my-css-path

But none of above work, is there any suggestion?

Thanks,

Chao

[-- Attachment #2: Type: text/html, Size: 619 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: How to include an extra css when export html
  2014-06-02 19:17 How to include an extra css when export html loochao maillist
@ 2014-06-02 19:27 ` John Hendy
  0 siblings, 0 replies; 2+ messages in thread
From: John Hendy @ 2014-06-02 19:27 UTC (permalink / raw)
  To: loochao maillist; +Cc: emacs-orgmode

Assuming Org >= 8.0, I use this:

#+html_head: <link rel="stylesheet" type="text/css" href="path-to-css" />

Stackoverflow from googling "orgmode 8.0 css"
- http://stackoverflow.com/questions/16453427/cant-get-emacs-org-mode-to-use-my-css-file

And Org-mode manual from googling "orgmode css html"
- http://orgmode.org/manual/CSS-support.html


Best regards,
John

On Mon, Jun 2, 2014 at 2:17 PM, loochao maillist
<loochao.maillist@gmail.com> wrote:
> Dear list,
>
> I'm trying to include my own css when using org-html-export-as-html.
>
> I tried to have
>
> # Local Variables:
> # org-export-html-style-extra: "<link rel=\"stylesheet\" type=\"text/css\"
> href=\"my-css-path" />"
> # End:
>
> and
> #+HTML_INCLUDE_STYLE: my-css-path
>
> But none of above work, is there any suggestion?
>
> Thanks,
>
> Chao

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-06-02 19:27 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-06-02 19:17 How to include an extra css when export html loochao maillist
2014-06-02 19:27 ` John Hendy

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).