From mboxrd@z Thu Jan 1 00:00:00 1970
From: Christian Moe
Subject: Re: centering text in html
Date: Tue, 12 Oct 2010 09:41:08 +0200
Message-ID: <4CB41114.5030709@christianmoe.com>
References:
<4CB34322.7040608@christianmoe.com>
Reply-To: mail@christianmoe.com
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Return-path:
Received: from [140.186.70.92] (port=39375 helo=eggs.gnu.org)
by lists.gnu.org with esmtp (Exim 4.43) id 1P5ZSL-0006oG-CI
for emacs-orgmode@gnu.org; Tue, 12 Oct 2010 03:39:33 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
(envelope-from ) id 1P5ZSK-0007aU-57
for emacs-orgmode@gnu.org; Tue, 12 Oct 2010 03:39:29 -0400
Received: from mars.hitrost.net ([91.185.193.39]:59857)
by eggs.gnu.org with esmtp (Exim 4.71)
(envelope-from ) id 1P5ZSJ-0007aI-RP
for emacs-orgmode@gnu.org; Tue, 12 Oct 2010 03:39:28 -0400
In-Reply-To: <4CB34322.7040608@christianmoe.com>
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
Cc: Carsten Dominik , emacs-orgmode@gnu.org, Vinh Nguyen
Hi again, Vinh,
More to the point, why don't you just use
#+BEGIN_CENTER
{ [[file:index.org][Home]] | [[file:files.org][Announcements and Files]] }
#+END_CENTER
See info:org:Paragraphs.
Cheers,
CM
On 10/11/10 7:02 PM, Christian Moe wrote:
> Hi,
>
> Of the two non-working examples, one is due to what I think is
> slightly buggy behavior by Org where =#+HTML:= lines are followed
> immediately by a line of text. The other should work fine.
>
> * With == and inline CSS
>
> #+HTML:
> { [[file:index.org][Home]] | [[file:files.org][Announcements and
> Files]] }
> #+HTML:
>
> doesn't work because it results in
>
> #+begin_src html
>
>
> { Home | Announcements
> and Files }
>
>
>
> #+end_src
>
> A new =...
= is added at the line breaks. A == element isn't
> supposed to contain another =
= element, so it won't work.
>
> I think this is undesirable, perhaps a bug; only text blocks delimited
> by blank lines should be considered paragraphs and exported as =
=.
>
> * With =
= and class
>
> #+HTML:
> { [[file:index.org][Home]] | [[file:files.org][Announcements and
> Files]] }
> #+HTML:
>
> This should work, supposing you write CSS for it, e.g. by adding this
> to your header:
>
> : #+STYLE:
>
> There is no =centeralign= class in the default stylesheet, so you
> can't expect it to work out of the box.
>
>
>
>
>
> On 10/11/10 5:21 PM, Vinh Nguyen wrote:
>> On Mon, Oct 11, 2010 at 12:41 AM, Carsten Dominik
>>
wrote:
>>> You give us *very* little to chew on.
>>
>> Sorry about this. I meant to elicit on what folks do when they want
>> to center text I general. I should've known better to put down what
>> I've tried. I just got it working but will also put down what I tried
>> to let others know what did not work.
>>
>>> How about:
>>>
>>> - what have you tried?
>>
>> #+HTML:
>> { [[file:index.org][Home]] | [[file:files.org][Announcements and
>> Files]] }
>> #+HTML:
>>
>> and
>>
>> #+HTML:
>> { [[file:index.org][Home]] | [[file:files.org][Announcements and
>> Files]] }
>> #+HTML:
>>
>>
>>> - an example HTML code that would do the right thing
>>>
>>
>> THIS WORKED:
>> #+HTML:
>> { [[file:index.org][Home]] | [[file:files.org][Announcements and
>> Files]] }
>> #+HTML:
>>
>>
>>> etc etc etc. If you want people to help you solve a problem,
>>> please do your part by giving them *as much as possible* information.
>>>
>>> - Carsten
>>
>> -- Vinh
>>
>> _______________________________________________
>> Emacs-orgmode mailing list
>> Please use `Reply All' to send replies to the list.
>> Emacs-orgmode@gnu.org
>> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>>
>
>
--
Christian Moe
E-mail: mail@christianmoe.com
Website: http://christianmoe.com