emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] [ANN] ASCII back-end for new export engine


From: Thomas S. Dye
Subject: Re: [O] [ANN] ASCII back-end for new export engine
Date: Fri, 27 Jan 2012 08:13:24 -1000

Jambunathan K <address@hidden> writes:

> Nicolas Goaziou <address@hidden> 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]