From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rasmus Subject: Re: [patch, ox] Unnumbered headlines Date: Thu, 02 Oct 2014 02:35:26 +0200 Message-ID: <87r3yrl35d.fsf@gmx.us> References: <87lhqzyubg.fsf@gmx.us> <87bnrrp0tb.fsf@nicolasgoaziou.fr> <87r40n6nrg.fsf@gmx.us> <87egwmaxte.fsf@nicolasgoaziou.fr> <87k34y701i.fsf@gmx.us> <87fvfl86ct.fsf@nicolasgoaziou.fr> <87k34xghtt.fsf@gmx.us> <87ppeon4mw.fsf@nicolasgoaziou.fr> <87tx4020lh.fsf@gmx.us> <87vboflkil.fsf@nicolasgoaziou.fr> <87iokfdvi3.fsf@gmx.us> <87d2aiesce.fsf@nicolasgoaziou.fr> <87lhp0iusr.fsf@pank.eu> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:36825) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XZUN6-0001JN-So for emacs-orgmode@gnu.org; Wed, 01 Oct 2014 20:36:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XZUMz-00084a-DS for emacs-orgmode@gnu.org; Wed, 01 Oct 2014 20:35:52 -0400 Received: from plane.gmane.org ([80.91.229.3]:34919) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XZUMz-00084S-7G for emacs-orgmode@gnu.org; Wed, 01 Oct 2014 20:35:45 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1XZUMv-0006Rl-K2 for emacs-orgmode@gnu.org; Thu, 02 Oct 2014 02:35:41 +0200 Received: from 46.166.186.250 ([46.166.186.250]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 02 Oct 2014 02:35:41 +0200 Received: from rasmus by 46.166.186.250 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 02 Oct 2014 02:35:41 +0200 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: emacs-orgmode@gnu.org Cc: alantyree@gmail.com ["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! Otherwise I might look at it eventually. . . Alan L Tyree writes: > Also interesting [to note on unnumbered headlines in LO]: right > click on the unnumbered headline. Go to Bullets and Numbering. Click > on 'Remove' at the bottom and the headline jumps back into proper > alignment. Arh, so indention for unnumbered headlines can be removed! Studying the xml files of LO it seems the mechanism is something like this. Basically, to get an unnumbered headline you have to specify it as a list header. This is what the current patch does and how LO does it. But the indention is caused by the fact that it's a list header. To get rid of the indention one has to specify the list style to be the empty style "" (empty quote). . . So, for unnumbered headlines, append text:is-list-header="true" to the text:h specification. Example: headline To get it unindented we need to add style:list-style-name="" To the style. LO does this by generating PN, N is an int, styles on the fly that are derived from Heading styles: In Org, I think the easiest thing to do would be to add these styles to the styles.xml file and choose the right style based on whether headline is numbered or not numbered. . . Unfortunately, it seems we cannot just add style:list-style-name="" to the end of the style definition of Heading_20_N as this kills the number. —Rasmus -- Dobbelt-A