emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Xiang Ruan <ruanxiang@ruanxiang.net>
To: emacs-orgmode@gnu.org
Subject: How to export agenda view with html style
Date: Sun, 12 Jul 2020 16:34:22 +0900	[thread overview]
Message-ID: <87blkltce9.fsf@ruanxiang.net> (raw)

Hi, all

I am using org-agenda for GTD.
For easy confirming the information on devices like mobile phone, I export my agenda view to HTML file which locates at my personal server.

However, the exported html does not have style information. For general org file, I know it is easy to add #+HTML_HEADER to specify css information for exporting, unfortunately there is no way to add head information in agenda view.

I did some googles, found there are two possible solutions.
One is to use org-agenda-write to store agenda view to org file and add head information to the file for exporting.
Though I didn't try it, I believe it work well. However, it is not the way I have expected, I want to do it with one step.

I also tried to use org-agenda-export-html-style and did a simple test by adding the below code to my .emacs
(setq org-agenda-export-html-style
      "<link rel=\"stylesheet\" href=\"https://www.w3schools.com/w3css/4/w3.css\">
      <link rel='stylesheet' href='https://fonts.googleapis.com/css?family=Roboto'>
      <link rel=\"stylesheet\" href=\"https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css\">
)
I found org-agenda-export-html-style inserts text in <style></style> block of HTML header that makes the above css including invalid. 

Actually all my personal webpages are made by org-mode with theme-readtheory. The org files have head information: 
#+SETUPFILE:  theme-readtheorg.setup

I wonder if I can also include theme-readtheorg.setup in agenda view exporting?

Could somebody help and advice me a good solution?

Thank you in advance.


                 reply	other threads:[~2020-07-12  7:34 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87blkltce9.fsf@ruanxiang.net \
    --to=ruanxiang@ruanxiang.net \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).