From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jarmo Hurri Subject: Re: HTML export / list issues Date: Sun, 23 Aug 2015 18:07:56 +0300 Message-ID: <87si7a82lv.fsf@iki.fi> References: <87pp2gsybm.fsf@iki.fi> <87fv3col1g.fsf@nicolasgoaziou.fr> <20150821195843.GA4063@eyeBook.home> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:60090) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZTWsS-00055N-KY for emacs-orgmode@gnu.org; Sun, 23 Aug 2015 11:08:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZTWsP-0005mn-A0 for emacs-orgmode@gnu.org; Sun, 23 Aug 2015 11:08:08 -0400 Received: from plane.gmane.org ([80.91.229.3]:50432) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZTWsP-0005mM-3D for emacs-orgmode@gnu.org; Sun, 23 Aug 2015 11:08:05 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1ZTWsM-0008I4-U2 for emacs-orgmode@gnu.org; Sun, 23 Aug 2015 17:08:02 +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 17:08:02 +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 17:08:02 +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 Rick Frankel writes: >> > * Problem description >> > 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. >> >> In the buffer, you may write an enumerated list item "1.", "1)", "a.", >> "A.", "a)" or "A)", but they are all the same. >> >> For this kind of thing, setting an appropriate CSS could be an option. > > Correct. try ~list-style-type: lower-alpha;~ in your css to get > lowercase alphanumeric labels for an enumerated list (~
    ~). Brilliant. Actually, even better, from here http://stackoverflow.com/questions/12787342/nested-list-styling-how-to-separate-styles I adopted the following, which produces alphanumeric labels only in the second level: ol li ol { list-style-type: lower-alpha; } >> > 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. > > I would assume it's because there is no css for ~div.center~. Try (untested): > > div.center > p { text-align: center; } > > Note that this will center each line, separately. ... My centered elements are actually canvases (the example here was simplified), but with a bit of digging the following CSS worked for me (I just dropped the centerings from the org code and centered all canvases): canvas { display: block; margin: 0 auto; } Thanks! Jarmo