From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: ox-odt: List items contain body paragraphs, confusing styles Date: Sun, 20 Aug 2017 12:13:07 +0200 Message-ID: <87mv6uim30.fsf@nicolasgoaziou.fr> References: <15dee1721ff.1065cbcc844521.4283798913058133@zoho.com> <877ey2p8li.fsf@nicolasgoaziou.fr> <15df361600a.dcb2427f56777.4781339305326245219@zoho.com> <87bmnclzrp.fsf@nicolasgoaziou.fr> <15dfa141138.d7a2f77770373.398406515407829618@zoho.com> <87378nlqln.fsf@nicolasgoaziou.fr> <15dfe436e46.b8b6ef9b74731.2577979606530454620@zoho.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:45987) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1djNEH-0000pZ-DS for emacs-orgmode@gnu.org; Sun, 20 Aug 2017 06:13:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1djNEG-0000hc-Cy for emacs-orgmode@gnu.org; Sun, 20 Aug 2017 06:13:13 -0400 Received: from relay4-d.mail.gandi.net ([2001:4b98:c:538::196]:38916) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1djNEG-0000gz-6M for emacs-orgmode@gnu.org; Sun, 20 Aug 2017 06:13:12 -0400 In-Reply-To: <15dfe436e46.b8b6ef9b74731.2577979606530454620@zoho.com> (James Harkins's message of "Sun, 20 Aug 2017 02:10:18 -0400") 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" To: James Harkins Cc: emacs-orgmode Hello, James Harkins writes: > OK, I just got the expected output by the following: > > - Add "OrgListTextBody" to the stylesheet. I didn't try to do it directly in text (I don't know ODT XML that well). I created the style with that name in LO, setting the indent parameters to 0. That gave me this definition in styles.xml: > > > > > > It's probably enough to specify only ~fo:text-indent="0in"~, but I didn't test that because I'm not sure how to write the modified styles.xml back into the ODT archive. (LO auto-generated all 4 parameters.) > > - Then, use my filter to apply OrgListTextBody to the paragraphs contained within list items. > > The resulting display in LO is correct. Out of curiosity, instead of creating a new style, wouldn't some standard style be enough, e.g., "Text_20_body_20_indent"? Also, what happens in the following cases - ... #+begin_quote Quoted paragraph #+end_quote #+begin_center Centered paragraph #+end_center Should the use "Quotations" and "OrgCenter", which inherit from "Text_20_body", or some new style inheriting from the one dedicated to text in plain lists? Regards, -- Nicolas Goaziou