emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nicolas Goaziou <mail@nicolasgoaziou.fr>
To: James Harkins <jamshark70@zoho.com>
Cc: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: Re: ox-odt: List items contain body paragraphs, confusing styles
Date: Sun, 20 Aug 2017 12:13:07 +0200	[thread overview]
Message-ID: <87mv6uim30.fsf@nicolasgoaziou.fr> (raw)
In-Reply-To: <15dfe436e46.b8b6ef9b74731.2577979606530454620@zoho.com> (James Harkins's message of "Sun, 20 Aug 2017 02:10:18 -0400")

Hello,

James Harkins <jamshark70@zoho.com> 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:
>
>     <style:style style:name="OrgListTextBody" style:family="paragraph" style:parent-style-name="Text_20_body">
>       <style:paragraph-properties fo:margin-left="0in" fo:margin-right="0in" fo:text-indent="0in" style:auto-text-indent="false"/>
>     </style:style>
>
> 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

  reply	other threads:[~2017-08-20 10:13 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-08-17  2:47 ox-odt: List items contain body paragraphs, confusing styles James Harkins
2017-08-17 14:33 ` Nicolas Goaziou
2017-08-18  3:27   ` James Harkins
2017-08-19  8:36     ` Nicolas Goaziou
2017-08-19 10:40       ` James Harkins
2017-08-19 11:55         ` Nicolas Goaziou
2017-08-20  6:10           ` James Harkins
2017-08-20 10:13             ` Nicolas Goaziou [this message]
2017-08-20 12:46               ` James Harkins

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87mv6uim30.fsf@nicolasgoaziou.fr \
    --to=mail@nicolasgoaziou.fr \
    --cc=emacs-orgmode@gnu.org \
    --cc=jamshark70@zoho.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).