all messages for Emacs-related lists mirrored at yhetil.org
 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

* Re: RE: Using simple css in HTML export‏
  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
  0 siblings, 1 reply; 3+ messages in thread
From: Sebastian Rose @ 2009-07-06 11:15 UTC (permalink / raw)
  To: Charles Howard; +Cc: emacs-orgmode

Charles Howard <terminalbeachbum@googlemail.com> writes:
> Line 46 was already in the table of contents.
>
> I'm using org-mode 6.06, emacs 22.1.1, Ubuntu 8.04.


That must be it. ^^--- that's quite an old version.

The #+STYLE: feature was first documented in revision
3c916eeb385a688d6d99819aad217a49ed82de58 and added in
rev. c4375970d7050497290bc070361f09235cff5e47

... two revisions after the 6.06 release

(not a 100% sure, but looks like...)



So, to add the style, you need to either set it in your
`org-publish-project-alist' (see
http://orgmode.org/manual/Simple-example.html#Simple-example) or use a
special  comment section for a per file setup (see
http://orgmode.org/worg/code/org-info-js/#sec-4.2.1)


HTH

    Sebastian

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

* Re: [Orgmode] RE: Using simple css in HTML export‏
  2009-07-06 11:15 ` Sebastian Rose
@ 2009-07-06 12:21   ` Charles Howard
  0 siblings, 0 replies; 3+ messages in thread
From: Charles Howard @ 2009-07-06 12:21 UTC (permalink / raw)
  To: emacs-orgmode

Thanks. I guess I'll have to upgrade.

Actually on looking through the org-6.06b dir I find no css files at all.

Thanks again. Charles

2009/7/6 Sebastian Rose <sebastian_rose@gmx.de>
>
> Charles Howard <terminalbeachbum@googlemail.com> writes:
> > Line 46 was already in the table of contents.
> >
> > I'm using org-mode 6.06, emacs 22.1.1, Ubuntu 8.04.
>
>
> That must be it. ^^--- that's quite an old version.
>
> The #+STYLE: feature was first documented in revision
> 3c916eeb385a688d6d99819aad217a49ed82de58 and added in
> rev. c4375970d7050497290bc070361f09235cff5e47
>
> ... two revisions after the 6.06 release
>
> (not a 100% sure, but looks like...)
>
>
>
> So, to add the style, you need to either set it in your
> `org-publish-project-alist' (see
> http://orgmode.org/manual/Simple-example.html#Simple-example) or use a
> special  comment section for a per file setup (see
> http://orgmode.org/worg/code/org-info-js/#sec-4.2.1)
>
>
> HTH
>
>    Sebastian
>
>
>
>

^ 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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.