From: James Harkins <jamshark70@zoho.com>
To: Nicolas Goaziou <mail@nicolasgoaziou.fr>,
emacs-orgmode <emacs-orgmode@gnu.org>
Subject: Re: ox-odt: List items contain body paragraphs, confusing styles
Date: Sun, 20 Aug 2017 02:10:18 -0400 [thread overview]
Message-ID: <15dfe436e46.b8b6ef9b74731.2577979606530454620@zoho.com> (raw)
In-Reply-To: <87378nlqln.fsf@nicolasgoaziou.fr>
---- On Sat, 19 Aug 2017 07:55:00 -0400 Nicolas Goaziou <mail@nicolasgoaziou.fr> wrote ----
> OK. So could you tell me what should be the style name?
>
> Do we need to add it to some style file somewhere? If so, what would be
> its definition?
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.
hjh
next prev parent reply other threads:[~2017-08-20 6:10 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 [this message]
2017-08-20 10:13 ` Nicolas Goaziou
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=15dfe436e46.b8b6ef9b74731.2577979606530454620@zoho.com \
--to=jamshark70@zoho.com \
--cc=emacs-orgmode@gnu.org \
--cc=mail@nicolasgoaziou.fr \
/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).