From: Jambunathan K <kjambunathan@gmail.com>
To: Charles Turner <chturne@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Enhancing table cell alignments and commenting columns (was Re: Orthogonality of blocks)
Date: Thu, 29 Dec 2011 11:19:28 +0530 [thread overview]
Message-ID: <81fwg4sz9z.fsf_-_@gmail.com> (raw)
In-Reply-To: <81k45gt0pg.fsf@gmail.com> (Jambunathan K.'s message of "Thu, 29 Dec 2011 10:48:35 +0530")
Jambunathan K <kjambunathan@gmail.com> writes:
> Charles Turner <chturne@gmail.com> writes:
>
>> @Jambunathan: Your examples render the blocks with sizes proportional
>> to the contained text, rather than aligning as a table. I find that
>> aesthetically displeasing :-(
>
> I am unable to understand what "sizes proportional to the contained
> text" means. What viewer are you using?
>
> I am using a fairly recent version of LibreOffice (v3.4.4) and I see
> that the positions of the blocks are a bit staggered (See portions
> marked red in the attached png)
>
> Furthermore, the srcline where the cursor is - marked with an ellipse -
> uses OrgSrcBlockLastLine style. If the style were modified to
> OrgSrcBlock style, I see that the above staggering gets less
> accentuated. A plausible explanation for this behaviour is that the
> "space below paragraph" introduced by "OrgSrcBlockLastLine" spills over
> to the next paragraph which is in the second table column.
>
> One of the reasons that the staggering persists is because of the change
> in space settings between "Text_20_body" and "OrgSrcBlock" styles (Note
> that the "Say Hello in ..." lines and the src block lines use different
> fonts and font sizes and different paragraph styles)
>
> AFAIK, there is nothing amiss with the XML that the ODT exporter dumps
> and I am inclined to think that the issue is with LibreOffice rendering
> engine.
I am wrong, the issue is not with the LibreOffice but with my memory.
The srcblocks are actually aligned "centrally" (along the vertical axis)
within the table cell. Since the two blocks are of different
sizes/lengths the top border gets staggered.
Changing the alignment to "top" will fix the issue.
#+begin_src nxml :see OrgOdtContentTemplate.xml
<style:style style:name="OrgTblCell" style:family="table-cell">
@@@@@@@@@@@@@@@@@@@@@@@
<style:table-cell-properties style:vertical-align="middle" fo:padding="0.159cm" fo:border-top="none" fo:border-bottom="none" fo:border-left="none" fo:border-right="none"/>
</style:style>
#+end_src
There colcookies that specify how a table column has to be
aligned. Currently there are specifiers only for left and right
alignment.
,---- (info "(org) Column width and alignment")
| If you would like to overrule the automatic alignment of number-rich
| columns to the right and of string-rich column to the left, you can use
| `<r>', `c'(2) or `<l>' in a similar fashion. You may also combine
| alignment and field width like this: `<l10>'.
`----
I think it would be useful to specify a "top" alignment specifier. There
is also a recent interest in commenting out certain Org-table columns
[1].
I think the colcookie lines could be enhnaced to also support "t" and
"/" characters. IMNSHO, using #+ATTR_ODT: lines for commenting out
columns will not only be cumbersome but also error-prone.
> ps: I am not much concerned xhtml exporter as it is mostly a museum
> piece cherished just by me.
Footnotes:
[1] http://lists.gnu.org/archive/html/emacs-orgmode/2011-12/msg00691.html
--
next prev parent reply other threads:[~2011-12-29 5:49 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-12-27 19:46 Orthogonality of blocks Charles Turner
2011-12-27 20:37 ` Eric Schulte
2011-12-27 21:12 ` Christian Moe
2011-12-27 21:10 ` Eric Schulte
2011-12-27 23:19 ` Christian Moe
2011-12-27 23:30 ` Nick Dokos
2011-12-28 0:14 ` Torsten Wagner
2011-12-28 4:48 ` Jambunathan K
2011-12-28 5:30 ` Jambunathan K
2011-12-28 7:10 ` Sebastien Vauban
2011-12-28 14:51 ` Charles Turner
2011-12-29 5:18 ` Jambunathan K
2011-12-29 5:49 ` Jambunathan K [this message]
2011-12-29 6:06 ` Enhancing table cell alignments and commenting columns (was Re: Orthogonality of blocks) Jambunathan K
2011-12-29 16:22 ` Jambunathan K
2011-12-29 6:14 ` Orthogonality of blocks Jambunathan K
2011-12-30 14:17 ` Eric S Fraga
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=81fwg4sz9z.fsf_-_@gmail.com \
--to=kjambunathan@gmail.com \
--cc=chturne@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).