emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Marcin Borkowski <mbork@wmi.amu.edu.pl>
To: emacs-orgmode@gnu.org
Subject: Re: How to join cells in tables and center content
Date: Fri, 31 May 2013 21:27:57 +0200	[thread overview]
Message-ID: <20130531212757.5990b769@aga-netbook> (raw)
In-Reply-To: <87fvx3smwt.fsf@bzg.ath.cx>

Dnia 2013-05-31, o godz. 08:06:58
Bastien <bzg@gnu.org> napisał(a):

> Hi Ivanov,
> 
> Ivanov Dmitry <usr345@gmail.com> writes:
> 
> > Suppose, I am writing a database table structure.
> > Is it possible to join the 1-st two cells? And make 'table1'
> > centered?
> 
> No.
> 
> > Current view and desired:
> >
> >
> > | table1 |       |          |     table1     |
> > |--------+-------+          |--------+-------+
> > | id     | value |    ->    | id     | value |
> > |        |       |          |        |       |
> >
> >
> > I understand, that it will require programming. Just give me a hint,
> > where is the function, expanding table cells, and I'll try to
> > implement it.
> 
> Most code is in org-table.el -- but beware that even with some
> programming skills this is a hard-perhaps-impossible task...

Just random thoughts here:

It would definitely require some syntax so that Org knows that you
don't want to just extend the whole column to the width of two
columns.  Maybe something like <n> (setting of the width), but
probably something along the lines of #+TBLFM (some kind of
syntax /below/ the table) might be better.

In general, joining cells seems to be a potentially tough problem,
especially if you want to allow joining them vertically, too
(and /years/ of LaTeX experience (not mine) show that if you give
people horizontal joining, at some point they /will/ want vertical
one...  In Polish, we have a saying for that: "give it a finger, and it
will bite off your hand";).)

That said, I'd welcome such a feature.

> Good luck,

Best,

-- 
Marcin Borkowski
http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski
Adam Mickiewicz University

  reply	other threads:[~2013-05-31 19:28 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-05-30 18:53 How to join cells in tables and center content Ivanov Dmitry
2013-05-31  6:06 ` Bastien
2013-05-31 19:27   ` Marcin Borkowski [this message]
2013-06-01  6:40 ` Carsten Dominik

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=20130531212757.5990b769@aga-netbook \
    --to=mbork@wmi.amu.edu.pl \
    --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).