emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Jambunathan K <kjambunathan@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: Aligned glosses in orgmode (for export to odt/doc)
Date: Wed, 22 Jan 2014 23:46:03 +0530	[thread overview]
Message-ID: <877g9rx4po.fsf@gmail.com> (raw)
In-Reply-To: 87fvogeyi9.fsf@jnanam.net

[-- Attachment #1: Type: text/plain, Size: 1931 bytes --]


Benjamin Slade <slade@jnanam.net> 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).

This feature is available only in my private repo.  

----------------------------------------------------------------

If you are using Git see instructions at:

    http://lists.gnu.org/archive/html/emacs-orgmode/2013-12/msg00522.html

   (Search for "Download")

Once you download and copy the ox-odt.el file, make sure you do

    M-x byte-compile-file

to create .elc file.

----------------------------------------------------------------

If you are using ELPA see instructions at:

    http://lists.gnu.org/archive/html/emacs-orgmode/2014-01/msg00518.html

    (Search for "Untar")

----------------------------------------------------------------

1. Identity where your styles files come from.  Look at the *Messages*
   buffer for clue.

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

Replace this

    <style:style style:name="CustomTableCell" style:family="table-cell">
      <style:table-cell-properties style:vertical-align="top" fo:background-color="#ffffff" fo:padding="0.097cm" fo:border-left="0.002cm solid #000000" fo:border-right="0.002cm solid #000000" fo:border-top="0.002cm solid #000000" fo:border-bottom="0.002cm solid #000000">

with this:

    <style:style style:name="CustomTableCell" style:family="table-cell">
      <style:table-cell-properties style:vertical-align="top"
      fo:background-color="#ffffff" fo:padding="0.097cm">


3. Create a tables as below.  ("GriddedTable" is part of C-h v
   `org-odt-table-styles').  WARNING: Don't try to understand the
   documentation.  I don't it understand it myself.

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


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: test.org --]
[-- Type: text/x-org, Size: 355 bytes --]

Rows will be in the ratio of 2:3:4

#+ATTR_ODT: :style "GriddedTable"
| <1> | <2> | <3> |
| _a_ | _b_ | _c_ |
| _d_ | _e_ | _f_ |


Rows will be in the ratio of 4:7:10.  Table will occupy 80% of page width.

#+ATTR_ODT: :rel-width 80
#+ATTR_ODT: :widths 3,6,9
#+ATTR_ODT: :style "GriddedTable"
| <1> | <2> | <3> |
| _a_ | _b_ | _c_ |
| _d_ | _e_ | _f_ |


[-- Attachment #3: Type: text/plain, Size: 120 bytes --]


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

4. Export it.  You will get the attached ODT file.


[-- Attachment #4: test.odt --]
[-- Type: application/vnd.oasis.opendocument.text, Size: 10609 bytes --]

  reply	other threads:[~2014-01-22 18:20 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.111.1359046822.1194.emacs-orgmode@gnu.org>
2014-01-22 17:07 ` Aligned glosses in orgmode (for export to odt/doc) Benjamin Slade
2014-01-22 18:16   ` Jambunathan K [this message]
2014-01-24 17:39     ` Jambunathan K
2014-01-23 14:14   ` Jambunathan K

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=877g9rx4po.fsf@gmail.com \
    --to=kjambunathan@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /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).