From mboxrd@z Thu Jan 1 00:00:00 1970 From: tsd@tsdye.com (Thomas S. Dye) Subject: Re: [ANN] ASCII back-end for new export engine Date: Fri, 27 Jan 2012 08:13:24 -1000 Message-ID: References: <87pqec4xua.fsf@gmail.com> <87obtvk6j0.fsf@gmail.com> <87obtrel2z.fsf@gmail.com> <8739b2sctn.fsf@gmail.com> <817h0d4lc6.fsf@gmail.com> <87y5stqm9g.fsf@gmail.com> <81obtpnkkn.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([140.186.70.92]:45672) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RqqIj-0005Dg-Hl for emacs-orgmode@gnu.org; Fri, 27 Jan 2012 13:13:33 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RqqIi-0004H4-0s for emacs-orgmode@gnu.org; Fri, 27 Jan 2012 13:13:29 -0500 Received: from oproxy3-pub.bluehost.com ([69.89.21.8]:52975) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1RqqIh-0004Gv-Qy for emacs-orgmode@gnu.org; Fri, 27 Jan 2012 13:13:27 -0500 In-Reply-To: <81obtpnkkn.fsf@gmail.com> (Jambunathan K.'s message of "Fri, 27 Jan 2012 22:34:24 +0530") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Jambunathan K Cc: Org Mode List , Nicolas Goaziou Jambunathan K writes: > Nicolas Goaziou writes: > >>>>> A way to set individual headings as numbered or unnumbered would be >>>>> deluxe. Perhaps this is possible, but I haven't found it? >>>> >>>> It would require to modify Org's syntax (how to tell which headline has >>>> to be numbered and which has not?). It is not possible at the moment. >>> >>> Let us not support this. >> >> I tend to agree here. > > I wonder whether there is a one-to-one correspondence between how the > headline appears in regular text and how it appears in TOC. If it > appears numbered in regular text should it appear numbered in TOC? The LaTeX classes with which I'm familiar all ensure that the TOC entry matches the in-text heading wrt numbered/unnumbered. I think this is a principle of document design (which might of course be subverted for some purpose). > > TOC in ODT exporter is specified by associating an outline level > attribute with the headings. The headlines are then collected up to > certain level (with each level being associated with a given "format"). > > The above model for TOC generation, as LibreOffice sees it, is > incompatible with associating headlines as numbered or unnumbered in > arbitrary manner. I think headline numbering has to be evaluated in > conjunction with TOC (which is but a index entry). Is it the case that ODT lacks the distinction made by LaTeX between, say, \section and \section*? The former is numbered if its depth <= secnumdepth and unnumbered otherwise. It appears in the TOC if its depth is <= tocdepth, regardless of whether or not it is numbered. The numbering of depths is determined by the class, because the number and kinds of sections vary by document class. Numbering isn't something the user thinks about--it is set by the sectioning command, according to the class file. The \section* form is a special case. It produces an unnumbered heading that does not appear in the TOC. hth, Tom -- Thomas S. Dye http://www.tsdye.com