emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Re: [Orgmode] RE: Using simple css in HTML export‏
@ 2009-07-05 18:22 Charles Howard
  2009-07-06 11:15 ` Sebastian Rose
  0 siblings, 1 reply; 3+ messages in thread
From: Charles Howard @ 2009-07-05 18:22 UTC (permalink / raw)
  To: emacs-orgmode


[-- Attachment #1.1: Type: text/plain, Size: 3049 bytes --]

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="basic.css" />

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 (sebastian_rose@gmx.de)
Sent:     03 July 2009 23:16:27
To:     Charles Howard (incubando@hotmail.co.uk)
Cc:     emacs-orgmode (emacs-orgmode@gnu.org)

Charles Howard <incubando@hotmail.co.uk> 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="basic.css" />


2.) After export, line ~47 (or 46 or 48...) should look like this:

  <link rel="stylesheet" type="text/css" href="basic.css" />

  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

[-- Attachment #1.2: Type: text/html, Size: 4173 bytes --]

[-- Attachment #2: Type: text/plain, Size: 204 bytes --]

_______________________________________________
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

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

end of thread, other threads:[~2009-07-06 12:21 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-07-05 18:22 [Orgmode] RE: Using simple css in HTML export‏ Charles Howard
2009-07-06 11:15 ` Sebastian Rose
2009-07-06 12:21   ` [Orgmode] " Charles Howard

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).