Re: [Orgmode] Re: html export - howto change UP|HOME link style?

2009-11-21 Thread Eraldo Helal
It seems to me that they need to be inside because otherwise the page does
not validate.

Eraldo
___
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


Re: [Orgmode] Re: html export - howto change UP|HOME link style?

2009-11-21 Thread Carsten Dominik


On Nov 21, 2009, at 9:37 AM, Eraldo Helal wrote:

It seems to me that they need to be inside because otherwise the  
page does not validate.


I believe this may apple for the body tag.  However, I was talking  
about the content div, which is something we have in orgmode to give  
people something to hook their css on.


- Carsten





___
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


Re: [Orgmode] Re: html export - howto change UP|HOME link style?

2009-11-21 Thread Eraldo Helal

 I believe this may apple for the body tag.  However, I was talking about
 the content div, which is something we have in orgmode to give people
 something to hook their css on.
 - Carsten


Oh, I see. =]
I am working on making a homepage with org-mode a.t.m.: http://eraldo.org/
Let's see if the home|up links will validate after my next git update.
___
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


Re: [Orgmode] Re: html export - howto change UP|HOME link style?

2009-11-18 Thread Sebastian Rose
Carsten Dominik carsten.domi...@gmail.com writes:
[...]
 OK, I'll leave it there - we'll see if someone complains.

 - Carsten



Good idea ;-)


   Sebastian


___
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


Re: [Orgmode] Re: html export - howto change UP|HOME link style?

2009-11-17 Thread Eraldo Helal
Thanks again for this Sebastiran!
Will this be changed in newer versions of orgmode?
If so... I will just wait.

Greetings from Austria,
Eraldo
___
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


Re: [Orgmode] Re: html export - howto change UP|HOME link style?

2009-11-17 Thread Sebastian Rose
Carsten Dominik carsten.domi...@gmail.com writes:
 OK, I have applied the patch.

 But:  Is it really correct that these links should be inside the content div?

Hm - this is a matter of taste. I thought I had changed it...
Good question.


Pros:

  Some people might restrict the content div to a certain size or frame
  and would like it this way.

Cons:

  If people choose to extract the content div to put it's contents into
  some framework, they probably wouldn't want those links there.

  But they could simply ommit LINK_HOME/UP, so...



One could always put those links in the margin of the content div, or
even outside, using CSS.


  Sebastian




 - Cartsen

 On Nov 15, 2009, at 12:02 AM, Sebastian Rose wrote:

 Bernt Hansen be...@norang.ca writes:
 ,[ test.org exported to HTML buffer ]
 | head
 | div style=text-align:right;font-size:70%;white-space:nowrap;
 |  a accesskey=h href=up_goes_here UP /a
 |  |
 |  a accesskey=H href=home_goes_there HOME /a
 | /div
 |
 | titletest.org/title
 `

 Shouldn't the up and home links both be moved to the body of the page,
 stripped of their in-line style info (text-align, font-size,
 white-space) and use CSS for this instead?  I think that might be more
 flexible for formatting.



 This patch fixes it. I've put the LINK_UP and ..._HOME directly after
 the body tag:

 body
   -  HERE ---
  div id=content

 ..


 The links can be formated customizing the variable

  `org-export-html-home/up-format'



  Sebastian


 diff --git a/lisp/org-html.el b/lisp/org-html.el
 index 11a692e..66cc86b 100644
 --- a/lisp/org-html.el
 +++ b/lisp/org-html.el
 @@ -753,7 +753,6 @@ PUB-DIR is set, use this as the publishing directory.
 html xmlns=\http://www.w3.org/1999/xhtml\;
 lang=\%s\ xml:lang=\%s\
 head
 -%s
 title%s/title
 meta http-equiv=\Content-Type\ content=\text/html;charset=%s\/
 meta name=\generator\ content=\Org-mode\/
 @@ -765,6 +764,7 @@ lang=\%s\ xml:lang=\%s\
 /head
 body
 div id=\content\
 +%s
 
   (format
(or (and (stringp org-export-html-xml-declaration)
 @@ -775,17 +775,17 @@ lang=\%s\ xml:lang=\%s\
)
(or charset iso-8859-1))
   language language
 + (org-html-expand title)
 + (or charset iso-8859-1)
 + date author description keywords
 + style
   (if (or link-up link-home)
   (concat
(format org-export-html-home/up-format
(or link-up link-home)
(or link-home link-up))
\n)
 -   )
 - (org-html-expand title)
 - (or charset iso-8859-1)
 - date author description keywords
 - style))
 +   )))

 (org-export-html-insert-plist-item opt-plist :preamble opt-
 plist)


 - Carsten


___
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


Re: [Orgmode] Re: html export - howto change UP|HOME link style?

2009-11-16 Thread Sebastian Rose
Eraldo Helal era...@eraldo.org writes:
 Thanks again for this Sebastiran!
 Will this be changed in newer versions of orgmode?
 If so... I will just wait.


Yes, I think so - simply because it's not valid.

The id of the div element will be org-div-home-and-up as I see in
the current git version.


I guess Carsten is very busy at the moment because of all those patches
and changes lately. Also, there is pressure to get all important changes
into the next release of Emacs, if I got that right.


As I assume you follow the git repo, you could just add a local branch
and patch lisp/html.el in the mean time. You could delete it, once the
fix is in.


  Sebastian


___
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


Re: [Orgmode] Re: html export - howto change UP|HOME link style?

2009-11-15 Thread Eraldo Helal
 This patch fixes it. I've put the LINK_UP and ..._HOME directly after
 the body tag:

 body
   -  HERE ---
  div id=content

 How can I now style them with css ...without messing with the other links?
 By defining links in body for UP and HOME and defining links again in
content for rest?

Eraldo
___
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


[Orgmode] Re: html export - howto change UP|HOME link style?

2009-11-14 Thread Bernt Hansen
Eraldo Helal era...@eraldo.org writes:

 How can I make style changes to UP and HOME links? (#+LINK_UP/HOME) without 
 messing with the other
 link styles?

You should use CSS for this but...

the up and home links seem to be inside the head../head section of
the page and not the body../body section.  This looks strange to me.

The up and home links also have style applied to them which should
probably be removed so that CSS can completely control the look of the
links.

Part of the export buffer for a test org file looks like this.

,[ test.org exported to HTML buffer ]
| head
| div style=text-align:right;font-size:70%;white-space:nowrap;
|  a accesskey=h href=up_goes_here UP /a
|  |
|  a accesskey=H href=home_goes_there HOME /a
| /div
| 
| titletest.org/title
`

Shouldn't the up and home links both be moved to the body of the page,
stripped of their in-line style info (text-align, font-size,
white-space) and use CSS for this instead?  I think that might be more
flexible for formatting.

-Bernt


___
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


Re: [Orgmode] Re: html export - howto change UP|HOME link style?

2009-11-14 Thread Sebastian Rose
Bernt Hansen be...@norang.ca writes:
 ,[ test.org exported to HTML buffer ]
 | head
 | div style=text-align:right;font-size:70%;white-space:nowrap;
 |  a accesskey=h href=up_goes_here UP /a
 |  |
 |  a accesskey=H href=home_goes_there HOME /a
 | /div
 | 
 | titletest.org/title
 `

 Shouldn't the up and home links both be moved to the body of the page,
 stripped of their in-line style info (text-align, font-size,
 white-space) and use CSS for this instead?  I think that might be more
 flexible for formatting.


Yes, true. This is a bug (not valid and links will not show up in some
browsers).


I'll take a look. Maybe I can find it...


  Sebastian


___
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


Re: [Orgmode] Re: html export - howto change UP|HOME link style?

2009-11-14 Thread Sebastian Rose
Bernt Hansen be...@norang.ca writes:
 ,[ test.org exported to HTML buffer ]
 | head
 | div style=text-align:right;font-size:70%;white-space:nowrap;
 |  a accesskey=h href=up_goes_here UP /a
 |  |
 |  a accesskey=H href=home_goes_there HOME /a
 | /div
 | 
 | titletest.org/title
 `

 Shouldn't the up and home links both be moved to the body of the page,
 stripped of their in-line style info (text-align, font-size,
 white-space) and use CSS for this instead?  I think that might be more
 flexible for formatting.



This patch fixes it. I've put the LINK_UP and ..._HOME directly after
the body tag:

body
   -  HERE ---
  div id=content

..


The links can be formated customizing the variable

  `org-export-html-home/up-format'



  Sebastian


diff --git a/lisp/org-html.el b/lisp/org-html.el
index 11a692e..66cc86b 100644
--- a/lisp/org-html.el
+++ b/lisp/org-html.el
@@ -753,7 +753,6 @@ PUB-DIR is set, use this as the publishing directory.
 html xmlns=\http://www.w3.org/1999/xhtml\;
 lang=\%s\ xml:lang=\%s\
 head
-%s
 title%s/title
 meta http-equiv=\Content-Type\ content=\text/html;charset=%s\/
 meta name=\generator\ content=\Org-mode\/
@@ -765,6 +764,7 @@ lang=\%s\ xml:lang=\%s\
 /head
 body
 div id=\content\
+%s
 
 		 (format
 		  (or (and (stringp org-export-html-xml-declaration)
@@ -775,17 +775,17 @@ lang=\%s\ xml:lang=\%s\
 		  )
 		  (or charset iso-8859-1))
 		 language language
+		 (org-html-expand title)
+		 (or charset iso-8859-1)
+		 date author description keywords
+		 style
 		 (if (or link-up link-home)
 		 (concat
 		  (format org-export-html-home/up-format
 			  (or link-up link-home)
 			  (or link-home link-up))
 		  \n)
-		   )
-		 (org-html-expand title)
-		 (or charset iso-8859-1)
-		 date author description keywords
-		 style))
+		   )))
 
 (org-export-html-insert-plist-item opt-plist :preamble opt-plist)
 
___
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


Re: [Orgmode] Re: html export - howto change UP|HOME link style?

2009-11-14 Thread Sebastian Rose
Eraldo Helal era...@eraldo.org writes:

 This patch fixes it. I've put the LINK_UP and ..._HOME directly after
 the body tag:

 body
   -  HERE ---
  div id=content

  How can I now style them with css ...without messing with the other links?
 By defining links in body for UP and HOME and defining links again in
 content for rest?

 Eraldo

Example:

  1. M-x customize-variable RET org-export-html-home/up-format RET
  2. Add a `id' property the div style= element, e.g.
   div id=home-up-link style=...

  3. Use the technique you use for CSS styling and add entries to handle
  those links:

.home-up-link a { font-weight:bold; border:1px solid #ff; }

  optionally:

.home-up-link a:active  { /* when the mouse button is down... */ }
.home-up-link a:hover   { /* when the mouse is on the link */ }
.home-up-link a:visited { /* what it looks like after visiting the
 target */ } 




Best wishes

  Sebastian


___
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