From mboxrd@z Thu Jan 1 00:00:00 1970 From: James Harkins Subject: Re: ox-odt: List items contain body paragraphs, confusing styles Date: Sun, 20 Aug 2017 20:46:44 +0800 Message-ID: <15dffae5f20.2778.82338e46905ca0a1b8f7a8095ee71cce@zoho.com> 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> <87mv6uim30.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset="us-ascii" Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:59445) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1djPd9-0006qf-2e for emacs-orgmode@gnu.org; Sun, 20 Aug 2017 08:47:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1djPd5-00066j-VJ for emacs-orgmode@gnu.org; Sun, 20 Aug 2017 08:47:03 -0400 Received: from sender-pp-091.zoho.com ([135.84.80.236]:25128) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1djPd5-00065r-NX for emacs-orgmode@gnu.org; Sun, 20 Aug 2017 08:46:59 -0400 In-Reply-To: <87mv6uim30.fsf@nicolasgoaziou.fr> 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: Nicolas Goaziou Cc: emacs-orgmode On August 20, 2017 18:13:13 Nicolas Goaziou wrote: > 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? Interesting questions -- however, I'm leaving tomorrow for a week's holiday. So I won't get to this for awhile. I should also say: This is the first time I've needed the ODT exporter for anything serious. So, I shouldn't be taken as any sort of authority on how the styles "should" work. I'm reporting behavior that seemed odd to me and, to the extent that I have time, I don't mind prowling around in the ODT data structures to see what is going on inside. That's about the extent of what I can do. I'm not affiliated with LibreOffice in any way... In fact, I quite dread using it. TBH I prefer exporting to LaTeX, but it's a humanities journal and they don't understand about superior technology :D That said, I'm not sure why those cases would be challenging. In the normal list item case, you have a list item node enclosing one or more paragraph nodes. In the cases you mentioned, the list item node would contain a quote block or centered block node. As I understand the exporter, the depth-first traversal would encode the child nodes normally, and pass the encoded result up to the list item parent. My observation of LO is that it tries to merge properties from the list style and paragraph style, which it would do if it's centered, block quote or whatever. So my guess is, do nothing special for these cases. But that's a guess. hjh Sent with AquaMail for Android http://www.aqua-mail.com