emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Jarmo Hurri <jarmo.hurri@iki.fi>
To: emacs-orgmode@gnu.org
Subject: Re: HTML export / list issues
Date: Sun, 23 Aug 2015 17:09:05 +0300	[thread overview]
Message-ID: <87wpwm85by.fsf@iki.fi> (raw)
In-Reply-To: 87fv3col1g.fsf@nicolasgoaziou.fr


Greetings Nicolas and thank you for your prompt response.

Nicolas Goaziou <mail@nicolasgoaziou.fr> 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
>
>   <div class="center">
>   <p>
>   -5
>   </p>
>   </div>
>
> perhaps someone more versed in HTML could tell what is wrong here.

Also, for this, someone gave detailed pointers above.

Thanks!

Jarmo

  parent reply	other threads:[~2015-08-23 14:09 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-21 10:58 HTML export / list issues Jarmo Hurri
2015-08-21 12:58 ` Nicolas Goaziou
2015-08-21 19:58   ` Rick Frankel
2015-08-23 15:07     ` Jarmo Hurri
2015-08-23 14:09   ` Jarmo Hurri [this message]
2015-08-23 21:47     ` Nicolas Goaziou
2015-08-24  5:15       ` Jarmo Hurri

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87wpwm85by.fsf@iki.fi \
    --to=jarmo.hurri@iki.fi \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).