emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Orgmode] RE: Using simple css in HTML export‏


From: Charles Howard
Subject: Re: [Orgmode] RE: Using simple css in HTML export‏
Date: Sun, 5 Jul 2009 19:22:04 +0100

Thanks Sebastian.

I've changed to a gmail account. Hope this leaves the code intact.

> Just to be sure...

> 1.) Your *.org file should have this in the header:

> #+style: <link rel="stylesheet" type="text/css" href="" />
 
Exactly that, except that style was in capitals. 
 
> What did Org-mode's XHTML export <head> section look like then?

***************************************

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
               "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
lang="en" xml:lang="en">
<head>
<title>Directory skeleton (with explanations)</title>
<meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"/>
<meta name="generator" content="Org-mode"/>
<meta name="generated" content="2009-07-05 19:08:09 BST"/>
<meta name="author" content="Study "/>
<style type="text/css">
  html { font-family: Times, serif; font-size: 12pt; }
  .title  { text-align: center; }
  .todo   { color: red; }
  .done   { color: green; }
  .tag    { background-color:lightblue; font-weight:normal }
  .target { }
  .timestamp { color: grey }
  .timestamp-kwd { color: CadetBlue }
  p.verse { margin-left: 3% }
  pre {
    border: 1pt solid #AEBDCC;
    background-color: #F3F5F7;
    padding: 5pt;
    font-family: courier, monospace;
        font-size: 90%;
        overflow:auto;
  }
  table { border-collapse: collapse; }
  td, th { vertical-align: top; }
  dt { font-weight: bold; }
</style>
</head><body>
<h1 class="title">Directory skeleton</h1>


<div id="table-of-contents">

*********************************************************

Line 46 was already in the table of contents.

I'm using org-mode 6.06, emacs 22.1.1, Ubuntu 8.04.

I'm completely puzzled. Giving up ? -- nope.

Charles

===============================================================

Re: [Orgmode] RE: Using simple css in HTML export‏
From:     Sebastian Rose (address@hidden)
Sent:     03 July 2009 23:16:27
To:     Charles Howard (address@hidden)
Cc:     emacs-orgmode (address@hidden)

Charles Howard <address@hidden> writes:
> The hotmail account I am using seems to have stripped out the html code.
 
 
What did Org-mode's XHTML export <head> section look like then?
 
 
> I did have such a line following STYLE, as in the link you quoted.
>
> I had the css file in the same dir as the org file. I used basic.css and ./basic.css
> with no success either way.
 
 
OK. Just to be sure...
 
1.) Your *.org file should have this in the header:
 
#+style: <link rel="stylesheet" type="text/css" href="" />
 
 
2.) After export, line ~47 (or 46 or 48...) should look like this:
 
  <link rel="stylesheet" type="text/css" href="" />
 
  If not, make sure step 1.) is done.
 
 
 
Now, if the exported *.html file and basic.css live in the same
directory, it should work.
 
 
Sorry, you're not allowed to simply give up :)
 
 
 
Sebastian
 
 


reply via email to

[Prev in Thread] Current Thread [Next in Thread]