Re: [O] [patch, ox] Unnumbered headlines

2014-10-05 Thread Nicolas Goaziou
Hello, Rasmus writes: > Then there's 12. Exporting, where I guess the closest fitting section > is 12.3 Export settings. > > Any opinions? I think section 12.3 is fine, as an additional paragraph within the num: entry. Regards, -- Nicolas Goaziou

Re: [O] [patch, ox] Unnumbered headlines

2014-10-03 Thread Rasmus
Nicolas Goaziou writes: > Hello, > > Rasmus writes: > >> Now odt output doesn't look ugly. I fixed the other things you >> mentioned. Make test passes. > > Applied. Thank you very much. Thanks. Bastien added my key to org-git today, so hopefully you'll be spared of this in the future. > Now

Re: [O] [patch, ox] Unnumbered headlines

2014-10-03 Thread Nicolas Goaziou
Hello, Rasmus writes: > Now odt output doesn't look ugly. I fixed the other things you > mentioned. Make test passes. Applied. Thank you very much. Now, some documentation would be nice. Regards, -- Nicolas Goaziou

Re: [O] [patch, ox] Unnumbered headlines

2014-10-03 Thread Rasmus
Hi, Now odt output doesn't look ugly. I fixed the other things you mentioned. Make test passes. Nicolas Goaziou writes: >> But we are not checking that :CUSTOM_ID is unique. > > This is not our problem, but user's. > >> In ox-latex you're required to turn on a variable on to get this >> beha

Re: [O] [patch, ox] Unnumbered headlines

2014-10-03 Thread Sebastien Vauban
Nicolas Goaziou wrote: >> + ;; Test if destination is a numbered headline > > Missing full stop. Small question about conventions for writing comments... Can I consider the following to be the rule? - If it's a *sentence* (like the above example, in the imperative form), begin with a capit

Re: [O] [patch, ox] Unnumbered headlines

2014-10-03 Thread Nicolas Goaziou
Hello, Rasmus writes: > Alan did some testing on a slightly older version of this patch and he > managed to publish his book without errors and with working links. So > let's give it another shot. > > I briefly tested the output of LaTeX, html, texinfo, odt, md, and > plaintext and made sure li

Re: [O] [patch, ox] Unnumbered headlines

2014-10-01 Thread Rasmus
["Cloud-note" to self (probably) or, preferably, someone else] One "deficit" of unnumbered headlines in odt is that they are indented. This looks dumb! Here's some notes on how I think is the best way to get rid of the indention in ox-odt. If this bothers someone, please go ahead and fix it! O

Re: [O] [patch, ox] Unnumbered headlines

2014-09-30 Thread Rasmus
Hi, Alan did some testing on a slightly older version of this patch and he managed to publish his book without errors and with working links. So let's give it another shot. I briefly tested the output of LaTeX, html, texinfo, odt, md, and plaintext and made sure links work and that the right tex

Re: [O] [patch, ox] Unnumbered headlines

2014-09-27 Thread Nicolas Goaziou
Hello, Rasmus writes: > Thanks for all time you've put into the comments. I appreciate it, > and I will try to revise the patches over the weekend. Thanks. Again, there's no rush. > I worry about this approach based on some observations Alan sent > off-list. When you export the quoted docume

Re: [O] [patch, ox] Unnumbered headlines

2014-09-26 Thread Rasmus
Hi Nicolas, Thanks for all time you've put into the comments. I appreciate it, and I will try to revise the patches over the weekend. Nicolas Goaziou writes: >> Using this file: >> >> * h1 >> :PROPERTIES: >> :CUSTOM_ID: h1 >> :END: >> ** h2 >> :PROPERTIES: >> :unnum

Re: [O] [patch, ox] Unnumbered headlines

2014-09-26 Thread Nicolas Goaziou
Hello, Rasmus writes: > Another couple of small changes. Thank you. > Using this file: > > * h1 > :PROPERTIES: > :CUSTOM_ID: h1 > :END: > ** h2 > :PROPERTIES: > :unnumbered: t > :CUSTOM_ID: h2 > :END: > *** h3 > *** h4 > * h5 > :PROPERTIES: >

Re: [O] [patch, ox] Unnumbered headlines

2014-09-22 Thread Thomas S. Dye
Aloha Rasmus, Rasmus writes: > So I guess we should let the patch hang for a while and see if someone > cares to test it. > > Of course I'd appreciate more comments/bug reports. I'm looking forward to this functionality and will test out the patch now that you're happy with its performance.

Re: [O] [patch, ox] Unnumbered headlines

2014-09-22 Thread Rasmus
Hi, Another couple of small changes. Random observation: the patch is "almost" neutral due to the headline-id function: 88 insertions(+), 72 deletions(-) Nicolas Goaziou writes: > I think it would be nice to keep "sec-NUM", with NUM matching current > numbering, for numbered headlines

Re: [O] [patch, ox] Unnumbered headlines

2014-09-22 Thread Nicolas Goaziou
Hello, Rasmus writes: > With the last patch it gets weird when you have mixed trees, like this: > > * numbered > ** unnumbered > :PROPERTIES: > :UNNUMBERED: t > :END: > > The LaTeX output is: > > \section{numbered} > \label{sec-1} > \subsection*{unnumbered} >

Re: [O] [patch, ox] Unnumbered headlines

2014-09-21 Thread Rasmus
Hi Nicolas, Thanks for the comments. Nicolas Goaziou writes: >> Okay, I returned to my first hack (which never made it to this list). >> Basically, I ID everything. Unnumbered sections get the id >> "unnumbered-sec-COUNTER" and numbered sections get the id >> "sec-COUNTER". >> >> Perhaps you w

Re: [O] [patch, ox] Unnumbered headlines

2014-09-21 Thread Nicolas Goaziou
Rasmus writes: > Thanks for the comments. Let's give it another try, shand't we. There we go. > Okay, I returned to my first hack (which never made it to this list). > Basically, I ID everything. Unnumbered sections get the id > "unnumbered-sec-COUNTER" and numbered sections get the id > "sec

Re: [O] [patch, ox] Unnumbered headlines

2014-09-21 Thread Rasmus
Hi, Thanks for the comments. Let's give it another try, shand't we. Nicolas Goaziou writes: >> I introduce a new function `org-export-get-headline-id` which returns >> the first non-nil from the following list. There's a caveat: >> CUSTOM_ID is ensured to be unique! Did I open the famous can

Re: [O] [patch, ox] Unnumbered headlines

2014-09-21 Thread Nicolas Goaziou
Hello, Rasmus writes: > I'm happy to finally be able to send an updated version of this patch > that touches most backends in lisp/, but not the manual. I have been > moving over the summer etc. Thanks for that work. Some comments follow. > You now specify unnumbered headlines with propertie

Re: [O] [patch, ox] Unnumbered headlines

2014-09-20 Thread Alan L Tyree
Thanks very much for working on this, Rasmus. I'll try to test it out over the next couple of days. It really will make book production much nicer! Cheers, Alan On 21/09/14 02:02, Rasmus wrote: Hi, I'm happy to finally be able to send an updated version of this patch that touches most backen

Re: [O] [patch, ox] Unnumbered headlines

2014-09-20 Thread Rasmus
Hi, I'm happy to finally be able to send an updated version of this patch that touches most backends in lisp/, but not the manual. I have been moving over the summer etc. You now specify unnumbered headlines with properties. I think this is better since being unnumbered it's a pretty permanent

Re: [O] [patch, ox] Unnumbered headlines

2014-08-12 Thread Nicolas Goaziou
Hello, Rasmus writes: > True. Personally, I find them nicer as you can just C-c C-c on your > headline and write down some keyword that is typically easy to > remember. For properties I must rely on C-c C-x p — since the syntax > is so awkward — and while it may be memorable to me try to expla

Re: [O] [patch, ox] Unnumbered headlines

2014-08-11 Thread Rasmus
Nicolas Goaziou writes: > Hello, > > Rasmus writes: > >> In a recent thread¹ Tom and Alan mention that authors sometimes need >> unnumbered headlines, e.g. for prefaces. This patch (tries to) add >> this feature via the tag :nonumber: (customizable via Custom or >> in-file). > > Interesting.

Re: [O] [patch, ox] Unnumbered headlines

2014-08-11 Thread Nicolas Goaziou
Hello, Rasmus writes: > In a recent thread¹ Tom and Alan mention that authors sometimes need > unnumbered headlines, e.g. for prefaces. This patch (tries to) add > this feature via the tag :nonumber: (customizable via Custom or > in-file). Interesting. Some comments follow. > I make two ass

Re: [O] [patch, ox] Unnumbered headlines

2014-08-09 Thread Detlef Steuer
Am Fri, 08 Aug 2014 15:39:15 +0200 schrieb Rasmus : > Needless to say such a feature needs to be discussed and I not sure > whether the greater Org community finds it useful or needless clutter. Definitly a candidate for inclusion in org-mode. Thx for the patch! Detlef

Re: [O] [patch, ox] Unnumbered headlines - early test

2014-08-08 Thread Alan L Tyree
I have a book length MS that I tested the patch on. * Copyright page :nonumber: * Preface:nonumber: * Law relating to sale of goods ... etc Export looked good and as expected, that is, no numbers on the first two headlines and the third headline numbered 1. as it should

Re: [O] [patch, ox] Unnumbered headlines

2014-08-08 Thread Alan L Tyree
On 08/08/14 23:39, Rasmus wrote: Hi, In a recent thread¹ Tom and Alan mention that authors sometimes need unnumbered headlines, e.g. for prefaces. This patch (tries to) add this feature via the tag :nonumber: (customizable via Custom or in-file). I make two assumptions. First, the tag is re

[O] [patch, ox] Unnumbered headlines

2014-08-08 Thread Rasmus
Hi, In a recent thread¹ Tom and Alan mention that authors sometimes need unnumbered headlines, e.g. for prefaces. This patch (tries to) add this feature via the tag :nonumber: (customizable via Custom or in-file). I make two assumptions. First, the tag is recursive, so if the parent is not num