emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Using simple css in HTML export
@ 2009-07-03 18:38 Charles Howard
  2009-07-03 19:20 ` Matthew Lundin
  2009-07-03 19:29 ` Dan Davison
  0 siblings, 2 replies; 5+ messages in thread
From: Charles Howard @ 2009-07-03 18:38 UTC (permalink / raw)
  To: emacs-orgmode


Hi. I thought it would be a simple matter to make use of a css file in html export. 

At the top of my file I put

#+LATEX_CLASS: myarticle
#+TITLE: Directory skeleton 
#+AUTHOR: Study
#+STYLE: 

but no result. I did Cc-Cc, closed down and reopened. 

Am I doing something stupidly wrong? I can't see anything about this in the archive. 

I'm still at the `late novice' stage and would really appreciate help. 

Charles




_________________________________________________________________
With Windows Live, you can organise, edit, and share your photos.
http://clk.atdmt.com/UKM/go/134665338/direct/01/

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

* Re: Using simple css in HTML export
  2009-07-03 18:38 Using simple css in HTML export Charles Howard
@ 2009-07-03 19:20 ` Matthew Lundin
  2009-07-03 21:53   ` Charles Howard
  2009-07-03 19:29 ` Dan Davison
  1 sibling, 1 reply; 5+ messages in thread
From: Matthew Lundin @ 2009-07-03 19:20 UTC (permalink / raw)
  To: Charles Howard; +Cc: emacs-orgmode

Charles Howard <incubando@hotmail.co.uk> writes:

> Hi. I thought it would be a simple matter to make use of a css file in html export. 
>
> At the top of my file I put
>
> #+LATEX_CLASS: myarticle
> #+TITLE: Directory skeleton 
> #+AUTHOR: Study
> #+STYLE: 
>
> but no result. I did Cc-Cc, closed down and reopened. 

You'll have to fill in instructions in the #+STYLE line (i.e., a path to
the css file) for this to work.

E.g. 

--8<---------------cut here---------------start------------->8---
#+STYLE: <link rel="stylesheet" type="text/css" href="stylesheet.css" />
--8<---------------cut here---------------end--------------->8---

Please see the manual for more details:

http://orgmode.org/manual/CSS-support.html

Best,
Matt

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

* Re: Using simple css in HTML export
  2009-07-03 18:38 Using simple css in HTML export Charles Howard
  2009-07-03 19:20 ` Matthew Lundin
@ 2009-07-03 19:29 ` Dan Davison
  1 sibling, 0 replies; 5+ messages in thread
From: Dan Davison @ 2009-07-03 19:29 UTC (permalink / raw)
  To: Charles Howard; +Cc: emacs-orgmode

Charles Howard <incubando@hotmail.co.uk> writes:

> Hi. I thought it would be a simple matter to make use of a css file in html export. 
>
> At the top of my file I put
>
> #+LATEX_CLASS: myarticle
> #+TITLE: Directory skeleton 
> #+AUTHOR: Study
> #+STYLE: 

Hi Charles,

The #+style line should look something like this:

#+style: <link rel="stylesheet" type="text/css" href="my_css_file.css" />

Dan

>
> but no result. I did Cc-Cc, closed down and reopened. 
>
> Am I doing something stupidly wrong? I can't see anything about this in the archive. 
>
> I'm still at the `late novice' stage and would really appreciate help. 
>
> Charles
>
>
>
>
> _________________________________________________________________
> With Windows Live, you can organise, edit, and share your photos.
> http://clk.atdmt.com/UKM/go/134665338/direct/01/
>
> _______________________________________________
> 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] 5+ messages in thread

* RE: Using simple css in HTML export
  2009-07-03 19:20 ` Matthew Lundin
@ 2009-07-03 21:53   ` Charles Howard
  2009-07-03 23:20     ` Sebastian Rose
  0 siblings, 1 reply; 5+ messages in thread
From: Charles Howard @ 2009-07-03 21:53 UTC (permalink / raw)
  To: emacs-orgmode


The hotmail account I am using seems to have stripped out the html code. 

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. 

Thanks Matt. I still don't know why this didn't work. 

Chas

----------------------------------------
> From: mdl@imapmail.org
> To: incubando@hotmail.co.uk
> CC: emacs-orgmode@gnu.org
> Subject: Re: Using simple css in HTML export
> Date: Fri, 3 Jul 2009 14:20:36 -0500
>
> Charles Howard  writes:
>
>> Hi. I thought it would be a simple matter to make use of a css file in html export.
>>
>> At the top of my file I put
>>
>> #+LATEX_CLASS: myarticle
>> #+TITLE: Directory skeleton
>> #+AUTHOR: Study
>> #+STYLE:
>>
>> but no result. I did Cc-Cc, closed down and reopened.
>
> You'll have to fill in instructions in the #+STYLE line (i.e., a path to
> the css file) for this to work.
>
> E.g.
>
> --8<---------------cut here---------------start------------->8---
> #+STYLE: 
> --8<---------------cut here---------------end--------------->8---
>
> Please see the manual for more details:
>
> http://orgmode.org/manual/CSS-support.html
>
> Best,
> Matt
>

_________________________________________________________________
Get the best of MSN on your mobile
http://clk.atdmt.com/UKM/go/147991039/direct/01/

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

* Re: RE: Using simple css in HTML export
  2009-07-03 21:53   ` Charles Howard
@ 2009-07-03 23:20     ` Sebastian Rose
  0 siblings, 0 replies; 5+ messages in thread
From: Sebastian Rose @ 2009-07-03 23:20 UTC (permalink / raw)
  To: Charles Howard; +Cc: emacs-orgmode

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

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

end of thread, other threads:[~2009-07-03 23:16 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-03 18:38 Using simple css in HTML export Charles Howard
2009-07-03 19:20 ` Matthew Lundin
2009-07-03 21:53   ` Charles Howard
2009-07-03 23:20     ` Sebastian Rose
2009-07-03 19:29 ` Dan Davison

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