From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: a few suggestions for org-mode table Date: Sun, 21 Jun 2009 08:16:49 +0200 Message-ID: References: <4A3BAEDC.50101@alumni.ethz.ch> Mime-Version: 1.0 (Apple Message framework v935.3) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MIGMR-0000sT-8a for emacs-orgmode@gnu.org; Sun, 21 Jun 2009 02:17:03 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MIGMM-0000nu-I5 for emacs-orgmode@gnu.org; Sun, 21 Jun 2009 02:17:02 -0400 Received: from [199.232.76.173] (port=38126 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MIGMM-0000nk-E8 for emacs-orgmode@gnu.org; Sun, 21 Jun 2009 02:16:58 -0400 Received: from mail-ew0-f220.google.com ([209.85.219.220]:54595) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MIGML-00049L-V7 for emacs-orgmode@gnu.org; Sun, 21 Jun 2009 02:16:58 -0400 Received: by ewy20 with SMTP id 20so555658ewy.42 for ; Sat, 20 Jun 2009 23:16:57 -0700 (PDT) In-Reply-To: <4A3BAEDC.50101@alumni.ethz.ch> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Michael Brand Cc: emacs-orgmode@gnu.org Hi Michael, Org-mode tables are single line per row, and this will not change, I am quite sure - there are too many problems associated with this. Interestingly enough, there was a time when I wanted to have this as well, and there is even a command in Org where you can wrap a couple of lines in a table by selecting text from "the greek" to "empty" and calling `M-x org-table-wrap-region'. However, this is not a good solution, because it does not work correctly with the exporters. A much better solution is to write all that text into one line and use , for example <20> in the same column in another row to restrict the width of this column for display. You can mark this row with "/" in the first, special column to make sure that it will not appear in export. Finally, for export, you can then use attributes to make this column format as a narrow block. Here is an example tuned for for LaTeX: #+ATTR_LaTeX: align=|l|p{2cm}| | / | | <20> | | | x | first letter | | | y | the greek letter ypsilon z still empty | | | t | x, y, z and t | | | | | HTH - Carsten On Jun 19, 2009, at 5:29 PM, Michael Brand wrote: > 1) I would like to have the fixed width columns in tables to be able > to wrap around text as an alternative to the now implemented text > truncation. As a "workaround" I use this: > > | x | first letter | > | y | the greek | > | | \ letter | > | | \ ypsilon | > | | z still empty | > | t | x, y, z and t | > > This is almost perfect except the real pain for the manual rewrap > when changing the text. The difficulty I see here is to define, how > do I want to indicate the top and bottom edge and width of the cell? > Probably by padding the separators +---+---+ and defining the column > width <9> if they are not already there. But since I would like to > optionally remove the separators again after the change, it would be > necessary to have some indentation like I did with `\ ' and which > should not conflict with alignment. > > > 2) One could like to have configurable left/right alignment, even > combinable with column width, e. g. > > | | | > | 3.14 | 0x10 | > | 3.141592=> | 0x32 0x10 | > > > 3) One could like to have decimal point alignment > > | 432.10 | > | 5'432.1 | > > > _______________________________________________ > Emacs-orgmode mailing list > Remember: use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode