From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sebastian Rose Subject: Re: Re: html export - howto change UP|HOME link style? Date: Tue, 17 Nov 2009 15:51:06 +0100 Message-ID: <87d43hgq79.fsf@gmx.de> References: <1bcd1ad60911140851k6e859dech39074e3b977f9541@mail.gmail.com> <87r5s0zqzt.fsf@gollum.intra.norang.ca> <87ocn44sml.fsf@gmx.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NAPOz-0005mq-Fj for emacs-orgmode@gnu.org; Tue, 17 Nov 2009 09:51:30 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NAPOt-0005kg-CS for emacs-orgmode@gnu.org; Tue, 17 Nov 2009 09:51:28 -0500 Received: from [199.232.76.173] (port=51390 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NAPOr-0005kJ-3P for emacs-orgmode@gnu.org; Tue, 17 Nov 2009 09:51:21 -0500 Received: from mail.gmx.net ([213.165.64.20]:48384) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1NAPOq-0001Nw-Df for emacs-orgmode@gnu.org; Tue, 17 Nov 2009 09:51:20 -0500 In-Reply-To: (Carsten Dominik's message of "Tue, 17 Nov 2009 15:12:15 +0100") 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: Carsten Dominik Cc: Bernt Hansen , Eraldo Helal , Org-Mode 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. 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 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