* Nested ordered lists?
@ 2014-01-21 18:59 Peter Davis
2014-01-21 19:20 ` Bastien
0 siblings, 1 reply; 7+ messages in thread
From: Peter Davis @ 2014-01-21 18:59 UTC (permalink / raw)
To: emacs-orgmode
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
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Nested ordered lists?
2014-01-21 18:59 Nested ordered lists? Peter Davis
@ 2014-01-21 19:20 ` Bastien
2014-01-21 19:40 ` Peter Davis
0 siblings, 1 reply; 7+ messages in thread
From: Bastien @ 2014-01-21 19:20 UTC (permalink / raw)
To: Peter Davis; +Cc: emacs-orgmode
Hello Peter,
Peter Davis <pfd@pfdstudio.com> 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
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Nested ordered lists?
2014-01-21 19:20 ` Bastien
@ 2014-01-21 19:40 ` Peter Davis
2014-01-21 19:56 ` Peter Davis
0 siblings, 1 reply; 7+ messages in thread
From: Peter Davis @ 2014-01-21 19:40 UTC (permalink / raw)
To: Bastien; +Cc: emacs-orgmode
On Tue, Jan 21, 2014 at 08:20:07PM +0100, Bastien wrote:
> Hello Peter,
>
> Peter Davis <pfd@pfdstudio.com> 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
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Nested ordered lists?
2014-01-21 19:40 ` Peter Davis
@ 2014-01-21 19:56 ` Peter Davis
2014-01-21 20:37 ` Josiah Schwab
0 siblings, 1 reply; 7+ messages in thread
From: Peter Davis @ 2014-01-21 19:56 UTC (permalink / raw)
To: Bastien; +Cc: emacs-orgmode
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.
<ol class="org-ol">
<li>item 1
<ol class="org-ol">
<li>item 1a
</li>
<li>item 1b
</li>
<li>item 1c
</li>
</ol>
</li>
<li>item 2
<ol class="org-ol">
<li>item 2a
</li>
<li>item 2b
</li>
</ol>
</li>
<li>item 3
</li>
<li>etc.
</li>
</ol>
Thanks!
-pd
--
----
Peter Davis
The Tech Curmudgeon
www.techcurmudgeon.com
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Nested ordered lists?
2014-01-21 19:56 ` Peter Davis
@ 2014-01-21 20:37 ` Josiah Schwab
2014-01-21 20:45 ` Peter Davis
0 siblings, 1 reply; 7+ messages in thread
From: Josiah Schwab @ 2014-01-21 20:37 UTC (permalink / raw)
To: Peter Davis; +Cc: Bastien, emacs-orgmode
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
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Nested ordered lists?
2014-01-21 20:37 ` Josiah Schwab
@ 2014-01-21 20:45 ` Peter Davis
2014-01-22 0:07 ` Vladimir Lomov
0 siblings, 1 reply; 7+ messages in thread
From: Peter Davis @ 2014-01-21 20:45 UTC (permalink / raw)
To: Josiah Schwab; +Cc: Bastien, emacs-orgmode
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
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Nested ordered lists?
2014-01-21 20:45 ` Peter Davis
@ 2014-01-22 0:07 ` Vladimir Lomov
0 siblings, 0 replies; 7+ messages in thread
From: Vladimir Lomov @ 2014-01-22 0:07 UTC (permalink / raw)
To: emacs-orgmode
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
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2014-01-22 0:08 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
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).