emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* A problem about publishing CSS file
@ 2009-11-10  2:28 Water Lin
  2009-11-10  9:25 ` Carsten Dominik
  2009-11-11  5:43 ` Water Lin
  0 siblings, 2 replies; 3+ messages in thread
From: Water Lin @ 2009-11-10  2:28 UTC (permalink / raw)
  To: emacs-orgmode


I want to publish org file to webpage using my own CSS file. I added a
line like this in my org file:
----------------
#+STYLE:    <link rel="stylesheet" type="text/css" href="../css/stylesheet.css" />

But after I publish the org file using M-x org-publish-current-file, the
output webpage file doesn't use the .. path. The result is like this:
----------------
<link type="text/css" href="./css/stylesheet.css" rel="stylesheet">

Where is the .. gone? Why this happens?

Thanks

Water Lin

-- 
Water Lin's notes and pencils: http://en.waterlin.org
Email: WaterLin@ymail.com
__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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

* Re: A problem about publishing CSS file
  2009-11-10  2:28 A problem about publishing CSS file Water Lin
@ 2009-11-10  9:25 ` Carsten Dominik
  2009-11-11  5:43 ` Water Lin
  1 sibling, 0 replies; 3+ messages in thread
From: Carsten Dominik @ 2009-11-10  9:25 UTC (permalink / raw)
  To: Water Lin; +Cc: emacs-orgmode


On Nov 10, 2009, at 3:28 AM, Water Lin wrote:

>
> I want to publish org file to webpage using my own CSS file. I added a
> line like this in my org file:
> ----------------
> #+STYLE:    <link rel="stylesheet" type="text/css" href="../css/ 
> stylesheet.css" />
>
> But after I publish the org file using M-x org-publish-current-file,  
> the
> output webpage file doesn't use the .. path. The result is like this:
> ----------------
> <link type="text/css" href="./css/stylesheet.css" rel="stylesheet">

I cannot reproduce that either.  Maybe you are overwriting this  
setting somehow.
Maybe with something in org-publish-alist???

- Carsten

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

* Re: A problem about publishing CSS file
  2009-11-10  2:28 A problem about publishing CSS file Water Lin
  2009-11-10  9:25 ` Carsten Dominik
@ 2009-11-11  5:43 ` Water Lin
  1 sibling, 0 replies; 3+ messages in thread
From: Water Lin @ 2009-11-11  5:43 UTC (permalink / raw)
  To: emacs-orgmode

Water Lin <WaterLin@ymail.com> writes:

> I want to publish org file to webpage using my own CSS file. I added a
> line like this in my org file:
> ----------------
> #+STYLE:    <link rel="stylesheet" type="text/css" href="../css/stylesheet.css" />
>
> But after I publish the org file using M-x org-publish-current-file, the
> output webpage file doesn't use the .. path. The result is like this:
> ----------------
> <link type="text/css" href="./css/stylesheet.css" rel="stylesheet">
>
> Where is the .. gone? Why this happens?
>
> Thanks
>
> Water Lin

I think I find the reason. I should set :style in my org configure file.

I set the style in my configure file. Then it works.

Thanks

Water Lin

-- 
Water Lin's notes and pencils: http://en.waterlin.org
Email: WaterLin@ymail.com
__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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

end of thread, other threads:[~2009-11-11  5:44 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-11-10  2:28 A problem about publishing CSS file Water Lin
2009-11-10  9:25 ` Carsten Dominik
2009-11-11  5:43 ` Water Lin

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