Re: [O] [PATCH] Export: Override headline numbering via properties

2013-05-23 Thread Nicolas Goaziou
Hello, Thanks for your patch. > An alternative would be to stick this into ox-latex.el, which then > wouldn't interfere with other backends. > > I also think this functionality is good to have, since longer latex > documents often have unnumbered sections (and there seem to be > periodic question

Re: [O] [PATCH] Export: Override headline numbering via properties

2013-05-16 Thread Albert Z. Wang
Mark Edgington writes: >> Anyway, your patch will not work on back-ends that rely on Org to >> compute section numbers (e.g., ascii, html...) because even if you >> ignore numbering for a particular headline, it still adds up >> internally. IOW, you also need to patch >> `org-export--collect-hea

Re: [O] [PATCH] Export: Override headline numbering via properties

2013-05-13 Thread Mark Edgington
Hi Nicolas, On Mon, May 13, 2013 at 6:54 AM, Nicolas Goaziou wrote: > > You can still number these parts manually with, e.g., > > #+latex: \section*{Introduction} > > before the first section in your Org document. > While this is possible, wouldn't this break the structure of the org-document,

Re: [O] [PATCH] Export: Override headline numbering via properties

2013-05-13 Thread Nicolas Goaziou
Hello, Mark Edgington writes: > A couple possible use-cases: > > 1. a document (or chapter of a document) where the first headline > contains general "introduction" information explaining what the rest > of the document (chapter) is about (similar to an abstract, but not > identical -- somethin

Re: [O] [PATCH] Export: Override headline numbering via properties

2013-05-13 Thread Mark Edgington
Also, I forgot to mention that the patch is tested, and behaves as expected. On Mon, May 13, 2013 at 2:18 AM, Nicolas Goaziou wrote: > Thanks for your patch. > > Though, I don't get what you are trying to achieve nor what a use case > would be. Have you tested this patch ? It may not behave as yo

Re: [O] [PATCH] Export: Override headline numbering via properties

2013-05-13 Thread Mark Edgington
Hi Samuel, I'd guess it isn't exactly the same as what you did -- I assume you are making it possible to modify the numbering level threshold via properties. Is this modification inherited by child-headlines or not? Either way, there would be a lot of "hackery" required to use this to achieve th

Re: [O] [PATCH] Export: Override headline numbering via properties

2013-05-13 Thread Mark Edgington
Hello Nicolas, I'm sorry for not having provided more explanation of the patch's purpose. The motivation is basically to permit any kind of "manual" (in contrast to "automatic") control over the section-numbering behavior connected with a particular headline. In LaTeX, for example, you are able

Re: [O] [PATCH] Export: Override headline numbering via properties

2013-05-12 Thread Nicolas Goaziou
Hello, Mark Edgington writes: > * lisp/ox.el (org-export-numbered-headline-p): If the `:NUMBERED' property is > defined for a headline, turn numbering on when the property value is "y" > (otherwise turn numbering off). Do the same if the `:INHERITED_NUMBERED' > property is defined for a headlin

[O] [PATCH] Export: Override headline numbering via properties

2013-05-12 Thread Mark Edgington
* lisp/ox.el (org-export-numbered-headline-p): If the `:NUMBERED' property is defined for a headline, turn numbering on when the property value is "y" (otherwise turn numbering off). Do the same if the `:INHERITED_NUMBERED' property is defined for a headline, except make this property inherited by