From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jarmo Hurri Subject: Re: HTML export / list issues Date: Sun, 23 Aug 2015 17:09:05 +0300 Message-ID: <87wpwm85by.fsf@iki.fi> References: <87pp2gsybm.fsf@iki.fi> <87fv3col1g.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:48477) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZTVxZ-0001FH-Iy for emacs-orgmode@gnu.org; Sun, 23 Aug 2015 10:09:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZTVxW-0000Jl-Ar for emacs-orgmode@gnu.org; Sun, 23 Aug 2015 10:09:21 -0400 Received: from plane.gmane.org ([80.91.229.3]:48409) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZTVxW-0000J0-2w for emacs-orgmode@gnu.org; Sun, 23 Aug 2015 10:09:18 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1ZTVxU-0008Sv-EX for emacs-orgmode@gnu.org; Sun, 23 Aug 2015 16:09:16 +0200 Received: from 89-27-26-138.bb.dnainternet.fi ([89.27.26.138]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 23 Aug 2015 16:09:16 +0200 Received: from jarmo.hurri by 89-27-26-138.bb.dnainternet.fi with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 23 Aug 2015 16:09:16 +0200 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Greetings Nicolas and thank you for your prompt response. Nicolas Goaziou writes: >> * Example >> I am making a hierarchical list with some code in it. >> 1. level 1 first >> a) level 2 first; I was hoping this would be alphabetized in html >> like it is in org, but it is still enumerated >> b) the next item has some code in it; it has been evaluated with >> C-c C-c to obtain the result >> c) >> #+BEGIN_SRC elisp :exports results >> (+ 1 2) >> #+END_SRC >> >> #+RESULTS: >> : 3 > > This is because "a)" is not recognized as a list item in your buffer. > > Make sure you have a non-nil 'org-list-allow-alphabetical' and > `org-plain-list-ordered-item-terminator' is either t or ?). These > variables need to be set before Org is loaded. If you set them in > current session, make sure to reload Org. For some reason I can not reproduce your solution. I already had (setq org-list-allow-alphabetical t), and now I added (setq org-plain-list-ordered-item-terminator t), and still the following happens (and the list is broken in html export): ====================================================================== 1. level 1 first a) level 2 first; I was hoping this would be alphabetized in html like it is in org, but it is still enumerated b) the next item has some code in it; it has been evaluated with C-c C-c to obtain the result c) #+BEGIN_SRC elisp :exports results (print (list org-plain-list-ordered-item-terminator org-list-allow-alphabetical (+ 1 2))) #+END_SRC #+RESULTS: | t | t | 3 | d) and due to the way the results of the evaluation are inserted, the code interrupts enumeration in the exported list, and it even breaks the high-level list in the org mode itself ====================================================================== >> The examples below illustrate three problems I have with lists and >> html export at the moment. 1. lists alphabetized in org are >> enumerated in html > > Actually this is a wrong assumption. Org only distinguishes > enumerated, itemized and description lists. There are no > sub-categories. ... For this kind of thing, setting an appropriate > CSS could be an option. Ok; I already noticed that someone suggested a specific solution. >> 2. here is another element with some code; I am trying to center the >> result of the evalution of this code in html >> #+NAME: code-example >> #+BEGIN_SRC elisp :exports results :results raw >> (- 9 14) #+END_SRC >> >> #+BEGIN_CENTER >> #+RESULTS: code-example >> -5 >> #+END_CENTER >> 3. but for some reason the result is not centered > > This generates > >
>

> -5 >

>
> > perhaps someone more versed in HTML could tell what is wrong here. Also, for this, someone gave detailed pointers above. Thanks! Jarmo