How would you code a .org file to produce this sort of html page, which contains items that look like numbered list elements? http://press-pubs.uchicago.edu/founders/documents/v1ch2s1.html In that page, a number at the beginning of a line indicates a paragraph in the original work, so the exported html page needs to respect those numbers. Currently, org seems to assume that these are elements of a numbered list, and renumbers the lines sequentially starting at 1. Thanks - bw -- Bill White . billw@wolfram.com . http://members.wolfram.com/billw "No ma'am, we're musicians."
On Sat May 23 2009 at 14:30, Bill White <billw@wolfram.com> wrote: > How would you code a .org file to produce this sort of html page, which > contains items that look like numbered list elements? > > http://press-pubs.uchicago.edu/founders/documents/v1ch2s1.html > > In that page, a number at the beginning of a line indicates a paragraph > in the original work, so the exported html page needs to respect those > numbers. > > Currently, org seems to assume that these are elements of a numbered > list, and renumbers the lines sequentially starting at 1. Here's one solution: write the paragraph numbers as =4.=, =5.=, etc. Cheers - bw, who sometimes has to ask the question in order to answer it -- Bill White . billw@wolfram.com . http://members.wolfram.com/billw "No ma'am, we're musicians."
On May 23, 2009, at 9:30 PM, Bill White wrote:
> How would you code a .org file to produce this sort of html page,
> which
> contains items that look like numbered list elements?
>
> http://press-pubs.uchicago.edu/founders/documents/v1ch2s1.html
>
> In that page, a number at the beginning of a line indicates a
> paragraph
> in the original work, so the exported html page needs to respect those
> numbers.
>
> Currently, org seems to assume that these are elements of a numbered
> list, and renumbers the lines sequentially starting at 1.
You can tell Org that only 1) and not 1. should start a list:
(setq org-plain-list-ordered-item-terminator ?\))
HTH
- Carsten
On Sat May 23 2009 at 14:46, Carsten Dominik <carsten.dominik@gmail.com> wrote: > On May 23, 2009, at 9:30 PM, Bill White wrote: > >> How would you code a .org file to produce this sort of html page, >> which >> contains items that look like numbered list elements? >> >> http://press-pubs.uchicago.edu/founders/documents/v1ch2s1.html >> >> In that page, a number at the beginning of a line indicates a >> paragraph >> in the original work, so the exported html page needs to respect those >> numbers. >> >> Currently, org seems to assume that these are elements of a numbered >> list, and renumbers the lines sequentially starting at 1. > > You can tell Org that only 1) and not 1. should start a list: > > (setq org-plain-list-ordered-item-terminator ?\)) Very nice! You even mentioned this problem in the docstring for the variable. Many thanks - bw -- Bill White . billw@wolfram.com . http://members.wolfram.com/billw "No ma'am, we're musicians."