[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] Aligned glosses in orgmode (for export to odt/doc)

From: Jambunathan K
Subject: Re: [O] Aligned glosses in orgmode (for export to odt/doc)
Date: Fri, 24 Jan 2014 23:09:34 +0530
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

Jambunathan K <address@hidden> writes:

> Benjamin Slade <address@hidden> writes:
>> One potential solution would be an orgmode setup which produces
>> borderless tables with an "optimal width" column setting. I don't know
>> how to do this in orgmode though (or if it can be done currently).

In Office XML, the style:table-column-properties has
style:use-optimal-column-width="true".  Based on my little
experimentation, I find that LibreOffice doesn't honor this setting.
This is the reason why columns are emitted unoptimized.

>From LibreOffice UI, if you choose "Optimal Column Width", then the
table columns are emitted NOT with above XML attribute but with
hard-coded on-the-fly widths.

May be someone can take the above issue with LibreOffice folks...

> 2. Open OrgOdtContentTemplate.xml and find a style named
> "CustomTableCell".  Edit it so that it has no borders.

Ignore the above suggestion.  It is too tedious.  I have flushed out a
fix as part of the following ELPA tar


With this fix, the behaviour of the rules in the ODT table will be much
the same as that in

    (info "(org) Tables in ODT export")

except for the following modification:

The ODT table will have top rule (or bottom rule) only if the Org-mode
table has one.

Similarly, ODT table will have left rule (resp. right rule) only if the
leftmost (resp. rightmost) data column has "<" and ">" markers.


To cut the long story short, here is how you produce a borderless table.
Use the :widths and :rel-width property to have the table look compact
and nice.

--8<---------------cut here---------------start------------->8---

Attachment: test.org
Description: Text Data

--8<---------------cut here---------------end--------------->8---

Attachment: test.odt
Description: application/vnd.oasis.opendocument.text

reply via email to

[Prev in Thread] Current Thread [Next in Thread]