emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Vladimir Lomov <lomov.vl@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: Nested ordered lists?
Date: Wed, 22 Jan 2014 09:07:55 +0900	[thread overview]
Message-ID: <20140122000755.GA913@smoon> (raw)
In-Reply-To: <20140121204505.GD22768@pdavismbp15.iscinternal.com>

Hello,
** Peter Davis [2014-01-21 15:45:05 -0500]:

> On Tue, Jan 21, 2014 at 12:37:53PM -0800, Josiah Schwab wrote:

>>> but my html output had all list items numbered.

>> Please read
>> http://orgmode.org/worg/org-faq.html#sec-11-5


> Thank you, Josiah.

> That does explain it. 

> It would be nice if there were CSS classes for various numbering
> schemes:

> org-ol-1
> org-ol-A
> org-ol-a
> org-ol-i

> etc.  Meanwhile, I'll make do.

You may use CSS when exporting to HTML. Let's take this small example:

#+BEGIN_EXAMPLE
1) First item of high level
  1. First item of sublevel;
  2. second item of sublevel.
2) Second item of high level
  1. First item of sublevel, following next high level item;
  2. second item of sublevel.

Best regards.
#+END_EXAMPLE

With the following CSS high level items are numbered with digits but items of
sublevel are numbered with letters

#+BEGIN_EXAMPLE
ol[class="org-ol"] {
  list-style-type: decimal;
}

ol[class="org-ol"] * ol[class="org-ol"] {
  list-style-type: lower-alpha;
}
#+END_EXAMPLE

Of course, it would be much easier if "items" of different levels have
different classes.

> Thanks!

> -pd

---
WBR, Vladimir Lomov

-- 
Hokey religions and ancient weapons are no substitute for a good blaster at
your side.
- Han Solo

      reply	other threads:[~2014-01-22  0:08 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-01-21 18:59 Nested ordered lists? Peter Davis
2014-01-21 19:20 ` Bastien
2014-01-21 19:40   ` Peter Davis
2014-01-21 19:56     ` Peter Davis
2014-01-21 20:37       ` Josiah Schwab
2014-01-21 20:45         ` Peter Davis
2014-01-22  0:07           ` Vladimir Lomov [this message]

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=20140122000755.GA913@smoon \
    --to=lomov.vl@gmail.com \
    --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).