From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Re: html export - howto change UP|HOME link style? Date: Wed, 18 Nov 2009 06:43:19 +0100 Message-ID: References: <1bcd1ad60911140851k6e859dech39074e3b977f9541@mail.gmail.com> <87r5s0zqzt.fsf@gollum.intra.norang.ca> <87ocn44sml.fsf@gmx.de> <87d43hgq79.fsf@gmx.de> Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NAdKH-0002nE-DL for emacs-orgmode@gnu.org; Wed, 18 Nov 2009 00:43:33 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NAdKC-0002mi-5D for emacs-orgmode@gnu.org; Wed, 18 Nov 2009 00:43:32 -0500 Received: from [199.232.76.173] (port=58168 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NAdKB-0002mf-Th for emacs-orgmode@gnu.org; Wed, 18 Nov 2009 00:43:27 -0500 Received: from mail-fx0-f225.google.com ([209.85.220.225]:53779) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NAdK8-00087d-CF for emacs-orgmode@gnu.org; Wed, 18 Nov 2009 00:43:25 -0500 Received: by fxm25 with SMTP id 25so850647fxm.26 for ; Tue, 17 Nov 2009 21:43:23 -0800 (PST) In-Reply-To: <87d43hgq79.fsf@gmx.de> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Sebastian Rose Cc: Bernt Hansen , Eraldo Helal , Org-Mode On Nov 17, 2009, at 3:51 PM, Sebastian Rose wrote: > Carsten Dominik 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. You did, you moved it into the content div. > > > 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. OK, I'll leave it there - we'll see if someone complains. - Carsten > > > Sebastian > > > >> >> - Cartsen >> >> On Nov 15, 2009, at 12:02 AM, Sebastian Rose wrote: >> >>> Bernt Hansen writes: >>>> ,----[ test.org exported to HTML buffer ] >>>> | >>>> |
>>>> | UP >>>> | | >>>> | HOME >>>> |
>>>> | >>>> | test.org >>>> `---- >>>> >>>> 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 tag: >>> >>> >>> ----- HERE --- >>>
>>> >>> .. >>> >>> >>> 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." >>> >> lang=\"%s\" xml:lang=\"%s\"> >>> >>> -%s >>> %s >>> >>> >>> @@ -765,6 +764,7 @@ lang=\"%s\" xml:lang=\"%s\"> >>> >>> >>>
>>> +%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 - Carsten