Re: [O] Nested ordered lists?

2014-01-21 Thread Vladimir Lomov
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



Re: [O] Nested ordered lists?

2014-01-21 Thread Peter Davis
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.

Thanks!

-pd



-- 

Peter Davis
The Tech Curmudgeon
www.techcurmudgeon.com



Re: [O] Nested ordered lists?

2014-01-21 Thread Josiah Schwab

Peter Davis writes:

> My test file had
>
> #+STARTUP: showeverything logdone
> #+options: num:nil
>
> 1) item 1
>a) item 1a
>b) item 1b
>c) item 1c
> 2) item 2
>a) item 2a
>b) item 2b
> 3) item 3
> 4) etc.
>
> but my html output had all list items numbered.

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

Best,
Josiah



Re: [O] Nested ordered lists?

2014-01-21 Thread Peter Davis
On Tue, Jan 21, 2014 at 02:40:11PM -0500, Peter Davis wrote:
> On Tue, Jan 21, 2014 at 08:20:07PM +0100, Bastien wrote:
> > 
> > (setq org-list-allow-alphabetical t)
> > 
> 
> Symbol's value as variable is void: org-drawers
> 

Ok, quitting and re-starting emacs has almost gotten it working. I'm
not getting the error, and I am getting nested lists, but all the
numbering is numeric.

My test file had

#+STARTUP: showeverything logdone
#+options: num:nil

1) item 1
   a) item 1a
   b) item 1b
   c) item 1c
2) item 2
   a) item 2a
   b) item 2b
3) item 3
4) etc.

but my html output had all list items numbered.


item 1

item 1a

item 1b

item 1c



item 2

item 2a

item 2b



item 3

etc.




Thanks!

-pd


-- 

Peter Davis
The Tech Curmudgeon
www.techcurmudgeon.com



Re: [O] Nested ordered lists?

2014-01-21 Thread Peter Davis
On Tue, Jan 21, 2014 at 08:20:07PM +0100, Bastien wrote:
> Hello Peter,
> 
> Peter Davis  writes:
> 
> > 1) item 1
> >   a) item 1a
> >   b) item 1b
> >   c) item 1c
> > 2) item 2
> >   a) item 2a
> >   b) item 2b
> > 3) item 3
> > 4) etc.
> > ...
> 
> Yes!
> 
> (setq org-list-allow-alphabetical t)
> 
> Then insert
> 
> 1) item 1 <= M-RET
> 2) ...
> 
> or
> 
> 1) item 1
>   a) item 1a  <= M-RET
>   b) ...
> 
> HTH,
> 
> -- 
>  Bastien

Thanks, Bastien, but I seem to be having a problem with this. I tried
setting the variable in my .emacs, but the help says it must be set
before org-mode loads. It then gives a line of code

(when (featurep 'org-element) (load "org-element" t t))

to set this in a running Emacs, but when I do this, I get

Symbol's value as variable is void: org-drawers

I tried customizing the variable, but the result is the same.

Thanks!
-pd


-- 

Peter Davis
The Tech Curmudgeon
www.techcurmudgeon.com



Re: [O] Nested ordered lists?

2014-01-21 Thread Bastien
Hello Peter,

Peter Davis  writes:

> 1) item 1
>   a) item 1a
>   b) item 1b
>   c) item 1c
> 2) item 2
>   a) item 2a
>   b) item 2b
> 3) item 3
> 4) etc.
> ...

Yes!

(setq org-list-allow-alphabetical t)

Then insert

1) item 1 <= M-RET
2) ...

or

1) item 1
  a) item 1a  <= M-RET
  b) ...

HTH,

-- 
 Bastien



[O] Nested ordered lists?

2014-01-21 Thread Peter Davis
Is there any way to create nested, ordered lists in org-mode?

I'm thinking of something that would result in:

1) item 1
  a) item 1a
  b) item 1b
  c) item 1c
2) item 2
  a) item 2a
  b) item 2b
3) item 3
4) etc.
...

Thanks!

-pd


-- 

Peter Davis
The Tech Curmudgeon
www.techcurmudgeon.com